Peter's Blog

Another guy talking nonsense!

Archive for the ‘IT’ Category

WebDav share on Vista/7

without comments

Remember that if you want to have WebDav share mounted on Vista/7, first you need this update installed:
Software Update for Web Folders (KB907306)/

Written by Peter

August 16th, 2010 at 2:08 pm

Posted in IT,Microsoft

Tagged with , , , ,

What I like in OWA 2010

without comments

With the release of Exchange 2010 Microsoft introduced new Noise’s blog (PL) information that Paragon is offering some of their software for free! Head to their website and enjoy following apps (serial will be provided to you after filling short form):

If they would give away their NTFS for Mac® OS X 8.0 for free as well, I would be in ecstasy, but still it’s a bunch of great programs. I’m using Partition Manager and it’s pretty good. Now would gonna give a try to Backup & Recovery. If you like these tools you can consider becoming a fan of Paragon on Facebook.

I don’t have anything to do with these company and have no benefits for promoting them, just wanted to share info about possibility of having useful tools for free.

Written by Peter

July 9th, 2010 at 10:38 pm

Don’t talk to strangers!

without comments

Today I’ve read about new bot, HoneyBot. It’s bot designed to use on IRC and Facebook chat. The way how it operates is both simple and clever. It enters the chat and starts chatting with two people (preferably with different sexes, it uses nickname analysis to distinguish it), then it passes text from one human to another, so there is no way that they would notice a bot, because they’re indeed talking with human being. Now bot is waiting for the link to be sent by one of parts and then changes it to its own directing to malicious page. Smart. So listen to your mother and don’t talk with strangers:)

Written by Peter

June 15th, 2010 at 9:55 am

Posted in Discoveries,IT

Tagged with , , , ,

How to post long text on Facebook?

without comments

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!

Written by Peter

June 14th, 2010 at 7:20 pm

Posted in IT,Main

Tagged with ,

Always say no to bad offer

without comments

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.

Written by Peter

June 6th, 2010 at 10:35 pm

Posted in Czech,Happy,IT,Main

Tagged with ,

You must be logical when speaking to programmers

without comments

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.

Written by Peter

May 27th, 2010 at 1:38 pm

Posted in Funny,IT,Main

Tagged with , ,

List only files (no folders)

without comments

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.

Written by Peter

May 27th, 2010 at 12:27 pm

Posted in IT,Main,Tips

Tagged with , , ,

Remote Desktop Gateway

without comments

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!

Written by Peter

May 18th, 2010 at 9:45 pm