My posts. Recent Posts.
Adding HP Photosmart C5280 to DS209 NAS
// November 18th, 2011 // Code
After lots of trouble and searching for Linux drivers to get the printserver in the Synology DS209 to work properly I had given up on wireless printing at home. Being bored tonight though, I got into my hea to give it another try since I had a Diskstation Manager update for my NAS.
After the update I figured what the heck, lets see if they’ve added some more options that I can tweak and what do you know, there was!
So, to get this working I:
- Plugged printer USB into the DS209
- Open the external devices in the Diskstation Manager
- Mark the printer in the list and click Usb printer manager -> setup printer
- Use Network MFP (this wasn’t here when I last tried!)
- I enabled AirPrint (Haven’t seen this before either!)
- Setup Brand to HP and Driver to HP Photosmart 7150
- Add printer and install any needed drivers on computer
- Done!
The 5280 still isn’t officially supported it seems but now I’m printing from both my Mac, Hack and Windows machines without problems. Next fight is scanning :)
Add css style to your JavaDoc to make it readable
// November 7th, 2011 // Code
Been getting into Java more and more lately and JavaDoc must be the most horrific leftover from the 90’s web with purple/black/times new roman styling. Not only is it unreadable due lack of margins, line-heights and smooth contrasts. It is also butt-ugly.
My favourite plugin for Chrome came to the rescue though. “Personalized Web” makes it so easy to add custom CSS to any site you want. So grab the plugin from Chrome app store and get the CSS from Sensemaya.
DN.se redesigns and brings back print typography to the web
// October 25th, 2011 // Code
One of Swedens major newspaper websites got a redesign today and man, they have been working hard! They have managed to put aside all the web typography rules we all are started to take for granted. Things like vertical rhythm, 1.5em’s line-height for readability and lots of white space that allows the user to scan for content no longer exists. Instead it’s packed with what I’m sure is great print-design which makes the site unreadable and unusable, at least for me.
Lucky though that I found this Chrome plugin called “Personalized Web” that allows you to add custom CSS. I’ve used this before to get around Facebook’s silliness with the right sidebar.
Here’s the CSS for my dn.se and facebook.com that I’ve adjusted to my liking:
DN
body p, p, #main .teaser p { line-height: 1.5em; } h2 a, h3 a, #article-content h1{ font-weight: normal; font-size: 24px; font-family: georgia; line-height: 30px; } #main .teaser p { font-size: 1.3em; } div#shortnews-wrap { display:none; } body div#mid .teaser .teaser-container-inner h3 { color: #666; background: #DEDEDE; } #blogspace p, #mid .box-quote p, #mid .teaser .box-quote p { font-family: arial; font-size: 12px; line-height: 18px; } #submenu-ad { display: none; } #main .preamble p { font-size: 1.4em; line-height: 1.5em; } #main .content-paragraphs p { font-size: 1.3em; line-height: 1.5em; }
#pagelet_sidebar {display:none;} #right {display:none;} #siderbar-right {display:none}
Internet Explorer limits stylesheets links to 30 could be the reason your styles are not applied
// July 3rd, 2010 // Code
After spending several hours the other day working on the endless adaption of Internet Explorer 6 for a Drupal project, and wondering why the styles in the conditional stylesheet I had added weren’t being applied, I stumbled on a small note that IE for some reason limits the number of linked stylesheets to 30 before it stops rendering. This causes the styles in any additional stylesheets to not be applied although the stylesheet is in the code. This seems like another stupid limitation in the painfully crappy (yes, it’s a pro term) IE series of browsers.
Greasemonkey script for quotations and line-height
// May 28th, 2010 // Code
It’s been bothering me for such a long time that so many sites have forgotten/ignored to set their line-height which makes their sites unreadable. After some googling I found an excellent typography script by Josefec.
Fair tourism at fairtourism.org online
// May 4th, 2010 // Portfolio
I have together with my fiancee created a site which discusses tourism in a human rights perspective and how make tourism fair for all the stakeholders.
The site today features a fairtourism blog and a resource library where you can find links and articles (academic and news). New content is added weekly if not daily so be sure to check back and take part in the future of tourism and how to make it just and fair for everyone involved.
Check out fair tourism or if you are swedish you can check out rättvis turism.
Screenshots coming soon.
First Drupal modules online
// March 8th, 2010 // Code
So, the day has finally come. My first two Drupal modules are now online at Drupal.org. Both of them are add-ons to the Support module and provide some extra functionality.
Support fields: http://drupal.org/project/support_fields
Support custom e-mail: http://drupal.org/project/support_custom_email
Big thank you to Kodamera who employed me so I could finally learn programming for real :]
Nice!
Never forget the Drupal cache
// December 13th, 2009 // Code
Had my first experience with Drupal 5 today when I was trying to install a multisite that i checked out from work the other day on my mamp localhost. Continue Reading
Extend Windows 7 logical drive with Gparted
// October 8th, 2009 // Code
I installed Windows 7 on a logical partition without thinking properly before and of course I ended up with too little space. Who could ever believe 25GB is not enough for an OS to run with a few programs installed. Continue Reading
Updating to Eclipse Galileo with Flex Plugin
// June 25th, 2009 // Code
Pfewwww. Installing a new version of eclipse with it’s plugins is something I always dread. The hassles and problems never seem to end.
After updating my Flex Builder today it stopped working giving me weird errors and refusing to start. After having a look at the log files and realizing I don’t understand any of it I decided to do a clean install of the new Eclipse and get the Flex plugin instead. Easier said then done.
