I like to read alot of IT books e.g programming / functional. But the problem is that after reading I cannot find reasons to put it into practise and I soon forget what I read.
Any advise?
what i need is a server that listens to 5060 port , when the client sends data to that port the server should open up another port ( any port after 1250 i believe ) and forward the clients data to that port keeping 5060 idle so it can perform the same function for the next client
so basically i need the server to
a) open up multiple ports one…
What is the fastest way to reorder (resort) a table? In MySQL, you can do:
CREATE TABLE table2 LIKE table1;
INSERT INTO table2
SELECT * FROM table1 ORDER BY by name;
DROP TABLE table1;
RENAME TABLE table2 TO table1;
What about PostgreSQL?
Is there a faster way?
I've got a datagridview that is databound from a database table. How do I:
a) Edit the displayed value for a column using the values from other columns in the row? (For example, display a URL like:
<a href="/url?param=columnA">columnB</a>
where columnA is the value from column A and columnB is the value from columnB)
b)…
Possible Duplicates:
Why ‘this’ is a pointer and not a reference?
SAFE Pointer to a pointer (well reference to a reference) in C#
The this keyword in C++ gets a pointer to the object I currently am.
My question is why is the type of this a pointer type and not a reference type.
Are there any conditions under which the this keyword…
I'm running a django system over mysql in amazon's cloud, and the database default is innodb. But now I want to put a fulltext index on a couple of tables for searching, which evidently requires myisam.
The obvious solution is to just tell mysql to ALTER TABLE to myisam, but are there going to be any issues with that?
One that comes to…
Hi guys,
Whats the easiest method of hiding all buttons but not all inputs (say drop down lists, text input boxes) in CSS that works with IE6. The purpose of this CSS file is for printing (using the media="Print" tag in the HTML).
I have an idea i thinking of creating a website whereby a traveler can exchange itinerary activities and form their own ideal itinerary.
Any ideas? Has a similar website been done? Is it worth coming up with another similar application?
I have a many-to-many relationship:
Application -
Applications_Servers -
Server
This is set up in my Entity Data Model and all is well. My problem is that I'd like to eager-load the whole graph of Applications so that I have an IEnumerable<Applications>, each Application member populated with the Servers collection associated by…
Whenever I add a layer for Core Animation either from the nib or programatically, the NSTextFields (labels) in my interface get messed up. Here's a screenshot from Apple's BasicCocoaAnimations example. (Look at the text fields on the left, somehow they're drawn sharper than normal)
Note that if I add a layer in IB then it also gets…
Hi,
I've got dates being generated which look lke these:
Sun May 16 23:59:59 GMT 2011
I want to convert them into storable MYSQL form and so that i can read/compare them via php. I am using php. How can i convert the above into something MYSQL will understand?
How to check in C# if a javascript file is already loaded on to the page? Let's say I have a user control in a different namespace that I load on to a page. I would like to see if a script file doesn't exist before I register it with the scriptmanager.
I'm looking for a code snippet manager per the following:
Usable on Windows
stand-alone product
desktop-based (not online)
Free or paid
Has PHP syntax highlighting
I've found the following, but they don't seem to quite ring the bell (although they are good products):
-- Snip-It Pro (not free) -- Has syntax highlighting, but…
What is a better way to program the following SQL:
str_to_date(
concat(convert(D.DAY, CHAR(2)),
'-',
convert(M.MONTH, CHAR(2)),
'-',
convert(M.YEAR, CHAR(4))),
'%e-%m-%Y' ) as AMOUNT_DATE
I want to convert the columns D.DAY, M.MONTH, and M.YEAR to a date field using MySQL. The above works, but seems much more…
I'm looking for statistics on SCM usage, in particular I'm trying to find out what percentage of their time developers spend on SCM-related tasks. The more detailed the breakdown, the better. Online and offline resources would both be tremendously useful to me. Can anyone point me towards some industry studies? Preferably…
I have a class (from NSObject) that contains:
NSString name
int position
float speed
I then create an array (NSMutableArray) of objects from this class. I would like to then sort the array by the 'speed' value, which is a float.
I initially has the float value as an NSNumber and the int as NSInteger, and I…
Hi there.
I'm trying to adopt some best practices to keep my python code efficient. I've heard that accessing a member variable inside of a loop can incur a dictionary lookup for every iteration of the loop, so I cache these in local variables to use inside the loop.
My question is about the loop statement itself...…
Hi guys,
I have a panel, within that panel are several rectangular controls (the number of controls vaires) I want the user to be able to move the controls around within the panel so that they can arrange the controls in the way that suits them best. does anyone have any resources i could read or simple tips which…
In my last application, using MEF to load plugins went just fine, but now I'm running into a new issue. I have a solution for it that I explain at the end of this question, but I'm looking for other ways to do it.
Let's say I have an interface called ApplianceInterface. I also have two plugins that inherit from…
According to the guidance published in New Recommendations for Using Strings in Microsoft .NET 2.0, the data in a string may exhibit one of the following types of behavior:
A non-linguistic identifier, where bytes match exactly.
A non-linguistic identifier, where case is irrelevant, especially a piece of data…
I decided that I want to make a game for the iphone I was thinking of using oolong or sio2 any recommendations?
Both have the problem of lack of tutorials, is it possible to somehow use a normal C++ game tutorial and integreate the engines rather than the one used in the tutorials? So if the C++ tutorial…
I've set up Mediawiki 1.15.1 for a client who has added two users by mistake. They now want to hide these users from the user list.
It seems this is done via the $wgGroupPermissions array with $wgGroupPermissions['suppress']['hideuser'] = true;, but it isn't at all clear what entry this needs for the…
Please could you let me know if there are any performance issues with using mysql on windows xp. The mysql serves over 10 client server apps, which query the database simultaneously
Hi,
I have a problem whereby I cannot debug a c# silverlight application project that is hosted from within a visual basic web application. I add breakpoints to the main App constructor and the symbols are loaded ok but my breakpoints are never hit. I have concluded that it is a vb/c# interop problem…