Be aware of Windows (Russian)!!!

Windows is bad for you

My latest speed test on my home connection:

Powered by

How to change schema for database object (MS SQL 2005)

exec sp_changeobjectowner ‘<old schema>.<object name>’, ‘<new schema>’;

Passing data using AJAX

The XML data is not the only way how to pass data from the server to browser. The data can be passwd as XML, HTML, just a string, or JSON.

What is JSON?

JSON is JavaScript Object Notation. It is much easy to work with JSON then parse XML data.

When you receive JSON data from the server you will need to evaluate the data into variable and access the data as structure or an array.

This is JSON data:

[ { author: 'name a', title: 'title #1' },
  { author: 'name b', title: 'title #2' },
  { author: 'name b', title: 'title #3' } ]

This is how to access this data:

var books = reval( req.responseText );
element.innerHTML = books[0].author;

This is how to modify and produce JSON stream:

books[0].author = "me";
String newJSONstream = books.toJSONString();

This is simple. Enjoy!

Seting up NIS automount on Tru64 UNIX (OSF)

Recently I had to enable auto-mounter onTru64 UNIX. The things worked well for NFS host mounts but keep failing the home folders for user login.

The fix was simple. I added following to the end of the automount argument line “/home -nosuid auto.home“.

The full argument line is: “-m /net -hosts -nosuid -M / /home -nosuid auto.home

PS: easy way to setup automount is to use X-window appliaction sysman:

# sysman nfs

VS 2005 ActiveX failed to load in browser windows (Microsoft.mshtml).

Recently I was struggled with issue where ActiveX component developed in Visual Studio 2005 was working on some machines and failed to load into browser window on another.

It was no evidence on what is missing until I spot a message where it was complaint about missing Miscrosoft.mshtml assembly.

It turnout that the Visual Studio 2005 Setup wizard is not adding this assembly into dependency list and therefore into package.

To fix the problem I manually added Miscrosoft.mshtml.dll and stdole.dll to the setup project to copy them into application folder without registration.

Clothing: How to Iron a Button-Down ShirtLifehacker

button-shirt.pngIroning a button-down shirt is a bit of an acquired skill. Home improvement site DIY Life has a quick and dirty tutorial on how to get that shirt wrinkle-free in five easy steps:

  • Begin with the collar, inside and out, starting at the tips and working your way to the back.
  • Do the cuffs.
  • Slide the shoulder onto the end of the board and do the sleeves. Start new the cuff opening then move to the top.
  • Iron the body. Start at the top and go down. The back is low priority — it will wrinkles from sitting against the back of a chair or in a car.
  • Slide the tip of the iron between the buttons.

Pretty easy. Personally, I hate ironing, so I just hang my wrinkly clothes in the bathroom while everyone showers and let the steam do the work for me.

Featured Download: Puppy Linux 3.0 Now AvailableLifehacker

puppylinux.png
PC only: Minuscule Linux distro Puppy Linux got a major upgrade this week to version 3.0, adding Slackware compatibility (which lets users install Slackware packages on Puppy). At a slim 97.6MB, Puppy’s meant to be run from a bootable CD or USB drive and offers a full-on portable desktop operating system environment with the Mozilla Application Suite, AbiWord, Sodipodi, Gnumeric, and Gxine/xine built in, and the whole shebang runs from RAM. Puppy’s a free download for PC’s that can boot from USB stick or CD.

Shopping: Buy the Right Size TV to Fit Your SpaceLifehacker

hdtv-size.png
If you’re finally taking the plunge to the world of HDTV, it’s tempting to go out and buy the biggest screen you can afford. But before you whip out your wallet and plop down for a 65-inch HDTV, make sure you take your practical viewing distance into account with CNET’s simple TV-viewing distances chart. For example, if you want to buy that 65 incher, you’d better be able to veg out at least 8.1 feet away from the screen. Want some more HDTV buying tips? Check out our HDTV guide.

Lifehacker Top 10: Top 10 Wi-Fi Boosts, Tweaks and AppsLifehacker

wifi-header.jpg
No doubt you’ve got a home wireless network or you've connected to hotspots at the local coffee shop or airport—but are you getting the most out of your Wi-Fi? Whether you want to strengthen, extend, bridge, secure, sniff, detect, or obscure your signal, today we've got our top 10 best Wi-Fi utilities and tweaks for the power wireless user. Photo by thms.nl.

10. Improve Coverage with Better Placement

While there are several software and hardware hacks for boosting your Wi-Fi signal (see below), there are also a few simple adjustments you can make to an unmodded access point to get the best coverage. The NY Times says:

  • Place the base station centrally on an upper floor, or atop furniture, because radio waves spread best laterally and down

  • Reception will be better if the signal does not have to travel at steep angles and if it doesn’t have to go through thick walls, mirrors, fish tanks or anything metal
  • Place wireless network components far from other devices in the house that can cause interference, like cordless phones, microwave ovens, baby monitors or halogen lamps
  • Change the default signal channel (usually set to 6) to avoid interference with neighbors’ network devices

9. Extend Your Signal with a Repeater or Wire It With a Bridge

Still not getting enough bars in the basement? Have to perch yourself on the windowsill to get a usable signal from your neighbors? Get yourself a wireless signal repeater (or turn your own router into one) to extend your coverage even further.

For those of you with wired devices far from the access point who need a little connection love, a wireless bridge (sometimes called an Ethernet converter) can be used to convert your wireless signal and provide a few plugs for wired devices (like your media center in the living room.)

8. Sniff Packet Data with Wireshark

On a wireless network and want to take a peek at some of the data passing through the air? Previously mentioned Wireshark (formerly Ethereal) is a handy packet sniffer for those of you interested in seeing the nitty gritty on your wireless network, as shown:

7. Enable WPA Encryption

wpa.pngWi-Fi security isn’t very secure at all, but if your access point is more secure than others, evil-doing crackers are more likely to move on. In the spirit of “best of what’s offered” security, most wireless access points are set to use WEP encryption to password their connections, but WPA (supported on most modern routers and computers) is less easy to crack than WEP. To switch to WPA, on your access point’s administration page, change the security level and set your WPA passphrase to something long and difficult to crack.

6. Limit MAC addresses

macaddresses.png

Along the same lines, you can limit exactly what devices can connect to your wireless network by creating a device access list of MAC addresses. (A Media Access Control address is a unique identifier for networked devices like laptops, phones, repeaters, etc.) Head on into your access point’s configuration screen to set what MAC addresses can use it (like, say, all the computers in your house).

5. Stop Broadcasting Your Network’s Name

Don’t want to advertise your network in the surrounding area? Turn off SSID broadcasting, which will keep regular old laptops and other devices from listing your network as one of the detected options. To do so, in your access point’s administration page, uncheck “Enable SSID Broadcast.”

Like the other security measures mentioned above, just because SSID broadcasting is off, it won't prevent users with the right software from seeing your access point—just users with default wireless detection their computers. Speaking of the right software…

4. Detect Networks with NetStumbler

The excellent free NetStumbler software for Windows will detect all the wireless networks in your area, whether or not the SSID is broadcasted, whether or not they’re passworded and how strong the signal is. Great for war-driving or internet cafe hunting, Mac users should check out MacStumbler.

3. Share Your Computer’s Wired Connection Wirelessly

In a hotel room with one Ethernet jack and two laptops? Plug one computer in and have it share the internet connection wirelessly with the other. Here’s how to share a wired internet connection with other computers wirelessly.

2. Boost Your Signal with Tinfoil

If high placement isn’t getting your signal as far as you’d like, break out the Reynold’s wrap. This video shows how a little tinfoil fashioned into a “Windsurfer” parabola can increase your signal strength several decibels.

1. Unlock Your Wi-Fi Router‘s Capabilities with the DD-WRT Firmware

dd-wrt.jpg

Boost your signal, throttle bandwidth for certain applications, turn your regular old router into a signal repeater and more by installing the fabulous Linux-based DD-WRT firmware which unlocks tons of configuration options on your Wi-Fi router. Here’s how to upgrade your router with the DD-WRT firmware.

Any good security measures, hacks, tweaks or apps we missed? Tell us about ‘em in the comments.

WP Like Button Plugin by Free WordPress Templates