I am developing a J2ME application (CLDC 1.1 and MIDP 2.0) and I was wondering,
What is the best way to get the time span between 2 dates?
thanks,
Tal.
I'm using PHP and MySQL. Is this the best method to select information about "user_1" from four different tables? I know it works, because I have tried it. But is this the preferred method of selecting information from multiple tables for "user_1"?
$query = "SELECT table_1.username, table_2.city, table_3.state, table_4.country
FROM table_1
JOIN table_2
ON table_1.username=table_2.city
JOIN table_3
ON table_1.username=table_3.state
JOIN table_4
ON table_1.username=table_4.country
WHERE table_1.username = 'user_1'";
I am required to use custom fonts in my application.
Problem: For ListViews that contain rows with Multi-Line TextViews having ellipsize property set to true, I can see some illegible characters after the ellipsis. Apparently Android pads the String(in TextView) with some characters unknown to my custom font.
Single line TextView seem to work just fine.
What is the best way to hide these characters or remove the padding?
Thanks.
Where would you look to find great tech writers to write user manuals for software? Are there specific sites, areas of the web, etc. that are best to look for them?
I am using class.upload.php to handle an image upload from a form that submits employee details to a MySQL database. class.upload.php does EXACTLY what I want it to do, resize the image and rename it - what I am now trying to accomplish is to upload via Ajax after the user selects the file and then display it in the form while they continue entering details. How would this best be accomplished with jQuery?
In many django projects, in the docs directory I can see *.rst files :
What is the best way to browse them (without using a text editor of course) ?
Is that possible to generate HTML ?
Hi there,
I've got a 32 bit application that connects normally to a DB2 database. (written in C)
When I run it on a machine with a DB2 64 bit client, I get a SQLCODE -1390 from connect.
(Win7 64 Bit, DB2 V9.7 client 64 bit)
Connecting from the command line works (db2 connect to ...)
With a 32 Bit DB2 client on the same Win7 64 Bit machine, the connect also works.
Does anyone has an idea how to fix it ?
Best regards
Oliver
Hi guys,
I need to build a ruby daemon that will use the freeswitcher eventmachine library for freeswitch.
Since few days I as looking the web for the best solution to build a ruby daemon that will integrate my rails environment, specailly my active record models. I've take a look to the excellent Ryan Bates screencast (episodes 129 custom daemon) but I'm not sure that is still an actual solution.
Does anyone known a good way to do that ?
Thanks all for your help.
Hi folks,
Since disable-output-escaping doesn't work on firefox (and isn't going to), whats the next best way of including raw markup in the output of an XSTL transform?
(Background: I've got raw HTML in a database that I want to wrap in XML to send to a browser to render. I've got control of both the XML and the stylesheet, but no control of the HTML, which may be badly formed (even for HTML!))
Thanks
What's the best way for loading a dll from a dll ?
My problem is I can't load a dll on process_attach, and I cannot load the dll from the main program, because I don't control the main program source. And therefore I cannot call a non-dllmain function, too.
I would like to add a tooltip with some extra data to each row in a dojox.grid.DataGrid. I have tried to create an onCellMouseOver handler, but I can't get the data item data out of the event object I'm getting.
What is the best way to add a tooltip to a DataGrid row?
What is the best way to get error messages from a WF4 workflow back to a hosting ASP.NET MVC application? I need the workflow to not terminate, but continue to be active, and then pass a message back to the hosting app regarding the error, so the user can take an alternative action, but I'm not sure how to do that.
Hi Experts,
I working on a website(ASP.NET C#) where I need to search for an item according to the ISBN.
I am reading from Amazon webservice, google books api, isbndb etc.
What is the best option, I should choose.
At present my requirment is just to query the given ISBN.
Help will be appretiated.
Regards
Parminder
I need to save WPF FlowDocuments to SQL Server. What is the best format for doing that? String? Blob? Does it matter in a document less than 5K words or so?
There are several good Javascript editors for Markdown / Textile (e.g.: http://attacklab.net/showdown/, the one I'm using right now), but all I need is a Javascript function that converts a string from Markdown / Textile - HTML and back.
What's the best way to do this? (Ideally it would be jQuery-friendly -- e.g., $("#editor").markdown_to_html())
Edit: Another way to put it is that I'm looking for a Javascript implementation of Rails' textilize() and markdown() text helpers
Can anyone point me to a cognos API document and some example code? The best for me is that the API can be access thru python. But examples in other languages are good also.
So I have a random of strings and I need to parse them, let's take an example:
This string - DeleteMe please and some other text
So I want to find DDeleteMe please and some other text and remove it, because all I need is This string
Best Regards,
Hi,
Everytime that I do an 'hg diff file.ext' I end up using a console diff application. Is there a way to change that? I can't find a reference in Mercurial documentation (I'm not talking about merge!). I would like to use Kdiff3 or WinMerge (I'm using Windows).
Thanks for your time.
Best regards.
Scenario: the size of various files are stored in a database as bytes. What's the best way to format this size info to kilobytes, megabytes and gigabytes? For instance I have an MP3 that Ubuntu displays as "5.2 MB (5445632 bytes)". How would I display this on a web page as "5.2 MB" AND have files less than one megabyte display as KB and files one gigabyte and above display as GB?
Adobe released flash 10 with 3d support but I can't seem to find any good information on how best to export a model from Maya to Flash. Is there a tutorial on how to do this?
thanks!
I am confused about how best to design this algorithm. A ship has x pirates, where the age of the jth pirate is aj and the weight of the jth pirate is wj. I am thinking of a dynamic programming algorithm, which will find the oldest pirate whose weight is in between twenty-fifth and seventy-fifth percentile of all pirates. But I am clueless as to how to proceed.
Hi all!
I'm looking the GLSample provided by apple and I have a question...
how can I change the background (now is black)??
best was to use an image!!
thanks
Hello.
I need no generate a full daterange in JScript from a given Startdate to now.
Startdate: 2010-03-25
2010-03-26
2010-03-27
...
2010-05-30
I am very confused with Javascript Date.
best would be a function to give a daterange as params and getting an Array of the formatted date back, something like that:
range[0] = 2010-03-25
range[1] = 2010-03-26
range[2] = 2010-03-27
...
range[x] = 2010-05-30
I am so confused thanks for any hint
marcus
Hi,
A friend to me made a flash game for my website. The game makes a request to /game/p00ints.php with the points in $_POST['points'].
But, a hacker can easy find out how to get more points I guess, so, how can my friend or I fix this security hole?
Best regards,
Erik Persson