Hash to encode iso-8859-1 (western) to html entities
сряда, август 25th, 2010ENTITIES = {
'À' => 'À',
'Á' => 'Á',
'Â' => 'Â', (още...)
ENTITIES = {
'À' => 'À',
'Á' => 'Á',
'Â' => 'Â', (още...)
The first Rails framework was fast. then it become slow, big and the idea of convetion over configuration becomes more poisoned.
Currently to start with Rails you have to learn a lot of stuff which are added just now and is not sure how long they will stay.
Also Rails is not targeting the developers to be fast but is targeting to be the perfect framework.
The price for that is that almost a year and a half there is no new version while the they refactor it.
No goodies like scafolding, only enterprise stuff around.
That is my personal opinion on this framework.
As I like to say – you cant leave your followers without food for such long time.
The original code
<%= select(“city”,”kind”, t(:place_types).map.map!.each{|key, value| [value, key]}, {:include_blank => t(:chose), :selected => @city.kind}) %>
The bad code
t(:place_types).map.map!.each{|key, value| [value, key]}, {:include_blank => t(:chose), :selected => @city.kind})
the replacement
key_values = t(:place_types).collect{|key, value| [value.to_s, key.to_s, ]}
Rails.ouch.ouch.omg!
This article is talking on designers but I think most of the things there apply for coders also.
If you read it now and get it – you will be ok, else you will learn all those rules by own in the future.
Read the full article here…
http://www.onextrapixel.com/2010/08/18/10-questions-from-modern-web-designers-answered/comment-page-1/#comment-7981
The idea of the Searchlogic is to save you time and give flexibility.
The first time I saw this gem I was very excited about it.
With only a few lines of code an you have the whole search done. I have start using it.
Once I want to apply it to a complicated search. The problem was that I have to write more code and “patches” in order to keep the Searchlogic working….
So my advice is – don’t use such boosters if you can apply your own solution. There will be aways a time when you want to extend your search and you will loose a lot of time search how to do it with the 3rd party solution.
Do it yourself.
If you think that by hiring juniors you will save money and will get working application – you are wrong.
You will loose much more than money.
Yes they are low cost, but read the rest of the post to be not tricked. (още…)
Here is what we want to do
We have the following case:
Developer workstation windows with putty
Spider.bg – a host which has access to the www.psspy.se server
www.psspy.se – firewalled host – we want to put files here via sftp
What we want to do is to use spider.bg host as a proxy and connect to the psspy.se machine.
Tools that are used -
Here are the screenshots with the steps ….
It was really tricky. To get the key out I have to pull it stright away with one screwdriver. But when I have to mount it back – it was nightmare!!!!
Those keyboards are getting really challenge. I can’t imagine how a kid will repair his keyboard in 2019 year.
So….The for me it was really easy if because I have found this post here.
Here is the picture of the Lenovo Y510.
As I want to keep this post secret as possible I will not follow those rules here :)