What is the best way to store users passwords in a MySQL database using PHP. For example, md5 or is there something better? examples would be much appreciated.
Aside from a prototype, what is the next best thing to satisfy a user who really wants to know what an application will be like?
Choice 1
A process model
Choice 2
An interaction diagram
Choice 3
A data-flow diagram
Choice 4
A class diagram
Choice 5
A class-state diagram
2 is my partner's choice
3 is my choice
I stick to my colors
also he stick to his.
which one is better?
Can anyone see any reason why IE8 might not run this jQuery?
$("#slid").toggle(
function() {
$("#Silver").animate({top: "25px"}, 200);
},
function() {
$("#Silver").animate({top: "89px"}, 200);
}
);
It runs the first function but ignores the 2nd top: "89px" and ideas? Or a better way the same toggle effect can be achieveD?
So, I have this source:
http://paste2.org/p/808870
Now, it works getting the source, however, it keeps repeating afterwards. For example:
http://img263.imageshack.us/img263/7259/outputq.png
Notice how it says , then continues? I was wondering how I can avoid that. I know I can limit the buffer, however is there a better solution? Thanks
In the Page load of A control the Page.Header is null when I am attempting to add a reference. Is there anything special I have to do to add a reference to the head of a page from a control.
Maybe a better way to as this is when does Page.Header load or when can it be accessed from a control
We are running our applications on .NET 3.5 and are planning on either updating to .NET 4.0 or switching entirely to the Java platform, J2EE v6, as we've heard from some clients that "it's better."
Can anyone either explain some of the large differences between the two platforms and maybe what kind of costs would be associated with switching to Java rather than just updating, or point me to some articles or papers that make such comparisons?
Thanks!
I have a web app where I need to change a drop down list dynamically depending on another drop down list.
I have two options:
Get all the data beforehand with PHP and "manage" it later with Javascript.
Or get the data the user wants through AJAX.
The thing is, that the page loads with all the data by default and the user can later select a sub category to narrow the drop downs.
Which of the two options are better (faster, less resource intensive)?
I am looking in to learning a programming language (take a course) for image analysis and processing. Possibly Bioinformatics too. Which language should I go for? C or Java? Other languages are not an option for me. Also please explain why either of the languages is a better option for my application.
I need to encode streams of 8 byte such that encoded stream has only digits (zero to nine) in them. Are their any standard encoding mechanism for doing this? If there are multiple ways to do it, which one is efficient in terms of length of encoded string (shorter is better)?
Java ME is quite sparse on features. Are there any libraries you use to add missing features?
I don't want to focus on UI libraries - these are better discussed here.
If I have 3 million files, which directory structure is better?
Method 1. ~/123456789.htm
(Putting all the 3 million files into the same folder without any sub folders)
Method 2. ~/789/123456789.htm
(Create 999 sub-folders, each sub-folder contains about 3000 files)
For Windows Server 2008, which structure is faster?
Ok SO, I have a user table and want to define groups of users together. The best solution I have for this is to create three database tables as follows:
UserTable
user_id
user_name
UserGroupLink
group_id
member_id
GroupInfo
group_id
group_name
This method keeps the member and group information separate. This is just my way of thinking. Is there a better way to do this? Also, what is a good naming convention for tables that link two other tables?
Which is a better way to select ans and quest from the table?
SELECT * FROM tablename WHERE option='ans' OR option='quest'";
OR
SELECT * FROM tablename WHERE option='ans' AND option='quest'";
Thanks so much!
I'm working on a webform that has about 15 user controls, separated by context (comments, locations, members/leaders, etc).
If each control can render individually (using real or test data), does it make sense to have a seperate "functional" test page to test them in isolation or is there a better way?
I have a .exe app which I want to understand better - I can see it in reflector
Is there any way to get reflector to create a VS project with the code so I can view it properly in Visual Studio?
if I have a stored procedure say
create procure w AS
ALTER TABLE t ADD x char(1)
UPDATE t set x =1
Even when it lets me create that stored procedure (if I create it when x exists), when it runs, there is an error on the UPDATE statement because column x doesn't exist.
What's the conventional way to deal with this, it must come up all the time? I can work around it by putting the UPDATE inside EXEC, is there another/better way?
Thanks
Which type of index(clustered/non clustrered) should be used for Insert/Update/Delete statement in SQL Server. I know it creates an additional overhead but is it better in performance as comparison to non clustered index? Also which index should be use for Select statements in SQL Server?
Are there any good (preferably PHP) open source scripts that I use to measure download/upload speeds? Something like speedtest.net but without Flash.
Basically, I want to put up a 'broadband speed test' website. I found this but is there anything better already available?
Thanks!
I have to make a list of all possible permurations of 4characters A-Z,a-z,0-9 and conbination of all this.How can i pass thru all of the possible combinations and printf them ?
what's it for:I need to make this in a html document that i can then print and give all this as random unique usernames for our university, so that students can provide feedback based on one unique id that will be invalidated when used. i can not change this procedure into a better one!
It's simple to observe the documents scroll event but I can't seem to find anything relating to the scroll of any other element with css property overflow being set?
To get around this myself i've been observing mousemove which only fires while you hold down on the scrollbar but this would need to be teamed with a mouse wheel observe also to get the full effect.
Could anyone point me in the right direction for a better way of implementing this?
I want share and introduce new idea to the program and algorithm for researchers. but those people disgraced my interest and degrade my thoughts. They closed my request. Why? I think this is not a good place to prove our talents. I think leave from this forum isbetter...
Hi All,
can somebody explain the use of delegate..I know that it is used to invoke methods at run time...but exactly what does it mean..can somebody explain it with some simple example, which will help a newcomer to understand delegate better
Is there any pitfalls when using char*'s to write cross platform code that does memory access?
I'm working on a play memory allocator to better understand how to debug memmory issues. I have come to believe char*'s are preferable because of the ability to do pointer arithmetic and derefernce them over void*'s, is that true? Do the following assumptions always hold true on different common platforms?
sizeof(char) == 1
sizeof(char*) == sizeof(void*)
sizeof(char*) == sizeof(size_t)
I am currently involved in a project which requires me to repeatedly take snapshots of the screen. I am using qt's grabScreen function to do the same.
The screen freezes for half a second every time the program takes a snapshot causing the computer to seem to be very slow :(
Can anybody suggest me a better method of doing this ?
if for a class i include "background:#252", the browser will assume the rest of the background properties that i didn't specify. If instead I used "background-color:#252", would it cause the browser to assume the exact same about the rest of the background properties that i leave unspecified?
background:#252 is shorter, but i wonder if it would be better to use background-color:#252?
thanks.