• Breaking News

    Tuesday, October 1, 2019

    Plebgrammer to you all, what sort of command-line utilities did you wish you had known when you were starting out? Ask Programming

    Plebgrammer to you all, what sort of command-line utilities did you wish you had known when you were starting out? Ask Programming


    Plebgrammer to you all, what sort of command-line utilities did you wish you had known when you were starting out?

    Posted: 01 Oct 2019 06:01 AM PDT

    Currently, I'm experimenting some with Zsh, though personally (because, again, I'm a pleb) it's a little intimidating and I'm thinking of going back to bash.

    I use Homebrew as much as I can, but even it is sort of a mystery beyond updating what formulae I have.

    I look forward to your suggestions! :) Thanks.

    submitted by /u/bnimbla
    [link] [comments]

    Does Packagist maintain library versions perpetually?

    Posted: 01 Oct 2019 10:56 PM PDT

    Packagist is the main Composer repository, for PHP Packages. We have an enterprise level app where we have some technical debt and we have maintained packages in our repository code. We are now moving towards a change where we remove the packages from the repo and download them during deployment etc. My question is, does Packagist maintain package versions perpetually? I did not find this information anywhere on their website.

    This way we could just commit composer.lock to maintain certain versions perpetually in a catastrophic event where repositories go disappearing from Github. We are also initiating a plan where we will start using Private Packagist and are thinking about forking each version and maintaining it in our own version control system, or in worst case keep them stored in S3.

    Private Packagist claims it's a proxy between Packagist and Github which will maintain archives so deployments never fail, so it might be the endgame solution.

    submitted by /u/rcls0053
    [link] [comments]

    Should I still create x86 and x64 installs of my application

    Posted: 01 Oct 2019 06:47 PM PDT

    Currently my software requires Windows Server 2012 R2 or above to fully work. I am still creating an x86 Installation as well as an x64 installation. All of my current customers are using x64 Windows Servers. I have had to maintain the x86 installation because one client was still running 32 bit OS. That client has now moved to a 64 bit OS and I no longer need it.

    Seems to me that 64 bit is the standard, but not sure if everyone thinks that? I pretty much run everything on 64 bit OS's. Even Apple is no longer supporting 32 bit code. Any thoughts on maintaining a 32 bit build?

    submitted by /u/Derftoy
    [link] [comments]

    Join our new subreddit r/VisualSchool. It will help you learn precisely what matters

    Posted: 01 Oct 2019 06:00 PM PDT

    Dear fellow designers, programmers, students and teachers,

    We are happy to invite you to our brand new reddit community: r/VisualSchool . Here you can learn coding, design, marketing, dev ops, security and many other skills. We want to radically improve the online learning experience by providing a visual map of knowledge trough our innovative learning platforms.

    If acquiring new skills extremely fast is important for you, help us achieve critical mass by joining in our reddit community!

    Why Visual School?

    · Because learning is slow – Our current experience learning online is very rough. We are forced to spend lots of time searching for the right material. We are forced to drain lots of energy just to understand the basics.

    · Because we lose focus – We start learning one thing and then the next few hours we are all over the web trying to put the puzzle together. It's like going downstairs to dump the trash and returning several hours later after you were attacked by a grizzly bear in Las Vegas.

    · Because we are missing know-how – On a daily basis we start reading some tutorial and then we find lots of strange unfamiliar concepts. All these gaps in knowledge prevent us from learning fast. Worse they divert our attention away from the main topic.

    How will we learn on Visual School?

    · Elastic lessons – All the tutorials in Visual School are optimized to be "stretchy". Depending on how skilled you are you can adjust each part of the lesson to give you more or less content. Users ranging from complete beginners up to experts can consume the same set of tutorials adjusted to their own needs.

    · Speed reading – All our tutorials will be optimized for speed reading. Our approach is to integrate carefully selected and designed graphics and animations. It will look and feel like a hybrid between text, slideshows and video all optimized for learning fast. The accent is on quality not quantity.

    · Learning map – Think of it as a subway map. Our aim is to map all the important destinations and focus your attention on what makes the biggest impact in your daily life as a professional. This map will give you awareness of the big picture.

    · Learning goals – You will be able to setup goals and our platform will help you plan ahead a faster route towards your professional goals. We encourage exploration in all ways and forms, all while maintaining a clear deadline and end-goal.

    · Nano Lessons – For every new unfamiliar concept you discover in the lesson you will have a mini lesson about it one click away. It will help you focus and stay on track without feeling lost.

    What will Visual School be?

    · Visual School is the platform where you can study matching your own level of experience

    · Visual School maintains your focus while studying a certain subject.

    · Visual School fills in the gaps of knowledge right on the spot.

    Who is the audience for Visual School?

    · In this current group we invited only profiles that are either strong developers or strong designers. This selection is a good representation of the audience we are targeting. We intend to reach the global market of developers in the early phase. Our first iteration of content will be about programming.

    The ultimate goal of Visual School is to reduce the time spent learning and to increase the time spent coding meaningful projects. Current generation of tutorials does a decent job. The next generation of tutorials will kick ass! We want to lead the way towards this future.

    Cheers!

    submitted by /u/JetFuelCereals
    [link] [comments]

    A question about .NET and Angular

    Posted: 01 Oct 2019 09:57 AM PDT

    There is Angular code in this .net project, and I want to add an Angular module to this project. The issue is with the way this project seems to be set up, there is no .ts file to add imports per usual. If I create my own basic .ts file, Visual studio throws the error: "(TS) Cannot find module @angular/core."

    Here is an image of the file structure where the Angular seems to be living. Can anyone provide help (or lead me to a good resource) that would guide me in adding an angular module to this project?

    submitted by /u/APersonToBe
    [link] [comments]

    Creating patches for config files between software versions, and making pretty directory diffs

    Posted: 01 Oct 2019 05:04 PM PDT

    I have some software, nicely contained in single directories, which needs to be updated. The old software has been extensively configured and this was not done through automation or source control. For $reasons, the upgrade path will not include the introduction of automation or source control. I have two problems.

    First, I'd like a nicely formatted HTML diff of the directories. I've found a couple of options that get me like 75% the way there, but curious if any of you have suggestions. One was a diff2html bash script I found in the wild, another is a 15 minute hack job with python difflib and filecmp.

    Second, the new configs need to be, ideally, patched by machine. There is no upgrade facility. I've considered making a patch of the old config/static files with their custom versions, then placing the vanilla files under git, then making a branch for custom changes to be patched on, then upgrading the vanilla branch, and then finally merging the upgraded vanilla branch into the custom branch. I don't love this solution, it feels like an abuse of git and again for other $reasons. What else can I do?

    submitted by /u/tahmsplat
    [link] [comments]

    grant permission to access a file if a UID is within a certain threshold? (Linux)

    Posted: 01 Oct 2019 01:49 PM PDT

    Im trying to figure out how I can give a user a permission to read a file if their UID is less than 200. Is this something that can be put into a terminal or would it need to be a written program? I am new to Linux, sorry. I have no problem programming something to manually iterate through 1000 IDs and compare the current ID to it (using C/C++), but I do not know if that is an exaggerated approach.

    To summarize, I want to:

    check ID of user if within 200 range

    if yes, grant read permission to that user

    submitted by /u/disposable202
    [link] [comments]

    how to make a https request with ajax jquery

    Posted: 01 Oct 2019 01:06 PM PDT

    making a post on an https website like below would be enough for my files to be encrypted, thanks in advanced

    $.ajax({

    type: "POST",

    url: url, // using a url such https://www.example.com/sending_file.py

    data: form.serialize(), // serializes the form's elements.

    success: function(data)

    {

    alert(data); // show response from the php script.

    }

    });

    submitted by /u/tmxaccount
    [link] [comments]

    What do you hate about product managers/owners?

    Posted: 01 Oct 2019 11:20 AM PDT

    I've just accepted a position as a product manager/owner where I'll be working more extensively with a development team than I have in the past. I've mainly worked with infrastructure engineers with about 10% of my work going into software development.

    I'm coming into a company I've never worked for, with a team I've never met. I know they're doing ScrummBan and I'm no stranger to Scrumm (less experienced with Kanban though).I want to make sure that I support them in a way that works for them without being annoying and that I can build a good trust relationship so that I don't come across as some idiot manager that doesn't know anything.

    So what would make me an annoying idiot in your opinion? What would help you to be able to trust me when I'm a totally fresh face?

    submitted by /u/RusticGroundSloth
    [link] [comments]

    I need to create multiple tables in pandas using loops

    Posted: 01 Oct 2019 09:53 AM PDT

    I'm creating a large data base of a storage system and I want to create a table for every product there is but it would take a lot of time to create over 400 products individually. I want to create a table for every item in a list that contains product names . The table name in the loop should be the same as the product name. All the tables will be similar except for the title and a column called product_name. Thanks a lot and hope you reply quickly. I really need your help and you can make a difference. Thanks :)

    submitted by /u/MohamedAmr5069
    [link] [comments]

    How can I create multiple tables using a for loop in pandas and python

    Posted: 01 Oct 2019 09:29 AM PDT

    I'm creating a large data base of a storage system and I want to create a table for every product there is but it would take a lot of time to create over 400 products individually. I want to create a table for every item in a list that contains product names . The table name in the loop should be the same as the product name. All the tables will be similar except for the title and a column called product_name. Thanks a lot and hope you reply quickly. I really need your help and you can make a difference. Thanks :)

    submitted by /u/MohamedAmr5069
    [link] [comments]

    What language does Sax Basic use? I'm rather lost on figuring out if it's BASIC or Visual Basic or what

    Posted: 01 Oct 2019 09:23 AM PDT

    Just wondering since I'm going to have to learn the language for a particular application.

    submitted by /u/rhodium-chloride
    [link] [comments]

    Need help with Firebase Storage for Unity

    Posted: 01 Oct 2019 08:47 AM PDT

    Hello everyone!

    So, im developing an app that will use some 3D models as an AR.

    My first version was too heavy cause i used the models inside the application. Im trying to use the firebase Storage to download the 3D models, wich will help a lot.

    The problem is i dont know where i should put my C# script in Unity that do this operation, since its the first time im developing something in unity. Im studing the firebase documents, but if any of you have any insight to give, ill be very pleased!

    Thnx in advance for the help! Good Day =)

    submitted by /u/ddo27
    [link] [comments]

    How do I mentally transition from a ".NET Developer" to a "Software Developer"?

    Posted: 01 Oct 2019 08:28 AM PDT

    Hey, I went to a coding bootcamp and then got a job really early. I learned .NET at that bootcamp, and I code in it every day at my job. I don't want to be tied down to using Visual Studio and hoping Microsoft makes smart decisions, I want to branch out and do work with more interesting languages(IMO no flame war being started here) like Python and Go. Does anyone have some good things to tell me or something I can tell myself that justifies this? Thank you and have a good day.

    submitted by /u/pathfinder_1
    [link] [comments]

    What is the best way to send data between c++ & delphi?

    Posted: 01 Oct 2019 06:43 AM PDT

    As the title suggests. So far Ive been looking into a REST framework for c++. the only data that needs to be sent is JSON formatted and it needs to be as fast as possible. The c++ code is sitting in a docker container constantly running a calculation.

    Preferably would like to do this on a single thread if possible to reduce complexity at first, just wanted to ask if the fastest route would be REST Server, HTTP Server, or some other option?

    Thanks!

    submitted by /u/Yonnis_
    [link] [comments]

    Does the use of the private access specifier in declaring a class in C++ provide protection at the memory level ?

    Posted: 01 Oct 2019 06:25 AM PDT

    As the title suggests also Is it possible to overflow into private variables ? could some one please give me some justification behind this , Pleb level noob programmer here any advice is appreciated beyond reasoning

    submitted by /u/Struggling_Sturgeon1
    [link] [comments]

    Subreddit /r/PythonForStartups/ a place to find python libraries and modules one can use in their startup

    Posted: 01 Oct 2019 05:44 AM PDT

    Hi,all just created a new subreddit /r/PythonForStartups/ is a subreddit focusing on python libraries ,modules and article insights one can have and use for their own startups and projects.

    submitted by /u/ashish316
    [link] [comments]

    Java EE getSingleResult() did not receive any entities error help

    Posted: 01 Oct 2019 12:19 AM PDT

    I'm writing an updateTest as part of CRUD testing and when I test my code, I get an error saying no entities are found. I have no idea why, because my partner did the exact same code and his worked perfectly. Neither of us are able to figure out what's going on. I'm getting an error on the getSingleResult() method.

     @Test public void updateBookTest() { Book book = em.createQuery("select b from Book b where b.title = :title", Book.class).setParameter("title", "createABook").getSingleResult(); tx.begin(); book.setTitle("updatedThisBook"); book.setAuthor("newAuthor"); tx.commit(); Book updatedBook = em.find(Book.class, book.getBookId()); assertEquals(book.getTitle(), updatedBook.getTitle()); assertEquals(book.getAuthor(), updatedBook.getAuthor()); System.out.println("updateBookTest:\t" + book.toString()); tx.begin(); book.setTitle("createABook"); tx.commit(); } 

    This is my code. Let me know if more information is needed.

    submitted by /u/MainCelery
    [link] [comments]

    python code help

    Posted: 01 Oct 2019 03:39 AM PDT

    hi i was wondering in my python code when i ----- example = 4b i get a error how do i fix so i can include numbers an d letters?

    submitted by /u/itzguno
    [link] [comments]

    How do I install multiple Python versions for Mac to use on pipenv?

    Posted: 30 Sep 2019 11:51 PM PDT

    I'm following this tutorial and came to the near end where he's modifying the pipfile. When I switch to a different python version, and relaunch the pipenv using the command:

    pipenv --python x.x.x 

    I get the following error:

    Warning: Python X.X.X was not found on your system… You can specify specific versions of Python with: $ pipenv --python path/to/python 

    How do I install multiple versions of python on my mac such that I can use PipEnv to swap between them easily?

    Thank you!

    submitted by /u/MrMegaGamerz
    [link] [comments]

    Need help with database/information storing

    Posted: 01 Oct 2019 03:26 AM PDT

    So my father owns a car rental place and they have more than 100 cars. My question is: how would I go about adding all the cars into a database and making it possible for my father to add comments and other information to individual cars. Currently they use papers for almost everything except their booking system and email.

    What would be the best way to accomplish this?

    submitted by /u/Euc99
    [link] [comments]

    Best practises for file storage of a massive number of users?

    Posted: 01 Oct 2019 02:40 AM PDT

    Take a hypothetical situation like Google Docs. You have millions of users around the globe, and each user can have any number of documents (spreadsheets, presentations, text, etc.). Some of these documents may even have things such as images contained within them.

    On the topic of file storage: what is an appropriate way to store this data? Surely these files are not raw blobs occupying a single record in a database somewhere. Are they stored as raw files on a filesystem in a way that only the backend services understand how to retrieve? Is it even safe (from a security perspective, not fault-tolerance) to store the data of multiple users in one place?

    I'd love to hear the opinions or insight of anybody relevant experience here. What approach might you take to handle this situation?

    submitted by /u/StarTripEnterprise
    [link] [comments]

    How to constimize prettier extension on VScode?

    Posted: 01 Oct 2019 01:34 AM PDT

    Hey everyone, I started using prettier and I was wondering if I can change the way it does some of the formating like Forcing me to have the brackets of a function block to with at the same like as the parameters, which I don't like, I want the brackets to be on the next line.

    Can I just make global changed in the settings file? If you can link me to a tutorial? I would be thankful

    submitted by /u/Taro_Naza
    [link] [comments]

    No comments:

    Post a Comment