What is the basic concept behind WaitHandle in C# .net threading ?
Whats is its use ?
When to use it ?
What is the use of WaitAll and WaitAny methods inside it ?
I have a property field in a class that is of type javax.xml.datatype.Duration. It basically represents a time span (e.g. 4 hours and 34 minutes).
JPA is telling me it is an invalid type, which doesn't shock me.
Whats a good solution this? I could implement my own Duration class, but I don't know how to get JPA to "accept" it as a datatype.
I am using this:
byte[] buffer = new byte[10240];
As I understand this initialize the buffer array of 10kb filled with 0s.
Whats the fastest way to fill this array (or initialize it) with junk data every time?
I need to use that array like 5000 times and fill it every time with different junk data, that's why I am looking for a fast method to do it. The array size will also have to change every time.
Ok I am considering putting up something asking ie6 users to upgrade their browser. However, I am concerned that users will upgrade it, not like it. Then blame me.
Is this a real concern? am I going to get people calling me asking me how to use their new browser or how to get their old one back?
Whatsyour thought on this topic?
Thanks!!
Whats the mathematical formulae to calculate the MIN and MAX value of an integral type using your calculator. I know you can use Integer.Max or Integer.Min etc or look it up on msdn however I want to know how to calculate it.
I'm currently making some system that will gather statistical reports from different sites, for any user transaction in there.
My question is for would be better to implement from you experience ...
All websites that will report data to statistics sites are on my servers.
So whats better to user WebRequest to send GET data to page or to use Webservice for that...
thanks
i have designed a template for wordpress, the problem is that when sidebar gets longer some of it will cover the footer in internet explorer 6 and 7, the website address is : http://blog.baabak.ir (its in persian), but if you look at it in internet explorer 6,7 you will see the sidebar logo will cover the footer, for example in this page :
http://blog.baabak.ir/?page%5Fid=141
but the website is ok in other browsers, whats the problem ?
hi,
i have a string say Path ="C:\AAA\bin" which is a path to a project's bin folder. I used new URL(Path) during invocation of addURL method of URLClassLoader class.
ex- addURL(sysLoader,new URL(Path)) ;
its giving unknown protocol:c exception
whats the problem?Help
When a method is defined with an out parameter, why do I have to specify the out keyword when calling it. Its already there in the method definition, and the runtime should know that any parameter passed will be an out parameter.
It would make sense if the compiler will accept the argument with or without out keyword, with different semantic, but if you MUST add the keyword to make the code compile, whats the use? Shouldn't the compiler handle it automatically?
Same for ref
Im currently developing an app that can parse dates from an email - i.e extract the time and dates from an email (similar to gmail).
Currently I do this in php but this is a tad clunky.
Whats the best language to do this in and are there any existing open source solutions?
i have a simple update query (foo column type is BOOLEAN (default false)):
update tablename set foo = true where id = 234;
which "id" is set to (primary) key, and if i run "explain analyze" i got:
Index Cond: (id = 234)
Total runtime: 0.358 ms
but still, i have plenty of unexplained queries at slow log (pgfouine), which took more than 200s (?!):
Times executed: 99, Av. duration (s): 70
can anyone please explain, whats the reason for that? (1.5 mio rows in table, postgresql 8.4)
I have a situation where I have to print out a NULL character if there is no action in a part of my program. Take for example the code below:
char x = '\0';
...
printf("@%c@\n", x);
I want it to print this:
@@
but it prints out
@ @
Whats the correct way not to have the \0 character printed out a space as above?
Looking at implementing a split-button similar to: the jQuery SplitButton demo.
Whats the difference between this example and just using 2 buttons? am I missing something?
..particularly regarding the joint "set" demonstrated...
My solution is split into 3 projects. Model, Services and Web. In my Service project, I'd like to use some F# features in it. Is it possible to add mix both F# and C# files in that project (a library[.dll])?
If not possible, whats the best way to use 2 separate service projects, one for C# and one for F# and how would I structure these projects?
hi all
I dont know what exactly i have to type in title for this ,i tried my best
anyway coming to topic
I am making one acc checker for that purpose ,i am sending user and pass from my bsskinedit1 and bsskinedit2
here is my code
s:='http:\\site.com..premlogin='+bsskinedit.text+'&password='+bsskinedit2.text
but it giving some error ,then i used showmessage whats wrong with it then i came with strange result
see below
http://i39.tinypic.com/2415d77.jpg
observer after 4 & and p combining together and appearing as a some new symbol :(
can any one tell me why its coming like this ?
I'm working on a simple program that converts a 3d array into a polygon structure similar to voxels. It reads the array and creates cubes for positions with a value and checks adjacent directions (North,south,east,west,up,down) for a null value before setting up a cube's face.
A link that displays the full code is below, written in GLBasic. Some snapshots to show you whats up.
link text
Hello,
I added ffmpeg iphone port into my library and I can able to use a few of its functions like avcodec_init(),.. without any errors.
But when I include this function call "avcodec_register_all" Xcode is giving error after compilation
The error message is :
*---------------
ld: ldr 12-bit displacement out of range (4276 max +/-4096) in _CFRelease$stub in _CFRelease$stub from /Users/foxit/Documents/CameraTest/build/CameraTest.build/Debug-iphoneos/CameraTest.build/Objects-normal/armv6/CameraTest
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
*-------------
Does anyone know whats wrong with this ?
Regards,
Raghu
when i try to compile this:
public class Risk
{
}
class territory
{
public static void main (String[]arg)
{
System.out.println ("hi") ;
}
}
I get this error message:
Exception in thread "main" java.lang.NoSuchMethodError: main
whats going wrong here?
I am trying this code to fetch data from wsdl.
Querying the website for the zipid("60630") works fine but in my code it gives the error as
"Invalid ZIP"
wsdlFile = 'http://wsf.cdyne.com/WeatherWS/Weather.asmx?wsdl'
wsdlObject = WSDL.Proxy(wsdlFile)
wsdlObject.show_methods()
zipid = "60630"
result = wsdlObject.GetCityWeatherByZIP(ZIP=zipid)
print result[1]
Can someone please help whats wrong here and why the code is not working correctly.
Thanks !!!
When looking to get data from a web page whats the recommended method if the page does not provide a structured data feed? Am I right in thinking that its just a case of doing an NSURLRequest and then hacking what you need out of the responseData(NSData*)? I am not too concerned about the implementation in Xcode, I am more curious about actually collecting the data, before I start coding a "hunt & peck" through a list of data.
gary
so in SQL you can do something like:
WHERE title IN('title1','title2','title3')
to test for set membership. how can I do this in VB.NET/C#.NET?
Example:
IF textMyTitle.text IN ("title1","title2","title 3") THEN
'Take Action
End If
Obviously the IN part of that statement doesn't work...whats the logical equivalent in .NET?
I would describe myself as a career coder - i.e. a developer at work but never really coded for fun.
Early in my career I've hit the management track though. I really like my current job and can't see me going back to coding anytime soon so:
Whats the best way to develop my coding skills and learn new languages in my spare time?
I am trying to use html/javascript to run a local .exe file in a local browser. The .exe file will generate asci text and I have it programed to encapsulate the text in html legible to the browser. But I want to have it load the new output from the .exe in the current browser, replacing whats there now.
Hey Guys
Im thinking about making a suggestion box for my next iPhone app.
Whats the best way to go about this? I was thinking an ModalViewController, a text box that emails out?
Are there any other(better ways) to do it?
Any expertise would be appreciated
Cheers
Sam