Archive for the ‘Main’ Category
Visiting Zlin
I’m reading, rather listening as I have an audiobook, “Gottland” by Mariusz Szczygieł. It’s about interesting people and facts from Czech Republic. Unfortunately, despite it has been translated into many languages, English is not one of them. Really good read. I’ve learned about many things from Czech culture I’ve got no idea before. First story from the book is about Bata’s family and begins with description of life of Tomas Bata. Great entrepreneur. And as I don’t like people of business, I found them shallow and greedy, Mr. Bata and his family is really interesting. He was not only a businessman, but also a visionary and patriot. Thanks to him and his successors Zlin flourished and so did people of Zlin, and rest of Czech Republic as well.
So I’ve decided to make a trip to his hometown and to see what survived from his empire after WWII and Soviet’s occupation. There is still this big shoe store with walls made of glass, quite impressive. And there is Bata’s museum. There is one story in the book about Bata which I don’t like very much. Bata had big factory and was producing shoes on mass scale, so many shoemakers gone bankrupt as they couldn’t compete with Bata’s prices. One of such people when lost all his money committed suicide along with his wife and child. But before he did it he sent his workshop to Mr. Bata with a letter that he has ruined him. Tomas Bata wasn’t very touched apparently and ordered to place this workshop in the museum with description “that’s how shoes were made before me”. I think I’ve found it in the museum and you can see it below.
There is another story about Bata which I’ve learned when I was studying Management at University. He sent two employees to Africa to find out if there is market for shoes. After some time two telegrams came. First said “Nobody here wears shoes, absolutely no market”, second was “Nobody here wears shoes, big opportunity. Send shoes asap!”. It was real pleasure to see the place where he operated.
What I like in OWA 2010
With the release of Exchange 2010 Microsoft introduced new Outlook Web Access App (OWA), BTW. I’ve preferred old name. It’s quite amazing improvement and here is the list of things I like the most:
1. Tick boxes when selecting messages. Now you can simply select multiple items without necessity of holding Control button. Really nice functionality, I wonder why Outlook 2010 doesn’t have it?

2. Built in communicator functionality. Now you can chat with your contacts same way as you would do that with Microsoft Office Communicator. You can even talk with people outside your domain if they’re using Windows Live Messenger (however they must use hotmail accounts, standard live account registered with different email wouldn’t work). But I wonder if this functionality is standard for all OWA or this was incorporated only in my mailbox as I have address in @microsoft.com domain. Anyway it’s nice to have it.

3. Now you have sharing options for your calendar available directly from OWA. You can add calendar from other source, share your calendar or even publish it on Internet. I have my private Exchange account with OWA 2007 and I really miss this functionality. I know that it can be done using Outlook, but many times I’m limited only to OWA.

New OWA is great experience and I’m looking forward to see this available widely. For now I was able to find only two companies offering hosted Exchange 2010 accounts, but it’s quite pricey. It’s only matter of time though till other service providers would start to upgrade and it would definitely bring price reduction.
Can sinner be good?
What would you think about the person who by any means is a sinner, but never harmed innocent. And never was indifferent when somebody was hurting those who can’t fight back. Does this man, even as he is full of sin, deserve to go to heaven? Can all people who were saved by him erase his misdeeds?
That were the questions I’ve asked myself today after seeing Bill Hickock being shot in the back of his head by some trash. This character from Deadwood was very deep. Entire show is quite interesting, but I will really miss this great gunman. I must admit that for the moment I’ve got a piece of doubt to his morals, I’m talking about the scene when he accepts offer from the saloon owner to trick the poor (well not so poor actually) widow. But he quickly recovered in my eyes and died in style. It was a death of a man who knew that he doesn’t fit to normal life, and has understanding that is getting too old to keep old habits. So he writes letter to his wife and goes to the bar to wait for destiny to do its job.
Yes Ladies and Gentlemen, I’m impressed by the personality of Mr. Hickock (and artistry of Keith Carradine). I prefer better one man who is sinner, but will never let good man die if he has anything to say, than hundred of people who live by the laws of faith, but don’t care about the others. True God’s man is the one who will fight the beast to protect the lamb, not the one who is bowing head in front of the altar and then turning it away to not see suffering of others.
This post is dedicated to fellow Rebbecca who has inspired me to write this spiritual text:)
How to create iso image on Mac OS X
One of many great things about Mac is that you can do a lot of stuff just after launching your computer for the first time. So here is another one, you can create iso image of your CD/DVD just using apps which are already in the OS. Lets start then:
1. Put the disk into your drive.
2. Go to Apps -> Utilities -> Disk Utility.
3. Choose your disk from the list on the left and click New Image.
4. Browse to location where you want to save the image, put the filename you desire and select DVD/CD master as Image Format.
It would create cdr image, so now you need to convert it to iso. You can do it with single command in Terminal:
hdiutil makehybrid -iso -joliet -o
That’s it. You have created iso image of your disk without using any third party software! Isn’t it just great.
How to post long text on Facebook?
Some time ago I’ve wanted to post excerpt from the book I was reading on Safari Books Online on my Facebook wall. Everyone who have ever used Safari knew that their books are displayed in special way, so you can only use their applet to copy text (probably they’ve done that to avoid people copying entire books). As a result you’ll obtain text which would reside in your clipboard. To publish it on Facebook you need just to paste it into appropriate field and…

Yes, Facebook limits text to be posted to 420 characters, so if you want to post something longer you need to find other way. And that’s how Facebook Text Hoster was born. It’s web application written by me to host text which can then be posted to Facebook. When you’ll go to fb.liox.eu you’ll find a field to enter your text and Send button, I believe it’s self explanatory. When you’ll click Send simple check is done to calculate length of your string, so if it’s less than 420 characters then it would not be hosted as there is no reason for it. Then you’ll see a page with your text, full link to your text, bit.ly shortened link and Facebook share button. After clicking Share you’ll be navigated to page as the one below.

It’s typical representation of Facebook generated link, as you can see there is shortened version of the text and bit.ly link, you can also add short description to it. Now click share again and voila your text is on your Facebook wall (of course you should be logged before sharing or you’ll be asked to log in), when somebody would click on it he would be navigated to hoster page and able to read full text.
Now let me say a little about project itself. It’s written in PHP and all data is kept in MySQL DB. It was great opportunity to learn new things, so I’m happy that I’ve done it, but I know that there are probably better ways to do the same. My wife says it’s waste of time as you can simply make a screenshot, publish it somewhere and post a link to it on FB, I love to receive support from my spouse. But no chance of learning something new is ever waste of time and if you’ll post image you would block ability to copy your text to your readers (which is not always so bad). Anyway in current shape it’s exactly what I’ve wanted it to be. Light, simple to use and creates descriptive Facebook posts. This took me some time as when I’ve written the app posts generated by it contained text from the app itself, not shortened version of hosted text. But I’ve studied FB documentation and found out that you need to specify two meta tags:
<meta name="title" content="title" /> <meta name="description" content="description " />
And fill them with information you want to be part of FB link. So I’ve created simple formula to do that. I could probably go without using bit.ly to shorten links, but I find them looking better than the long ones and it should be useful when sharing text outside FB, for instance via IM.
At the end I would like to say that this project has been created just for learning purposes and to help people who would want to post long text to Facebook. That’s why I’m not taking responsibility for texts hosted in my apps (as I’m not able to control that) and reserve the right to close it down and swipe DB if it would be abused. If you have any proposition of improvement, want to report abuse or bug, or just want to say something about this app please do so by commenting this post.
UPDATE1: I’m escaping special characters to prevent SQL injection, so instead of ‘ you’ll see \’. I hope I would figure out something better soon. Haha! I’ve solved it! I couldn’t go to sleep knowing that my “baby” is not acting as it should:) Now you can enjoy your text being displayed in exact way you’ve provided it.
UPDATE2: Must figure out how to maintain correct alignment of text, so it would display exactly how you’ve formatted it, not in one line as it’s now. But that needs to wait, I’m tired, goodnight. Done. Now you can enjoy beauty of line breaks thanks to nl2br command. I’ve also added auto select function to link fields. Enjoy!
Always say no to bad offer
Within past three months I was called couple of times by my ISP’s (UPC) representatives. They offered me to change my Internet plan from 15Mb/s to 10, of course price would be lowered by 80-100 CZK, but I’ve declined it as I prefer to have faster than cheaper connection. Last call wast a little offensive as guy when I’ve declined his offer became angry and was very close to call me an idiot (at least it’s my feeling). He was trying to daunt me saying that they’re planning to lower rates for everybody in my block anyway, so I would stay paying more for the same what everybody else got. I’ve refused it as I got my contract signed for certain speed. But on Friday they’ve called me again and offered 25Mb/s for 25 CZK more (around 1.20 USD), obviously I’ve accepted it and since Saturday I’m enjoying higher speed. Don’t let anybody fool you, if you have a contract it’s obligatory for both sides, not only you.
You must be logical when speaking to programmers
I’m reading Hackers: Heroes of the Computer Revolution by Steven Levy now (great book) and found this funny fragment.
Marge Saunders would drive to the Safeway every Saturday morning in the Volkswagen and upon her return ask her husband, “Would you like to help me bring in the groceries?” Bob Saunders would reply, “No.” Stunned, Marge would drag in the groceries herself. After the same thing occurred a few times, she exploded, hurling curses at him and demanding to know why he said no to her question.
“That’s a stupid question to ask,” he said. “Of course I won’t like to help you bring in the groceries. If you ask me if I’ll help you bring them in, that’s another matter.”
I love programmers way of thinking. It’s like in this joke:
Wife sent her husband to buy some groceries and said to him:
- Buy 10 eggs, if there would be pineapples buy two.
So guy gone to shop and asked seller:
- Do you have pineapples?
- Yes – said seller.
- So give me 2 eggs.
List only files (no folders)
Quick note how to list files without directories.
Windows:
dir /a:-d
Linux:
ls -l | grep ^-
Second command should work also in Mac OS X from terminal, but will have to check it just to be sure.
Remote Desktop Gateway
Remote Desktop Gateway is a role of Windows Server that allows you to connect with hosts in your network through its encrypted gateway. I’m quite impressed by this service and decided to write a little HowTo, so it would be easier for others to deploy it. I’ve actually hit two birds with one rock, because I’ve written it using xml and php, so it was opportunity to learn something useful. Final effect can be seen here. As you’ll notice thanks to xml and simple php form you can choose between English and Polish version of text.
If you’ll examine my xml then you’ll see that I still have some problems with links, so I’m keeping it in different tags, but I hope to deal with soon. Current workaround is working fine, but it’s far from being elegant (although it’s not visible to end user at all). Enjoy!
CC Everybody
Again thanks to Techcrunch I’ve learned about cool new Internet service – CC Everybody. It’s a blogging/forum service where you can start or reply to a post/thread by sending email to designated email address. You can even cc your personal @cceverybody.com address when you’re exchanging emails with your friends and entire conversation would appear on website. It’s quite cool, I’m thinking about using it to exchange funny pictures with my friends and family. I don’t know about storing email conversation there as everybody can see it, but maybe some discussions on general topics, why not. It’s still in beta, but Techcrunch offers 500 invitations, so if you’ll be fast you should be able to join. One thing that is annoying, as for me, is the fact that when you’ll send email to your designated @cceverybody.com address from the account you’ve supplied when registering, you still have to approve it on site before it would be published. Maybe it’s meant to provide you with more security, as you’ll have another chance to check if you really want to post this content. But I find it really unfriendly.
It reminded me about situation when I’ve sent a joke to everybody in my company. Not everybody found it funny and I’ve got a conversation with my boss. So be careful what you’re posting as it’s very hard (or rather impossible) to delete something from Internet.
If you want to post something on my page you can send email to: pczajkowski @ cceverybody.com (delete spaces).