I need to create a simple Chat system like facebook chat and a twitter-like app.
What is the best concurrent program languages in this case ?
Erlang, Haskell, Scala or anything else ?
Thanks ^_^
For the iPhone, is it possible to program applications to translate words from a base language to any of several languages of various users. If so, how?
i'm having 2 tables: members and comments.
I select all members, and then join comments.
But in comments I'm selecting some SUM of points, and if user never commented, I can't get that user in listing?!
So how to select default value for SUM, or some other solution:
SELECT c.comment_id AS item_id, m.member_id AS member_id, m.avatar,
SUM(c.vote_value) AS vote_value, SUM(c.best) AS best,
SUM(c.vote_value) + SUM(c.najbolji)*10 AS total
FROM members m
LEFT JOIN comments c ON m.member_id = c.author_id
GROUP BY c.author_id
ORDER BY m.member_id DESC
LIMIT {$sql_start}, {$sql_pokazi}
Every now and then I need to call new[] for built-in types (usually char). The result is an array with uninitialized values and I have to use memset() or std::fill() to initialize the elements.
How do I make new[] default-initialize the elements?
when we expand the notification expanded view ,we get a default white background with small squares. how can i change this white background to some other color.
when we expand the notification expanded view ,we get a default white background with small squares. how can i change this white background to some other color.
Since Delphi 2005 Borland/CodeGear introduced the regions in the IDE. It is good idea but in some casses I want my reginos to be unfolded by default in other folded. If there argument or options that will do the job? I'm using Delphi 2007.
I would like to use the GCC -fstack-protector-all option on release mode. The main issue is that when there is an override a code is built. I would like to plug something that will just dump the stack and let the program continue. Is there a way to do that?
when this stored procedure executes without this parameter, stored procedure should use the default value and if this parameter is assigned to a value, stored procedure should execute by assigned value.
I made a prolog program posAt(List1,P,List2) that tests whether the element at position P of List1 and List2 are equal:
posAt([X|Z],1,[Y|W]) :- X=Y.
posAt([Z|X],K,[W|Y]) :- K1, Kr is K - 1, posAt(X,Kr,Y).
When testing:
?- posAt([1,2,3],X,[a,2,b]).
I expected an output of X=2 but instead I got the following error: ERROR: /2: Arguments are not sufficiently instantiated
Why am I getting this error?
Hi
I have two target builds in my iPhone app project, and I want to build each one with a different Default.png for the load screen. At the moment I am having to place the file with the correct name in the project folder, build, then swap it out with a different one and build the other target.
Is there an easier way?
Thanks
Hi
Case is I want to prompt a message (Do you want to save changes?) if text box default value is updated on .aspx page before submitting the page. I am using .text() to compare with .val().
It works fine in firefox but failing in IE7 and IE8
if ($("#<%=txt1.ClientID%>").attr("value") === $("#<%=txt1.ClientID%>").text())
return(true);
return confirm('Do you wish to save these changes?');
Hi
How do I use mqueue (message queue) in a c program on a Linux based system?
I'm looking for some good code examples that can show how this is done in a correct and proper way, maybe a howto.
Thanks
I am making an installer in java swing it almost completed only one thing is left to do
that is to create desktop shortcut of our software.I do not want to copy software on desktop but I want to create instance of that software like other MS software. How it can be done
please help me.
I am already copied my software in c:/Program files by using copy directory and I want to create shortcut on desktop .
Why changing Color of Default Button makes it look RECTANGLE shape ? I do not want to use custom background images for this.
I want to do this programmatically for few conditions on which I change the colors of many small buttons on screen.
Can anyone give a solution ?
Medicine has the term idiopathic cardiomyopathy. Cardiomyopathy means something is wrong with your heart, and idiopathic means "we have no idea why yours isn't working."
I know we have heisenbugs, bohrbugs, mandelbugs, and so on, but I feel I'm lacking one more buzzword: what's the IT cousin to idiopathic cardiomyopathy? What's an elegant word or phrase for "something unknown is wrong with this program"?
I sweated over the question above. The answer I'm going to supply took me a while to piece together, but it still seems hopelessly primitive and hacky compared to what one could do were completion to be redesigned to be less staticky. I'm almost afraid to ask if there's some good reason that completion logic seems to be completely divorced from the program it's completing for.
Both lines of code:
KeyPairGenerator.getInstance("RSA")
KeyPairGenerator.getInstance("RSA", "BC")
works well. So, what's the differecente using BC or not? Is BC completely compatible with the default RSA used? (using sun JDK 6)
I always thought that parentheses improved readability, but in my textbook there is a statement that the use of parentheses dramatically reduces the readability of a program. Does anyone have any examples?
Hi all,
I'm about to start a desktop program that I want to add support for as many languages as I can. I'm going to be using C# and at least .Net 2.0. Is there a recommended way for adding support for multiple languages in the GUI and error messages?
Many thanks