• Breaking News

    Thursday, November 8, 2018

    Is the “You Don’t Know JS” series still worth the time to read or are they too out of date? Ask Programming

    Is the “You Don’t Know JS” series still worth the time to read or are they too out of date? Ask Programming


    Is the “You Don’t Know JS” series still worth the time to read or are they too out of date?

    Posted: 08 Nov 2018 12:58 PM PST

    This series seems to have come out in March 2014 and hasn't been updated (yet). What am I missing if I read these?

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

    POS Sales and Inventory System Codeigniter

    Posted: 08 Nov 2018 08:53 PM PST

    Need help scraping an aspx page with POST data

    Posted: 08 Nov 2018 05:55 PM PST

    I'm working on a personal web scraper to get a list of which sites have a product in stock, and for all the other sites on my list it has been fairly easy. But this one website is an aspx page, with the default product value being null, and the content loads when you select it from a dropdown. It appears to be using javascript to run a getPostBack which it passes to asp for a PostBack request. I want to pass that POST via curl (in Bash) to be able to curl the web page with the product information loaded. I'm kind of lost on how to do this. The web page in question is: https://www.marscigars.com/samuelgawith-navyflake.aspx

    Can anybody help me understand how I should be going about this?

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

    How to initialize a variable with a string then compare an input to it in C?

    Posted: 08 Nov 2018 05:55 PM PST

    I tried this and it didn't work:

    char passEntry [10] , password [ ] = "abc" ;

    Printf ("Enter password"); Scanf ("%s", passEntry);

    If passEntry==password { Printf ("Access Granted"); }

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

    A better resource for Operator Overloading

    Posted: 08 Nov 2018 05:55 PM PST

    I'm following a guide for operator overloading and the person is using a c style string class which is causing confusion for me since I haven't really dealt with them much and the libraries and the functions that they use are brand new to me. Is there a guide for this that's easier to understand?

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

    Should I be using NetBeans?

    Posted: 08 Nov 2018 10:15 AM PST

    I'm a student doing a Java CS course and decided to use NetBeans instead of Eclipse since it looked a bit more featured and I prefer the interface. Is this a wise choice or should I be going with IntellJ or something similar?

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

    Carddav protocol limitations and SAAS options

    Posted: 08 Nov 2018 04:00 PM PST

    We have clients that want to have their contacts sync with their phones. Our app has a carddav module built in but the problem is many of our clients have tens of thousands of contacts and syncing them can cause timeouts. Is this even something that carddav can do or is it just our third party module that sucks?

    Are there any SAAS services that would allow us to sync that volume of contacts to our customers phones using whatever protocol is necessary? I have googled but I didn't come up with any.

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

    Why are people forking my stuff on github and not doing anything with it?

    Posted: 08 Nov 2018 02:02 AM PST

    I wrote a tutorial about administrative scripting with Python which I posted on r/programming a while back. It has 46 forks. By contrast, it has 4 other contributors and I've accepted every pull request. Of the other forks, only one has had any activity.

    I have another project for awk-style Python oneliners which is not as popular, but it's been forked four times with no activity in any forks.

    I don't get it. What are people trying to do?

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

    Time complexity of string interleaving problem?

    Posted: 08 Nov 2018 02:25 PM PST

    Hi! I'm doing some problems on dynamic programming. I have some trouble understanding the time complexity of the DP solution on this site: https://www.geeksforgeeks.org/find-if-a-string-is-interleaved-of-two-other-strings-dp-33/

    Can someone explain how the time complexity for this problem is O(mn)?

    Thanks you so much!

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

    What else can I do to start a career in programming?

    Posted: 08 Nov 2018 02:11 PM PST

    I've been taking a Java programming course for a few weeks now. Also have been practicing on the NetBeans IDE with basic things like loops, selections, and functions. What else can I work with?

    submitted by /u/WiFi-X
    [link] [comments]

    How can js cause a password field to be remembered for future autocomplete, and later how to read that, all without form submit?

    Posted: 08 Nov 2018 12:06 PM PST

    I'm using a login system that never sends passwords across network, not in plaintext nor https encrypted. It doesnt send passwords at all. But I still use a html input type=password to type it in, cuz I wanted to call autocomplete in whatever secure way browsers normally remember passwords.

    Is autocomplete just impossible in that case cuz maybe autocomplete depends on https keys or some other part of server responses?

    What kind of security protects localStorage (the API meant to replace cookies)?

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

    Why does inc [ecx + 20] gives an error? (Asm)

    Posted: 08 Nov 2018 05:31 AM PST

    So I had this question on a test but I am quite intrigued because of what I read on internet. It says inc's operand can either be an address or a register, so I was thinking that it will give an error because [ecx + 20] gets the value at the address of ecx + 20 and from what I read it can't be a value so that was the problem. But it turns out the problem is that you do not specify the length so basically inc BYTE [ecx + 20] will work just fine. So... my question is, how does the last instruction work if you tell the processor to inc a value and not an address or register?

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

    Would anyone be interested in a Firefox add-on to close groups of related tabs ?

    Posted: 08 Nov 2018 05:25 AM PST

    It would be quite trivial to use machine-learning to classify tabs, and be able to say, classify the 73 tabs referring to perl regex flags.

    You could then easily double check every tab, and close them with minimal effort, or maybe even bookmark them in a nice folder.

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

    How does image recognition work?

    Posted: 08 Nov 2018 11:05 AM PST

    So im trying to figure out how can i capture the shapes of an object and compare it to a predefined shape so that users can follow for my thesis. so far what i have achieved is just motion detector by capturing each frame and detect if there are any changes in pixels. the system is done on android. but as far as my knowledge can reach im stuck at it and ive been searching many sites in order to advance. one friend of mine suggested using augmented reality in unity. im still not that good in programming but i am eager to learn things. if you have any suggestions on the logic behind it i hope anyone can share it to me.

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

    Find a folder matching pattern with Python or extract other users home directory

    Posted: 08 Nov 2018 11:03 AM PST

    Ok, this is likely incredibly easy, but I can't find what I'm trying to do on stack.

    Most of the responses I find can find the full absolute path of a file in a known relative location. However, I'm trying to find the full path to a folder where I'm not really sure

    I have a folder ______/foo/bar/____

    I want to find the absolute path of this folder, if unknown.

    Sometimes the folder will be located in data:

    /data/foo/bar/_____

    or in /var/lib

    /var/lib/foo/bar/____

    I'm trying to write something which these two folders which will be nested, and returns their full absolute path.

    >>my_function('foo/bar'):

    output

    /data/foo/bar

    or

    /var/lib/foo/bar

    or whatever.

    I can only find how to get current full path.

    An alternate way is if I can use python to find the home directory of another user, these will always be the same

    >>my_function('My_User'):

    output

    /var/lib/foo/bar or /home/ec2-user etc.

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

    Workplace Productivity Survey for Developers!

    Posted: 08 Nov 2018 10:46 AM PST

    https://goo.gl/forms/0nXZbNzNq8tcmiow1

    Hey All, it would be super helpful if you could take this survey, we are trying to create a developer-first Productivity and Communication tool! Please let me know if you have any feedback!

    Thank you so much!

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

    Changing file names

    Posted: 08 Nov 2018 09:50 AM PST

    I have thousands of files in a directory, which have a similar pattern but some numbers in the title vary. I wonder if there is a way to change all the names at once using a number pattern (eg. File1, File2...). Doing that manually would be a pain...

    I'm using ubuntu 18.04

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

    Describe a security risk that the default ssl version avoid

    Posted: 08 Nov 2018 08:40 AM PST

    I have a network protocols lab right now and I have to answer this question. Someone help.

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

    How do you professionally say "I haven't been able to complete this coding challenge even though it's been 2 weeks because I suck" to a potential boss?

    Posted: 08 Nov 2018 03:38 AM PST

    He asked if I'd still like to meet, and I'm embarrassed I haven't been able to complete the interview challenge (creating a simple CRUD app). I haven't responded yet due to embarrassment. It shouldn't be hard so I don't know what's up with my brain.

    I know being honest is always the best route, but it'd be good to get advice from others here who have been in the same situation. I'd ask AskHr but I'm not sure they'd "get it" in this situation.

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

    Site is not providing cookies with my requests, yet I think I need them to get the entire page source.

    Posted: 08 Nov 2018 02:42 AM PST

    def getPlayerStats (playerName, times): #pdb.set_trace() #url = createUrlAppend(playerName, times).lower() #https://stackoverflow.com/questions/30818619/getting-cookies-with-requests #https://www.sports-reference.com/cfb/players/ryan-aplin-1.html url="https://www.sports-reference.com/cfb/players/ryan-aplin-1.html" header = {'user-agent' : 'any user agent'} response = requests.get(url, headers = header) print(response.cookies) 

    output: <RequestsCookieJar\[\]>

    source I need contains: <!-- yes:cookie regular load the cached css -->

    source I am getting: <!-- no:cookie fast load the css. -->

    I need to get all tables on this particular page, and it only returns a source with one table... I've already tried starting a session. Chrome indicates that the website is, in-fact, providing cookies.

    Any resources I should visit to learn how to solve this problem? Or is this a special case?

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

    Is it true that SQL is the easiest language to learn and to get a job in the IT industry?

    Posted: 07 Nov 2018 11:27 PM PST

    No comments:

    Post a Comment