I want to make auto increment id in two MySQL tables (if in first table there is id=4 then it cannot be id=4 in the second table). My question is how can I do that in the best way?
Hi all,
SQLiteJDBC was giving me the following exception when used with hibernate's "hbm2ddl.auto = update" setting:
org.sqlite.MetaData.getImportedKeys not yet implemented
Any solutions? I found one below, and am posting it here for my future reference, but anyone else have any better ideas?
I am using Hpricot to parse a theme file. I have noticed, however, that if I feed a valid HTML5 document into Hpricot(), it auto-closes HTML5 tags (like <section>), and messes with the DOCTYPE.
Are there any extensions to Hpricot, or perhaps a flag I need to set, that will allow HTML5 documents to be parsed correctly?
I have a gridview (Edit and Delete enabled) that shows a table. A Text Box and A Button. When I type something in the textbox and click the button, the button runs the datasource.filterexpression and filters out the rows.
The question whenever I click on the edit button after the filter has been applied The grid auto resets back to the original table? How can I solve this?
I am building an app for iPhone that has javascript running in a webview. When the new auto-select block selection tool is used to select text, and the block is resized from the side, it makes my javascript freak out. Does anyone know a way to disable the copy/paste for block selection? I still need to be able to select text, just not using the big selection tool.
Thanks
What is the real diference between each one?
I think auto inc is easy to hack vs uuid
Uuid is slow than autoincrement in a query with to many records, but is there a huge difference in it?
Round two. First was "How do I get all supported CSS properties in WebKit?".
I'm looking for magic CSSkeywords function:
CSSkeywords('float') --> ['left', 'right', 'none']
CSSkeywords('width') --> ['auto']
CSSkeywords('background') --> [
["repeat", "repeat-x", "repeat-y", "no-repeat"],
["scroll", "fixed"],
["top", "center", "bottom", "left"],
/*regexp for color*/,
/*regexp for url*/,
"none"
]
Hello,
Im tring to create a manifest for my own.dll, i took the manifest file from C:\WINDOWS\WinSxS\Manifests for example. In that, below tag was one of the line.<file name="msvcr90.dll" hashalg="SHA1" hash="e0dcdcbfcb452747da530fae6b000d47c8674671">
In above tag, hash value was assigned with 40 character.
Here comes my doubt,
1) hash value was auto generated, if not, whats it points to?
i have a php page which auto refreshes itself after 10 seconds. Some time the page takes too long to load as its fetching data from external urls . How can i stop execution of the script after 10 seconds and then reload the page.
I want to create a hgrc file to set the username and password for all paths on some machine, e.g no matter in which directory I am in, hg clone some_path will always work without prompting for a username and a password (this is for an auto-deploy script).
I followed the instructions and created a file: /etc/mercurial/hgrc.d/deploy.rc
it's contents:
[auth]
default.prefix= http://myrepo
default.username = myuname
default.password = pwd
But when I do
hg clone some_path I get abort: error: Connection refused.
What Am i doing wrong?
Hi friends,
I have a div tag and I am populating the search results on a custom grid, which is placed inside this divtag.
When a user click on the search button, i am displaying the results in the above mentioned div tag.
I have a requirement to close the above div tag when the user clicks outside the div tag.
It is similar to google search auto comlete.
Thanks in advance.
I installed VS2010 and NET 4.0 framework and created a simple project. When I uploaded to my server (where I also installed the 4.0 framework), I get this error:
Unrecognized attribute 'targetFramework'
It's coming from this section in the web.config which was auto-generated by VS2010 when I created the project:
I've checked and ensure that the application pool for my website on the server is set to "4.0 Integrated".
Any feedback on how to get past this error would be appreciated.
Thank you!
Hello,
I wonder why does this style not work in IE and FF, but in Chrome ONLY
#show{top:10%; position:relative; margin: 0px auto; width:100%;}
[Edit]
If I want to make the same work in IE and FF, what do I have to do
Thanks
Jean
The signature of the hashCode() method is
public int hashCode(){
return x;
}
in this case x must be an int(primitive) but plz can anyone explain it to me that the number
which the hashCode() returns must be a prime number, even number...etc or there is no specification ? the reason behind i am asking this question is i have seen it in different ids the auto generated code always returns a prime number, so i need to know why?
thanks in advance
Is there a clean way of cloning a record in SQL that has an index(auto increment). I want to clone all the fields except the index. I currently have to enumerate every field, and use that in an insert select, and I would rather not explicitly list all of the fields, as they may change over time.
I am getting the message:
* _NSAutoreleaseNoPool(): Object 0x3f43660 of class UICFFont
autoreleased with no pool in place -
just leaking
I have placed a break point using the symbol _NSAutoreleaseNoPool and the program does break, however, the stack trace does not show me any of my code only some UIView and Core Animation layer code.
Is there a better way to get to the bottom of the issue? There is apparently a thread that does not have an auto release pool, but I can't figure out where.
Thanks.
Is it correct practice to add Javadoc comments in Interface and add non Javadoc comments in the implementation?
Most IDEs generate non JavaDoc comments for implementations when you auto generate comments. Shouldn't the concrete method have the description?
Hi, I'm just wondering if it's possible to retrieve the the most entered entries from the mysql database
It's like this :
ID - Value
Id is auto increment, and value is the text that is being entered, i'd like to have it display the top 10 most entered terms, how could i do that?
When I try to pull down a database while at work I get the following error:
:>heroku db:pull
Auto-detected local database: sqlite://db/development.sqlite3
Bad credentials given for http://heroku:[hidden]@taps.heroku.com
Note that when I am at home I am able to run this command just fine. I wanted to know if you have any suggestions for common reasons I would get this error.
i see after installing the asp.net membership tables, they use the data type "uniqueidentifier" for all of the primary key fields.
I have been using "int" data type and doing increment by one on inserts.
Is there any particular benefits to using the uniqueIdentifier data type compared to my current model of using int and auto increments on new inserts ?
Does anyone know a good step by step tutorial for using sqlite on Android?
I've found this: http://developer.android.com/guide/topics/data/data-storage.html#db and it ok to start with, but then it wants me to jump into other source code then its difficult to follow.
I've tried others on the web, one from screaming penguin and that just kept causing errors with JVM.
Advice greatly appreciated.
I need to:
Create database, with several tables (auto id, declare type)
update
get
Hey guys
I'm getting this weird error in my Zend application with this piece of code:
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'www.xyz.com/ab.php');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($curl);
curl_close($curl);
This is the error, I get:
Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'session has already been started by session.auto-start or session_start()
When I remove that code everything works fine.
Any idea ??
Thanks
Is there a jquery way or plugin to detect the visitor's browser window size when they first come to the page and auto stretch the browser for them if it's too small?
It's a pretty common thing that I've seen done a few times, so I'm guessing someone here will know about it.
My pyx depends upon a native library
How can I pyximport.install() it? The auto-build in pyxinstall doesn't know to link with the native library, so the build fails...
I'm using ASp.Net MVC and EF 4.3.1.
Using POCO t4 template I'm able to create the POCO classes for my model but not validation.
At the moment I'm using Partial Classes with MetaData for adding the annotation (leaving intact the POCO auto generated).
My question: Could you point me out a tutorial, or show me an example of code or a link to a T4 template the also include automatic VALIDATION for my POCO?
THanks