meta

Django request.META

If I want to display more than one item of the request.META dictionary: how can I put e.g. two in this string format: def myurl(request): return HttpResponse("You are %s" % request.META['USER'], "Your IP Adress is " % request.META['REMOTE_ADDR']) does not work. Any ideas how I can display/extract selective items of that dicti...

Django request.META 2

I understand everything from this code: def display_meta(request): values = request.META.items() values.sort() html = [] for k, v in values: html.append('<tr><td>%s</td><td>%s</td></tr>' % (k, v)) return HttpResponse('<table>%s</table>' % '\n'.join(html)) Except this line: '\n'.join(html) So \n creates a ...

Can I get meta "properties" using Javascript?

I'm trying to use JS to access data in OpenGraph meta tags. It works fine with meta tags that have the standard attributes (name="x" content="y"), but for OpenGraph tags, the meta tag reads <meta property="x" content="y"> I haven't had any luck accessing the contents of the "property" attribute using JS. The .name attribute is just...

how do i get python's mechanize to stop following meta refresh redirects?

I have a script which gets a webpage with a meta refresh. I need to parse the retrieved page but mechanize seems to follow the redirect. How do I get it to stop following it? ...

Finding fellow open-source coders for various projects?

Hi all, Does some sort of online marketplace for open source projects/coders exist? I'm looking for a way to find partners before I actually start a project, instead of starting the project alone and letting it die when I find out nobody cares about it. ...

What is this in html page? How it will support SEO?

<link rev="made" href="mailto:test.com"> ...

Django get a model's fields

Hi All, Given a Django model, I'm trying to list all of it's fields. I've seen some examples of doing this using the _meta model attribute, but doesn't the underscore in front of meta indicate that the _meta attribute is a private attribute and shouldn't be accessed directly? ... Because, for example, the layout of _meta could change...

arabic meta tags problem

hello, am trying to show an arabic meta tags, but when ever i load the page, and i view the source it shows some garbage. and this is what i did so far. this is my config.php file define("GAMES_META_DESCRIPTION", "بيسبي"); and this is my header file <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xh...

Add Multi line text field to sharepoint

Hi, I am trying to add a multi-line text field to a document within Sharepoint but can't currently figure out how to do it. Below is the code i have which works for most of the fields. SPFile file = folder.Files.Add(*snip*); file.Item[guid] = stringValue; file.Item.SystemUpdate(true); The document adds with no issues the ...

Force to open "Save As..." popup open at text link click for pdf in HTML.

Hi Friends, I have some big size pdf catalogs at my website, and I need to link these as download. When I googled, I found such a thing noted below. It should open "Save As..." popup at link click.. <head> <meta name="content-disposition" content="inline; filename=filename.pdf"> ... but it doesn't work :/ when I link to fil...

Center website in iPhone landscape mode with meta viewport

I have a CSS border on the HTML tag of my site, when I viewed it on the iPhone it didn't respect the border as part of the width and some of the div's overlap as oppose to having a 10px gap between content and the sides of the screen. I used the meta viewport tag <meta name="viewport" content="width=device-width, initial-scale=auto"> ...

Django: Models: How can I make the app_label appear in all caps?

Hello - 2 questions... If I manually set my app_label, is there a way to set it to all caps? I am using an acronym for the app name and is a little confusing to not have it in all caps. If I set the app_label on a new project, were I have no users or data, what kind of issues should I look when setting up user permissions and database...

How can I filter out all questions that don't have an interesting tag?

Is there a way to only view questions that have the tags I consider interesting? ...

Problematic tags displaying HTML in Java

Hi again, I have the following tag included in my HTML which causes the JEditorPane not to show the HTML output. <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> Not so much a big deal but anyone know why this would happen? Cannot find too much documentation on this - best I came up with was someone having a go a ...

Meta Refresh To Relative File

Hi all, I'm making a web app and I'm checking for the presence of a configuration file to determine whether or not to run the installation script. However, since it is a web app, I have no idea at what URL this script will be stored. Is there any way to redirect a page, either using PHP or HTML, to a relative file? Thanks in advance! ...

Facebook LIKE button meta tags produce unwanted result

Hi, I have implemented LIKE button on my test page, I used all the og tags to say what it is all about and the result on my profile page looks like : Moshe likes title title on website I don't want the "on website" part because it links back to the root of the server which is not related to me or my content. I found no way to make t...

Wordpress create a new post status?

In Wordpress you get the default post statuses: Published, Draft and Pending Review. Is it possible to add some more post types via registering them via the function.php file of the active theme? Also is it possible to edit the lables of the Publish Meta Box? What I'm submitting really isnt Publishing... Also like to add I only want th...

Distributing classes or namespaces

Hello, I would have a question related rather to process of team programming than programming itselft. If you are a programmer working in a team and you are responsible for particular part of the software - you deliver namespace or classes? I mean, in reality, I think that programmer creates more than one class so creating a namespace to...