screenwriter, Kightlinger, hate

embedding fonts on livejournal

I've spent a lot of time knowing the ins and outs of my lj theme 'tranquility ii'. One of the things I have never been able to figure out is how to embed a font from my own personal font library so that that anybody viewing my blog will see my entries with my selected font, regardless whether they have a copy of it on their computer.


The font in question here is called Chandler, a vintage typewriter style font. From what I understand, embedding requires that a true type font be used. Is there a quick and easy way to convert a bitmap font to the required format? If so, would I be pursuing this objective in vain seeing as I don't know where to begin to embed a font for my livejournal entries?

Xfbdev startup on customize Linux kernel

Hi All,
I just finished working on Xserver startup on Linux machine along with configuring kernel for that. I hope this would be helpful to guys, who hold less experience in Linux world.

Before I begin, I just want to have some words with you guys that this blog is NOT a step by step guide to do things. It's just a list of my experiments I have done with development board. So this will provide an insight to people who are facing same problems as I did. But they must know some basics of Linux.

Personally I never liked spoon feeding, some answers need to be dig up by yourself.

So let's begin with Xservers. Xservers are most important thing for Linux GUI. In Linux environment, almost all Xclients (any GUI application) request to Xserver for Screen draw and other graphical operations(like Windows, button checkbox draw/movement on screen). The idea behind Xserver and Xclient is to run a light weight server which can process and send request to graphics hardware on Host machine. Now the Xclients can run on same machine or other and request to Xserver for graphical operations.

One can find more details about X system on

So Xervers can be said of two types. One is Xorg, full featured Xserver.
Second one is Xfbdev, which has some limited functionality as compared to Xorg. It is a generic Xserver, which does not know about the particular hardware and uses framebuffer provided by Linux framebuffer device.

Now let's move on to kernel configuration required for kernel.
The linux kernel must have support for framebuffer device and VESA driver support for framebuffer.
following options should be enabled in kernel config:
For Sandy Bridge architecture based boards, enable CONFIG_ACPI option too, to avoid DSDT table error.

After building the kernel, all you need to do is to copy the kernel image under /boot directory with name like 'vmlinuz-<kernel-local-version>' and make relevant entries in grub configuration.
In grub entry for the kernel, add 'vga=0x318' (or any other suitable vga mode) in kernel boot option. [0x318 represents standard resolution of 1028x768x32]
Now install the modules under /lib directory.

Also u may need to build an initramfs/initrd, required for RHEL/ubuntu file systems.
You can use dracut/mkinitramfs utility to build one.

Place it under /boot directory and add it to grub entry.

Under /boot/grub/grub.conf file, remove or comment out the line 'hiddenmenu' and set some time out.
Now reboot the system.

Select your custom kernel, and press enter. Kernel should boot and give you log in prompt. I have tried it with custom file system which does not belong to redhat/ubuntu. so i got command prompt. In order to have the same, one can add 'single' in boot option for custom kernel grub entry.
Ensure the enumeration of framebuffer device nodes, like /dev/fb*
Now execute 'export DISPLAY=:0'.
Run 'Xfbdev'.
Xserver should start and give you a graphical pattern with a X on it. X represents mouse pointer.
  • Current Mood

JS/CSS load order incoherency

[Edit: fixed CSS syntax in these examples. The development code is fine in that regard.]

Using Firefox 5 on Windows 7, I ran into two related problems that must be common enough for there to be standard workarounds.

1. CSS is not applied until after Javascript runs. Given the CSS:

#id { width: 50px; }

document.getElementById("id").style.width is undefined. This is using jquery's $(document).ready() which runs after everything else is supposed to be loaded. The standard body onload will run even earlier, with less of a chance that the CSS will be loaded if the problem is due to a race.

Javascript can see the CSS style if it is set in the contents of an HTML style="" attribute, but you lose the benefits of CSS if you have multiple tags sharing the same style.

2. Previously defined CSS does not apply to new nodes created by Javascript. [Edit #2: This does work. I had a typo in my code.]

div.myclass { width: 50px; }  /* CSS */
var node = document.createElement("div"); // JS
node.setAttribute("class", myclass"); // CSS is not applied.
node.className = "myclass"; // CSS is not applied.

One solution to this one is to code every single CSS style change in Javascript using the DOM, but I would prefer not to have to do that.

What are the best practices in these situations?

Spammer problem on Vbull. Anyone know how to program a challenge question?

Ok. This is a odd question guys but hopefully someone knows enough about Vbull so I can tell the admin.

I'm a moderator (just a member moderator, mind you) on a gaming forum. The trouble is we've been hit very very hard by spammers. Which is annoying the mods and admins to distraction.

We've added a mod called Spam-O-Matic that auto denies spammers from reging tho it's not perfect.

What I'd like to see done is (since the head admin does not like capatchas, she has trouble solving them) adding a challenge question on reging.(Like a game question that most should know, "Are you human?” or “Do you have a heartbeat above 0?”) The thing is we'd need to obscure the answer like a password. (We wouldn't want spambots to be able to figure it out easily!) The board itself is Vbull 4.03 if that helps..does anyone know a mod that could allow us to do that, and maybe randomize the question so it’d be more than one to further confuse spammers? Or could make one?
  • aeisor

Aesthetics vs Functionality

Where do you draw the line between looking good and working well? I feel obligated to give my clients as much control over the content of their website, but in doing so I think I subtract from what is visually possible.

How do you work around giving the client the freedom to update the content while still maintaining a visually pleasing site? I sometimes struggle keeping the creative juice flowing when [almost] every aspect of the site can be editable.

Inkwell Creative Hiring Web Developer

Inkwell Creative, a growing Portland, Oregon company focusing on web design, graphic design, interactive media, video and branding, is looking to hire a web developer. We are seeking a hard working team player and someone who is forward thinking when it comes to technology. You must be able to work with us in a collaborative team setting, know many coding and web programming languages and have a strong portfolio.

5+ years of experience
Strong portfolio
Must be collaborative
Knowledge of many coding/web development languages
Knowledge of CSS and HTML 5, Content Management Systems, Flash, SEO programming, Integration into Databases
Knowledge of iPhone apps a plus

DOE. Benefits and paid-for parking. This is a salary position.

Email a cover letter, resume and link to your online portfolio to Please include in your cover letter any outside hobbies, passions and interests. We kindly request no phone calls and no employment agencies.

kate the dreaming

Hide Things From Google?

I'll be the first to admit I only know minimal HTML and use WYSIWYG feature of Dreamweaver to edit most of the website, I'm working on. Sadly I'm the only one in an organization I'm involved with that knows the most about HTML/web development. I didn't create this website, but I know it was made by another graphic designer that probably cared more about the looks than coding.

Anyway, she made a portion only viewable if you log-in with a password and we host several documents like a phone tree up there. Someone found out about that you can access these without logging in if you searched for them on Google or other search engines. I'm wondering if there's anyway to hide these documents from Google/other search engines in Dreamweaver? Any information would be much appreciated, thanks!
  • 246_slc

Using Tags

I want to create a database of information, and I want to be able to support multiple tags to improve search capabilities.
I'm not sure what is the best way to implement such a (tag) system.
Wondering if anyone can point me in the right direction?