Can anyone find an example of a simple server/client thing? I'm willing to use any C++ library or even Winsocks it self. I've Googled around but want some opinion on a good article for beginners/sites.
I am trying to query the following HQL using GORM:
MailMessage.executeQuery("toId, count(toId) from (SELECT toId, threadId FROM MailMessage as m WHERE receiveStatus = '$u' GROUP BY threadId, toId) as x group by x.toId")
The problem is that count(toId) is a computed field doesn't exist in MailMessage and that I am using a subquery.
I get the following error: java.lang.IllegalArgumentException: node to traverse cannot be null! Ideally, I would like to use a generic executeQuery which will return data of anytype. Is there such a thing?
hi friends,
I am trying to insert data into particular table through pl/sql stored procedure,my requirement is while inserting i should generate PRIMARY KEY values for particular column and also i should return that PRIMARY KEY value to output and one more thing is that for another column i should validate my string such that it should contain only characters not integers.
please help me in writing code for the above requirement
Thanks and regards
thulasi policherla
It seems a good and clean thing to ensure that your deployed files appear on the target system with a consistent time/date. Many Applications seem to do this but other than for care of overwriting Users' existing data I guess it has no real significance. I'm having a purge on my installer packaging and I'd like to know if there any good reasons for specific date/time handling.
Is it possible to make an action like thing in Automator or AppleScript that can be selected when the user clicks a phone number in Mac OS X Mail?
Below is a screenshot of the context menu that I would like it to be in:
I'm trying to put some code examples in a pdf, but copying them out messes up the formatting and rearranges the lines, there's a lot of manual cleanup needed after pasting.
Is there a equivalent to html's pre for PDFs? For "this" block of text respect line breaks, spacing, and copy as plain text like its shown. The closest thing I can see is adding note annotations next to every code example.
I'm trying to display an map inside an iframe that has a needle which on mouseover shows some information about a certain company, thething is once you click the link the page opens up inside the iframe which ruins the experience, so i was wondering is it possible to make the links inside an iframe open up in a new window instead perhaps using jquery or something similiar?
the code i have atm is
http://www.jsfiddle.net/rkd59/1/
Has anyone an idea how pipebytes.com works ? I need to implement similar system in PHP and I do not know how to start. The only thing I know is that it is possible to implement it :). Please help!
I'm trying to do the same thing as suggested in this solution:
http://stackoverflow.com/questions/164496/how-can-i-create-a-thread-safe-singleton-pattern-in-windows/164640#164640
But, where should the critical section be initialized and uninitialized?
i have tried to copy euro symbol from Wikipedia...and echo it (in my parent page),at that time it is working.but when i replace the same html content using jquery(used same symbol to echo in the other page).it is not displaying.why is it so..(or is der any way to display the same thing using html)?
I am creating a sort of "Command line" in Python. I already added a few functions, such as changing login/password, executing, etc., But is it possible to browse files in the directory that the main file is in with a command/module, or will I have to make the module myself and use the import command? Same thing with changing directories to view, too.
Sql server 2005 (even 2008) strips the insignificant whitespaces by default. To keep one can use the CONVERT funtction with the last argument as '1' (Ref. Article). How can we do the same thing in Entity Framework?
thanks
I know that the Apple Mac OS .app file is a collection of programs and data. I guest the iPhone is similar in this way. I can unzip a Mac OS .app to find the resource , images using this way. Can the iPhone App do the similar thing? I mean, can the user unzip the iPhone .app to get the resource/ img from that? thz.
I'd like to write a bot to play in the 3D RoboCup simulated soccer league. Can anyone point me at some code that already deals with communication with the server, etc?
Ideally this would be .NET code, but an example produced in any language would still be useful.
EDIT For anyone who is not familiar with the RoboCup 3D Soccer league, check out this YouTube video. It has some pretty funny moments, if you're into that sort of thing...
Sorry if this has been asked before but I can't find it. I am looking for an authoritative description of all valid strings that can be used as a reference, e.g., "A1:C5", "$A:$A", $A2" etc etc. That seems a pretty basic thing yet I've wasted hours trying to locate it. All I can find is a swamp of "helpful" examples but no reference.
Look:
class User < ActiveRecord::Base
has_many :scores, :order => 'score DESC',:autosave =>true,
end
class Score < ActiveRecord::Base
belongs_to :user
end
Now, I want to order the users by the maximun score of each one,
Thething is that i need to get a user, two up and two down users
like a top 5 scores
how can I do that????
please is urgent!!
I'm a bit fuzzy on the basic ways in which programmers code differently in C and C++. One thing in particular is the usage of strings in C++ over char arrays, or vice versa. So, should I use strings or char arrays, in general, and why?
I HAVE TO RETRIEVE ID AND LAST_NAME FROM MY TABLE BUT THETHING IS THAT MY ID IS NOT CONTINUOUS AND THERE NO PATTERN FOR THE GAPS. NOW I WANT TO WRITE A PL/SQL ANONYMOUS BLOCK FOR THIS.
Alright so I want to grab the information on a website thats between
[usernames] and [/usernames]
I know how to get the string but how would I use regex to only have the information in the middle.
Remember I am going to be having more then one thing on the page.
I have a stored procedure that alters user data in a certain way. I pass it user_id and it does it's thing. I want to run a query on a table and then for each user_id I find run the stored procedure once on that user_id
How would I write query for this?
SQL SERVER
Hi, I have heard that MbUnit comes with pretty nice test decorators which allow writing db-related tests with ease.
I am struggling to find good documentation with samples.
Also, can the same thing be achieved with the latest Micosoft's Test package?
Many thanks.
hi every one
I'm want to know how's correct way to use Xml in sdk for web base application
i'm trying to do magazine in iphone but they told me that i have to use XML to take body and other thing from that web site?
please some one direct me to that and if you have any tutorial for that
thanks
I'm using Eclipse + the Android SDK on a Mac running Snow Leopard to develop Android apps.
Thing is, Eclipse is really slow - like, it "beach balls" for a few seconds when changing tabs.
Is there anything I can do to improve it's performance?
I want to know if there is a way to know when fscanf reads a whitespace or a new line.
Example:
formatting asking words italic
links returns
As fscanf read a string till it meets a newline or a whitespace(using %s), it'll read formatting and the space after it and before a. Thething is, is there a way to know that it read a space? And after it entered the second line is there is a way to know that it read a carriage return?
In C# or Java, class are declared and defined at the same time. In C++, the norm is to write .h and .cpp files separately. What if, we write the whole class in one , say .cpp, file and include that with include guards and stuffs in files that references to it, what kinds of bad thing technically would happen?