You are viewing the community [info]webdev

 

Web Developer

About Recent Entries

ARGH, any way I can find a anti spam guestbook? Feb. 23rd, 2012 @ 02:19 pm
[info]maryadavies
Ok, if you didn't know, HTML Gear is closing. I'd used them for guestbooks on my personal pages for a long time.

However they're closing, so I took them off. The service I switched to said they were anti spam but..

First entry I get is spam. It's proly time to start hosting the guestbook on my own server since I can. Mind, I have access to recapatcha which seems to stop most spammers. Is there any scripts out there that'd allow that?
Current Mood: aggravatedaggravated

My hyperlinks are yellow. Where in my code is it yellow? Feb. 17th, 2012 @ 07:58 pm
[info]charged_chaos
So, here is the website I've been working on. The links turn yellow on hovers:

http://www.ardentjourney.com/

I don't want them to be yellow, and I don't know where to change it in the code.

Any assistance would be greatly appreciated.

Coding book recs? Dec. 5th, 2011 @ 12:50 pm
[info]lelandism
Hello everyone. I was wondering if anyone out there could give me some recommendations on current html 5.0 books? Or even sites. Many thanks in advance.

embedding fonts on livejournal Nov. 10th, 2011 @ 08:56 am
[info]slavezombie


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?


Writer's Block: International Skeptics Day Oct. 13th, 2011 @ 11:51 pm
[info]decentdevill

What are you skeptical about? (religion, ghosts, Toddlers and Tiaras, etc.)

View 606 Answers

About my Ex and friend.
Current Location: India, Mumbai
Current Mood: skeptical
Other 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 http://en.wikipedia.org/wiki/X_Window_System.

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:
CONFIG_FB
CONFIG_FB_VESA
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.
» 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?


» RSS channel icon
Hi!

Can somebody explain me how to change my RSS channel's
default icon to personal logo (like those shown at the screenshot)?

Thank you!
» 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?
» 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.
Top of Page Powered by LiveJournal.com