Hello friend
I have code name and surname put into same string with coma in the middle ,as "JohnSmith"
I need to insert into database to separate
Can you give me code for that.
Thanks
vijay
Hi,
I have esthetic's problem.
Zend Form not in place label value, how to move them that they will be exactly above text box,
and not from left?
(I didn't put filters and validation to make this code simpler here)
Thanks,
Yosef
My Code Login.php form:
public function init()
{
$username = new Zend_Form_Element_Text('username');
$username->setLabel("username");
$password = new Zend_Form_Element_Password('password');
$password->setLabel('password');
$this->addElements(array($username, $password));
}
I'm using C# and I'm making an application where a lot of UI loading must be done in background. Is it possible to do it unsafely and ignore InvalidOperationExceptions? The only way I found it to put try...catch statements around every single line of code but this will take ages as there is too much code.
Hi,
i want to implement a ipad view, where i parse an xml file and put the entries side by side on an "endless" ipad view, so you have to swipe through it left and right. could someone tell me how i can implement this? which type of view do i have to use?
thanks in advance
regards
How to exclude files from src/main/resources, for ex : I have a folder named "map" in there, which I wanna keep and I want to delete everything from war(or not to package it inside at firstplace).
Or alternative but same result, exclude all *.resources files from src/main/resources and put in war everything else?
Thank you
Dear Masters
Why my shellcode is trunced after "\x20" opcode, when it is copied by string to stack on a second vulnerable program?
--cmd.exe--
char shell[]=
"\xc7\x44\x24\x0c\x65\x78\x65\x20" <---only this line is put in stack, though hv a enough space
"\xc7\x44\x24\x08\x63\x6d\x64\x2e"
"\x31\xc0"
"\x89\x44\x24\x04"
"\x8d\x44\x24\x08"
"\x89\x04\x24"
"\x8d\x05\xad\x23\x86\x7c"
"\xff\xd0";
--end shell--
I have jaxb annotated classes and I want to unmarshal them and use the setSchema for validation.
I have a two questions:
Do I have to create the schema at "build time" using ant or can I just ad-hock create them for validation when needed.
Where do you put your schema files?
is there another reason but validation to create a schema if I prefer writing my class first?
Purchased a new computer, actually the parts to build one. Unsure what windows 7 to purchase. Need at least professional, seems to be around $200 upgrade to $300 full version.
If I put the old XP on my new machine, will i be bale to use the 64bit windows 7 Pro upgrade instead of having to buy the full version? Will it still do a clean install?
I have a UITextField in my IB and I want to check out if the user entered only numbers (no char)and get the integer value.
I get the integer value of the UITextField like that :
int integer = [myUITexrtField.text intValue];
When I put a character ( , ; . ) it return me 0 and I don't know how to detect that it is not only numbers.
How can I do?
hey hello...
my application consist of a landscape view where i want to put a modalview but the problem is with modalview. it doesn't get load on presenting it.. code is:
--------------------code here----------------------
UIViewController *modalViewController = [[UIViewController alloc] init];
modalViewController.view = modelView1;
[self presentModalViewController:modalViewController animated:NO];
[self performSelector:@selector(hideSplash) withObject:nil afterDelay:5.0];
plz kindly help me with this....
I'm using CMFCOutlookBar from the Feature Pack, and I'm trying to put an icon on the "button" of the tabbed pane - the thing that slides up and down in the bar, when you select a pane. The pane API includes a "SetIcon" function, but this doesn't do anything as far as I can tell. Neither does the "SetTabHicon" function of the bar.
Does anyone know how to do this?
I am using the SparkViewEngine and I am calling an action that I want to return a Partial View to update just a section of the page. When I return the view on the action the masterpage and all of its content gets returned. How do you tell a partial in spark to just return the content of the partial view and not put the content inside the application.spark file??
Hi Geeks,
For a handheld device I want to put a vertical Bar which will contain widgets that show the battery status of device, network connectivity status, Date and Time etc. For this Bar I have chosen a GroupBox and for the widgets inside that (lets say batter status) I am planning to use QPushButton. Is it correct I am doing or there is some special widgets for this purpose?
Please suggest.
I would like to pass some options to Python (version 2.6) every time, not just in interactive mode. Is there a file I can put such commands in?
EDIT: Specifically, I'm wanting to silence the Deprecation warnings.
Hi,
I try to define a table as a new environment.
\newenvironment{scaledtable}[1]{%
\begin{table}[h]
\caption{xxx}
\label{tab:xxx}
\begin{center}
\begin{tabular}{rcrrrrrrrrrrrrcc}
}{
\hline
\end{tabular}
\end{center}
\end{table}}
The problem I have is that I can't use scalebox{}. If I put the closing bracket into the end definition of the environment, latex can't assign the brackets anymore. I also can not use PStricks because of pdflatex.
/Markus
When a command like play(), pause(), or seek() is called while the videoDisplay is unresponsive it gets put on a queue, how do I flush this queue so the most recent command is the only command processed?
On confluence I want to create a link that links to:
P:\myFolder\folder, where P is mapped to a network share.
Just putting in "P:\myFolder\folder" doesn't work. Any ideas?
(Assuming I cannot put in the full netowrk path).
I know of some people who use git pull --rebase by default and others who insist never to use it. I believe I understand the difference between merging and rebasing, but I'm trying to put this in the context of git pull. Is it just about not wanting to see lots of merge commit messages? Or are there other issues?
i use this code can crteate ,but someone say it can't create ,why ?
class LogText(db.Model):
content = db.StringProperty(multiline=True)
class MyThread(threading.Thread):
def __init__(self,threadname):
threading.Thread.__init__(self, name=threadname)
def run(self,request):
log=LogText()
log.content=request.POST.get('content',None)
log.put()
def Log(request):
thr = MyThread('haha')
thr.run(request)
return HttpResponse('')
Is it a bad idea to split up a application and the database?
Application1 uses database1 on ServerX
Application2 uses database2 on ServerY
Both application communicates over web service API, they are apart of the same application,
one application is used to manage user's profile/personal data, while the other application is used to manages user's financial data.
Or should just put them together and just use 1 database on the same server?
I'm trying to solve a gitignore problem on a large directory structure, but to simplify my question I have reduced it to the following.
I have the following directory structure of two files (foo, bar) in a brand new git repository (no commits so far):
a/b/c/foo
a/b/c/bar
Obviously, a 'git status -u' shows:
# Untracked files:
...
# a/b/c/bar
# a/b/c/foo
What I want to do is create a .gitignore file that ignores everything inside a/b/c but does not ignore the file 'foo'.
If I create a .gitignore thus:
c/
Then a 'git status -u' shows both foo and bar as ignored:
# Untracked files:
...
# .gitignore
Which is as I expect.
Now if I add an exclusion rule for foo, thus:
c/
!foo
According to the gitignore manpage, I'd expect this to to work. But it doesn't - it still ignores foo:
# Untracked files:
...
# .gitignore
This doesn't work either:
c/
!a/b/c/foo
Neither does this:
c/*
!foo
Gives:
# Untracked files:
...
# .gitignore
# a/b/c/bar
# a/b/c/foo
In that case, although foo is no longer ignored, bar is also not ignored.
The order of the rules in .gitignore doesn't seem to matter either.
This also doesn't do what I'd expect:
a/b/c/
!a/b/c/foo
That one ignores both foo and bar.
One situation that does work is if I create the file a/b/c/.gitignore and put in there:
*
!foo
But the problem with this is that eventually there will be other subdirectories under a/b/c and I don't want to have to put a separate .gitignore into every single one - I was hoping to create 'project-based' .gitignore files that can sit in the top directory of each project, and cover all the 'standard' subdirectory structure.
This also seems to be equivalent:
a/b/c/*
!a/b/c/foo
This might be the closest thing to "working" that I can achieve, but the full relative paths and explicit exceptions need to be stated, which is going to be a pain if I have a lot of files of name 'foo' in different levels of the subdirectory tree.
Anyway, either I don't quite understand how exclusion rules work, or they don't work at all when directories (rather than wildcards) are ignored - by a rule ending in a /
Can anyone please shed some light on this?
Is there a way to make gitignore use something sensible like regular expressions instead of this clumsy shell-based syntax?
I'm using and observe this with git-1.6.6.1 on Cygwin/bash3 and git-1.7.1 on Ubuntu/bash3.
Hey,
I have an input text :
<input name="Email" type="text" id="Email" value="[email protected]" />
I want to put a default value like "What's your programming question ? be specific." in StackOverFlow, and when the user click on it the default value disapear.
( insert really basic question disclaimer here )
More specifically, I have the following declaration:
output reg icache_ram_rw
And in some point of the code I need to put the zero value in this reg. Here's what I've tried and the outcomes:
assign icache_ram_rw = 1'b0;
( declarative lvalue or port sink reg icache_ram_rw must be a wire )
icache_ram_rw <= 1'b0;
( instance gate/name for type "icache_ram_rw" expected - <= read )
How do I do it after all?!
I have a div containing jQuery image slideshow, i want to put another div/layer on top of the slideshow. Is it possible? Is it as simple as setting both div z-index css property?
I have simple SSIS package which reads data from flat file and insert into SQL database. The file has 90K rows and sometimes because of bad data package fails but it insert the partial records before it fails. What I need is if insertion fails at any time between, no records should be inserted into DB, rollback everything.
how can I put it in transaction?