I'm developing an web app with jsp,servlet in server side and javascript in client side.
How can a i upload multiple files(images) to the server(and save them to the db)?
I have a few scatter elements which I am grouping together using a class like so - . In my code behind, using C# I want to hide these elements, using something like instructions.Visible = false;. However I realize I can only do this in codebehind if I use ID but this will result in invalid HTML/CSS Selector since you can't have multiple ID's with the same ID name...
Alternatively is there another way to group the controls if not by class?
I'm looking to create a Left outer join Nhibernate query with multiple on statements akin to this:
SELECT * FROM [Database].[dbo].[Posts] p LEFT JOIN [Database].[dbo].[PostInteractions] i
ON p.PostId = i.PostID_TargetPost And i.UserID_ActingUser = 202
I've been fooling around with the critera and aliases, but I haven't had any luck figuring out how do to this. Any suggestions?
I want to create a vb.net project that I will use to only hold image and string resources that I will need in multiple projects.
What I can't figure out is how do I reference these resources from other projects.
Hi, In my project I need to watch multiple FTP Folders continuosly, if any new file comes i need pick the filename and do some process. If that is normal Windows/Local File System folder I can achieve this by using SystemFileWatcher of .net. Is there any thing like SystemFilewatcher to watch FTP folders?
Thanksnrk
Environment: Seam, Richfaces
The following code snippet causes the method getUsers to be called multiple times, how do I avoid this in my application so that it gets called only once.
<c:forEach items="#{userHome.getUsers()}" var="_user">
</c:forEach>
Hi,
I am trying to compress multiple files into a single zip archive and I am running into low memory warning. Since the complete zip file is loaded into the memory I guess that's the problem. Is there a way by which I can manage the compression/decompression better using ZipArchive so that not all the data is in the memory at once?
Thanks!
I am doing a PDO::exec command on multiple updates:
$MyPdo->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY,true);
$MyPdo->exec("update t1 set f1=1;update t2 set f1=2");
I am doing it inside a transaction, and I keep getting:
SQLSTATE[HY000]: General error: 2014
Cannot execute queries while other
unbuffered queries are active.
Consider using
PDOStatement::fetchAll().
Alternatively, if your code is only
ever going to run against mysql, you
may enable query buffering by setting
the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY
attribute.
those are the only query/ies
I want to validate pasted dates to remove /'s and ensure the year is 4 digits and when users paste them in it overwrites my excel validation.
So, If a user pastes 05/19/10 into a cell, I would like it to convert to 05192010 or at least give an error if this is not possible.
I don't know enough VB to add sheet-wide code that does this and I'm not sure if it would work when users paste multiple cells at a time.
Hi there ,
in order to make things easier for users i want to add multiple keyword search to my site.
so that in the input the user would do something like : " keyword1 keyword 2" ( similar to google for example.
would i need to write a code that would parse that string and do queries based on that or is there something built in mysql that could do it?
Hello,
I am looking to display multiple web content in one main view.
I have created different WebView and make it's height and width to fit all in one view size of Landscape mode.
How to scale down web view content to show data in small size (as per WebView height and width) ?
I have built application using Interface builder.The view is interface with one tab bar of tab bar controller.
Thanks,
hey all,
im trying to create a database for a feedback application in ASP.net i have the following database design.
Username (PK)
QuestionNo (PK)
QuestionText
FeedbackNo (PK)
Username
UserFeedbackNo (PK)
FeedbackNo (FK)
QuestionNo (FK)
Answer
Comment
a user has a unique username
a user can have multiple feedbacks
i was wondering if the database design i have here is normalised and suitable for the application
I'm trying to play a sound on touchesEnded but I'm having a problem. There are multiple objects that get moved around, so if the below code holds true when any object is moved, it constantly plays the sound. How do I only play it once?
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
if(CGRectContainsRect([image1 frame], [image2 frame])){
[self playsound];
}
}
This share link is not displaying the proper "Test" title. It reverts to wired.com when it should be Test.
I've tried it on multiple different sites, and they all show up as their respective domain. What am I doing wrong?
http://www.facebook.com/sharer.php?u=http://www.wired.com&t=Test
And is there an elegant linqy way to do it?
What I want to do is create string of given length with made of up multiples of another string up to that length
So for length - 9 and input string "xxx" I get "xxxxxxxxx" (ie length 9)
for a nun integral multiple then I'd like to truncate the line.
I can do this using loops and a StringBuilder easily but I'm looking to see if the language can express this idea easily.
(FYI I'm making easter maths homework for my son)
I require event calendar by using silverlight Calendar control or custom control.
In it I want to add events (multiple) based on particular data and display those
events on that particular date inside the calendar itself.
Is there any ready made control of solution exists??
I have a flash application written in action script 2, and at one point it makes multiple back-to-back JavaScript requests using getUrl().
They have to be done as separate requests because IE had a limit on the length of a single request, and fails silently if that limit is passed.
When ever this happens, if the user has their sound turned on there is a barrage of "click click click".
Hi,
Would you be able to help to delete the warning discussed below ?
I have one file example.h
In that I declared static const NSString *variable = @"cool";
Now, I have another file multiple.m. In this file I have a function Bool var2 = [object methodname:variable];
It means, I passed variable as parameter for this function, but I got warning like this:
variable is defined but not used
So,how to remove this warning?
please help me
If you ping google.com from different countries you will get replies from local google servers. How does that work? Can a DNS record have multiple A addresses? Could someone point me to the technology they use to do that?
I understand the use of the explicit keyword to avoid the implicit type conversions that can occur with a single argument constructor, or with a constructor that has multiple arguments of which only the first does not have a default value.
However, I was wondering, does a single argument constructor with a default value behave the same as one without a default value when it comes to implicit conversions?
i have mouselisteners on multiple jpanels. I need to detect if the mouse is pressed when it enters on a different jpanel than the one the event has started from. how can i do that?
I am reading an article about the MVVP Pattern and how to implement it with WPF. In the source code there are multiple lines where I cannot figure out what the question marks in it stand for.
private DateTime? _value;
What does the ? mean in the definition? I tried to find it in the help from VS but failed.
I've been trying to learn PHP OOP and have looked at multiple articles, but have yet to find a good resource for learning. I want to learn from the user of setters and getters, $this-, constructors, and so on...! Can anyone please suggest me something? I noticed MOST teachings leave out the explanation of $this-. I want to learn magic methods, decorators, encapsulation, etc... Feel free to suggest something that I haven't explicitly listed.
I'm using Google Maps and have the map set to height/width=100%.
I noticed that when I resize the browser window, my map marker icons appear to redraw on top of the same location.
Meaning, if I should only have 1 map marker icon on "987 Main St", when I resize the browser window - multiple map marker icons are being now draw on top of "987 Main St" that shouldn't be there.
Any ideas why this is happening and how to prevent it?
UPDATE:
Link to actual code