Anyone know how to do this - just what would be the equivalent to this:
"select * from YOUR_TABLE order by rand() limit 1"
in mysql??
Maybe not possible in SDB?
Example:
A validation method contains this check to see if an NSError object shall be created or not:
- (BOOL)validateCompanyName:(NSString *)newName error:(NSError **)outError {
if (outError != NULL) {
// do it...
Now I pass an NSError object, like this:
NSError *error = nil;
BOOL ok = [self validateCompanyName:@"Apple" error:&error];
I'm not sure if this matches the check for not NULL. I think it's not NULL, since I believe NULL is not nil. Maybe someone can clear this up?
Hi,
I am using a third party library that provide some callbacks for a widget, but I'm not sure what the callback parameter objects are (no docs on them).
Is there a way to just dump all the attributes of an object in javascript, then print them using alert(), maybe? I just want to see what methods and attributes they contain,
Thanks
Hello,
for my application (WPF) I'd like to use the standard icons for save, open... However, I'm not aware of them being available as vector graphics? So, where can one get them, is it maybe possible to extract them from some DLL files or whatever? Thank you very much!
Hi Everybody, I really like Hudson CI and I do think it is the most useful and effective piece of software ever made for the Agile Application Lifecycle :-)
Anyway if the CI become unstable, the development is going to be really compromised, so keeping an eye on it is CRUCIAL !
Does anybody know about an effective solution for always monitoring it while you are "on the road" ? (maybe using your iPhone or iPod)
Hi,
I Want a php code to turn a youtube/dailymotion/vimeo/metacafe... URL into an EMBEDABLE code so i can show it using echo , it is really hard to read the API of every website, so i'm wondering if there is a class or code to do this.
Note: if there isn't anyone, then maybe a jQuery facebox alternative who supports more than youtube.
Thanks
A few times I've run into situations where I'd like to be able to include a file using PHP, and depending on the included filetype, output the appropriate headers. In the past I've just done this manually by switch/casing the extension type with the appropriate content-type headers.
However what I'm wondering now is if there's a function like
get_header($filename)
or maybe
get_contenttype($extension)
For example if I wanted to route all requests for media through a php file, I could use that function to output the correct headers.
What is the best approach for working at a customers site (with several people) where there maybe not internet access the whole time and using a subversion repository?
(Migrating to Git or Mecurial is out of the question at the moment)
But wouldn't it be possible to leverage something like, for instance the Git SVN Integration, to create a proxy which acts like a subversion repository for the clients and may be used at the end to synchronize the changes back to subversion? Is there already something like that available?
I want to access a MovieClip in another scene than I'm currently in.
More specific I want to set a TextField to a certain value from a "preloader"-scene. This is for handling totally dynamic language phrases. Maybe this is the wrong way.
I'm loading a XML with language phrases that I want to replace the textfields with.
We could do this by altering all MovieClips, but I think this could be a smart solution, if it's possible! :)
Are there any Windows IDEs that support both Ruby and Python?
I'm talking about the type of IDE that has syntax suggestions (auto-completion feature).
I've tried Netbeans but it only seems to support Ruby (maybe there's a way to add Python support?)
hello, I want to save a query only one time in the database, this is my code:
$querystat = mysql_real_escape_string($_GET['q']);
$datetime = time();
if( ($querystat != $_SESSION['prev_search']) OR ( ($datetime - $_SESSION['datetime']) > 60) ) {
$insertquery = "INSERT INTO `query` ( `searchquery` , `datetime`) VALUES ( '$querystat' , '$datetime') ON DUPLICATE KEY UPDATE searchquery='$querystat';";
mysql_query($insertquery, $db);
}
maybe something with == 0 ?
Hi, is there any way, in Python, to have access to an e-mail account (I'll need this for gmail but better if any works) and be able to see the number of messages in the inbox (maybe even unread messages only)?
Thank you.
I have custom control - chart with size, for example, 300x300 pixels and more than one million points (maybe less) in it. And its clear that now he works very slowly. I am searching for algoritm which will show only few points with minimal visual difference.
I have link to component which have functionallity exactly what i need
(2 million points demo):
http://www.mindscape.co.nz/demo/SilverlightElements/demopage.html#/ChartOverviewPage
I will be grateful for any matherials, links or thoughts how to realize such functionallity.
I have recently done a very simple highlighting with jQuery and a highlight plugin. It looks like this:
$('myButton').click(function() {
$('body').highlight($('#myInputText').val());
});
But I wonder how can I do the Chrome like highlighting, I mean highlight the letters whenever I type in some letter in textbox without submitting. I think maybe use a keyup event... Any ideas?
anyone know of a site that explains how wordpress created its appearances in wordpress (on the backend) i like how the navigation was created and i am trying to drill down to see what makes it tick but its a heck of a mess of code. has anyone launched anything online that you know of explaining how these peices were made? maybe something cleaner.
thnx
I need a table control where one can edit properties by various ways, just like editing properties in Visual Studio (it's for XML editing). Does anybody know about something like that, written by others, or maybe a solution from MS itself?
Is it possible to skip a statement in Eclipse while debugging? Suppose the process stopped at breakpoint and I want to skip the breakpoint line ( or maybe a few lines below), can I do it? On the debug tab, it only has "Step into", "Step over" and "Step return" buttons.
I did google around but couldn't find anything, hopefully I can find an answer here.
I can't believe it, but this is really happening. I ran out of available quote symbols using jquery and javascript native functions together. Can somebody help? Maybe there is yet another symbol?
var t=setTimeout('$("#popupChange").html('<img src="http://servername/pdf/picture/genericThrobber.gif" />');',2000);
Hi;
I want to know that, if is it possible to see the different parts of a file at the same time in Zend Studio 7? Maybe in different windows or something like that. I know this can be succeeded with simpler editors like editPlus
tHanks
I remember seeing a while ago that there is some method in maybe the Reflection namespace that would recursively run ToString() on all of an object's properties and format it nicely for display.
Yes, I know everything I could want will be accessible through the debugger, but I'm wondering if anyone knows that command?
What would be the easiest way to make a CharSequence[] out of ArrayList<String>?
Sure I could iterate through every ArrayList item and copy to CharSequence array, but maybe there is better/faster way?
How can I get the relative path of the folders in my project (using code)?
I created new folder in my project and I want its relative path so no matter where is the app the path will be correct.
Maybe this can be useful:
I trying to do it not inside any function just inside the class and I want to init with it a final variable. the app is android and the class is "extends Activity"
thanks
Maybe like whoishostingthis.com can tell you who is the ISP of a website. Is there a way to find-out what is a website running on ? (so like I can see that stackoverflow.com is running on Rails v9.3.2.1 and digg.com is running mostly drupal but with many customizations )
Thanks.
Is it possible to adapt a method like this function "F"
class C {
public void F(int i);
}
to a delegate like Action<C,int>?
I have this vague recollection that Microsoft was working on supporting this kind of adaptation. But maybe I misremembered!