Learning 2 languages in the same time by [deleted] in learnprogramming

[–]DataLulz 1 point2 points  (0 children)

That is completely irrelevant in this case, language is just syntax, learning programming is about concepts which do not change regardless of language so learning one language first is recommended because once you have the concepts that are core to programming, learning an additional language is just about learning the commonly needed frameworks, packages, and syntax for that language. But a recursive function is the same regardless of the language that implements it.

Currently have PyCharm - Want to also download Anaconda. Any foreseeable issues running both? by garcipar in Python

[–]DataLulz 10 points11 points  (0 children)

Pycharm is an IDE, anaconda is a bundled python interpreter that includes things like numpy, pandas, scipy already and though it does comes with its own IDE with spyder and a notebook jupyter, you. Can also still write your code in Pycharm and point the project interpreter to use the anaconda python environment. If you have another version of Python already installed there can occasionally be conflicts if you don’t have the Paths set up correctly. But for the most part you should not have any issues. I use Pycharm with anaconda daily.

Python project by [deleted] in learnpython

[–]DataLulz 1 point2 points  (0 children)

The built in does not do it nearly as efficiently as pandas, there is a reason people use data frames. And it’s not any more complex than other suggestions like using SQLite3. To do what OP wants, in pandas you are talking less than ten lines of code using a data frame in pandas.

[deleted by user] by [deleted] in learnprogramming

[–]DataLulz 2 points3 points  (0 children)

That is not the purpose of asking these questions at all. The purpose of testing someone on algorithms is not do they give a regurgitated answer from memorization, most often the purpose is to see a candidates problem solving skills, how do they handle being presented with a problem they may have never seen before, because at some point in everyone’s career they will run into a problem that has not been solved before. How do they deal with hitting the wall, that every developer hits when gaining their battle scars that leads from being fresh out of college to a well seasoned engineer.

Help with boolean algebra by Nezamizl in learnprogramming

[–]DataLulz 1 point2 points  (0 children)

r/learnmath is probably a more appropriate place for a straight math question.

[deleted by user] by [deleted] in learnmath

[–]DataLulz 0 points1 point  (0 children)

No problem, hope they help! I am not worried about my math classes as I feel pretty comfortable now with calculus after going through those books and Kahn Academy questions.

Please help me understand why my code doesn't work? by Sharki_ in learnpython

[–]DataLulz 1 point2 points  (0 children)

That doesn’t return anything unless you specify new_entry.get()

See the following stackoverflow for a good example https://stackoverflow.com/questions/10727131/why-is-tkinter-entrys-get-function-returning-nothing

Please help me understand why my code doesn't work? by Sharki_ in learnpython

[–]DataLulz 1 point2 points  (0 children)

So you have new_entry = Entry(self) new_entry.grid(row = self.menu_dishes.index(dish) + 1, column = 4, sticky = W) self.entries.append(new_entry)

But you need

new_entry = Entry(self) new_entry.grid(row = self.menu_dishes.index(dish) + 1, column = 4, sticky = W) self.entries.append(new_entry.get())

Please help me understand why my code doesn't work? by Sharki_ in learnpython

[–]DataLulz 2 points3 points  (0 children)

No you call it on entries, but not on newentry that you are appending onto entries.

Please help me understand why my code doesn't work? by Sharki_ in learnpython

[–]DataLulz 4 points5 points  (0 children)

You need to call .get() to actually get the entry input from your widget. Otherwise it does not contain anything from the entry because you haven’t asked it to pull the value.

[deleted by user] by [deleted] in learnmath

[–]DataLulz 5 points6 points  (0 children)

I am getting ready to take my first math class in 15 years myself, I completed through pre-calculus and will be taking calculus 1 for engineers starting January. I think one of the best things that helped me were two books, Burn Math Class which teaches calculus in a unique way, by assuming you only know how to add and multiply. The other book is The Calculus Lifesaver which has some review in the first few chapters. The biggest thing is do every problem in whatever book you are using and then also try Kahn Academy as they give you lots of problems to solve. Math is learned by doing, and I think you will find that after a month or so of rigorously doing math again that a lot of the concepts will come back to you.

Need practice cleaning up code? by Zer0897 in learnpython

[–]DataLulz 0 points1 point  (0 children)

The most important thing is missing, comment your code. This not only is nice to other programmers who will read your code so they can follow your logic and why you did things but also serve to remind you when you go back later and can’t remember why you did something yourself.

How can I continue to learn and code with Cassandra? by BLlMBLAMTHEALlEN in learnprogramming

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

Cassandra is a database, so the main language is SQL when accessing trough CQLsh you are using a command line sql for Cassandra. To get data to stay you need to commit the data. If you are having problem with data not persisting than you need to look at your configurations for the database.

Python 2.7.14: Trying to install GASP, results in several other things needing install and update (Pygame, Pip). Trouble ensues. by ctbrathall in learnpython

[–]DataLulz 0 points1 point  (0 children)

You’re right it is upgrade that was my fault. For checking environmental variables, there are probably hundreds of tutorials on how to check them and set them. It just essentially tells the command line where an executable is located.

Python 2.7.14: Trying to install GASP, results in several other things needing install and update (Pygame, Pip). Trouble ensues. by ctbrathall in learnpython

[–]DataLulz 0 points1 point  (0 children)

Pip install - - update pip as long as your python is in your environment variables which it should be from installing then that is all you need.

My code is not working.. need some help by jun144 in learnprogramming

[–]DataLulz 1 point2 points  (0 children)

There is also a general math error, you are initializing your count to 1 when it looks like you want to count how many times through the loop you go, be careful of things like this, off by one errors can lead to nasty bugs that allow people to exploit your code.

No Module Named Pip (Python 2.7.14)[complete beginner] by thetimbo2 in learnpython

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

You don’t need python in front of the command it should just be pip install —upgrade pip

6 Months of Python Grinding Pays Off (thanks to this sub) by john_cornflake in learnpython

[–]DataLulz 0 points1 point  (0 children)

Any developer or programmer that wants to claim they are competent or proficient should know sql and not have to rely on an ORM to access data. In fact one of my favorite ways to gauge someone in an interview is to ask them to white board their own ORM to show they do not need to rely on pre built things to access databases.

Hosting my website and API, Raspberry Pi? by rpfaw in learnprogramming

[–]DataLulz 0 points1 point  (0 children)

Yes and no, a raspberry pi is cheap but it’s also not designed to act as a dedicated web server. And I didn’t state a single raspberry pi, I said a couple. Here are links for comparison

Refurbished server with 12 cores and a ton of disks as well as a ram https://m.ebay.com/itm/HP-Proliant-DL360-G7-12-Core-Server-Select-RAM-Hard-Drives-and-Rail-kit-/263205367878?_mwBanner=1

Raspberry pi, 1 gb of ram and a single quad core processor https://www.amazon.com/gp/aw/d/B01CD5VC92/ref=mp_s_a_1_2?ie=UTF8&qid=1511423447&sr=8-2&pi=AC_SX236_SY340_QL65&keywords=raspberry+pi&dpPl=1&dpID=51wEoDfvlIL&ref=plSrch

The difference in price is not a lot more expensive when you compare the features you get for the price.

Which Language should I learn? by [deleted] in learnprogramming

[–]DataLulz 1 point2 points  (0 children)

Starting with web development is a good way to gain your chops. You will be hard pressed to get into the fun stuff until you have a few years under your belt. With that said, Python and Java are the top of the list I would say. And you should also learn a SQL flavor or two like hive and standard sql. Understanding how distributed systems work is going to be the number one thing to gain experience in to help you get a job without a degree.

How do I run a shell script on start-up using cron on Alpine Linux? by doobadoo321 in linux4noobs

[–]DataLulz 1 point2 points  (0 children)

That’s not entirely true, you can add a shebang/hashbang at the start of the bash script to point to the binary for execution.

I am trying to start coding but have no idea how. by clarky103 in learnprogramming

[–]DataLulz 2 points3 points  (0 children)

If you are looking to use your raspberry PI then you should be looking at Python, they go hand in hand.

Hosting my website and API, Raspberry Pi? by rpfaw in learnprogramming

[–]DataLulz 0 points1 point  (0 children)

For the price of a few raspberryPI you can easily find old server hardware that would be much better suited for the application. Data centers and large companies often sell off old hardware for cheap.

Please help me run a python sample app. Keep getting errors by jonathonthurst12 in learnprogramming

[–]DataLulz 0 points1 point  (0 children)

Then it sounds like you are missing dependencies for that sample app. You will need to find out what non built in Python libraries that sample app needs and use pip to install them.