Hi
I'm looking for a solution similar to the iPhone Facebook Connect (http://wiki.developers.facebook.com/index.php/Facebook%5FConnect%5Ffor%5FiPhone) for the BlackBerry platform. Basically, I need my users to authenticate against Facebook from within a native BlackBerry application (so, not a Web based mobile application). Is there a library I could use, and if not, what will be the correct approach to achieve this?
Thanks in advance!
What's the best way to add foreign keys to my existing tables in Rails with an underlying MySQL database? clearly the solution should be done in a migration, as I want this versioned. Otherwise I'd create the constraints myself.
I can't seem to find one, conducive response to they above. Again, the tables have already been created with previous migrations. I'm just going back now and adding referential integrity wherever it's applicable.
I am trying to figure out where the ocean is in an arbitrary Google Maps view.
I actually have the lat lon (a range of points, when joined together form the coastline) of the coastline. But how do I tell which side of this line is the coastline?
One possible solution would be to find the latlon of the nearest service or town or business or something, and then the ocean is obviously on the other side (given a small enough enclosing polygon).
Is there a better way?
Hello I have a window application where i want to make functionality of video downloading but i am not getting correct solution for this.
I tried one code project code and lot of other code that i got from google.
can any buddy help me for this problem.
I'm considering storing some date values as ints.
i.e 201003150900
Excepting the fact that I lose any timezone information, is there anything else I should be concerned about with his solution?
Any queries using this column would be simple 'where after or before' type lookups.
i.e Where datefield is less than 201103000000 (before March next year).
currently the app is using MSSQL2005.
Any pointers to pitfalls appreciated.
Hello all.
I am currently working on an application for managing a WPD device.
I want to add an option to open the wpd device in windows explorer to view the saved files.
Problem is that I can't find a way to open explorer pointing to the device's "folder".
I have all information of the device (pnp device id, class name, etc.)
Anybody knows a solution?
Thanks in advance!
Bernd
I have noticed that it has solutions for matching multiple words in a given text, such as below:
http://stackoverflow.com/questions/1099985/algorithm-for-multiple-word-matching-in-text
If I want to know exactly the number of appearances of each matched word in the text, my solution is like this:
step 1: using ac-algorithm to obtain the maching words;
step 2: count the number of each word obtained in step 1
is there a faster way?
Thx~
Is there any solution to make snippets, templates and maybe resources of MODx site available to edit with external editor? Besides this hack which make site less "native".
Thanks!
I have a shared disk that I would like to clean up once per week using a scheduled task of some sort. I would like to use a batch script so that the system admins can easily modify it or reuse it on other directories when needed.
The directory has files with multiple file extensions but the ones that need to be deleted end in .bkf and must be over 2 weeks old.
Does anyone have a batch script solution for this windows server (not sure which version)?
I have been using the macro solution, as it is outlined here. However, there is a mention on how to view them without macros.
Can anyone illustrate how?
Thanks
My old IDE HDD from my laptop recently crashed and now, I can only see it in the BIOS.
When I try to track it down using GParted or other tools, I can't seem to find it.
Does anyone have a solution to my problem?
I am trying to figure this out. Basically, I'd like to reconcile my local emails with a users list of friends.
I can see after OAuth token is established that I can get a list of users friends via http://graph.facebook.com/me/friends
Would the solution be to keep track of a list of users friends over time and then reconcile with our local ids (in other words, i can know my id) and then use the friends API call to see if your friends are the same in local db?
For a while I have been struggling to integrate scala with java methods that might return null. I came up with the following utility which helps a lot:
// produce an Option, nulls become None
object Maybe {
def apply[T](t:T) = if (t==null) None else Some(t)
}
Maybe(javaClass.getResultCouldBeNull()).map( result => doSomeWork(result) )
I have a few questions about this solution:
Is there a better or more standard pattern to use?
Am I duplicating something that already exists?
Does this functionality have hidden gotchas?
I need to generate reports in my PHP website (in zend framework)
Formats required:
PDF (with tables & images) // presently using Zend_Pdf
XLS (with tables & images)
DOC (with tables & images)
CSV (only tables)
Please recommend robust and fast solution for generating reports in PHP.
Platform: Zend Framework on LAMP
I know there are some tricky solutions for creating such reports, i wonder is there any open source report generation utility that can be used with LAMP environment
First of all, I'm not sure if solution even exists. I spent more than a couple of hours trying to come up with one, so beware.
The problem:
r1 contains an arbitrary integer, flags are not set according to its value. Set r0 to 1 if r1 is 0x80000000, to 0 otherwise, using only two instructions.
It's easy to do that in 3 instructions (there are many ways), however doing it in 2 seems very hard, and may very well be impossible.
Hi
I am sending email from my localhost There occurs a server error
Failed to connect to mailserver at "smtp.bizmail.yahoo.com" port 465, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
when i host my project to the server my function works
Now i need a solution such that the mail functionality must work in my localhost too
the question is related to wordpress coding only. If it possible, the code solution is able to use inside a wordpress blog.
$wpdb is only work with database that been declare in wp-config. So it possible to clone $wpdb then use the clone to access different database ?
This is a further question based on this answer:
http://stackoverflow.com/questions/2589851/how-can-i-implement-this-visual-effect-in-matlab/2589957#2589957
The general solution should work for all background colors and length/width ratios.
Hi All,
I have loaded a wxBitmap (with transparency .png) in memoryDC now when i am blitting the data from the memoryDc to GCDC that time in transparent part its giving the black color.
But if remove the GCDC and use normal ClientDC for display purpose there is no such problem happening, but i cannot remove the wxGCDC because this is only support the transparency in color drawing.
Any solution or workaround really helpful.
Thanks in advanced
I need the behaviour of sql2005 where function OBJECT_NAME takes two arguments obj id and db id, while sql2000 takes only obj id so the execution must be in the context of the database to which inspected object belongs to. Solution must be possible to implement in a function, so it can be used in a select query.
What is the best method, if there is one, of using Wordpress as a CMS for users to input data while not actually building the website on the Wordpress platform?
One possible solution I've found is using a PHP class called "WPGet" (http://peter.upfold.org.uk/projects/wpget) which fetches directly from the database.
Hi,
i've added code
config.gem "authlogic-oauth", :lib => "authlogic_oauth"
to the environment.rb file in my app and got error
undefined method 'add_acts_as_authentic_module' for ActiveRecord::Base::Class
is there any solution to solve it?
how can i create a pre-allocated file on android? something like a sparse file ?
i need to make an applicaton that will download a large file , and i want to avoid having an out-of-space error while the download is commencing . my solution needs to support resuming and writing to both internal and external storage.
i've tried what is written here:
Create file with given size in Java
but none of the solutions there didn't work for some reason.
Given a sequence of numbers, I want to insert the numbers into a balanced binary tree such that when I do a preorder traversal on the tree, it gives me the sequence back.
How can I construct the insert method corresponding to this requirement?
Remember that the tree must be balanced, so there isn't a completely trivial solution. I was trying to do this with a modified version of an AVL tree, but I'm not sure if this can work out.