Jeroen Schaftenaar

Stuff I do and more…

Archive for the ‘General’ Category

Mac OS X – Show/Hide Hidden Files Automation

mac_automatorLately I’ve needed to show .htaccess file in finder. In finder every file with a dot in front of it is hidden. You have to change this using shell commands. But this is a superfluous process. I scoured the internet and found ways to automate this. There are some software solutions but the way I will tell about is using the Automator


Step 1
Start up your Automator. It is under Tools in your Applications. On opening the Automator choose Custom. Choose Run Shell Script and drag it into the workflow area. Automator_Step_1


Step 2
In the input area copy the code:

step2

Code:

defaults write com.apple.finder AppleShowAllFiles TRUE
osascript -e 'tell application "Finder" to quit';
osascript -e 'tell application "Finder" to activate';


Step 3
From the top menu choose File -> Save As Plugin. This script will show the hidden files. Save it as ShowHiddenFiles.
showhiddenfiledialog


Step 4
We successfully created the Automator script to show the hidden files. Repeat the steps to create the script to hide the files again using the following:

Code:

defaults write com.apple.finder AppleShowAllFiles FALSE
osascript -e 'tell application "Finder" to quit';
osascript -e 'tell application "Finder" to activate';

and save it as plugin as HideHiddenFiles

Use it:
In finder you can use Control Click -> More -> Automator to access the Automator scripts you just created
infinder

Sites I follow and why

This is going to be a pretty self-explanatory blog post.

Personal interests

General news

I actually aggregate these next sites in my blog already

Youtube…

  • 0 Comments
  • Filed under: General
  • Still Alive

    To let you all know I’m still alive :). Been rather busy the last couple of months, work is a real bitch at the moment and weeks of 50+ are no exception. Looking at the brighter side, vacation is coming closer quickly. I’m really looking forward to the 3 weeks vacation in Bali, you’ve got to love this economic crisis :). Where I paid like 1100 euro last year to get my is to Bali, I paid 650 euro now. To finish off I’m thinking of blogging about work too but I need to work some stuff out first because by contract I’m bound to an act of secrecy.

  • Comments Off
  • Filed under: Bali, Eric, General, Holiday, Vacation
  • Looking back to the new homepage

    For a while now I’ve been thinking about updating this design to give it a more web 2.0 feel. I updated the header and the footer to do exactly that. Al it is still work in progress I pushed this new design out already. This are the things that are changed:

    • New header/footer look & feel
    • Changed the width of the content to fit into a 960px grid
    • Reduced the size of this WordPress theme
    • Did some code improvement by removing not used code

    Things that are still on the drawing board are:

    • Make this design xhtml 1.1 strict compliant
    • Move the graphics to sprites
    • Increase the speed of the site
    • Enable caching

    That is it for the new stuff. A while back I found out about the way back machine. This website indexes(copies) websites and stores them in a huge archive. Of course I directly checked this url and since 2000 I have a presence there. Check out how my site used to look. Actually the design of the site is really nice.

    I also found some really old pascal code. It is funny to see how programmers do things when they don’t know how to use arrays(this is almost 15 years back). I would store the data in a file and then would read it back line by line. I solved this issue of not having(knowing about) arrays by reading and writing in a file line by line :D How cool is that! Wow 15 years… A lot has happened since then:

    • Got several diplomas, degrees and thank you’s
    • Owned several cars
    • Spent time in Indonesia, Suriname, Singapore, Malaysia
    • Visited even more countries
    • Used up a lot of girlfriends
    • Had dinner over 5000 times
    • Went about 45000 times to the toilet

    For the next 15 years. What I’ll do I don’t know, yet. Here is a Youtube video which is inspiring.

    I wonder what will happen in the next 15 years(I’ll be really old then)… One thing that will happen soon is my graduating. For the rest it is up to life!

    Tips to improve the quality of your blog posts

    For a while now I’ve been blogging a bit and while I am not a professional in this, I discovered some useful tricks which I want to share with you. I will not discuss obvious things like use a spellchecker, on the other hand some things I describe will sound obvious but will need effort to get it done right and therefor is often neglected. Also I will not focus on content that much and focus this list on structure because half of the time I don’t know what to write about and I am not experienced enough to give tips on content writing.

    Don’t publish – What are your insane? blogs are all about publishing! What I meant was that when writing your post don’t hit the publish button but instead save your post first as a draft to review it the day after(a few hours is also ok). Of course you just spend some time writing the post and are anxious to publish but when you wait one day you will reflect on what you have written the day before in a more fair way. Therefor don’t publish (directly) and also try previewing your post on your site before publishing.

    People love structure – So use this! Paragraph your text to make it more readable. This will also structure your text in such a way people can skip it when they find it boring. Also be not afraid to use lists of any kind because somehow people like reading lists.

    Extend your content – You can only make up so much crap therefor try to involve other peoples information as well. Link to other blogs that share or disagree on your opinion, make use of media like youtube and wikipedia. Also include a link to anything you reference in that text itself.

    Summarize – Add the end of your blog post ask the readers a question, state the moral of the post, Reflect or express your opinion in one short sentence. This will bring a good ending to the story and might even invite people to post comments on your blog. But never ever end with a question to asks your readers to drop you a comment if you liked this piece of creative(read crap) writing. Comments should be about content. The title & introduction of your post should also give an explanation of what the post is about. The title should be one catchy sentence and the introduction should be one paragraph.

    Improve – There will be times when you posted a story which contains errors. The first thing you should do is fix them. There is no need to put update tags on a post where you only fixed some minor spelling errors. If you change the content of your post dramatically you might want to consider this and inform the users of the update in the beginning of the post and at the end.

    Of course I often make mistakes myself and do not follow this 100% but it is a good guide to measure your posts. I try to always hit at least four out of five points before publishing my post. This way I make sure the blog post lives up to at least some degree of expectation.

    Programming madness

    Currently I am working with four programming languages/scripts at the same time and while this sometimes frustrates me I am also loving it. It frustrates me because sometimes I mess up really simple things which don’t give an error in one compiler but will do in the other. Also there is a huge difference in how some development environments handle bad code. For example I am working with ActionScript in Adobe Flash and the errors are displayed in the most useless way. This makes bug tracking a bitch. In Java or PHP a line where the fault might have occurred is given. Al though the latter one is not always right it makes diving into it a lot easier.

    The good side about it is that I get to do more stuff and I can dive into anything I like doing. A lot of programmers only stick to one language cause it is a b!^<h switching between languages sometimes. The upside is that I know more of what is going on and I can take ideas from one project to the other. There are still a lot of languages I haven’t touched yet and some more I want to rediscover.

    One script I am currently working with is JavaScript and this is the biggest mess I’ve ever seen. What will work under one browser won’t work under another and even though there are some really good libraries out there your code will be ugly. The thing that I hate with JavaScript is that you can’t go without it. It is the only script available (badly)supported by the major browsers. This keeps me wondering: why isn’t there an alternative available to JavaScript.

    Every browser has 10 ways of markup. You can do HTML formatting, XML formatting, XHTML formatting any many more. Every browser has support for Flash, Silverlight and many other cool technologies. But no matter what there is always only one script available and that is the messy JavaScript. Why is this, and why do all the browsers support it poorly. Maybe in the future their will be alternatives for JavaScript.

    Currently I am reading the book Death Star which is set in Star Wars galaxy. This made me to get back in the mood of this classic and wanting to watch the two trilogies again. Here is a Youtube movie to get you in the mood.

    Enlightenment for Eric is Bali, enlightenment for Sammy is life it self. For a part enlightenment for me are these epic stories because they always lift my spirit…

    Alfred you should blog. I am left wondering(and I guess we all are) to what enlightens you :P It seems like The blog virus is still going strong but Alfred is not infected yet :P

    Happy Commercial Valentine’s Day

    The 14th of February is coming again and it’s not because I don’t have a steady relationship I hate Valentine’s Day, it’s really the commercialization of the whole event. This may sound stupid coming from a 25 year old but where are the days a simple postcard and a kiss on the cheeks was enough. Nowadays the retail stores want you to believe you have to send as much postcard as you possibly can to all kinds of people you know and you need a huge box of chocolate or a huge bouquet of roses. And weeks in advance they start sending out folders with their ’special’ Valentine’s Day actions. I’m immune for it but other people seem to expect what they see. But it’s not only Valentine’s Day that’s ruined, Mother’s Day, Father’s Day, Christmas to name a few are completely ruined in my opinion. Really, I think we completely lost the big picture in all those events. It should be about small gestures and not about who can buy me the biggest present. I will stop ranting now before I make an even bigger fool out of myself but I hope you get the point.

  • Comments Off
  • Filed under: Commercial, Eric, General, Valentine's Day
  • Syndication

    No, this it is not about the revive of Syndicate Wars but post syndication, aggregation or just simply put: Stealing posts from other blogs and putting them on your own. Just a quick update to let you know you might see posts here that are not entirely mine :-)

    I decided to include the blog posts that my friends make on my own blog. I came to this decision after Sammy and I had a little discussion on this topic on his in the discussion area of his blog. I proudly present post syndication so I don’t have to write anything anymore and you don’t have to read my crap anymore.

    I hope they don’t mind :P

  • 5 Comments
  • Filed under: General
  • The top 10 tipping points of things that matter

    Since everyone is doing a top 10 list of greatest things here is my cut. If you don’t know about the tipping point:”It is the moment things get momentum or die out (something like that anyway)”.

    My tipping point top 10:

    1. Learning Mandarin. After a few months with Chinese people I am starting distinguishing and perceive more sounds. When I first arrived at this place I never had a clue what they were talking about, nowadays nothing has changed :P except: I hear more, A lot more… Somehow before I was deaf for this Chinese language. I did not experience this with German and Bahasa Indonesia.

    2. Dropbox, Twitter and Jaiku for being great services but with lousy business model. Don’t get me wrong these are all great services and they should be cheap. But they have no way to get paid… Almost nobody minds paying for something good but these services have almost none or no payment plans at all.

    3. Digsby and Google Chrome for almost being great applications. You guys will be great when you are available for OSX(and Linux). How can you expect to bring something revolutionary when you bring it only to windows? Hurry up with the versions on OSX…

    4. My fellow blogger Saiful Rizal with his plan to inspire us all. He is a bit late with the twitter thing but this also tells us twitter still has momentum. He made a list of youtube videos that I found motivating, this made me check his blog once in a while.

    5. The book Reality Check of Guy Kawasaki. It is the book I am reading now and it is really good so far and if all the books were this interesting and fun to read at the same time the next point won’t be a problem at all.

    6. My plan to read one book a week. My New Year’s resolution, it’s HiDef :P

    7. Arie.nl werkkleding & werkschoenen, Poetsplaza.nl, Baliday.com and some other projects I am working on.

    8. Inscorta is the name of an open source project I am starting. It is actually the code behind Arie.nl & Poetsplaza.nl. Until now the development has been done solely by me. It turns out to be a great software package but further development is slow and difficult since I am do it all. That is why I decided a long time ago to make this software public so everyone can use it and help to improve it.

    9. Me turning into something usually named blogger. This is not a New Year’s resolution, I just enjoy it. 

    10. Me turning into an Apple Fanboy! Like the attack some M*$*&*F*#^%*rs did on my villages in Tribalwars, I am afraid there is no stopping to this Bill and Steve.

    Ok, this is not exactly a tipping point list.

    “Whaddaya gonna do, life goes on” (My favorite quote from The Sopranos)

    My dvorak unibody Macbook, Wargames and Trips

    After months of waiting I finally have a unibody Macbook :D I spend a huge amount of money on this baby and the next day I broke it trying to convert the keyboard layout to dvorak. The day after, super glue came to the rescue! And now I have a very unique dvorak unibody Macbook. This photo actually made me do the conversion. During the rearranging of the keys I cursed myself for doing it but now I am really happy with the result(it looks the same, only a slightly different layout).

    Christmas is coming and I can have 5 days off taking only one day of leave. I think I’ll make a trip to Bangkok. My idea is to go there by AirAsia and come back over land. Even more trips are coming up. In the end of January I have another week off and I might make a trip to Bali(again), I am not entirely sure what to do… Any suggestions are welcome :-) Also in the beginning of January I might go to China for a few days but I fear that will not go through since I had some difficulties getting a visa for this trip.

    Last weekend we had a company trip and we went to play paintball. This is really exhausting but really lots of fun to do. Also a good opportunity to talk with some people I hardly spoke to.

    Life here is still relaxing and without worry. In the morning I still wake up late, go to the office grabbing a delicious Roti Capati on the way as breakfast. When I come home it is often 11pm+ but this doesn’t bother me at this moment.

    I gave away my pocket camera so don’t expect any photo’s of things I’ve done. But I’ll try to get a new camera and then I’ll snap some shots for you all :P

  • 4 Comments
  • Filed under: General