HN user

jdimov

84 karma
Posts27
Comments108
View on HN
www.politico.com 12y ago

Why Russia no longer fears the West

jdimov
17pts7
www.quora.com 12y ago

What tools is Python missing? (Quora)

jdimov
1pts0
www.theguardian.com 12y ago

Offshore secrets: British Virgin Islands, land of sand, sea and secrecy

jdimov
1pts0
www.quora.com 12y ago

Which UK bank to switch business accounts from HSBC?

jdimov
1pts0
news.ycombinator.com 12y ago

Ask HN: Why are hackers today so insecure?

jdimov
26pts49
www.eventbrite.co.uk 12y ago

Google Glass and Wearables Hackathon in London

jdimov
2pts0
www.wired.co.uk 12y ago

12 true tales of creepy NSA cyberstalking

jdimov
6pts0
news.ycombinator.com 13y ago

You MUST hold your government responsible

jdimov
1pts0
www.smartcity-magazine.com 13y ago

SplinterNet – Social Networking Without The Internet

jdimov
1pts0
www.smartcity-magazine.com 13y ago

Smart City Magazine

jdimov
1pts0
www.theatlantic.com 13y ago

Syria Has a Massive Rape Crisis

jdimov
1pts0
www.jordan-dimov.com 13y ago

Why mobile money is no big deal

jdimov
1pts0
www.jordan-dimov.com 13y ago

Jordan's Cheese Selection for February 15, 2013 (Python Modules)

jdimov
1pts0
www.jordan-dimov.com 13y ago

Jordan's Cheese Selection for February 14, 2013 (Notable Python modules)

jdimov
2pts0
www.jordan-dimov.com 13y ago

Jordan's Cheese Selection for February 13, 2013 (Python modules)

jdimov
2pts0
www.jordan-dimov.com 13y ago

Jordan's Cheese Selection for February 12, 2013 (Python modules)

jdimov
1pts0
www.jordan-dimov.com 13y ago

Preparing a winning CV for any IT position (book excerpt)

jdimov
1pts0
www.jordan-dimov.com 13y ago

Consolidating Python Libraries Challenge

jdimov
2pts0
www.jordan-dimov.com 13y ago

Beat the Wind Challenge: Build a robot that can win a windsurfing competition

jdimov
2pts0
www.jordan-dimov.com 14y ago

Introduction to Modern Database Systems, Part 1: Relational Databases

jdimov
1pts0
www.jordan-dimov.com 14y ago

Serving several web applications using one WSGI file

jdimov
1pts0
www.jordan-dimov.com 14y ago

Revision Control Systems, Part 5: Online Project Hosting Services

jdimov
1pts0
www.jordan-dimov.com 14y ago

Revision Control Systems, Part 4: Mercurial

jdimov
2pts0
www.jordan-dimov.com 14y ago

Revision Control Systems, Part 3: Distributed Version Control with Git

jdimov
2pts0
www.jordan-dimov.com 14y ago

Revision Control Systems, Part 2: Working with Subversion

jdimov
1pts0
www.jordan-dimov.com 14y ago

Revision Control Systems for the Agile Software Developer: Introduction

jdimov
1pts0
www.jordan-dimov.com 14y ago

Not sure which programming language to pick? Start with Python

jdimov
2pts0
The Age of M-Pesa 6 years ago

I too would like to share my experience with both of you and see if there is still an opportunity to do something along these lines. Email me at mpesa@mlke.net

Just because the majority think they are entitled to the 1%'s wealth, does not make it so.

The French government might as well take 90% of that entrepreneur's wealth and "re-distribute" it to the so-called "People" (I call them "Sheep") and guess what? That one entrepreneur will still be wealthier than any of them and the "People" will still mumble. In other words, NOTHING will change.

Yes, let's do that! Here's a wake up call: I don't have access to any ingredients that everyone else doesn't also have access to!

Because it's not the ingredients. It's how I see them and what I do with them. You choose to cry all day long about scarcity and injustice. I choose to rejoice in the abundance and the unlimited opportunities given to me.

This is what makes me wealthy and you poor. Not the government. Not the political system. Not any form of justice or lack thereof. There is ULTIMATE justice in this world, ALWAYS. It is just as it should be.

I honestly don't understand why bitter, unaccomplished people believe that someone who creates wealth has an obligation to share that wealth with them. I believe that's commonly called "jealousy" and no, it doesn't give you a moral high ground, nor will it solve any of your problems and it will certainly not make you richer any time soon - quite the contrary, it ensures that you will remain miserable for the rest of your life.

Italia Startup Visa 12 years ago

Forget the corruption, crazy laws, favouritism and racketeering. The biggest problem you'll face doing business in Italy is the wide-spread, deep-rooted "it can wait" mentality that is really prevalent. No one can be bothered with anything. Be prepared to wait for months and months for trivial tasks that can be completed in 30 minutes. Be prepared for people to cancel meetings at the last minute, then set a new date and time just to miss that one too - repeat ad nauseam. Don't even try to explain the concept of a "deadline" to an Italian.

The worst part is you can't even hate them for this, because they're so friendly and likeable!

Other than that, it's a lovely country. Make your wealth elsewhere and go enjoy what Italy has to offer.

Python: Faster Way 12 years ago

Here are my annotations for how I'm reading these. Feel free to correct or update:

1. Faster to use dict literals than the `dict()` constructor

2. Faster to sort a list in-place than to use `sorted()`

3. Faster to use multiple assignment than multiple individual assignments

4. Faster to evaluate multiple individual conditions than a single multi-comparison condition

5. Faster to use idiomatic implied truth value than to compare to `True`

6. Faster to use `!=` than `is not`

7. Fastest way to check for empty list `a` is the idiomatic `if not a`

8. Fastest way to check that an object is not null is `if a`

9. `enumerate` is faster than doing it yourself

10. Constructing strings with `+=` is faster than string surgery

11. Fastest way to place a number in a string is "%s" (not "%d")

12. For built-in types, using built-in functions (e.g. `len`) is faster than calling methods (e.g. `a.__len__`)

13. For built-in types, using built-in operators (e.g. `+`) is faster than calling methods (e.g. `a.__add__(b)`)

14. But for custom-defined classes, the opposite of #13 is true.

15. Adding up a bunch of numbers using `+` is faster than using `sum`

16. When initializing a large list, it is faster to use list comprehensions than to append each element individually

17. The fastest way to build a large dict is to use a dictionary comprehension

18. Same as #17

19. Not sure what the author is trying to demonstrate here. That `bool(a)` is faster when `a` is an empty list?

20. Faster to use implied truth value of an expression than to compare explicitly to `True` or `False`

21. The fastest way to refer to a list is to use the list literal (duh...)

22. It is faster to perform individual comparisons than to check for membership with `in`

23. Faster to `map` the `str` function to a list of values and join, than to manually build up the string. Also, when doing this, faster to use `xrange` than `range`

24. Faster to unpack than to access each list element individually. Also, as in #1, faster to use dict literal than the `dict()` constructor.

25. Faster to just return the boolean value of an expression than to check for it and then decide what to return.

26. Faster to give explicit values to keyword arguments than to expand a dict with kwargs.

27. To switch the values of `a` and `b`, it is faster to use a third variable than to do it in-place using unpacking.

28. Multiple assignment is faster than unpacking, which is faster than multiple individual assignments.

29. Fastest way to get integer part of a real is to use `math.floor`

30. Similar to #26 - it is faster to give explicit values to positional arguments than to expand a list of args.

31. Faster to access local vars than globals.

32. When trying to safely access a key in a dictionary, it is faster to use the idiomatic `D[k] if k in D` than to use the `get` method.

Both poor and rich are equally selfish in this respect. The reason for the observation is that "kindness" delivers diminishing returns once you've got other means to give yourself a kick.

As any war on anything is bound to do. You can't push against something and get less of it - you get more pushing right back at ya.

In this sense, US Gov is the primary cause of and is directly responsible for nearly ALL terrorist acts in the past decades, globally.

When it comes to start-ups it's not stupid - it's wise. The food safety analogy is inappropriate. Security is about risk management. Low risks do not justify high expenses.

When it comes to a company with hundreds of millions in revenues, however, they have clearly underestimated the risks and have been irresponsible.