Is there such a thing as an "on load complete" for images in iphone?
I want to be able to destroy a UIActivity indicator once and image is loaded.
What the general best practice for doing this?
I've got my interpreter up and running - quite bug-free and stable for now - now I want to add some visual options to my language to play around.
What is a good GUI library easy to use and mainly easy to embed and "link" to my programming language?
What general rules do I have to follow?
I'm currently on XP with Microsoft Visual Studio 2010.
I do not have many kinds of Exceptions in my project.
Right now,(we use MVC) I have the try catch encompassing my entire code:
try{
fronController::dispatch($somthing...);
}catch(Exception $E){
//handle errors
}
I wonder if there is a good reason to use the try-catch block in as specific as possible way as I can or just keep it general as it is now?
I'm programming a function for a TI-NSpire, so I can't use the builtins from inside a function. What is the most generally efficient algorithm for sorting a list of numbers without modifying the list itself? (recursion and list-splitting are fair game, as is general use of math.)
I have this
var result = general.GetInformation(int.Parse(ID), F_account, F_Info, Types);
this GetInformation is my Entity.Getinformation class.. when I am trying to assing result globly I am getting Cannot Assing to implicit typed local variable?
var result = ?
what should I assing in global?
thanks
Does someone know if there is a way to get the raw relevance or similarity score between a query and a result when using sphinx in general or thinking-sphinx as a wrapper? Any help is greatly appreciated.
I know that's a big topic. However, it's better to know some general ideas to handle such problems.
I have an application which requires Flex to render statistics data calculated instantly on the client side from a downloaded data set.
The problems are:
the data set is large and needs more than 10 seconds to be downloaded.
there are some filters to control the statistics calculation algorithms. If user changes the filters, it would take a long time to recalculate the result and freeze the UI.
Is it possible to detect another finger touch during one finger is touching on the screen? I need to deal with the gesture of the 2nd finger during which I don't want my first finger to leave the screen. What should be the general logic in the code to handle this?
Thanks.
Hello everybody,
I'm trying to develop something in the cloud incorporating video, text and images.
However, any hyperlinked content that appears above or below the video is unclickable, as the video takes the focus on the iPad.
This isn't a problem with Safari in general, as it works on Desktop Safari.
Thankyou,
BH
Some time ago (~4-5months ago) I attented a lecture about JEE and at some point the lecturer started talking about webservices and how hard it is to create a good one because all the IDEs make them in a bit different way (or something like that) and that in general it's better to use Netbeans to create them as Eclipse has some issues, the thing is he didn't really say why Eclipse is bad. Now I'm wondering is what he said true and why, is it really better to use Netbeans for webservices and why?
I'm writing a C program where I fork(), exec(), and wait(). I'd like to take the output of the program I exec'ed to write it to file or buffer.
For example, if I exec ls I want to write file1 file2 etc to buffer/file. I don't think there is a way to read stdout, so does that mean I have to use a pipe? Is there a general procedure here that I haven't been able to find?
What small and cool applications that can be helpful for programmer do you know ? I think about programs that not very famous.
I know three:
http://advsys.net/ken/download.htm EvalDraw - for protoyping games
http://www.drpetter.se/project_sfxr.html sfxr - for makeing sound
http://www.kloonigames.com/blog/general/timelog timelog - for mangament time of project
How do I learn where the source file for a given Python module is installed? (Is the method is different on Windows than Linux?)
(I want to look at the datetime module sources, but I thought I'd ask a more general question.)
Where can I find a list of common medical drugs? Researching and typing 150+ drug names would be quite inefficient.
In general, are there any sites which have a list of items for developers to use in applications? For example, you can download dictionaries in specific formats (e.g. XML) for use in word games.
How can I differentiate between two
local branches in git ?
How can I copy one local branch to another local branch ?
In general how can I perform difference operation between two local branches on my server using git. I tried looking it up online but there is not enough documentation on that or there is not clear documentation on that.
Any suggestions or links to useful material would be highly appreciated.
Thanks.
I have a JPanel which has a line, circle etc..Now when I click on the line, will the event get reported as a line event or a general jframe event. I need to be able to move the line, if the user clicks on the line and moves it. Is this possible in Java2d.
Thank you.
Is calculating an MD5 hash less CPU intensive than SHA-1 or SHA-2 on "standard" laptop x86 hardware? I'm interested in general information, not specific to a certain chip.
UPDATE:
In my case, I'm interested in calculating the hash of a file. If file-size matters, let's assume its 300K.
For this example from the MongoDB documentation, how do I write the query using MongoTemplate?
db.sales.aggregate(
[
{
$group : {
_id : { month: { $month: "$date" }, day: { $dayOfMonth: "$date" }, year: { $year: "$date" } },
totalPrice: { $sum: { $multiply: [ "$price", "$quantity" ] } },
averageQuantity: { $avg: "$quantity" },
count: { $sum: 1 }
}
}
]
)
Or in general, how do I group by a calculated field?
I need to install the ExcelPackage library on Visual Studio 2008. The .zip file I downloaded from their website (http://excelpackage.codeplex.com) contains a .dll, a .xml file, a "GacReg.exe" and a file called ExcelPackage (with this description: "Program Debug Database"). What are the steps to installing this library, or any library in general? I appreciate the help.
I understand that this is highly specific to the concrete application, but I'm just wondering what's the general opinion, or at least some personal experiences on the issue.
I have an aversion towards the 'open session in view' pattern, so to avoid it, I'm thinking about simply fetching everything small eagerly, and using queries in the service layer to fetch larger stuff.
Has anyone used this and regretted it? And is there maybe some elegant solution to lazy loading in the view layer that I'm not aware of?
I have researched this question and there seems to be two methods: 1) Run Sysprep, and 2) Run Sysprep followed by ImageX (this is what Microsoft says should be done).
What does ImageX do and any pointers on the general process to follow?
Thanks,
-Todd
The list of valid XML characters is well known, as defined by the spec it's:
#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
My question is whether or not it's possible to make a PCRE regular expression for this (or its inverse) without actually hard-coding the codepoints, by using Unicode general categories. An inverse might be something like [\p{Cc}\p{Cs}\p{Cn}], except that improperly covers linefeeds and tabs and misses some other invalid characters.
I want to create a program for generating the series for the given base-n. ,
for example if my input is 2,then series shuould be, 00,01,10,11,etc.,(binary)
if my input is 10,then series shuould be,1,2,3,4,5,etc.,(decimal)
is there any general mechanism to find these numbers so that I can program for base-n.,
Hi everyone,
Is there a way to extend a vector by making it repeat itself?
>v = [1 2];
>v10 = v x 5; %x represents some function. Something like "1 2" x 5 in perl
Then v10 would be:
>v10
1 2 1 2 1 2 1 2 1 2
This should work for the general case, not just for [1 2]
Thanks in advance !