When starting with mongoid I have missed a lot some demo source code.
How it works with controllers, does it plays nice with nested attributes, such things.
Here is presentation of mongo and here are some slides
When starting with mongoid I have missed a lot some demo source code.
How it works with controllers, does it plays nice with nested attributes, such things.
Here is presentation of mongo and here are some slides
I writing this post for those who start using Mongo in their rails applications. I want to share my experience. First I discovered mongoid but then i saw mongo_mapper – so I decide to go with the crowd. But! I was wrong. I there is no documentation for mongo_mapper but some blog posts arround, the examples are not aways working and you have to fight with all the code – I don’t maybe I have found some old documentation. When you dive in the code – again no documentation and not clear behaviour. Maybe it is a good solution but for me it doesn’t work. I lost 1.5 days experimenting and hoping that the things will go.
Then I give a try with mongoid. It has wonderfull documentation for starters also it seems at first glance that the code in mongoid is more readably and human friendly. It took me 2hours to port all my models to mongoid.
The guy developing mongoid seems pretty active.
last words – it is pleasure to work with mongoid – I recommend it to all.
I am migrating to jQuery and found this wonderfull tutorial on their webpage.
A must read for anyone which pretend to know js.
http://docs.jquery.com/Types
I’ve got a few servers in different places around the country and try to monitor them using the logwatch utility. One problem that I’ve run into however is that a few of these servers are not able to send their logwatch emails to me, based on email restrictions by the ISPs. I spent some time this afternoon researching what was required to have my servers authenticate to my gmail account and send me the mail that way. This setup assumes Ubuntu 8.04 (or later) and Postfix.
Install the required packages
sudo aptitude install postfix libsasl2 ca-certificate libsasl2-modules
Configure Postfix
This tutorial will not outline how to configure your postfix server, but we’ll jump directly to the relayhost section. You’ll want to add the following lines to your /etc/postfix/main.cf file:
relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
The above lines are telling Postfix that you want to relay mail through gmail on a specific port, telling it to authenticate, and where to find the username and password. The last three lines specify the authentication types supported, where the certificate authority file is and that it should use tls.
Define Username and Password
Next we’ll need to populate the sasl_passwd file. Create the file /etc/postfix/sasl_passwd with the following contents:
[smtp.gmail.com]:587 user.name@gmail.com:password
This file should have restrictive permissions and then needs to be translated into a .db that Postfix will read.
sudo chmod 400 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd
At this point you can restart Postfix and it should work, however it will complain about not being able to authenticate the certificate. To take care of this issue we’ll use the ca-certificate package we installed and tell it where it can validate the certificate.
cat /etc/ssl/certs/Thawte_Premium_Server_CA.pem | sudo tee -a /etc/postfix/cacert.pem
Go ahead and reload postfix (sudo /etc/init.d/postfix reload) and you should be set.
Följ sitt fotbollslag under specialiserade webbplatser.
Vänligen tänk hur ti förbättra denna tjänst i kommentarerna nedan.
Webbsida | FOTBOLLSLAG |
http://www.Alltomhacken.se | Alltomhacken.se |
http://www.alltomhelsingborgif.se | Helsingborg IF |
http://www.alltomhammarby.se | Hammarby |
http://www.alltomgais.se | Gais |
http://www.alltomelfsborg.se | Elfsborg |
http://www.alltodjurgarden.se, http://www.alltomdjurgården.se, http://www.alltomdjurgarden.se, http://www.alltodjurgården.se | Djurgården |
http://www.designnews.se | Design news |
http://www.psspy.se | Dagens PS |
http://www.alltombrommapojkarna.se | Brommapojkarna |
http://www.alltomtrelleborgff.se | Alltomtrelleborgff.se |
http://www.alltomorgryteis.se | Alltomorgryteis.se |
http://www.xn--alltomrebrosk-nmb.se | Alltomörebrosk.se |
http://www.alltomorebrosk.se | Alltomorebrosk.se |
http://www.alltommalmoff.se | Alltommalmoff.se |
http://www.alltomkalmarff.se | Alltomkalmarff.se |
http://www.alltomifkgoteborg.se | Alltomifkgoteborg.se |
http://www.alltomifelfsborg.se | Alltomifelfsborg.se |
http://www.alltomhalmstadbk.se | Alltomhalmstadbk.se |
http://www.alltomhacken.se | Alltomhacken.se |
http://www.alltomgefleif.se | Alltomgefleif.se |
http://www.allamotornyheter.se | allamotornyheter.se |
http://www.alltomaik.se | AIK Fotboll |
A lot of work last weeks.
Check those
The interesting think is that two of them are on Rails (www.mebelicomfort.com, shop.djibutzo.com) , one of them is on WordPress and the last one is on some custom PHP framework.
And meanwhile we are doing a lot of refactoring on our company website psspy.se, which finally is starting to look good.
After so much work I think that I will be tired but I am ready now for 6 websites for 1 week.
Usefull tool to find fast the password. http://www.wpacracker.com/
I have start using Pidgin to read blogs, stay online on twitter, and facebook.
I recommend this to all my friends.
© 2025 Gudasoft
Theme by Anders Norén — Up ↑