Showing posts in the category tech. Show all posts
Feb 28
Running DOS Games
Posted by Matthew at 8:22 pm on February 28, 2010 in tech | No Comments »

Running DOS games is hardcore. Not, admittedly, as hardcore as text-based games, but up there. Unfortunately, in the last several iterations of the Windows operating system, DOS support has been provided only by emulation, and not at all on 64-bit systems.1 Your hardware configuration also determines how choppy/way-too-fast your game will render. How then, shall we play DOS games? Enter DOSBox.

You can check it out and get the link from our Recommended Software List. Once you’ve installed it, this is to help you how to customize DOSBox so it doesn’t have an annoying console window running in the background, and set it up for your DOS games folder, so you don’t have to mount it every time.

Simply create a shortcut to the .exe file, and then right-click on the shortcut, select ‘Properties,’ and edit the end of the ‘Target’ entry to include -noconsole -c “mount c ‘c:\DOS Games\’”. Replace C:\DOS Games with whatever directory is your games folder.

Note that you will still need to mount C: first by typing “C:” without quotes and hitting Enter. It should already be in your DOS directory due to our above hack. To install a game, open the zip archive or folder and run setup.exe or any other setup file if there is one. If everything is already extracted and ready to rock, you can simply navigate to that folder from within DOSBox, and run the game executable (e.g. keen4.exe).

To control the game speed, Ctrl+F7/8 lowers and raises the Cpu Cycles, and Ctrl+F11/12 lowers and raises the Frameskip. For more help getting things running and learning commands, type “intro” without quotes into the prompt and hit Enter.

Happy DOS gaming!

  1. See here for more info.
Jan 31
A few Windows hacks
Posted by Matthew at 8:14 pm on January 31, 2010 in tech | 3 Comments »

Useful Tips

Change XP Start Menu Text

Follow these steps to change your start menu text from the default ’start’ to whatsoever you may desire. First you’ll need to download and run Resource Hacker.

1. Within Resource Hacker, navigate to C:\Windows\explorer.exe and open it.

2. Expand the String Table folder and you should see a bunch of numbered folders.

3. Expand number 37 (or 38 for Windows Classic theme) and click on 1033 with the little gear next to it. In the right panel, replace the text ’start’ with anything you want. I changed mine to ’stop.’

4. Click on the ‘Compile Script’ button.

5. If you want to change the text that appears when you hover over the start button, expand folder 34 and change the default ‘Click here to begin’ to something like ‘Click here to get real!’ Compile changes.

6. You can also change the Windows icon on the start button to something else while you’re at it. First, collapse the String Table folder and expand Bitmaps at the top of the list.

7. Open 143 and click on 1033, where you’ll find the default Windows icon. To replace this you will need a 25×20 image with a .bmp extension.

8. Go to ‘Actions’ in the file menu and click on ‘Replace bitmap,’ then browse to your replacement file. Select it and hit ‘Replace.’

9. You are now ready to save your work. Go to ‘File’ and select ‘Save as’. Save it as something other than explorer.exe, such as hammertime.exe (mine) or explorerhack.exe.

10. Now to modify the Registry so your system uses the hacked file instead of the default explorer.exe. Open the Run dialogue (Win+R) and type ‘regedit’ without quotes. Hit Enter.

11. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon, and in the right pane you should see the entry ‘Shell.’ Double click on this and replace the text ‘explorer.exe’ with the name of your hacked file.

12. Close the Registry Editor and log out. Log back in and you should be set! Enjoy.

Here’s my end result:

modified start menu text

N.B. from TheElderGeek.com:

A number of users have written to say that when the text on the Start Button is changed, the Search function from the Start Button (right click) context menu ceases to function. That’s true, it does, and if I ever used that particular function I’d have been aware of the problem. I don’t use it, so I wasn’t aware, but now you’ve been warned. As far as I know there are no other caveats associated with the modification.

(Re)Enable Task Manager

If for some reason, virus or otherwise, your Task Manager has been disabled, open ‘regedit’ in the Run dialogue (Win+R). Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr, and make sure it’s set to 0.

Lock Workstation Shortcut

Sometimes you don’t want to have to hit Ctrl+Alt+Del and click ‘Lock Computer’ in order to lock your workstation. Sure, you could use Win+L, but maybe those features are disabled on your *cough* school network. At any rate, here’s a cool way to make a shortcut on your desktop that does just that.

1. Right-click on your desktop, select New and Shortcut.

2. In the location field, type “rundll32.exe user32.dll,LockWorkStation” without quotes.

3. Name it whatever you want (Lock Workstation, for example) , and you can give it a cool lock icon from shell32.dll (see below).

shell32.dll

Speaking of which, shell32.dll may be copied between Windows versions (rename as shell32xp.dll or something to distinguish it), allowing you to use the XP icon resources for Vista, or some other combination. To use one of these icons for a shortcut, just right-click, go to Properties and Shortcut, then Change Icon. Click on Browse and navigate to C:\Windows\system32\shell32.dll, or shell32xp.dll for your new icons.

Fun Pranks

Change Icon to Shutdown

This simple prank changes an icon so it shuts down the computer. This can of course be useful, but is best for changing an icon someone usually uses to surprise them (lol). Right-click on the desktop, select New>Shortcut, and type C:\Windows\system32\shutdown.exe -s -t 60 -c “A deadly virus has taken control of your computer.” The 60 denotes seconds until shutdown, and can be replaced with a different value. The text in quotes is a message that accompanies the shutdown command, and it can also be replaced with something of your choice, like “kthxbai.” Alternatively, you can omit the -c parameter and text and set the -t value to 0 for a clean, instant shutdown. Very effective. Oh yeah, and if you should need to cancel the shutdown, hit Win+R and type “shutdown -a” without quotes.

Remove Shutdown from Start Menu

If someone uses the Shutdown option from the Start Menu to shut down their computer, you can throw them for a loop by removing it with a simple registry edit. Open the Registry editor and navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer and double click on the ‘NoClose’ entry in the right pane. If it’s not there, right-click and select New>DWORD Value, naming it NoClose. Set the value to 1 to disable the Shutdown button. It doesn’t actually remove it, but it won’t work – even more frustrating. To re-enable, change the value back to 0.

Print Screen Desktop Prank

The classic old standby.

1. Take a print screen (Prnt Scrn key) of the plain desktop and save it in an image editor such as MS Paint. Then set it as the desktop background.

2. Right-click on the desktop, select ‘Arrange icons by,’ and uncheck ‘Show desktop icons.’

3. Finally, right-click on the Taskbar and uncheck ‘Lock the Taskbar’ (if it’s checked). Click on the top edge and drag the Taskbar down as far as it will go. The desktop now looks normal, but is quite unusable.

Virus.bat

Simply type “start virus.bat” without quotes in a text file. Save it as virus.bat. Opening this will start an endless loop that will bog down and basically crash the computer. You can, however, try to kill the processes in Task Manager or log out to recover your system.

Jan 21
How Facebook crunches images
Posted by Nathaniel at 8:48 pm on January 21, 2010 in tech | 1 Comment »

I have found a few things out about what Facebook does to your pictures after you upload them, 100% by my own experimentation. In list format:

  • Scales the image down so that the longest side is 604 pixels if it was bigger than that to start with.
  • Recompress all images as JPEGs at quality 85. I found this out with ImageMagick: identify.exe –verbose filenamehere.jpg. Hat tip to Arjan van Bentem for pointing me to IM. It doesn’t look like 85 is all that bad, by the way, if Wikipedia’s sample JPG compressed photos are anything to go by, but do bear in mind that multiple JPEG resaves will degrade the image quality, since it is a lossy format (but of course just copying or downloading it won’t mess with it at all). Also, Facebook will recompress it even if you upload a JPEG image at the correct size (using quality 85 doesn’t work either; it gets recompressed at 85 again)
  • Converts image to Grayscale mode if it is a grayscale image. I suspect this might make it smaller.

So, beware of decreased image quality if you are uploading a twice-(or more)-saved JPEG. That being said, I wouldn’t worry about it much, since it’s only Facebook. If you have a slow link to the net, I’d say go right ahead. I wrote about sizing your photos down for faster Facebook uploads a while back, so if you need some instructions, here you are.

Oh, and one more thing. I have found that JPEG compression can be used to artistic effect. Orange Peal Design’s site is a good example (in fact, the only one I know about). Gives it a certain feeling and not just a crappy impression. Strange how these things work.

Jan 6
“Taming” Avira and console mode for Linux
Posted by Matthew at 9:02 pm on January 6, 2010 in tech | 1 Comment »

Avira

Two quick things today. First, a tip on how to disable the splash screen and annoying popup “nag” screen on Avira Free AntiVir version 9. To get rid of the splash and nag screens, just follow the instructions here. You can also disable the little update notifier following these instructions. As an aside, this section of the title was loosely derived from a Grand Stream Dreams blog post on Taming AVG Free version 8.

Linux

Next, switching to console mode, a useful tool for Linux users. While it is usually preferable to use some form of GUI for general computing tasks, there are times, even if you’re not running a specialized server or recovering a corrupted machine, when a simple comand-line interface would come in exceedingly handy. You can, of course, open a terminal window to get a text interface, which is great for quickly and efficiently running powerful commands, while looking and feeling hardcore. The advantage here is that you can open other windows and continue using the GUI. However, there are times when a program crashes or the GUI freezes, and dropping to console mode acts as the equivalent of the Windows Task Manager. This can be easily accomplished with the shortcut key Ctrl+Alt+F1, with F1-F6 opening separate terminal instances. You can then terminate the offending program or restart the X server, and return to the GUI with Ctrl+Alt+F7.

Further reading here.

Jan 4
Lorem ipsum dolor sit amet.com
Posted by Nathaniel at 8:00 pm on January 4, 2010 in tech, uncategorized | 1 Comment »

Loremipsumdolorsitamet.com is no longer online. At least not in it’s proper form. However, you can view a copy right here. As the page says upon clicking the [info...] link, “Purely coded in JavaScript. This means you can save this page locally (File → Save As…) for offline use.” Or, online use in a different place.

So, what is it? A filler text generator with a choice of Lorem Ipsum, English, Jabberwock, or Tagalog. Enjoy. Especially if you miss it.

Update: Here is the official new location, I think. Complete with background image and header (yum yum). It seems to have originally been designed by Rico Sta. Cruz. The source code refers to his old site, ambiescent.com. His new site is ricostacruz.com, and Lorem Ipsum is now hosted at a subdomain there.

Dec 30
How to install mscorefonts in Ubuntu 9.10
Posted by Nathaniel at 6:21 pm on December 30, 2009 in tech | No Comments »

It seems from what I’ve read around the interwebs, the package name might have changed. Also, in my fresh installation from the LiveCD, the Microsoft Core Fonts listed in the Ubuntu Software Center doesn’t have an install button. Fear not, though.

Open a terminal (Applications > Accessories > Terminal). Type this and press enter:

sudo apt-get install ttf-mscorefonts-installer

Wait for it to do it’s magic and you should be good to go. If you run into problems, I suggest starting at Google. Installing the MS core fonts seems to be an issue in this release, but then again maybe I don’t know because I’ve never had problems with it before.

Dec 30
Dream DNS scare
Posted by Nathaniel at 8:31 am on December 30, 2009 in tech | No Comments »

This morning I dreamed that Archie Buck1 had reported on Facebook that his internet service provider’s DNS went down (I checked Facebook before I wrote this post: it didn’t really happen). Yikes. Because that’s my ISP now, too.

So, if your less of a computer person, you’re probably wondering what exactly DNS is. It stands for Domain Name System and this is what it does:

The most basic task of DNS is to translate hostnames such as theos.in to IP address such as 74.86.49.131. In very simple terms, it can be compared to a phone book. DNS also has other important use such as email routing.

From Vivek Gite’s post Free Fast Public DNS Servers List.

What does this mean for you or me? It means if the DNS server we use is down, we can’t type in www.google.com and get to Google because our computer doesn’t have a way to find the correct IP address behind that domain name. Same for Facebook, Twitter, or anything else.

And so, I got to thinking I should probably grab some alternate DNS server IP addresses, know how to use them, and tell you to do that, too.

First off, a list of servers (IP addresses are comma separated):

Thanks again, Vivek.

And now, how one uses them. Google has a page on how to configure Windows, OS X, and Linux to use their DNS servers. Just replace the Google Public DNS IP addresses with those you want to use (or use them if you want). Go copy that info right now (and the list of DNS servers above (or Vivek’s)). If you’re on Windows XP, try here.

And… it might never happen to you, but if it does it can be a real pain; you have an internet connection but you just can’t go anywhere (or some places). So I’d recommend stowing away that information in case it ever happens. Here are some tips at Lifehacker to figure out if your DNS servers just went kaput or something else is wrong.

  1. Friend and former principal of the private school I attend (sort of this year)

« older posts