Mind-Melter of the Day
It turns out that if you divide 1 by 998,001 you get all three-digit numbers from 000 to 999 in order.
Except for 998.
(via Futility Closet)
(via narshada)
Mind-Melter of the Day
It turns out that if you divide 1 by 998,001 you get all three-digit numbers from 000 to 999 in order.
Except for 998.
(via Futility Closet)
(via narshada)
“How dare you summarily change what I am entitled to?” — Unions, three months ago
“I demand you summarily change what this man is entitled to!” — Unions, today
“Bonuses should be in shares and reward good performance.” — Everyone, two years ago
“This bonus, paid entirely in shares and rewarding turning a £1.6bn loss in this quarter two years ago into a £2bn profit last quarter, is utterly reprehensible.” — Nutters, today
The anti-monarchy group Republic is warning schools they may break the law if they take part in a cooking contest to mark the Queen’s Diamond Jubilee.
Of all the things to complain about, apparently kids can only take part if they’re simultaneously taught about republics.
This is the sole reason piracy is up and profits are down: because doing it right totally sucks.
Even when we open up a new cinema we leave one management spot empty and, at the end of the training, whoever excelled the most among the people we hired as hourly employees gets promoted into management.
Interesting idea.
Make the best damn product out there, charge a profitable price, and win the world.
If Henry Ford had been an educational publisher, his customers would have asked for electronic textbooks instead of faster horses.
The bottom line is that this ensures we have highly-motivated, brilliant staff who are committed to driving our business forward and reaping the mutual rewards.
Don’t lose the fire you started with. If you’re going to devote the best years of your life to your work, have enough love for yourself and the world around you to work on something that matters to you deeply. Something that’s beating out of your chest and compels you to throw yourself at it completely. No one knows whether you and your teammates will realize your audacious visions, but in order to do great things, we must attempt great things.
When trying to process a rename_column database migration, I ran into the following error after running rake db:migrate:
Index name 'temp_index_altered_long_class_name_on_even_longer_class_name_id' on table 'altered_long_class_name' is too long; the limit is 64 characters
This is an issue with index name length when using sqlite. A simple fix is to remove the index prior to renaming the column, then add it back in afterwards, as follows:
remove_index :long_class_name, [:even_longer_class_name_id]
rename_column :long_class_name, :original_name, :new_name
add_index :long_class_name, [:even_longer_class_name_id], :name => "index_long_class_name_on_even_longer_class_name_id"