I have had a bad experience with my lecturers in C++ a year back in my engineering school, and then I chose to use python and try come back but I don't feel that much compared to others.. What do you guys think?
You probably are inferior to other programmers. Everyone is worse than someone else, apart from the person at the top of the pile who is distinctly unique.
The fact that other people are better than you doesn't necessarily make you bad.
I am just thinking about practicality, like I am a 3rd year now moving to my final year in engineering school, and I moved to python because I thought it was easier
1) All good writers read lots of books. All good coders should read lots of code. 2) When reading code, when you encounter something new - first stop: read the comments in the code. Second stop - the official documentation. Third stop: somewhere else (like here) 3) Code. Invent little projects that push your coding boundaries. Make sure you have clear project definitions
For coding? Probably not. But in the end of the day, whatever enthuses you to actually code should be the focus of what you learn around.
I personally would have been bored to tears if I had started with something like Kivy. Making pretty UIs don't interest me, but I do enjoy building tools that UIs can build off
@QuestionC Lib Dems are left wing, but not as right wing as labour
They tend to prefer a system where people are encouraged not to stay on benefits (by raising the minimum tax threshold), whereas Labour will try to prefer other methods of getting people off benefits
I think we might have different ideas of left and right. It sounds like Labour is left (increase spending on education) and Lib Dems are right (cut welfare).
I have a small database with the data from weather parameters being recorded daily. This is a Microsoft SQL Server 2008 express Database
My tables are as follows:
station (id, name, position)
reading (station_id, timestamp, value)
--station_id is the foreign key to id in station table
I wa...
so I have two tables, and I want to search for a thing by ID in the first one, but before I want to join the second table to the first one. the second one needs be joined by the same ID but with the latest timestamp
The difference is quite huge! In
a_list[:] = ['foo', 'bar']
You modify a existing list that was bound to the name a_list. On the other hand,
a_list = ['foo', 'bar']
assigns a new list to the name a_list.
Maybe this will help:
a = a_list = ['foo', 'bar'] # another name for the same list
a_...
I managed to get to the point where the response gives me a tuple of Place and PlaceScore and they are correct, but not sure how I merge them into one. I'm using Session
I have an Azure EventHub. I'm sending and Receiving Event Objects. I can send find with Python, but I want Python to actively 'listen' for a response from a server, which could come at any time.
Seriously, print out the query: you'll see that all the relevant data is already selected, there's no concept of "merging" in SQL.
SQLAlchemy then matches up all the data and creates model instances, which it would do anyway. What I posted is the correct solution.
SELECT place.id AS place_id, place.name AS place_name, place_score.id AS place_score_id, place_score.place_id AS place_score_place_id, place_score.ts AS place_score_ts, place_score.score AS place_score_score
FROM place JOIN place_score ON place_score.place_id = place.id
WHERE place_score.ts = (SELECT max(place_score.ts) AS max_1
FROM place_score
WHERE place_score.place_id = place.id)
First world problems -- I want to work on a project I forgot to commit and push from last night, so I have to walk all the way downstairs to get on my desktop.
I had a video card die on me so my desktop is using integrated video until I get the card RMA'd. Neither Mint nor Ubuntu played nice with the integrated graphics
once the card gets back I'll probably wipe and reinstall some nix flavor