Page 13 of 30

Mongoid

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.

A lot of Javascript this days

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

Малко хумор за твоя сметка

Relaying Postfix SMTP via smtp.gmail.com

This article is from ubuntu-tutorials.com

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.

Last links from 2009

Universal login

https://www.gigya.com

How to find things in Internet

http://www.webdesignerdepot.com/2009/12/how-to-find-anything-online-become-an-internet-research-expert/

Arduino

arduino316

http://arduino.cc/

http://www.robotev.com/biblioteka.php

 

Nyhetsfeed

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

 

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

Four websites in a two weeks

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.

 

psspy

After so much work I think that I will be tired but I am ready now for 6 websites for 1 week.

 

WPA cracking

Usefull tool to find fast the password. http://www.wpacracker.com/

Use Pidgin to stay connected

I have start using Pidgin to read blogs, stay online on twitter, and facebook.

I recommend this to all my friends.

Powernet – Интернет доставичк

Powernet

Предимства

  • Качеството на Българският интернет е ОК
  • Дават добри отстъпки ако си платиш за година

Недостатъци

  • При кабелна повреда оставате без интернет мин 3 дена
  • Чуждестранният често спира или е много бавен
  • Support-а им е от надути админчета, които са толкова велики че просто няма как да ви помогнат на вас простосмъртният дебил.
  • Съпорта не записват повредите и да получите обезщетение от тях за времето, което сте нямали интернет си е цяла магия.
  • Докато пиша тази статия седя на холдон в 01 ч. явно спят копеленцата
  • Мрежата им е баната от bitme.org и други известни torrent тракери
  • Спират ти Интернет-а в ноща петък с/у събота и имат една работща каса на майната си
    • Спирането се изразява в някакво глупаво прокси което ти прецаква всички отворени страници до момента
  • Тъпаците още не вдигат сигурно спят дълбоко

 

Извод

Ако можете изберете друг доставчик.

© 2024 Gudasoft

Theme by Anders NorénUp ↑