Sunday, November 21, 2010

Nice Exploitation Technique In PDF Files

Warning - security related post. Stay clear if you feel disgusted from Windows Internals and Security.

A friend of mine just posted a great piece about a clever shellcode technique called egghunting. If you're into this kind of stuff, I recommend reading it.

Also, if anyone is interested in some more details about the Adobe Acrobat Reader vulnerability described in the above post, please leave a comment, and I'll dedicate a separate post for that.

Wednesday, November 17, 2010

No Signal

So the Linkin Park concert was excellent. But I wanted to tell you about this two days ago, when I was there. Not now.

It appears that if 14,000 people gather around in the same park, none of them gets a cellular signal. Probably because the cellular towers around suffers from congestion. Not being able to handle the load, the cellular operators actually lose money. I bet that many fans like myself wanted to Tweet/Buzz/LiveBlog/SMS/Video-chat/whatever during the concert, but couldn't.

I wonder whether mobile cell-towers exists, and if they do - why don't cellular operators station those near crowded places when needed.

Sunday, November 7, 2010

Build Errors With SubSonic

When programming in C# (MS or Mono, it doesn't matter), and the need for an ORM framework arise, I turn to SubSonic. I enjoy using this framework very much, as it is fast and intuitive, and free (as in speech).

So if you're like me, and you use SubSonic for your model layer, here's an advice: don't name any of your database columns/tables with C# keywords. For example: if you have a DB column named "private", you're gonna have problems.

When building a SubSonic project that doesn't follow the above advice, one would probably get tons of "Expected class, delegate, enum, interface, or struct" in Structs.cs. Don't say I didn't warn you.

Thursday, November 4, 2010

Wireless, Is It Dangerous?

Just a while ago I posted about the fun of going cordless, and the benefits it bring to my work environment: much less clutter.

Today I finally got my BH-503 bluetooth headset from DealExtreme, and boy do I enjoy it. I use GTalk and Skype A LOT, and not being tied to a microphone makes life better. Sound quality is also very good, and it gets along just fine with my eye-glasses (not a trivial thing with other headsets).

So what's the problem?
The 2.4GHz spectrum near my desk is awfully crowded: wireless mouse, keyboard, WiFi router and two bluetooth devices (smartphone and headset). This gets me thinking: could this be dangerous?
All of the above products came with a disclaimer saying it is perfectly safe to use them, and none of them generates a bad kind of radiation or something. And still, just because I cannot see all those "waves" in the air, I'm a little bit disturbed.

What do you think?

See you all on the Linkin Park concert soon :)

Tuesday, October 19, 2010

Delete Old Log Files On Windows

When administrating Windows hosts I always stumble upon stuff which I imagined should be simple, yet proves complex.
I recall I used to write a Perl script in order to delete log files which are older than X days. Today I found out that Windows servers (XP is not a server, so this doesn't work on XP) has this nice "forfiles" command that assists in doing that in a one-liner, as one could've expect.
Have a look here. This works like a charm

Wednesday, October 6, 2010

Going Cordless

My home PC/workstation has almost become my primary PC. I get to use it for pure work for about 30-40 hours a week. This is why the design of my home workspace has become more important for me than before.
I think that people who work with me knows I usually work in a well designed workspace, in which everything is nice and comfortable. The monitor is in the right size, the keyboard is placed in the right place, headphones are available at hand, the desktop (of the real desk) is clean, etc.

Ever since I work more at home, I noticed stuff is not as comfortable as I'm used to from my workplace. After some time I finally realized what bothers me, and made the adjustments:
  1. The correct distance from the monitor. I noticed that I'm actually sitting too far from my monitor, and from the desk as well. Sitting correctly forces me to sit with a "straight" back, not using the arm support of the chair, and strain my eyes less. The monitor should be about arm-reach away.
  2. My desk is now way cleaner.
  3. Cords. For a good reason this is the title of this post. I had tons of cords everywhere. I have so many devices on my desk and around it, that I got out of free USB connections (I have 8 slots). So I decided to go cordless. A bluetooth dongle and a USB hub did the trick. Now, I have a USB hub sitting on my desk, already with different types of cables connected (mini-USB, micro-USB, etc.), ready for devices to be inserted at need. No more USB extension cords. No more bending over to the PC in order to connect something. The next two bullets are about getting rid of non-USB cords.
  4. I love my laptop keyboard very much, and hate standard PC keyboards. I even posted a survey about it a while ago. After a search for a keyboard I'd like, and something cordless, I eventually settled on MS Wireless Desktop 3000. The mouse is big and solid, and not some toy-ish mouse, and the keyboard is soft and ergonomic and also reminds me of my laptop keyboard. I don't care about the rest of the functionality provided. The USB dongle required is tiny, and doesn't need an "eye" within the range of the keyboard, like other wireless keyboards. This is a big plus, since it doesn't require any cord to be stretched from the PC to the desk.
  5. Bluetooth headset. I hate my current headset. It has a cable that splits to the green and pink input jacks on the soundcard (speakers and microphone), and I can't stand up during work, to stretch myself, without accidentally pulling the cable. Now I await a DealExtreme delivery of Nokia BH-503, so I could go cordless in this field as well.
  6. Finally, a good, fast, WiFi router (supports N spec) is installed, so whenever I want to get away from the wires and the noise, and sit in my porch - I can.

Friday, October 1, 2010

Get Things Done

Recently I felt a huge decrease in my productivity. I noticed I'm trying to work on too many things at once, and not achieving anything. Moreover, I had to deal with a lot of pressure at work, while filling in the job of 2-3 people at once, while trying to cope with helping younger teammates to solve their own problems.

Actually, being distracted by teammates' questions can be a huge set back for productivity, as it breaks concentration when they approach you, and after 15 minutes, when I'm finally back in the zone, they break it again.

So I published this short survey on Buzz (which is a great tool for surveys) asking what other people do in order to stay concentrated and get things done.

The obvious answers were already known and implemented by me: put the headphones on, get away from everybody, etc.

Other answers were to manage a TODO list, and close any application that might distract you (GMail, RSS reader, IM, etc.). Even though I had those things in my mind for a while, I decided it's time to give it a go.
Boy was I surprised. My productivity peaked back to the top.

Now I allow myself to chat with people and "clear" my RSS list only after completing tasks. Every new task I get, and not only work related, is written down instead of being "managed" in my head. The reduction of tasks "managed" in my head really helps, and whenever I finish doing something, I revert to the list and mark something as DONE. The feeling is great, and there's a bonus: chatting or reading interesting blogs.

The TODO list is managed in a very simple manner: a Google Doc. And when I'm not near a computer: via my Nokia's task list, which is later sync'd to the Google Doc.
Another bonus: having everything managed, helps dealing with unpredictable tasks (aka BALTAM in Hebrew), since being distracted wastes less time when trying to get back on track. The proof for the system being successful is that ever since I started using is, I have more time to blog :)