• Breaking News

    Thursday, June 28, 2018

    What should I be aware of when generating a text file (with python) that may well be grow into the gigabytes? Ask Programming

    What should I be aware of when generating a text file (with python) that may well be grow into the gigabytes? Ask Programming


    What should I be aware of when generating a text file (with python) that may well be grow into the gigabytes?

    Posted: 28 Jun 2018 03:11 PM PDT

    I wrote a program (with help.) This program brute force generates possible user actions for a different program. Unsurprisingly, given the number of possible actions, and the max length for the action list, the number of possible user actions grows to be very... very... very large.

    I expect it to grow to be at least a gigabyte.

    What should I be aware of when generating this file? How can I open this file? Can I open this file? Will windows freak out? Will python freak out? Will my subsequent python program be able to open and read this file?

    I'm only asking these questions because I'm letting the program run overnight and don't know the answers for myself yet.

    Is there any thing else that I should be aware of?

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

    Google's source code seems to be compressed, why does it consist of ~350 lines though?

    Posted: 28 Jun 2018 10:09 AM PDT

    Why isn't it entirely compressed into one line?

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

    How many different branch types does your applications have?

    Posted: 28 Jun 2018 10:35 AM PDT

    Just trying to get a sense of the type of branching methods your org uses - for example, GitFlow technique uses a

    • Master Branch (that you rarely touch)
    • Release Branch (Where RCs are made)
    • Develop Branch (Non-RC work is done)
    • Feature Branch (Small teams, or individual person, on a feature)

    What does your branching structure typically look like?

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

    New to programming as a bubbly extroverted people person. Can I survive?

    Posted: 28 Jun 2018 03:16 PM PDT

    Ultimately I'm using programming as a means to be able to work remotely some day. I got accepted into a really hard bootcamp so I know I'm smart enough but I almost don't feel like I can crack it in other ways. The idea of sitting behind a computer to work for hours makes me feel like I'm gonna die. I'm very much commited to at least finishing my class but I'd like to hear from other people already working that maybe felt like I did in the beginning.

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

    Who wrote the code/algorithm that determines a credit score?

    Posted: 28 Jun 2018 04:28 PM PDT

    See title please and thank you!

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

    Noob question for a windows batch file

    Posted: 28 Jun 2018 04:25 PM PDT

    I don't know if this is a specific or complex windows bat file, but here goes. I have a txt file on my local machine, and I want to create a bat file to search that file for every instance of a specific word, and if it finds it, to send it to an email address.

    So in the example below, the bat file would find the word INFO 3 times, and it would email me the entire line of data that they are all on.

    06/25/2018 16:16:26.569 [160] INFO : file2 count: 5100

    06/25/2018 16:16:27.288 [171] INFO : file3 count: 237

    06/25/2018 16:16:27.460 [193] INFO : file 4 count: 39

    Thanks for any/all help.

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

    How would I even begin to solve this?

    Posted: 28 Jun 2018 12:12 PM PDT

    Is there a way to extract a users Spotify data to do some funky stuff with it?

    Posted: 28 Jun 2018 03:40 PM PDT

    Basically, I am very new to all of this. I am currently working on a project for a beginner web development course, the idea is conseptual and we're figuring out it's feasiblity.

    Essentially the idea is a website where a user's music preference is used to assign them a personality trait. We're thinking of getting the users music preference from their Spotify account. And based on their listening history they are given a personality trait.

    Is there someway to extract this listening history data from spotify?

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

    How do I run non-trivial assembly programs in Xcode?

    Posted: 28 Jun 2018 11:51 AM PDT

    I understand that I could write assembly NASM code without an IDE but that seems a little barbaric.

    I found this video for Xcode's AT&T syntax assembly:

    https://www.youtube.com/watch?v=IHLdQgwXhHM

    It works fine but if I try to add a data section, I can't use the variables. Moving things to explicit locations in RAM relative to a stack pointer like movl $0x42, -0x4(%rbp) works fine, but I'd love to be able to name a few integer variables so I don't have to remember what -0x4(%rbp) or callq 0x100000ee0 refer to.

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

    Is there a service that puts your files behind a questionnaire?

    Posted: 28 Jun 2018 11:48 AM PDT

    I want to be able to upload files to web page that puts it behind a few questions. (email, name, etc)

    I found a website that does exactly that. Here: http://www.debbiesharp.com/3279-Cabrillo-Highway

    you can hit "download disclosures" and it let's you download the files once you put in contact info.

    Do any of you know of a product/service that does this? Thanks so much.

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

    I’m not asking about programming but programmers.

    Posted: 28 Jun 2018 03:18 PM PDT

    So for the programmers out here have any of y'all ever been a cofounder for an app? If so did you like it? Would you do it again? If not why?

    I question I have after those is how would I find a cofounder for an app?

    I read over the rules of this page I don't think it's going against it but if it does just let me know and I'll remove the post!

    submitted by /u/Mr-Machinist
    [link] [comments]

    How to determine the maximum number of records to bulk insert at once.

    Posted: 28 Jun 2018 02:30 PM PDT

    I am writing a program which bulk-creates data in MySQL. Let's say I have 1 million records. How many should I bulk-insert at once? I have a feeling it would not be good to run all 1 million at once, but where do I draw the limit? If it makes any difference, these are relatively small records, theres just about 10 columns which are integers.

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

    Very new to all this. (HTML5) Calculator how to make it responsive.

    Posted: 28 Jun 2018 07:59 AM PDT

    Hi, I am trying to make a calculator and for now it's working, there is a problem tho, it's not responsive and I don't know how to do that, I would like it to scale based on the resolution of a mobile, a tablet and a desktop pc. Would anyone be kind enough to give me a helping hand?

    https://codeshare.io/5gMl8Y this is what I did so far.

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

    Deeper reason for performance challenges/marginal status of functional programming languages

    Posted: 28 Jun 2018 09:53 AM PDT

    Functional languages endorse the most granularly modular, mathematically unambiguous constructs because they minimize accidental state (computationally-convenient but logically unnecessary data dependencies). However, stock hardware (register-machines) profits from running the programs that get the most mileage out of the values at hand (maximize their time-/space-efficiency by maximizing data dependencies), and inline the greatest number of procedures (require the fewest context switches).

    Will functional languages with guarantees like those of Haskell (or Kitten) ever actually offer indisputable performance advantages in exchange for their syntax as long as the underlying hardware is so unamenable to exploiting the guarantee of minimal data dependencies they are designed to offer*?

    *The alternatives that would exploit these guarantees are various forms of 0-operand architectures (stack [here and here] or queue [here and here]) that do not punish function calls or whatever form of extracted, anonymous procedure. These may actually be worth developing once Moore's law ends and ever faster clock speeds stop making hardware parallelization a losing game, economically, for general purpose computing.

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

    Complete newbie: Question about automating Data Entry with Address codes

    Posted: 28 Jun 2018 10:17 AM PDT

    DISCLAIMER: I have never written a line of software in my life.

    So recently I have been assigned data entry duties: typing names and addresses into excel. Recently, (nearly) all Irish addresses have been assigned an Eircode. Typing the eircode into the Eircode Finder yields the full format address- Data that I am tying by hand into excel. (Note: there is a limit to the amount of eircode searches you can perform in a day- Using Incognito bypasses this limit)

    I am looking to automate this process. In layman's terms, I am looking to write a program that 1. Automatically searches that website for the eircode I type in (Probably in incognito mode) 2. Collects the full format address 3. Pastes it into the appropriate cells in Excel.

    As a complete newbie, how difficult would this be? Can someone point me in the direction of resources I can read to learn how I would make a program or script that does this. Any information you can offer me would be helpful. I am also happy to provide any information that can help y'all to help me help myself.

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

    In js i use ES6 modules to import only functions that i need from other js scripts. Is there some similar approach in php?

    Posted: 28 Jun 2018 04:03 AM PDT

    In php im using "require_once" to access a script that contains utilities functions (utils.php). But this way , it loads all the script. What i want is to use something similar to ES6 modules in js that let import only the function/s that i need from the script and not the whole script.

    submitted by /u/Don-g9
    [link] [comments]

    Book recommendations on how to run the technical aspects of a web company?

    Posted: 28 Jun 2018 07:14 AM PDT

    I am a college student who is about to start a company with a few friends. I am a computer science major and have had some experience making a few websites here and there, but nothing major. Where can I find information on what exactly I need to know to run a website professionally?

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

    Question about the LLVM License

    Posted: 28 Jun 2018 06:33 AM PDT

    Hello!

    In my current project (a compiler) I, sometimes, borrow from CLang/LLVM/Swift for some parts (mostly in design/algorithms).

    The thing is, I never copy-paste source code, I just see how they did it and rewrite/reproduce it. So, my question is: Do I need to add LLVM's license to my repo ? In short, am I affected by the license?

    The interesting part in the license (imo) is

    Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers.

    (The full LLVM license is here)

    I don't think my code that was inspired by LLVM/CLang is considered a redistribution of the source code, so I think I'm clear, but better safe than sorry!

    Thanks

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

    Compile vbp file without vb6 IDE?

    Posted: 28 Jun 2018 06:25 AM PDT

    So I know that Microsoft no longer supports vb6 but I have some old code here that I need recompiled. I am fairly new to programming (2 or 3 years now) and have not touched much vb stuff, and for sure no vb6. Is there a way to do this without Visual Studio 2008 (or whatever was the last supporting version)? Thanks in advanced for any assistance!

    UPDATE: I found someone at work that has VB6 and now it throws an error when compiling. Variable not defined. The variable it points to is My.Computer.Filesystem.blahblahblah. Why would My not be defined? I'm googling for the VB6 documentation on this class but not finding good information. Thanks for any help!

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

    How difficult is it to program features for an emulator aside from emulating the system in question?

    Posted: 28 Jun 2018 06:21 AM PDT

    The reason I bring this up is because 3DNES has VR/First Person View support, and the game can only draw what is on screen that the player can see normally. I'd like to program a 3D-like emulator in C++, but I what I'd like to do is fix the short draw distance a lot of these old 2D games have. My idea is to have a tool where as the screen scrolls, it records everything that is being rendered on the screen at that time, that way, the entire level is rendered. How would this be acheived?

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

    No comments:

    Post a Comment