Am about to do a homework, and i need to store quite alot of information (Dictionary) in a data structure of my choice. I heard people in my classroom saying hash-tables are the way to go. How come?
I have found myself doing alot of work to get nHibernate setup and am left wondering: Why use a framework like Hibernate/NHibernate? I am sure that quite a few people love the framework but I am unclear on the advantages and disadvantages. What are the advantages and disadvantages of lazy loading, and are there other features to Hibernate? Is there anything that makes a framework like this easier to use (best practices, other frameworks, etc)?
Hey.
I am trying to make a plugin for wordpress that is supposed to use the function get_posts (declared in one of wordpress' include files, but depending on alot of other files depending on more files.), and I just can't seem to find out how to do it!
Please help. Thank you :)
Hi,
i have a stylesheet and alot of styles with the same border color (#CCCCCC to be precise).
Is there a way to specify some kind of variable and reuse that, so in stead of typing #CCCCCC over and over, i can type
border: 1px solid $bordercolor;
ps i'm using asp.net mvc
I've seen alot this kind of code recently :
if ($foo = $bar->getFoo())
{
baz($foo);
}
Is this considered good or bad practice ?
For example, Netbeans IDE give a notice if you use this kind of code :
Possible accidental assignment,
assignments in conditions should be
avoided
What do you think ?
At random this output it occurring at the top of the page. Site is installed on alot of servers issue only happens on one server.
HTTP/1.1 200 OK Date: Mon, 24 May 2010 04:18:30 GMT Server:
Microsoft-IIS/6.0 X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727
Cache-Control: private Content-Type: text/html; charset=utf-8
Content-Length: 39611
Hi,
I have a parent form that contains alot of controls. What I am trying to do is filter all of the key presses for that form. The trouble is that if the focus is on one of the controls on the form then the parent form is not getting the key press event, so how do I capture the key down event?
Thanks, R.
I have a form in Swing with alot of textfields receiving data. The idea is when a button is clicked, the app gathers all the data from the textfields at once. Do you know a good practice for this? Or is it necessary to gather the data textfield by textfield?
I want example.com/23-45 be transformed to example.com?id=23-45
Could you please post the code I should add to .htaccess file to make this work
(Is this everything I should do to make this work - add a piece of code to .htaccess file ???)
Thanks a lot!
I searched alot in SO and other websites for a version control system that can be installed on a shared windows hosting that lets me create repositories for putting my project files on it and supply me with version control facilities but I did not find one. I looked to see whether I can install git, Mercurial or TFS in a shared hosting and I did not found any answer. I want to know if you know any system that can be installed on a shared windows hosting and please tell your recommendations if you have had an experience before.
Hi, I'm wondering what type of threshold would work well for distinguishing features that are very small (small in the xy sense) in comparison with the full spread, if that makes sense. The graythresh() function in Matlab that uses the Otsu method doesn't work too well for my data. Otsu is a clustering method where I think the # of pixels should be similar in each class, which is not the case for me so when I employ it I get a threshold that is way too small and falls well within alot of the background noise that remains even after filtering.
I have a neural network written in Java which uses a sigmoid transfer function defined as follows:
private static double sigmoid(double x)
{
return 1 / (1 + Math.exp(-x));
}
and this is called many times during training and computation using the network. Is there any way of speeding this up? It's not that it's slow, it's just that it is used alot, so a small optimisation here would be a big overall gain.
I saw these lines in a demo project, but I couldn't understand why it did that.
[self willChangeValueForKey:@"names"];
[self didChangeValueForKey:@"names"];
It called didChangeValueForKey immediately after willChangeeValueForKey.
Does it make any sense?
Furthermore, when should be the right time to call this two methods?
Thanks a lot!! :)
Hi
I am using a delegate command .
I have noticed that regardless CanExecute is true or false execute is always called.
Is this correct?
I would have assumed that Execute would have been called only if CanExecute is true.
Could you clarify?
Thanks a lot
I once read about minimal python installation without alot of the libraries that come with the python default installation but could not find it on the web...
What I want to do is to just pack a script with the python stuff required to execute it and make portable.
Does any one know about something like that?
Thanks
When getting data from the server to the client side in GWT application we need to refresh every period of time to get updates for data, I think this is not a good method because if consume lot of time and resources, just thinking about another method is amazing :), any one get a good and effeciant idea ??
I have alot of data stores in my app on my provisioned device, and I want to do additional testing on my computer which is much faster than using the device. What is the best way to transfer the data store into the iPhone simulator so I can access it on the computer?
Is there any documentation on what the bignums in the body are?
Like here is an example pubkey.
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIBMgigwcBaB3sqogC/yVPANQJKjMwOvrdOKhBIVlI2eOIq6FEyzNI8cbRDbHo5muipun922bLoV+p/dPZ2/8wJ+zugLM8eCdsr+VbYZ3T5wb7bjd2swePOWtffnsXnHiP8aWyRj64vd/mRPR1gYErg8vb7vM5c4B2ANKHs/rP65Bw== rsa-key-20100514
It contains 3 bignums with the sizes 7, 1, 128. Now I am assuming the 128 is the key while the 7 is the shared. But what about the other one? Also the privkey contains alot more bignums which I have no idea what they are.
i want to run asp.net website on apache server instead of IIS.
i googled alot, but din get satisfactory answers.
i only came to know that we can use something called 'mono' - third party api for doing this.
i want to knw some basic things like do we need to install .net framework on that server?
what if its a unix server?
any detailed explanation links if provided wud be greatly appreciated.. thanks
Hi everyone,
I want to write javascript that will kill sestion on the web page if user did not make any action for some time taken from configuration.
How can I know that user did not make any actions by using jQuery.
Thanks alot.
Ok, say I have a page with the url: URL.com/checkout/completed, how can I setup an if statemet to perform:
<if "This page has url of checkout/completed">
Content
<else>
No content
</if>
Is there a way? A simple way, my php/smarty-fu lacks.. Alot.
Thanks.
I'm learning Perl, and in alot of the examples I see errors are handled like this
open FILE, "file.txt" or die $!;
Is die in the middle of a script really the best way to deal with an error?
Hello everybody
I have a user entity who contains a one to many relationship with a role entity
So with this linq expression :
from user in USER_TABLE.Include("USERROLE_TABLE")
order by user.Name
select user
I can get users with related roles as a child.
My problem is that i want to get roles of each user ordered alphabetically.
How can i do that ? I googled alot and don't find anything
Thank's by advance !
I don't want my website's user to use backspace to go to the previous page,
but I still want to keep the use of backspace,
just like deleting wrong typing.
How can I do?
Thanks alot.
I recently tried alot of different stuff with lightweight migration. These all work:
1) Rename attributes (with renaming identifier specified)
2) Add attributes
3) Add new entity + new attribute + inverse relationship to an already existing entity
4) remove existing entity + relationships to that entity
= It almost looks like just about anything can be handled with LM. Did I miss something? In which cases am I getting into trouble and need an some more complex approach?