55 karma · joined Jun 28, 2011 (15y ago) · 31 submissions
comment 8y ago · link · parent
- I make stupid mistakes in Python constantly. I misname a variable or a function or I pass in the wrong arguments: Try mypy
- If the task is IO bound: Threads are the wrong the answer to that. You're going async by using Golang, why not in python?
- With Python, I have to ensure all the packages I need are installed on the remote machine: pipenv Like slezyr mentions
- Consistent Styling: Try autopep8 or black
- Intellisense: I would say "use Pycharm" but vscode is getting better I heard
comment 8y ago · link · parent
https://www.wikiwand.com/en/List_of_brightest_stars#/Main_ta...
comment 9y ago · link · parent
comment 13y ago · link · parent
* Microsoft SQL Server 2005 (the release version and service packs) and earlier versions of SQL Server are not supported on Windows Server 2012 or Windows 8. * SQL Server 2008 only runs on W2012 /Win8 from If you install R2. * Importing .bak files from SQL2005 to 2012 Express (Not sure about the full version) will not import. * Copying a database from SQL2005 to 2012Express in management studio will not work either. * SqlServer 2012 Will not run on Server 2003 * SQL Server 2012 requires a minimum of 6 GB of available hard-disk space. * SQL Server 2012 will not run on Server 2008, Vista, Win7 without a Service Pack
16.
Python autovivicating tree with parent reference (variation of one-line tree)(gist.github.com ↗)
2 points · by SjuulJanssen · 13y ago · discuss
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
You make the following points for why they shouldn't appear on SO
- Nobody needs to know the answer to this question. -> There will always be someone looking for the answer in question. Surely a lot of people would like to know it still. I googled "Git vs Mercurial" and it has 965.000 results. I suppose at least few people thought it was worth discussing.
- It’s not nearly specific enough. -> A or B. Seems specific enough to me. And the difference in the opinions and experience of the those who answer will bring a depth and specificity that can not be found on Wikipedia or a blog post. If all the answers in life were as easy as A or B, life would be a lot easier.
- It is difficult to learn from these questions. -> This is where I disagree the most with you. A person who hasn't used one of both will surely gain some insights why or why not to use A or B
- It drives away experts. -> I only see it attracting people as there are lots of votes. Of course that doesn't disproof your claim. But perhaps you can show us the numbers? Do you see a disproportionate larger amount of votes from people with less points?
What I think are good reasons are: - Perhaps you want the site to remain clean Q&A not Q&O(pinion) - You want to avoid opinion battles as they can get out of hand
As for the opinion battles. I can understand. But I still value the opinions. And whether an opinion is constructive should be measured by it's upvotes. But the clean just Q&A. As I said earlier. There isn't always a clean cut answer to a question. Life would be a lot easier if it was.
And to answer the Gorilla vs Shark question the answer is obvious. If you're on land the Gorilla will win. If you're in the water the Shark will win. And that's what you can learn from such a question. That's what someone is looking for if he's Googling for "Gorilla vs Shark"
comment 14y ago · link · parent
comment 14y ago · link · parent
NOTE Still in development ;)
What I've done is I wanted to have a Ms Access like application on the web. Everything "real time". As datagrid i use SlickGrid. Every change is being sent to a nodeJs webserver using NowJs. The change is then saved to a mongoDb database. When a change is saved all clients that are viewing that table get an update with the new data. On the right is my "meta" table. This table describes all columns that are in the database. The data in the meta table is only saved when you click save. But all the data in the left table is real time.
To see the real "power" of the application open two browsers and make sure you can see both. If you have two separate PC's this will also work. So now you have the same datagrid twice. Now when you do a change in one datagrid you will see that that change has been pushed to the other datagrid as well.
The datagrid has multi-column-sorting, selection, copy-paste and delete. I'm working now on having Comboboxes so that you can have a Cities table and a Persons table and you can select the right city for each person. The thing is, I need to keep my combobox options in sync with the database as well. And I want to store the ObjectID and not the CityName for example. Because names can change. ID's don't.
comment 14y ago · link · parent
TLDR: He didn't want to use an ecosystem that had existing blocking code. He wanted node to be pure in te sence that nothing was blocking. Starting on a clean slate enabled him to get everything pure non-blocking from the ground up. He admits that Js isn't the best language. But his rationale for not using an existing ecosystem (when it comes to IO) is not bad.
comment 14y ago · link · parent