web-development

Are HTML5 tags are not block level elements?

If I have a HTML element <header> and apply some margins to this HTML5 element through CSS as: header{ margin:10px 0; } The <header> element is not spaced 10 px from rest of the elements. But if I modify my CSS rule like below: header{ margin:10px 0; display:block; } then the <header> element is spaced accordingly. So, my q...

Windows 2008 server -hardware planning help

Hello all, I am setting up a website on win2008/sql2008 (64 bit) on a dedicated server, which may get 50K to 100K users/visitors. Concurrent users at any time may be 1000 (max). Users will log in 4 to 6 times a month and spend 10 minutes (maximum) on the site for minimal data entry. There will be some reporting run at night. The site h...

Best practice for Web-Interface modifying config-file

Hello altogether For a new project, I have to write a webinterface, which has the capability of modifying a configuration file. The system this will run on is a standard debian installation with apache and php5. The only idea I came up with so far, is to write small c programms, setting the setuid bit to root and supplying the string t...

Asian URLs or English slugs in webpages

Here's a tough one: I'm working on a website where most of the content is in Japanese. But consider this url: http://www.stackoverflow.com/質問/日本語のURLはどうする Most URL parsers, including stackoverflow's, don't know where to delimit URLs that contain Japanese. Not good. I haven't checked with other browsers yet, but Google Chrome will di...

How do I delete an object in a django relation (While keeping all related objects)?

I have the following model: One name (Char) Many one (ForeignKey,blank=True,null=True) title (Char) I want to delete a One instance and all related objects should loose their relation to the One instance. At the moment my code looks like this: one=One.objects.get(<some criterion>) more=Many.objects.filter(one=one) for m ...

Should I worry about RSS urls for SEO?

Very quick question: should I worry about RSS urls for search engine optimization? Can I just use an obscure ID number, or should it be as clean as an HTML document link? ...

Self Contained Pinax Project

I cloned a basic project. I was wondering which files do i have to copy so it becomes a completely self-contained project? I am referring to the css files, the templates, other apps? Also, where will these files be located. ...

Uploading a site with Dreamweaver

I'm using Dreamweaver to publish my website to the web server. I have a php file called init.php that I include in my pages containing information relevant to connecting to my DB. The information is different depending on whether I'm running on my local test server or on the remote server. I would like to have a remote init.php and a ...

help sorting this array.

So I am looking to sort the multi dimensional array below by "fk_page_id" ascending. Does anyone have any pointers. I think usort() is where I have to look but it seems like I cant find anyone with my specific array structure. Array ( [0] => Array ( [title] => subpage of subpage! [id] => 5 ...

How can I make a Playstation 3 Game card?

Hi there... I want to make a ps3 card like this one: http://gamercards.exophase.com/2516.png using the data from the ps3 network site, this one http://us.playstation.com/publictrophy/index.htm?onlinename=bruno_shady but I want to make something different, something that show only the name of the person and the games that the person ...

Are JSF/Seam/Spring suited for non-enterprise work? (website, not "web application")

I'm starting work on a new website (sort of an e-commerce product comparison thing) and I'm trying to choose what technologies to build it on. I've ruled out PHP and I don't think I want to use Python or Ruby. I really like Java and Hibernate so I started looking into Java-based web technologies. My problem is that all of the documentat...

Default initialization of variables in action forms.

Hi Guys, i have made a from like : MyForm extend ActionForm{ list<Menu> MenuList=null; MyForm(){ super(); setMenuList(); //initialize menu list } } Menu object has string desciption and boolean variable for selected or not. In web page, i am iterating the list to display all the menus and checkbox over those boole...

Why is Dev Tools bar empty?

I'm using Chrome-compatible SRWare Iron 5.0.381 on XP, and was checking out what Chrome has to offer to developers, eg. inspecting the contents of the DOM of a currently-loaded web page. But when I hit CTRL-SHIFT-I, the bar is totally empty: http://img230.imageshack.us/img230/3664/srwareiron50381emptydev.jpg Does someone why this is? D...

PDF mimetype, is this a bug!?

I'm uploading a pdf via a ASP.NET web form and checking it's MIME. Sometimes the MIME is reported as applicaton/pdf, not application/pdf. Is this a browser bug? Why would application be spelled wrong? ...

How to scrape websites such as Hype Machine?

I'm curious about website scraping (i.e. how it's done etc..), specifically that I'd like to write a script to perform the task for the site Hype Machine. I'm actually a Software Engineering Undergraduate (4th year) however we don't really cover any web programming so my understanding of Javascript/RESTFul API/All things Web are pretty l...

HTML5 Web SQL Database for non compatible browser?

I really like sql-database in HTML5, but so far only Opera and Webkit browsers support this feature. Are there any javascript libraries out there that replicate this feature or provide something close to this? Thanks! ...

stop jquery live from hooking all the children.

I can't stop the stupid thing from firing off an event when hovering over the children of item. I only want the event to fire via the div.item element, not the div.itemChild. This is driving me nuts please help. event.stopPropigation does not work. nor does if(!$(event.source).is('itemChild')), for some reason is() alway returns false. ...

Redirect users to logon page only if not authonticated in asp.net MVC

Hi In my ASP.NET MVC project i have following tag in in web.config file <authentication mode="Forms"> <forms loginUrl="~/Account/LogOn" timeout="2880"/> </authentication> This causes even the authenticated users but unauthorized resource requested users to redirect to logon page. but i need only to redirect this page if user ...

In how many ways a website can be accessed and should we consider all condition?

As far as i know a website can be accessed on Desktop Browser Text only browser Mobile phone browser PSP Iphone/ipad touch screen and conditions JavaScript disabled CSS disabled JavaScript and CSS both disabled images disabled with screen reader and keyboard with keyboard only with keyboard and mouse combination. Color Monitor B&W ...

Encryption filter on Sun One 6.1 web server not detecting requests

Hi all, I have a Sun One 6.1 web server that proxies requests to a WebLogic app server, and I have created an encryption filter in Java that encrypts the request parameters before it is forwarded to the app server. The filter is packaged in a WAR file and deployed to the web server root (/). My intention is to pick up all requests, lo...