Community wiki'ed already, folks.
What part of Apache Commons saves you the most time?
I'm curious to get together a list of these to browse and see what I don't know about, or what I should be using more often than not.
Is it possible to push to 2 or more remote repositories at the same
time?
I only want to mirror the main repository, where most if not all the
pulls will come from.
Hi,
I'm developing JSP/Servlets App,and I want to execute a service at a specific time , for example :
For each day at 10:00 AM , delete any
attachment from the "attachment" table
in the database where column X== NULL.
How can I do this in JSP/Servlets application ?
I use Glassfish as a server .
I have been developing websites in n-tier structure and so far my requirements are fulfilled. But as powerful frameworks like Zend Framework, symphony are getting popular, I wonder how to know if it is time to shift to a framework?
I am in a kind of dilemma? Can anyone suggest me the right option !
I have been developing websites in n-tier structure and so far my requirements are fulfilled. But as powerful frameworks like Zend Framework, symphony are getting popular, I wonder how to know if it is time to shift to a framework?
I am in a kind of dilemma? Can anyone suggest me the right option !
From wiki: In computing, just-in-time compilation (JIT), also known as dynamic translation, is a technique for improving the runtime performance of a computer program.
So I guess JVM has another compiler, not javac, that only compiles bytecode to machine code at runtime, while javac compiles sources to bytecode,is that right?
Hello,
I have a problem with my vpn connections, my ISP requires me to connect to a private vpn server of it's own in order to connect to internet, im connected to main network via WiFi,
but i also want to connect to another VPN network of my choice (to bypass internet limitation in my country of course), i am able to do that in Windows, but its not working in Mac OS X Snow Leopard
second vpn connecion type is PPTP / CHAP
How can i do that?
as u see in the pic, both vpn's are connected, first one is for main internet which is working properly , second one is also connected but its not affecting anything. its just connected.
http://www.freezpic.com/pics/a5231c3e80501a3c25430f43c1ef5856.png
Hello!
I am trying to figure out how to create an optimal solution for my project. I made this simple picture in Photoshop to try to illustrate the problem and how i want it (if possible).
Illustrative image
Ill also try to explain it based on the picture.
First off we have a couple of objects to the left, these objects all get encrypted with their own encryption key (EKey on the picture) and then stored in the database. On the other side we have different users placed into roles (one user can be in a lot of roles) and the roles are associated with different objects. So one person only has access the to the objects that the role provides. So for instance Role A might have access to Object A and B. Role B have access only to Object C and Role C have access to all objects.
Nothing strange in that, right? Different roles have different objects that they can access.
Now to the problem part.
Each user has to login with his/her username/password and then he/she gets access to the objects that his/her roles provide. All the objects are encrypted so she needs to get a decryption key somehow. I don't want to store the encryption key as a text string on the server. It should be, if possible, decrypted using the users password (along with the role) or similar. That way you have to be a user on the server in order to decrypt an object an to work with it.
I was thinking about making a public/private key encryption system, but i am kinda stuck on how to give the different users the decryption key to the objects. Since i need to be able to move users to and from roles, add new users, add new roles and create/delete objects.
There will be one administrator that then adds some data to allow the users in that role to get the decryption key to decrypt the object.
Nothing is static and i am trying to get a picture of how this can be built or if there is a far better solution.
The only criteria are:
-Encrypted objects.
-Decryption key should not be stored as text.
-Different users have access to different objects.
-Does NOT have to have roles.
in javascript how to send request some url at a partcular time(e.g daily 5 pm).........
very day @5pm i have to send some request (url)e.g sending emails how to do in java script
hi
i have Database with date field.
i see the time like: 1900-01-01 13:38:00.000
how i can see it like: 13:38 ?
(i work on sql server 2008)
thank's in advance
I want to find that when a user fires an event, such as click a button, what function(s) does this event invoke in run-time? Would it be possible?
Thanks!
Given an array of integers where some numbers repeat 1 time, some numbers repeat 2 times and only one number repeats 3 times, how do you find the number that repeat 3 times. Using hash was not allowed. Complexity of algorithm should be O(n)
Hello everyone,
I am designing a text based game similar to Zork, and I would like it to able to parse a sentance and draw out keywords such TAKE, DROP ect. The thing is, I would like to do this all through the standard c++ library... I have heard of external libraries (such as flex/bison) that effectively accomplish this; however I don't want to mess with those just yet.
What I am thinking of implementing is a token based system that has a list of words that the parser can recognize even if they are in a sentence such as "take sword and kill monster" and know that according to the parsers grammar rules, TAKE, SWORD, KILL and MONSTER are all recognized as tokens and would produce the output "Monster killed" or something to that effect. I have heard there is a function in the c++ standard library called strtok that does this, however I have also heard it's "unsafe". So if anyone here could lend a helping hand, I would greatly appreciate it.
In MySQL you can insert multiple rows like this:
INSERT INTO 'tablename' ('column1', 'column2') VALUES
('data1', 'data2'),
('data1', 'data2'),
('data1', 'data2'),
('data1', 'data2');
However, I am getting an error when I try to do something like this. Is it possible to insert multiple rows at a time in an SQLite database? What is the syntax to do that?
So given a static type in your code you can do
var defaultMyTypeVal = default(MyType);
How would you do the same thing given a variable of Type so you can use it during runtime?
In other words how do I implement the following method without a bunch of if statements or using Generics (because I will not know the type I'm passing into the method at compile time)?
public object GetDefaultValueForType(Type type) {
....
}
Hello,
how do I implement a rapid gridview with two columns, with ability to add rows by clicking the add button, and remove in the same way.
I look for plugins, but often contain many unnecessary option in my case, I'm looking for something fairly simple.
solution jquery, ajax.. I'm using ASP.net (C #)
someone has an idea ?
thank you
NHibernate_reference.pdf, page 26:
Note that ILifecycle.OnUpdate() is not called every time the object's persistent state is updated. It is called only when a
transient object is passed to ISession.Update().
Why it design link that?
This is a n00b question, sorry. I have a site running on a VPS, now I want to be able to receive mails at [email protected]. How do I need to set up the server? And how should I set up the mail client on my PC to receive those mails? The server is running CentOS/RHEL.
I'll really appreciate if someone shed some light on the steps that need to be taken. It will be really helpful. Thanks in advance!
I've been having problems with my internet connection over the past weeks (intermittent disconnections, slow transfers, etc), and my provider keeps telling me that the problem is not on their end.
I have cablemodem with a wifi router (this router was not provided by them).
The router is quite old (DIR-300), so I'm starting to wonder if it could be the issue and if I should replace it.
Is it possible that it is the cause? Can they become so outdated that they cause intermittent interruptions of service?
If I reset the modem and the router, they work fine for a few hours, but the problems starts again after a while.
If I develop with version 1.2.6 of the App Engine SDK, once I publish to production will my app still be using version 1.2.6 of all of the libraries on the production app engine? Or will it automatically use the latest version of the core app engine libraries?
I have the code:
private void Button1_Click (object sender, EventArgs e)
(
Form2 f2 = new Form2 ();
f2.Show ();
)
how to make so that Form2 when you click on Button1 not opened for the second time, if it is open?
sorry for bad english
Hi, we're in need to stop the user session in an ASP.NET site after some time(say 20 mins).
We know we can use a timer and code every page to expire on the timer tick, but we're searching a faster way, maybe through an IIS configuration?
Is there a built in way to do such things?
We're using ASP.NET 2.0, Framework 3.5, IIS 6, c#.
TY.