Double indentation looks rather ugly though. I like the "K&R" style much better (as shown in comment from bpicolo): def some_descriptive_function_name( one_parameter, another_parameter, ): some_functionality() Anyway,…
Chomsky and Superbowl Party: http://www.thebrushback.com/Archives/noamchomsky_full.htm Perfect article for those on HN who follow pro sports ;)
This shall be a great fit for the NAT/Bastion instance, since the high-availability setup has a few drawbacks: https://aws.amazon.com/articles/2781451301784570
You shall read this first: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1331150 There was a rather significant change to the kernel ARP caching behavior introduced in early 2013:…
Looking at the examples from the official documentation, I agree with your sentiment. Indeed, the conciseness can cause some confusion to people familiar with the existing scoping rules. IMHO, it's a good thing if…
Also from http://stackoverflow.com/a/16553503 by the author of SQLAlchemy: > Do you have any estimates on how much time is wasted, compared to the rest of the application? Profiling here is extremely important before…
I feel rather underwhelmed by the performance improvement touted by adequate records. Perhaps someone from the rails community can do something like this: http://techspot.zzzeek.org/2010/12/12/a-tale-of-three-profil...
So, with T2 instances and General Purpose volumes, Amazon is now officially in the overselling business. Kudos to them for finding a way to do it fairly. Looks like extra tough time ahead for lowendbox sellers.
The jmespath library from boto is quite similar to this, and possibly has way more traction. Some differences: - jmespath uses `body.translations[0].language` instead of `body.translations.0.language`, and it can also…
This is not strictly about Ruby vs Python. Having used Pyramid (+SQLAlchemy) and Rails, I think the former is plenty fast enough such that no user cares about silly optimization, while the latter is the opposite.…
Here: http://trac.imagemagick.org/log/
In my opinion, the full explanation is too long to be put as code comment, but is just right as the commit message. The best way is to keep the commit message, but add a short comment like: // Hack to trigger layout…
Good article, but I think it touches too little about persistence. The trade-off of EBS vs ephemeral storage, for example, is not mentioned at all. Getting your application server up and running is the easiest part in…
Here's my old school setup: Deployment: `easy_install -U` from a local pypi Packaging: `setup.py bdist_egg` and `setup.py bdist_wininst` Dependencies: declare in setup.py, fetch via yolk To test if everything works,…
With SQLAlchemy, I have done similar optimizations against mssql by changing a few lines of ORM code. Without SQLAlchemy, I imagine I'd have to change dozens of hand written SQL queries. A good ORM helps you to generate…
I am pretty sure SQLAlchemy will translate that into: UPDATE purchase SET downloads_left=%(downloads_left)s WHERE purchase.id = %(purchases_id)s; By the way, the posted code has an off-by-one error, as it should do the…
> I don't know if you've looked at the graph of a Git repo where people merge instead of rebase We use merge instead of rebase. Here's a snapshot of the graph: | | | | | | | | | | | | | | | * | | | | | | | | | | | | | |…
Outside of US and EU, it is quite difficult to find a reputable and affordable dedicated hosting provider. We use AWS extensively in ap-southeast-1, and their new C3 Compute Optimized instances are actually very…
Try replacing /etc/nginx/fastcgi_params with the one from http://wiki.nginx.org/PHPFcgiExample Also, the packaging is done differently by ubuntu and nginx upstream, so I don't think you can just replace it. They are…
It looks like the Multi-AZ setup is using block level replication such as DRBD instead of the built-in replication: > Database updates are made concurrently on the primary and standby resources to prevent replication…
Sriracha made its debut in Malaysia approximately a month ago, being sold for MYR 21.90 (28 oz) and MYR 13.90 (17 oz) by Ben's Independent Grocer in Solaris Dutamas. Pretty nice profit margin there, now that the…
> I don't think you can through the postgres/mysql parser in 5ms, much less optimizer, planner, and execution stack. Yeah... except no. I just set `log_min_duration_statement` to 0, and can see that PostgreSQL typically…
I like your comparison of SQL to JavaScript. However, personally I love SQL and always use an ORM. My vow is to never have a line of SQL in my application source code. This is perfectly doable with SQLAlchemy, though…
Perhaps a more advanced camera technology that detects asshole driving behavior instead of speeding? Rich dudes pay to get ahead. Increased revenue for the police department. Improved traffic. Win-win for everyone.
If HelloMcFly originates from the "open lane", I am indifferent to where he decides to merge into the "right lane", as long as he doesn't force anyone to unnecessary slam their brake. What really piss me off are drivers…
Double indentation looks rather ugly though. I like the "K&R" style much better (as shown in comment from bpicolo): def some_descriptive_function_name( one_parameter, another_parameter, ): some_functionality() Anyway,…
Chomsky and Superbowl Party: http://www.thebrushback.com/Archives/noamchomsky_full.htm Perfect article for those on HN who follow pro sports ;)
This shall be a great fit for the NAT/Bastion instance, since the high-availability setup has a few drawbacks: https://aws.amazon.com/articles/2781451301784570
You shall read this first: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1331150 There was a rather significant change to the kernel ARP caching behavior introduced in early 2013:…
Looking at the examples from the official documentation, I agree with your sentiment. Indeed, the conciseness can cause some confusion to people familiar with the existing scoping rules. IMHO, it's a good thing if…
Also from http://stackoverflow.com/a/16553503 by the author of SQLAlchemy: > Do you have any estimates on how much time is wasted, compared to the rest of the application? Profiling here is extremely important before…
I feel rather underwhelmed by the performance improvement touted by adequate records. Perhaps someone from the rails community can do something like this: http://techspot.zzzeek.org/2010/12/12/a-tale-of-three-profil...
So, with T2 instances and General Purpose volumes, Amazon is now officially in the overselling business. Kudos to them for finding a way to do it fairly. Looks like extra tough time ahead for lowendbox sellers.
The jmespath library from boto is quite similar to this, and possibly has way more traction. Some differences: - jmespath uses `body.translations[0].language` instead of `body.translations.0.language`, and it can also…
This is not strictly about Ruby vs Python. Having used Pyramid (+SQLAlchemy) and Rails, I think the former is plenty fast enough such that no user cares about silly optimization, while the latter is the opposite.…
Here: http://trac.imagemagick.org/log/
In my opinion, the full explanation is too long to be put as code comment, but is just right as the commit message. The best way is to keep the commit message, but add a short comment like: // Hack to trigger layout…
Good article, but I think it touches too little about persistence. The trade-off of EBS vs ephemeral storage, for example, is not mentioned at all. Getting your application server up and running is the easiest part in…
Here's my old school setup: Deployment: `easy_install -U` from a local pypi Packaging: `setup.py bdist_egg` and `setup.py bdist_wininst` Dependencies: declare in setup.py, fetch via yolk To test if everything works,…
With SQLAlchemy, I have done similar optimizations against mssql by changing a few lines of ORM code. Without SQLAlchemy, I imagine I'd have to change dozens of hand written SQL queries. A good ORM helps you to generate…
I am pretty sure SQLAlchemy will translate that into: UPDATE purchase SET downloads_left=%(downloads_left)s WHERE purchase.id = %(purchases_id)s; By the way, the posted code has an off-by-one error, as it should do the…
> I don't know if you've looked at the graph of a Git repo where people merge instead of rebase We use merge instead of rebase. Here's a snapshot of the graph: | | | | | | | | | | | | | | | * | | | | | | | | | | | | | |…
Outside of US and EU, it is quite difficult to find a reputable and affordable dedicated hosting provider. We use AWS extensively in ap-southeast-1, and their new C3 Compute Optimized instances are actually very…
Try replacing /etc/nginx/fastcgi_params with the one from http://wiki.nginx.org/PHPFcgiExample Also, the packaging is done differently by ubuntu and nginx upstream, so I don't think you can just replace it. They are…
It looks like the Multi-AZ setup is using block level replication such as DRBD instead of the built-in replication: > Database updates are made concurrently on the primary and standby resources to prevent replication…
Sriracha made its debut in Malaysia approximately a month ago, being sold for MYR 21.90 (28 oz) and MYR 13.90 (17 oz) by Ben's Independent Grocer in Solaris Dutamas. Pretty nice profit margin there, now that the…
> I don't think you can through the postgres/mysql parser in 5ms, much less optimizer, planner, and execution stack. Yeah... except no. I just set `log_min_duration_statement` to 0, and can see that PostgreSQL typically…
I like your comparison of SQL to JavaScript. However, personally I love SQL and always use an ORM. My vow is to never have a line of SQL in my application source code. This is perfectly doable with SQLAlchemy, though…
Perhaps a more advanced camera technology that detects asshole driving behavior instead of speeding? Rich dudes pay to get ahead. Increased revenue for the police department. Improved traffic. Win-win for everyone.
If HelloMcFly originates from the "open lane", I am indifferent to where he decides to merge into the "right lane", as long as he doesn't force anyone to unnecessary slam their brake. What really piss me off are drivers…