friendly

URL Routing: Handling Spaces and Illegal Characters When Creating Friendly URLs

I've seen a lot of discussion on URL Routing, and LOTS of great suggestions... but in the real world, one thing I haven't seen discussed are: Creating Friendly URLs with Spaces and illegal characters Querying the DB Say you're building a Medical site, which has Articles with a Category and optional Subcategory. (1 to many). ( Could...

How to create a friendly date format (for example "submitted 2 days ago"

I'm meaning to format dates on my social web app much like Digg.com and other sites do. There, you see very friendly dates, such as: just now 3 minutes ago one hour ago 2 weeks ago 6 monts ago ...you get the idea. Before I wrap my head around creating such a thing, does anyone know of any ready-to-go script for this where I simply in...

How to create friendly URL in php?

Hi, normally, the practice or very old way of displaying some profile page is like this: www.domain.com/profile.php?u=12345 where u=12345 is the user id. recent years, I found some website, their url very nice, its like: www.domain.com/profile/12345 How do I do this in php? Please teach me, thanks EDIT: Just a wild guess, is it some...

Intelligencia.UrlRewriter

Hi, I'm using the Intelligencia UrlRewriter on a project. It's working fine to rewrite urls typed into the browser. For example, if I enter http://localhost/People This is being correctly rewritten as: http://localhost/People.aspx Now, the problem is, when I am in the code behind I need to access the Friendly URL, but Request.S...

CSSFriendly Problem just after publish to web server

Hi every one! I created a website and used css frienfly adapters for Menu, TreeView and GridView, all was correct, but after publishing it to my great web server, the menus and treeviews didn't load and there is just some bullets! Please help me, what should I do? you can see my work: http://jds.cot.ir left side I have a menu which d...

Intuitive scroll for embedded browser in WPF

Hi, I am working on a project built in WPF, which includes an embedded WebBrowser. The Browser that comes with WPF did not meet our needs, so we are using a WinForms WebBrowser in a WindowsFormsHost element. This all works fine, except the application is to be used on a touch screen, and the users are having a hard time using the tiny ...

There is any way to access directly a dll internal classes without copyright infringment?

I need to use some of the Microsoft.SqlServer.Types library internal classes. This is a .NET dll, which is easily disassembled to the language of my choice. So far I could copy its code to my application, but this probably makes my application legally unsuitable for distribution (I haven't read the MS Sql Server 2008 licensing agreement...

How can I customize "%s has encountered a problem and needs to close"?

Every Windows developer is all too familiar with an alert of the form: Foo.exe has encountered a problem and needs to close. I am resigned to my apps blowing up from time to time (only during development of course), but when they do, I don't want to see "Foo.exe" here. I want to see a "friendly" name such as "FooBrowser™". I've search...

which is better friendly url among the these ?

hi i want to know which of the following urls is best to use among them: http://www.website.com/index.php?i=123 http://www.website.com/i123/item-name/ http://www.website.com/item-name/i123/ http://www.website.com/i123-item-name.htm http://www.website.com/i/123-item-name.htm all comments are welcome.. ...

Getting started with the Friendly ORM

I'm following this tutorial: http://friendlyorm.com/ I'm using InstantRails to run MySQL locally. To run Ruby and Rails, I'm using normal Windows installations. When I run Friendly.create_tables! I only get an empty Array returned: => [] and no tables are created in my 'friendly_development' database. Any help on this on one? Thanks!...

Can the Friendly ORM be used alongside a traditional database schema?

Can I use ActiveRecord for existing models and Friendly for new models? Basically, I want to decide which models I'd like to be schemaless and which models I'd like to be done the "old" style. ...

Select Disctinct with Friendly ORM

Hi, I'm trying to use the Friendly ORM in combination with Sinatra for a small side project, but I'm having trouble implementing a DISTINCT type pattern. Here is an example of the model class: class Game include Friendly::Document attribute :user_id, Friendly::UUID attribute :friendly_team, String attribute :opposing_team, String a...

Java: Friendlier way to get an instance of FontMetrics

Hi people, Is there a friendlier way to get an instance of FontMetrics than FontMetrics fm = Graphics.getFontMetrics(Font); I hate this way because of the following example: If you want to create in a game a menu and you want all the menuitems in the center of the screen you need fontmetrics. But, mostly, menuitems are clickable. So...

ASP.NET: CSS friendly calendar control

I'm using the built-in Calendar control. It works, but in a few places the way the HTML is rendered is broken or not CSS-friendly and unfortunately cannot be changed (it's hard coded). I was hoping they would fix this in .NET 4.0, but as far as I can tell the Calendar control hasn't been changed at all. Also, as far as I know, there's no...

How to create dynamic/friendly URLs using PHP?

Hello. Can anyone explain how to create friendly URLs? I mean URLs like http://store.steampowered.com/app/22600/ that doesn't have any pages like index.php visible. Any help is appreciated. Thanks. ...

How can I link different print style sheet for two different print button on an asp.net web page ?

Hi Experts - I will have 2 print buttons on a asp.net 2.0 page. How can I link / refer to 2 different print CSS to users able to print same web page in 2 different ways, thank you. ...

Castle Component Validator "Value cannot be null. Parameter name: key" when using FriendlyNameKey

Hi... I'm having a little problem with Validator component from Castle ActiveRecord. I want to localize the messages of the validators attributes, if i use ErrorMessageKey (with the resources from the project) it works fine...but, if i add the FriendlyNameKey property (of the attribute) and try to validate my model it's throws an Argume...

What's the best database system if the only constraint is being schema-free?

I want to have a schema-free database, with as little maintenance as possible. What do you guys think is the best choice right now, a real no-sql database system like MongoDB, or an API like Friendly, a schema-free library on top of MySQL? I'm not worried right now with scalability nor performance, they're "nice to have". ...