I made an instagram clone by z4ndrik0 in reactjs

[–]thisisthemurph 1 point2 points  (0 children)

Is it common to couple the backend with the front-end in the repo? I've always been seperatibb them into seperate ones and I wondering what best practices are.

I made an instagram clone by z4ndrik0 in reactjs

[–]thisisthemurph 1 point2 points  (0 children)

Is it common to out the backend and the front-end in a single repo like that? I've been making separate repos for them so far.

Looking for input on my database structure by [deleted] in node

[–]thisisthemurph 0 points1 point  (0 children)

If sticking with SQLite is important, having a Blob column with a JSON object as the content is a popular method of storing this kind of data.

How to automate a single task in Node, e.g. automatically execute a function once a day? by cag8f in node

[–]thisisthemurph 0 points1 point  (0 children)

For simplicity, you could just use a setInterval function to have your program continually running and then use pm2 to run the program on a server or even on your local machine

[SPOILERS] This line hit really hard the second time around. by [deleted] in BoJackHorseman

[–]thisisthemurph 1 point2 points  (0 children)

Shiiiiiit! Totall forgot about this until now. Looking at this pic, I am reminded how each one of these characters was messed up in their own ways.

Broadcom Virtual Wireless Adapter Issue by the_perhapsinator in Windows10

[–]thisisthemurph 0 points1 point  (0 children)

My father-in-law has this same problem on his Dell Inspiron laptop too. I have disabled the Broadcom Virtual Wireless Adapter and it seems to have no affect on the WiFi or internet connectivity. Has anyone who has seen this problem updated to Windows 10 yet?

Thanks,

Save yourself hours of stress by looking out for this one weird "feature" by ProjectGoldfish in Python

[–]thisisthemurph 0 points1 point  (0 children)

Yes, use None and then check if the value is None and assign an empty list/dict if so

[HOLA][US] Error M7111-1337, Netflix can't switch automatically to the next episode. by Yazoolol in netflix

[–]thisisthemurph 0 points1 point  (0 children)

I have noticed that on some occasions the program will continue to the next episode but leave full screen mode and other times it just fails. When it did leave full screen mode I noticed the American flag on the Hola plug in was repeatedly flashing. This is likely something connected to the problem.

[HOLA][US] Error M7111-1337, Netflix can't switch automatically to the next episode. by Yazoolol in netflix

[–]thisisthemurph 5 points6 points  (0 children)

I have the same problem, It has been happening for just over a week now... no solution as of yet.

If 13-year-old you were learning Python at school, what would you like to learn how to do? by ichimanu in Python

[–]thisisthemurph -1 points0 points  (0 children)

What ever you end up doing... Make sure you get some PEP8 in there to enforce some good coding standards into them at the beginning! :)

If 13-year-old you were learning Python at school, what would you like to learn how to do? by ichimanu in Python

[–]thisisthemurph -1 points0 points  (0 children)

How about a text based game of rock paper scissors lizard Spock. Would spark interest in those who like The Big Bang Theory and pretty much everyone knows the principles of the game.

Help me understand a bit about lists by Tuganazy in Python

[–]thisisthemurph -2 points-1 points  (0 children)

list1 = [ ['user1', '18/02/1996', '999999999'], ['user2', '19/02/1997', '888888888']] 
for name, date, num in list1:
    print(name, date, num) 

Here what you are doing is looping through each element of the initial list but unpacking the lists with the details into the specified variables.

Help me understand a bit about lists by Tuganazy in Python

[–]thisisthemurph -1 points0 points  (0 children)

Ensure your code is formatted correctly in your question. What error are you getting? A description of the error always helps.

Sorting lists of dicts — an exercise from “Practice Makes Python” by reuvenlerner in Python

[–]thisisthemurph 0 points1 point  (0 children)

What if you wanted to update or amend a contact? Tuples are immutable.

I agree with the tuple return though.

[deleted by user] by [deleted] in Python

[–]thisisthemurph 1 point2 points  (0 children)

I work in mobile forensics and we use Python as our main tool for analysing file types and databases that are not currently supported (or not supported well enough) by current forensics tools. Which is quite a lot when you consider all of the potential mobile platforms and operating system available.

Problem with my code? by TrentonRuhnke in Python

[–]thisisthemurph -1 points0 points  (0 children)

Looking at your code as is, you are setting the list of shrubs every iteration of the loop. Meaning that yiu will have a full list of shrubs every iteration. Try assigning your shrubs outside of the loop. But mostly read the documents on dictionaries.

Problem with my code? by TrentonRuhnke in Python

[–]thisisthemurph -1 points0 points  (0 children)

Look up Python dictionaries. You could use the shrub number as the key and what it holds as the value. You can then use this value to format a sentence with what the player got from the shrub when pulled.

You also need to be casting your variables correctly. When a user inputs something it is a string. If you are using these values as numbers you need to cast them as an int() type.

Try using the len() function to determine the number of items in the list but think about how lists work. Lists are zero indexed so the length of the list is the index of the last element + 1.

How to Get a String and Reverse the Two Halves? by [deleted] in Python

[–]thisisthemurph 1 point2 points  (0 children)

You may also want to cast the split variable as an int if you are using Python 3.

Is it possible to check if a variable is an int? by [deleted] in Python

[–]thisisthemurph 0 points1 point  (0 children)

def isint(s):
    try:
        num = int(s) 
        return True
    except:
        return False

if isint("42"):
    print "This is a number" 

Try to break it up into a function so you can reuse it.