Features of HTML

April 20th, 2018

Also, as a way to customize any page in line with the requirement of the particular functions unusual to the website, routing becomes important for the backend developers. Whether you have to do basic URL filtering on your house network or you ought to create complex rules for a sizable public network SquidGuard can do the job. Url routing has significance with regard to generating the traffic to the page and thus, among the critical points from SEO perspectives.

If you wish to be always at the border of your career in IT domain, you will need to groom yourself always and be updated with the most recent technologies. For instance, in Alfresco that is a popular open source enterprise content management system, javascript is employed in creating webscripts.

Ad Blocking DNS Server

April 13th, 2018

Many hosts allow you to register domains with them as well, so you might be in a position to receive it all done in 1 step. You may add them to your filter list so as to block nearly all of the ads. In only two or three minutes, your Pi will be prepared to begin blocking ads. Un-click any content particular controls.

DietPi can likewise be utilised in an identical fashion as a normal Raspbian or Debian server. This is meant for users that are technically capable of managing servers. If you really need to get fancy, consider utilizing a Virtual Server. To begin with, establish a lighttpd Web server.

Installing FreeBSD is simple, and the developers have created this kind of superb set of instructions that it is not necessary for me to re-write them here. It's also possible you don't require this file in any way, as if there are not any entries, it will merely use the default nameserver on the machine. Ultimately, be certain that the default Hosts file in Windows isn't modified. Just remember which you will want to allow root login over SSH to be able to edit these files.

windows automatic software updates

April 4th, 2018

You may directly install the most recent service pack, there is not any need to install the prior service pack's! Non-critical upgrades are made available in such way that there's a time period before we actually carry out the upgrade automatically. There are occasions when you will discover an app has updated and then end up wishing that the old version proved still around. In case you were in the center of some work and happened to be away from the computer for some time, then you could wind up losing some of your work due to the auto-restart.

Unfortunately, drivers can get obsolete with time, and they might even begin to cause problems. In most instances, automatic updates and the most recent drivers are available on the internet. Finally there is the problem of security.

HTML5 video buffering works better than Flash video buffering

August 20th, 2010

Support for the HTML5 “buffered” attribute was recently added to Firefox.

As I was playing around with the demo, I noticed that it worked much nicer than any video buffering I’d seen in flash (e.g. youtube). Specifically, if you load a video, and seek around to various points in the stream, flash will lose all buffered data except in a few specific circumstances (specifically, you have buffered a continuous range that includes both the current play position and the requested play position). Firefox with HTML5 video saves all the data it’s downloaded at any point, so you never need to redownload any data, and generally just works.

This is very nice. And if you needed any more encouragement, give up on flash for video, and switch to HTML5.

Application checklist

August 20th, 2009

Quoting from the Center for Cartoon Studies application checklist:


  • A minimum two page comic story starring yourself, a snowman, a robot, and a piece of fruit.


My desire for a giant, print-quality screen

June 4th, 2009

So I got curious today and was wondering how long it’ll be until we have giant, print-quality screens that can be hanging around on walls places and displaying stuff—the new part of course being print quality.

I had heard in the past that the middle range of print quality went from 300 dpi to 600 dpi, with <300 being low quality and >600 being high. However, I looked around while writing this up and found that much of that number has to do with displaying color, and the fact that printers typically work with only 3 colors in fixed sizes (plus black, which is not used in combination). This gives only 8 color values per dot, so they need to use more dots (more dots! Okay stop dots.) per area to get a given color.*

In place of “print quality”, then, I decided I really meant “the unaided eye can’t see pixel boundaries. Now, I have a little bit of experience I can bring to bear here: the OLPC, in monochrome mode, has a DPI of exactly 200. With that, I personally can see pixel boundaries only in small text, when I look very closely. To allow for the possibility of people with better eyes than me, and for proper letter spacing in small text, I’d say 300 dpi would be past the limits of all but a few people. This would be necessary for monochrome, and more than sufficient for color.

Now giant needs to be defined, and what I’m imagining is around 1 meter square (perhaps already too large for a high dpi to matter, but I know I’d be that close to the screen trying to read the book reflected in the mirror in the image taking up only part of the screen).

Assume that at least 85 HZ refresh rate is needed (I know people that can see flicker at 75 on a CRT, other technology such as OLED might make it harder to get annoyed by but still within the eye’s ability to see).

Putting it all together, you get a little under 12000×12000 pixels, and a total pixel clock needed of around 12 billion pixels / second.

Now, I’ve had trouble finding pixel clock numbers on modern graphics cards. The OGP’s upcoming graphics card looks like it’ll be 330MHz. I found a few numbers on older cards at about that range. My guess is that, since there hasn’t been a need for it, even high-end cards are barely above 500. If we say that improvement on this would follow a misstated Moore’s law and double every two years (probably underestimating potential in the early years, but then, they won’t do it anyway because there won’t be enough demand), it’d take about 9 years for a graphics card to be able to handle that many pixels.

If we assume that LCD and plasma can’t get that good a resolution and OLED will be needed (I’m imagining a very thin screen anyway), the question is then “will a screen of that size and resolution be feasible with OLED 9 years from now”. My guess is 9 years from now, if there were enough demand, something like that could be (very expensively) produced.

So, in summary, if enough people wanted it, in about 10 years… in reality, it’ll probably be barely possible to buy in 20.

* Modern printers apparently can have variable amounts of ink per dot, though not as much as monitors vary light

portage with user privileges

May 14th, 2009

Today I added FEATURES=”userfetch userpriv usersandbox usersync” to my /etc/make.conf on one of my gentoo boxes. These make portage drop root privileges when doing various parts of its package-managery stuff (and in combination, almost everything it doesn’t need them for). I ran into a small snag where some packages from the X11 overlay that pull the sources straight from git—they’d previously been fetched by portage as root, so the files on the system were owned by root and they couldn’t be updated by the new non-root pull. I fixed that by just deleting the files that were already there and letting them be pulled fresh with the right permissions, and everything worked.

It’s nice to see that, outside some bleeding-edge developer stuff that you can’t even get to without a good knowledge of the OS, this security feature just works. Hopefully it can be enabled by default soon.

Happy Zombie Jesus day!

April 12th, 2009

Today is zombie jesus day! So in the spirit of the day, I thought I’d write a little program so your computer too can have a zombie jesus.

File: jesus.c

#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>

int main(int argc, char **argv)
    pid_t  pid;

    pid = getpid();
    if (pid == getpid()) {
    } else {

    return 0;

And then…

$ ./jesus &
$ ps ax | grep jesus
19565 pts/0    Z      0:00 [jesus] <defunct>

Voilà! Your very own zombie jesus! (for 30 seconds)

(See also: http://en.wikipedia.org/wiki/Zombie_process

Computer without a CD/DVD drive?

December 19th, 2008

I had a thought today and I’d like to see what other people think.

I’ve been thinking about getting a new computer, in the “I won’t have the money for a while, nor will some of the parts I want be available for at least another few years, but I like thinking about it so I might as well plan it out years in advance” sense.

One of the things I’m thinking about is not getting an internal CD/DVD drive. Instead, I’d just get an external drive hooked up with USB or eSATA or whatever. This could provide:

  • Lower power usage—I don’t know how much here, but I suspect it’s some. Also, sometimes I’m too lazy to remove a cd, and then it spins up every once in a while.
  • Faster boot—fewer components to scan means faster. Especially when I leave an audio CD in and the drive has to spin up to see if it can boot from it.
  • Fewer cables inside—easier to work with and improves airflow.
  • Frees up a 5 1/2 inch bay for something else, if I ever need it

The downsides would include it being in the way on my desk or a pain to get out when I need it, and not being able to boot from it (maybe?).

What do people think? Worth it? How often do you use your drive? Anyone have actual numbers on power usage?

This is not right

December 10th, 2008

It takes a full 3 clicks to get from the wikipedia article on lolcats to the article on cheeseburger. Or from cheeseburger to lolcat. This is not right.


October 10th, 2008

http://vdash.org/ looks very interesting. It also looks like the kind of thing that could help me practice with really formalizing my proofs (though I think currently I usually know how, I’m just too lazy).

Your youtube four meme

September 27th, 2008

So I don’t think I’ve ever posted a meme on here, but this one from Christopher Blizzard is kinda cool.

  1. Open your fancy Firefox 3 browser.
  2. 2. Click on the awesomebar and type in ‘youtube’.
  3. 3. Post the first four videos that come up.

Here are mine.

Comments reenabled

June 1st, 2008

So after only a year and two months, comments are finally reenabled here. I’m now using Akismet and Bad Behavior for spam blocking. Hopefully, it will work out well enough to leave it open (I didn’t like having to skim through 200 spams a day to find the on average 0 actual comments there).

Wikipedia is supposed to make it EASIER to slack off, right?

April 13th, 2008

So I have a paper to research on coding theory (error correcting codes and the like) and I’ve been reading wikipedia pages for a few hours. I go to get a mint and decide it’s time to take a short break while I play around with the circular mints, trying to pack as many into one layer of the container as possible. As I read the wikipedia page on sphere packing, I come across

Sphere packing on the corners of a hypercube (with the spheres defined by Hamming distance) corresponds to designing error-correcting codes: if the spheres have radius d, then their centers are codewords of a d-error-correcting code. Lattice packings correspond to linear codes. There are other, subtler relationships between Euclidean sphere packing and error-correcting codes; thus, the binary Golay code is closely related to the 24-dimensional Leech lattice.

Grr. Stupid wikipedia, I was trying to slack off. >:o

Automatic updates

October 25th, 2007

This has got to be one of the coolest things I’ve ever seen about Mozilla as a platform.

Software Update - Sunbird

Grey Text Considered Harmful (to your eyes)

September 8th, 2007

Dear everyone,

Please do not use grey text on a white background. Use black. Grey is harder to read, causes more strain on the eyes, and makes me less likely to read what you say. Really. I recently realized that one weblog I used to read a lot I wasn’t liking nearly as much recently, not because the content was worse, but because it was actually more work to read and that made it not worth it.

So don’t do it. Please. Or I’ll just stop reading your stuff (maybe not even consciously).

And yes, I am aware that this blog uses it, by virtue of the default wordpress theme. I only just realized that, and am fixing it now.

Edit: So a wordpress update broke this for a few days. Fixed now.

Today I learned (2007-08-25)

August 25th, 2007

Today I learned that sort -R (random) will place two (or more) identical lines together in the output, even though the order will change each time it’s run (even with identical input). I wonder how they do this. Maybe they put everything in a hash, but with a random salt?

Getting rid of “Clear scrollback” in Pidgin (changing keybindings in GTK applications)

August 1st, 2007

For some reason, Ctrl+L in Pidgin is “Clear scrollback”, which is something I almost never want to do, whereas Ctrl+L in Firefox is the incredibly useful “Focus location bar”, the type of thing I hit hundreds of times per day. Obviously, this leads to a problem: I clear my pidgin window accidentally over and over again.

Luckily, the answer for how to fix this was in the pidgin FAQ—not this problem in particular, but changing keybindings in general. Just open up gconf-editor (Applications -> System Tools -> Configuration Editor from gnome, or gconf-editor from the command line) and set /desktop/gnome/interface/can_change_accels to true, then hover over the menu item you want to change the keybinding of and type what you want it to change to. I couldn’t figure out how to make it blank that way, but if you type one that already exists, that one gets overwritten, so I just changed “clear scrollback” to ctrl-f (which was Find) and then changed Find back to that and clear scrollback was cleared.

So problem solved. It was pretty darn easy for me, although I wonder how easily other people could have found the solution. In any case, the best solution would be to have it removed for everyone, so I’m going to report it and hope they agree it’s unneeded.


June 12th, 2007

I have never learned so much from, and only rarely been as entertained by, a webcomic as I am by Dresden Codak. I recommend it to anyone who doesn’t mind the fact that they will understand only about 10% of what’s going on.

Making Baldur’s Gate II run in a non-admin account on Windows

May 26th, 2007

Today I had the fun experience of dealing with Windows, and the also-fun experience of dealing with poorly-written Windows programs.

The reason for this, and the reason I didn’t just say “not my problem” and give up, was that I wanted to play Baldur’s Gate II. Specifically, I wanted to play it multiplayer, and my dad only lets my siblings use his computer under a limited account (the right thing to do), so I had to find a way to make it play. Installing could be done under an admin account, of course, but playing had to be done under a limited.

This is where the poorly-written bit became a problem. You see, Baldur’s Gate II, like about 97% of windows programs, violates the standards of what things go where in windows. This of course was not a surprise to me, just an annoyance. So I was determined to find a way around it.

The first, most obvious problem, was that it needed to write to files in the program files directory (like, e.g., save files. They’re not supposed to go there! They’re supposed to go in the Application Data folder in the user’s account! I’m not even a windows developer user and I know that!), which limited accounts aren’t allowed to do. Easy fix: Change the permissions on all those files to let anyone write to them. Roadblock to the easy fix: XP home doesn’t have the advanced security tab that lets you control the access control lists. Doh. So with about 10 minutes searching online, I finally found out about the cacls command, which can be run from the command line even in home edition. I got the funness of finding out by trial and error that without the /E switch, it will remove the entire list when you do /P, even though it says it’ll “replace the user’s” permissions. Luckily I’d listed them all out before and still had them on screen. Final command for that: cd installdir; cacls "BGII - SoA" /T /E /P Users:F

Then, it still didn’t run. When you started up the game in the limited account, it still, for some reason, thought it needed to be installed. I had thought (from reading support things on the official website) that making baldur.ini writable would fix that, but I was wrong. So: It must be a registry issue. Long story short, because I’m getting tired of writing about Windows: It was. /HKLM/SOFTWARE/Microsoft/Currentversion/App Paths/BG2Main.exe was readable by the limited user, but apparently, no, it needed to be writable as well, because the programmers were stupid and used the wrong registry call. (Thanks to regmon for helping me find that out). Fix: go in as admin, right click on that key, and there’s some properties that let you make it writable by all. Problem fixed, everything works now.

This all is just one of the many reasons I hate windows.

piping standard error

May 16th, 2007

I’ve often wished I could pipe only standard error to a command, leaving standard out to display on the screen as is. One place this would be useful, the one that finally got me to act, is to make compiler warnings show up in a different color, to make them more noticeable.

I decided grep ".*" would work quite well for coloring things, since I have --color=AUTO on by default. The problem, though, was how could I get standard error to go to grep instead of standard out? (I have green text on a black background, and grep turns what it matches red. If I piped standard out to grep ".*", I’d get red text with green errors, and that’s just backwards :P)

The internet wasn’t very helpful. It gave me a bunch of things halfway there, like redirecting standard error to standard out, and even saving standard out as a file and redirecting standard error to standard out and piping that, but I wanted standard error to stay standard error, standard out to stay standard out, and them both displayed on screen like normal, only with stderr having been run through a command.

So, of course, I had to do it myself.

Here’s what I came up with: (command 2>&1 1>&3 | grep ".*" 1>&2) 3>&1

So how’s this work? Well, first stdout (file handle 1) is redirected to file handle 3. Yes, that’s first. Apparently they’re evaluated in backwards order. Took me a while to figure that out. Then stderr (file handle 2) is redirected to stdout (file handle 1). Then it’s piped to grep (or whatever command you want, I could see useful things being done with sed here) and the output sent back to stderr, and then finally file handle 3, the original stdout, is sent back to stdout.

I hope someone finds this useful. I know I will!


May 9th, 2007

Dear internets:

Is it possible to make a sentence using only onomatopoeia?

Thank you,


Linux TP down 10%!

May 9th, 2007

Thank you, bug 375760:

And a big thank you to roc for writing that patch, and vlad for reviewing it too!