Hi,
Can anybody tell me how to activate RTTI in c++ when working on unix.
I heard that it can be disabled and enabled.
on my unix environment,how could i check whether RTTI is enabled or disabled?
(Apologies in advance if this is a re-post but I didn't find similar posts)
What bad method name patterns have you seen in code and what did it tell you about the code.
For instance, I keep seeing:
public void preform___X___IfNecessary(...);
I believe that this is bad because the operation X has an inversion of conditions. Note that this is a public method because classes methods might legitimately require private helpers like this
Hi All,
Below is the link for making the cover flow model in iphone. This is a sample tutorial.
http://www.chaosinmotion.com/flowcover.m
Can any one tell me how can i make the cover flow model to adjust some where up on the screen. Currently it is in the centre of the screen i want if about 70 to 80pixels to move up in the screen.
Your help will be highly appreciated.
Hi all,
I want to do a simple task with XCode and AppleScript:
I want to create a new project
Save created project with desired name in desired folder.
Can someone tell me how can I achieve it using AppleScript??
Thanks,
Miraaj
Could anyone please tell how jre directory help in the running java programs? I'm calling java interpretor by using java command, and that is in JDK directory, then how could jre directory help in running java programs and jdk for compiling?
This is a 2 part question:
1)
click on one of the demo dropdowns on this page. when you tab over to the next input, the text is selected/highlighted in firefox. how can i prevent this from happening?
2) bonus: can you review my code that is hosted on google and tell me what i can improve?
I am developing a website where i am using CSS based layouts with absoulate positions. I would like to know is there any plug in for IE 8 which will tell based on the mouse where i am moving with the position (In Pixels).
I want to know with out any JS. I am looking is there any external plug in which will allow me to find out the position.
I have had horrible procrastination habits since gradeschool, and now that I'm in college, I still am having a hard time beating this bad habit. I find myself easily distracted from doing real "work" and find myself wandering off doing something else that I enjoy more.
Tell me how you personally beat procrastination; or share your struggles.
Hi,
I am writing a custom installer in C#.
Can you tell me an easy way to check if the machine has .NET version installed [even 2.0].
In cases where it is not installed, my app doesn't even start.
Thanks
This is what I want to do:
Input: ArrayList that contains a bunch of .jpg URLs
Download the image (using HttpURLConnection maybe?)
Resize
Save as xxx.jpg, locally
I don't know where to start. I'd appreciate if anyone can tell me what to study to do the steps 1~3.
I've noticed when I tweet via the API it says via API after the status update.
I've noticed also some clients change this to their name with a URL.
How do I do this? The status update docs don't tell me how.
When I add a service reference to my Visual Studio 2010 C# project, a new class for one of the types defined in the WSDL will be generated. A de-facto equivalent definition of that type already exists in our solution in a different assembly.
When adding the SoapTypeAttribute to the existing class and replacing the references to the generated class in the generated code, everything runs perfectly and as expected.
How would I tell Visual Studio to use the existing class in the generated code?
Can somebody tell me how can I close/kill the session when the user closes the browser? I am using stateserver mode for my asp.net web app. The onbeforeunload method is not proper as it fires when user refreshes the page.
I Want to exit ssh:
Does the below line work:
ssh -f -T ${USAGE_2_USER}@${USAGE_2_HOST}
Or do i need to write it some other way . Please tell should I use exit with ssh an how?
I have
1.Table:user(userId,userName,userGroup)
2.Model:userModel
3.usercontroller
there i a simple code:
Controller:
class UserController extends Zend_Controller_Action
{
public function getuser()
{
$userModel = new userModel();
$this-view-usergroup = $userModel;
}
}
Model:
class Model_UserGroupModel extends Zend_Db_Table_Abstract {
public function getuser(
{
$select = $this-select();
return $this-fetchAll($select);
}
}
view:
please tell me what code I must insert in view to only have user with specific row like user with group teacher also i use partialoop???
Who can tell me the internal working mechanism of a CollectionEditor in plain English?
I have implemented every virtual function and step into each of them. Still got no clue of its intended algorithm. I searched the web and found tons of compaints about the CollectionEditor type, and even bugs.
I am kind of thinking of the CollectionEditor as a total mess.
Hi all,
Is there any way to fill an ellipse or a rect by point to point like in an airbrush tool in mspaint?
I could not find a way to create an empty rect or an ellipse and then fill them up pixel by pixel or setting random pixels on screen in a circle way....
Can i tell setPixel to fill inside a dcellipse or anything like that?
10x
Hello All:
I am an issue while converting "March 16-17" to DateTime and saving it to SQL server. "March 16-17" as it looks, read as March 16 to March 17, which in my case is invalid, but C# DateTime.TryParse() is treating "March 16 -17" as March 16, 2017 which is wrong, and saving the data in SQL server. SQL server treats "March 16-17" as invalid. So, can some body tell me how to use SQL server datetime validation in C#.
Thanks
Ashwani
Hi folks,
I'm using the timeout parameter within the urllib2's urlopen.
urllib2.urlopen('http://www.example.org', timeout=1)
How do I tell Python that if the timeout expires a custom error should be raised?
Any ideas?
Hello All:
I am converting a string to datetime using DateTime.TryParse in C#. Can somebody tell me, how to know which format C# compiler used to convert the string to valid DateTime. I want to know the datetime format used.
Thanks,
Ashwani
I use log4j and would like to route the output of certain Loggers to specific files.
I already have multiple appenders in place. Now, to make debugging easier, I want to tell log4j that the output generated by a specific class (e.g. foo.bar.Baz) should be written to a specific log file.
Can this be done?
Hello,
I just wanted to know if anyone knows about the clone of http://www.olx.com made in PHP.
Note: Not sure whether to ask this question here but I thought only programmers might tell as this is their business.
Thanks.
bulkloader.py is very handy.
But as far as I can tell it doesn't appear to fetch items from the blobstore, so you can be left with broken entity relationships if you needed to dump/restore your application.
Does anyone know a method for completely backing up their data from app-engine including blobstore data?
Hi All,
We're trying to alter the DataGridViewComboBoxCell so that when the user expands the dropdown menu, inactive items are displayed in grey text.
I've found out how to do this by creating a new object, which inherits from DataGridViewComboBoxEditingControl.
The problem with this, is that I'm not sure how to tell the comboBoxCell, or column, to use this EditingControl, when the user clicks on the cell.
Any ideas?