Posts

Blackberry: (Java) Submit data to a webpage -

I have a working application that gets a GPS long / watt from a Blackberry device, now I have to submit it to a webpage. I am trying. Open URL ("http://website.net:80/track/tracker/track?userid=1&longitude="+gps .logogram () +" & Latitude = "+ GPS .litatatat ()); More functions Public Zero OpenURL (string URL) {{HttpConnection c = (HttpConnection) Connector.open (URL, Connector.READ, true) ; } Hold (IOException e) {System.out.println ("Error:" + E.Streatin ()); }} It crashes the application without any error message, why anyone can recommend this? Do I have to set it up in my thread? I was hoping to submit to the website every 60 seconds. Unfortunately you can not give a link to the BlackBerry now a URL and hopefully it will work To give this information after URL you need to know which connection method to use it. See and show you how to choose a connection method.

ruby on rails - Hash inside YAML file? -

I want to include the list inside a hash and a YAML file that I am parsing with the following command: APP_CONFIG = YAML.load_file ("# {RAILS_ROOT} /config/config.yml"} My YAML file looks like this: Feed: [[url = & gt; 'Http://www.google.com' ,: label = & gt; 'Default'}] But it does not seem to work. Thanks, Yuval EDIT: Sorry, guys. I'm still not clear about how to do this and I suspect that this is part of me due to some obscure phrasing. I asked a better-phrased, more detailed question. Thanks! You can mark it like this Feed: - Url: 'http://www.google.com' label: 'default' Note that the spaces are important here. "-" Should be indented by a single location (not a tab), and after a single location. And url & amp; Labels must be jagged in two places (if not tab). In addition to this it can be helpful:

jQuery - Dynamically adding validation rule to multiple textboxes -

I'm dynamically trying to add a verification rule to several text boxes. Here's the JS: // Valid form $ ("# SubmitForm") valid () .; $ ("Input [id * = hours]"). Rule ("add", {number: true, message: {number: "please enter valid hours"}}); This rule applies to the first textbox on page with "hour" on ID, but then it does not apply to any other. Does anyone know what's wrong here? Thank you, Justin You can add each matching the wildcard selector Item rule, such as: $ ("# submitForm"). Valid (); $ ("Input [id * = hours]"). Each (function () {$ (this). Rule ("add", {number: true, message: {number: "Please enter valid hours"}});}); Hope it helps!

database - What's the best way to migrate a Django DB from SQLite to MySQL? -

I need to migrate my db from sqlite to mysql, and different tools / scripts are very easy for me. It seemed good to me but it seems that having a concern takes 3 years .. Can you recommend a solution that is known to have Django 1.1 To be reliable with .1? Execute: python manage.py dumpdata & gt; Datadump.json Next, change your settings.py to mysql database. Finally: Python manage.py loaddata Datadump.json

model view controller - Zend Framework-where should this root.php file go for MVC? -

I am changing the web app to use the MVC structure of the Zend Framework. I have a root.php file Which contains most database information, and some stable variables used in the program I'm not sure some of these apps Should be in a model that is called by the init () function in a controller, or in bootstrap or what? Any Help & lt ;? Php / *** / configuration file * / ## Defines the site configuration ## ("SITE_ROOT", dirname (__ FILE__)); Define ("SITE_URL", "http: // localhost / monkeycalendarapp / monkeycalendarapp / public"); Define ('db_host', 'localhost'); Define ('db_user', 'root'); Define ('DB_PASS', "xxx"); Define ('DB_NAME', "xxxxx"); Define ("PROJECT_NAME", "Monkey Mind Manager (Beta 2.2)"); // Define site title ("CALENDAR_WIDTH", "300"); // Define Left Mini Calendar Width ("CALENDAR_HEIGHT", "150"...

How to change file contents in PHP? -

I save a file in some information about users (such as bar user login page, last visit Time, and so on) I want to read this information from the file, and update it (counting 1 on the counter, and change the previous visit time). My question is: Do I do the file without opening twice? I open the content for the first time, and then reopening it again and overwriting the content with the updated content. Thank you! Yes, you open it only once: Write data (eighlight) Read data (Fred) Close file (fclose)

asp.net mvc - Should I make a ImageHelper in this situation? -

Hi, I am working with a project (asp.net mvc) where I need to show a picture on a site. They have jquery and & lt; Div & gt; & Lt; Img / & gt; & Lt; / Div & gt; I'm relatively new on MVC as if surrounded by a div, I'm not sure how best it is to work in yet, should I do an image hanger so that I & lt;% Html.ImageJquery ()% & gt; as I can see or do I just want to make it plain in view What are your thoughts on this? I will go to HTMLHelper with an extension method, so that it's value as the 'src' parameter and Accordingly, the image tag is created accordingly. Regarding the rendering of UI elements, I have read a blog post on 'conditional rendering' , which I thought you would find interesting Please check the link below. Thank you, Vijay.