Hi
I wana creat a boolean field in my oracle table but I seen there is no boolean or byte data type so,which one of the oracle datatype I must choose for a boolean value?
hi,
I have a dict
val_dict - {'val1': 'abcd', 'val': '1234', 'val3': '1234.00', 'val4': '1abcd 2gfff'}
All the values to my keys are string.
So my question is how to find out type for my values in the dict.
I mean if i say`int(val_dict['val1']) will give me error.
Basically what I am trying to do is find out if the string is actual string or int or float.`
if int( val_dict['val1'):
dosomething
else if float(val_dict['val1']):
dosomething
thanks
Hi,
Can you please tell me where I can find a 'gitk' type of tool for hg on ubuntu?
I have tried '$ sudo apt-get install tortoisehg' but I get this:
$ hgtk
abort: This version of TortoiseHg requires Mercurial version 1.3.n to 1.4.n, but finds 1.5.2
Is there a command that will convert ASCII into blob?
I have the following table:
sample_table:
-------------
id : NUMBER
type : NUMBER
version : NUMBER
data : BLOB
When doing the following command:
insert into sample_table values (1, 0, 1, '');
I'm getting the following error: ORA-01465: invalid hex number.
Hi Guys,
I'm looking to test some code I've written and to do so I need to construct a variable of type Location and to give it a long / lat value but I'm unsure how I would do so. Any ideas?
I have a PHP application using an Oracle XE database.
Whenever I add a date the hours minutes, and seconds seem to get left out.
Is there some special format, or type I should use to be able to store this? I have tried using to_date, and specifying the format I am using.
Many thanks for any suggestions from this confused MySql dveloper.
Sorry for the multitude of iPhone Programming newb questions but..
what is the reason for having an unsigned type for something such as
- (unsigned)count
for the NSArray class.
Why not just define it as
- (int)count
?
I am making a windows service to be able to run operations on a sql server database (insert, edit, etc) and invoke Stored Procs.
However, is there a way for me to know the type of the SP? When invoking from C#, I need to knof if it is returning 1 value, or more, or none (so I can use executereader, scalar, etc)?
Thanks
Hi, i am detecting images on my webpage with javascript document.images function which returns an rray of images. Is there any way to get the mime type of the image from this since i am not using any extension names on images which are loading?
Hi,
anyone has tried to create a symfony form filter from a class which has a field of type "date" ?
When i do it, i get this error:
500 | Internal Server Error |
Doctrine_Connection_Mysql_Exception
SQLSTATE[HY093]: Invalid parameter
number: number of bound variables does
not match number of tokens stack trace
I think the error dependens on this command:
'SELECT b.id AS b_id, b.day AS b_day FROM birthday b WHERE b.day = ? AND
b.day <= ?', array('month' = '1','day' = '2', 'year' = '2014')
but i dont know how can i solve it..
Any idea?
Javi
I am running CentOS 5.5 x86_64 with JDK 1.6, Eclipse Galileo, and the 0.9.7 ADT is installed; however, after installation, the Android project type is not available. I have checked in the installed packages list and it is installed. Anybody encounter this problem before? Could it be due to my use of the 64-bit java VM that is installed on my system?
I have a control that I purchased. When I tried to inherit from the control I get this message:
Warning: 'MyNamespace.MyFile': base type 'Mooseworks.UI.MwTextBox' is not CLS-compliant
Is there any way around this besides asking the vendor of my control to make their control CLS compliant?
given a list of python strings, how can I automatically convert them to their correct type? Meaning, if I have:
["hello", "3", "3.64", "-1"]
I'd like this to be converted to the list
["hello", 3, 3.64, -1]
where the first element is a stirng, the second an int, the third a float and the fourth an int.
how can I do this? thanks.
I have the following class
public class MyClass<T> {
public Class<T> getDomainClass() {
GET THE CLASS OF T
}
}
I've googled this problem and all the answers I could find told me to use getGenericSuperClass(), but the problem of this method is that I must have a second class that extends MyClass and I don't want to do this. What I need is to get the parametrized type of a concrete class?
I know how to delete single files, however I am lost in my implementation of how to delete all files in a directory of one type.
Say the directory is \myfolder
I want to delete all files that are .config files, but nothing to the other ones.
How would I do this?
Thanks Kindly
I have this object which is an instance of a superclass. I want to know which subclass that object really is, so that I can decide what to do with it. There is this getClass() method but it's apparently not used for comparison issues. How can I get the sub-type of my object?
What is the correct type to use in Qt development (or C++ in general) for decimal arithmetic, i.e. the equivalent of System.Decimal struct in .Net?
Does Qt provide a built-in struct? (I can't find it in the docs, but maybe don't know where to look.)
Is there a "standard" C++ library to use?
Hello,
how can I generate a xsd schema for a c# type (in code). There must be certainly a way, because xsd schema is generated for datacontracts in wcf.
[MetadataType(typeof(Deal_Validation))]
public partial class Deal
{
}
public class Deal_Validation
{
[Required]
public string Title { get; set; }
public double? EstValue { set; get; }
}
How to validate EstValue (check if it is of type double?)
Thanks