"Can you please stop the rain?"
"Sure, what time would you like me to turn it off?"
"I was planning to go home at 4, could you please turn it off from 4 to 4:15?"
"OK, Let me login to the server."
"The cloud server?"
Tips for people like me who are new too cooking, and always get confused -
Tea spoon is the small one and table spoon is the big one.
Remember to set the alarm every time you need to keep something aside for 15 minutes or half an hour.
Clean the bowls and pans as soon as you are done with them, cleaning them later when the dough has hardened is a big pain.
Stuff you need:
Milk powder or milk
Oil or butter
A pan to bake bread in
A nice warm place where the yeast can grow
Take a bowl and add two tea spoons of yeast, and a bit for luck. Add two table spoons of sugar and one tablespoon of milk powder (or two table spoons of milk), to feed the yeast.
If you are lucky enough to have 24 hours hot water at home, open the hot water tap, and wait until the water stays hot, then open the cold water tap, and make the water slightly warm to touch. Otherwise, find a way to make warm water. Make sure its not hot, or the yeast will die, and you'll end up making some terrible chapathis!
If you have a measuring jar, add one cup of water, if not, add a glass of water.
Mix well, until there are no clumps of yeast around.
Cover the bowl with a cloth and keep aside in a warm place for 15 minutes. When you take it out, you should see a frothy mixture and it should smell of yeast.
Add two tablespoons of salt and one table spoon of oil and mix well. Then add in maida or wheat flour and mix until it stops sticking to the bowl, but it still sticks to your hand. If that doesn't make sense, well, just don't make it too dry. You'll figure it out by the time you bake a few times.
Cover the bowl and with a cloth and keep it in a warm place for another half an hour.
Take a bread baking pan and spread oil on it. Transfer the dough from the bowl to this pan, cover with a cloth and keep aside for another half an hour. If you don't have a pan, don't worry, just oil a plate and use it. It won't be shaped like the shop bread, but it will taste the same.
20 minutes later, turn on the oven to Bake, and set it to 180 degerees Celcius.
10 minutes after that, take the pan with the dough and put it in the oven. You should start getting the sweet aroma of a bakery around 5 minutes later.
Wait for half an hour. Have a nice plastic or wooden spoon ready to help you scoop out the bread.
Take out the bread and turn it around, knock on it a few times and make sure it sounds hollow. If it doesn't, it needs more baking.
Cover the hot bread in a cloth and keep it till it cools. And if like me, you can't resist, every once in a way, cut out a slice and help yourself to it.
As long as possible. Probably many years into the future....
Where is Perl used for Web Applications and Testing?
In the enterprise. A lot of HTML developers may have learnt PHP, and made it more popular than Perl. But for real projects, in large corporations, the choice was Perl.
What does an enterprise want?
This is where Perl shines. It has proven itself many times over.
Companies will keep their existing applications running without change for as long as they can. If they have existing frameworks, they will continue using them for new applications. If they can copy and paste existing code, and use it in a new appliction, they will. A new technology will only be considered if it provides a compelling advantage, generally in terms of money. If a company has an existing framework, and does decide to use a new language or framework, then they have to start supporting two frameworks, because they are never going to have the time to translate all the existing applications to the new one. Having to support two or more frameworks or languages is bad, because it leads to increased team size, support and training costs.
So, what should Perl do?
Learn about, support, and train people in the technologies used in the enterprise. And if that means supporting Red Hat Linux, Perl 5.8 and mod_perl, then so be it.
Continue doing that, and the next enterprise application could well be written with Dancer or Mojolicious, while reusing the existing Perl modules at that company.
I was at Charity IT recently, a weekend event where developers help charities with IT projects. The projects selected are small and can be delivered by a small team in 2 days. We have a team member from the charity sitting with us througout, and answering any questions that we have.
One of the charities we worked with is the Wellington Night Shelter. They provide beds for the homeless, and we helped them speed up their reporting. The reports are used to generate more funds.
Many homeless people struggle to find a place to stay out of the wind, the rain and the cold. The night shelter starts admissions at 5:30 PM and there is a queue when it opens. It gets full quickly, and many people are left out at the end of the day to fend for themselves.
While there are so many buildings that are empty at nights.
I realized this last evening, I was walking past a school, and it was closed. It
struck me that schools all over the world are closed at nights.
If you are a Perl developer and want to move to Amsterdam to work for Booking.com, it is a good idea to do these first.
I don't work for Booking.com, and I didn't get through the interview. But if I did these things, I would have had a much better chance.
The interview questions, and the suggestions here are based on what is actually being used by Booking.com in production. They use MySQL, and a lot of their code is old and is written in object oriented Perl. So, understanding them and being able to work with them is important.
Practice writing Perl code:
Write object oriented Perl code (not Moose)
Write code to read from large files
Write code to work with MySQL databases
Write code which uses hashes of hashes and other complicated data structures
Write Perl versions of the examples in Programming Pearls
Read the Perl FAQ
Read the MySQL documentation
Read Programming Pearls
Learn about the Booking.com business model
Think about the problems they could possibly have, and how you would solve them.
Learn about database design, normalization, denormalization, sharding and anything else related to MySQL performance.
They are always looking for Perl developers. It would help to prepare well and then apply.
To login to mysql without selecting a database mysql -h hostname -u username -p
(hostname can be an IP addrress)
To create a new database, and user and grant permissions on that database to the new user. create database moodle; create user 'moodle'@'localhost' identified by 'password'; grant all privileges on moodle.* to 'moodle'@'localhost';
To run the sql script in the file text_file.sql in the database databasename: mysql -h hostname -u username databasename -p < text_file.sql
To create a table: CREATE TABLE categories ( id INTEGER PRIMARY KEY AUTO_INCREMENT, name VARCHAR(64) NOT NULL, created_on DATE, created_by INTEGER REFERENCES user(id), modified_by INTEGER REFERENCES user(id), modified_on DATE );
A webpage has a form and a 'Create my account' button on it which is used to create a new user.
initial = User.count click_button "Create my account" final = User.count expect(initial).to eq final Here, User is the resultset, which includes all users. We didn't fill in any data, and we are clicking the button to submit an empty form. We expect that a new user will not be created. So the initial count of users should remain unchanged after clicking the "Create my account" button.
To test the case where the User is successfullly created, you fill in all the values, and check that the final count is 1 more than the intial count.