|
I have a project in the works, and I'll need to associate a passcode with an item.
The password should be completely non sequential or easily guessable, yet simple to remember.
I thought about doing something like this.
string rand = System.Guid.NewGuid...
Started by Jack Marchetti on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I originally.
Digit PINs; I suspect having a letter mixed in there might make it less easy for them to remember that is relatively easy to remember, you can always use my PronouncablePasswords class.
|
|
In PHP, is there an easy way to convert a number to a word? For instance, 27 to twenty-seven .
Started by Philip Morton on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Basically it'd just be a matter.
There's no built-in way that I'm aware of, but if you have a look at my example code for this question (in C#) it should be easy enough for you to get working.
|
|
Is there an easy way to simulate Invalid Viewstate?
Started by Macho Matt on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
A jQuery way to implement Joel's suggestion:
<script language="javascript"> $(document).ready.
|
Ask your Facebook Friends
|
Anyone know a quick easy way to migrate a SQLite3 database to MySQL?
Started by Stephen Cox on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Probably the quick easiest way is using the sqlite .dump command, in this case create a dump of the sample.
It provides an API.
A Java library written by Apache called DdlUtils that made this pretty easy.
|
|
Is there an easy way to determine if a year is a leap year ?
Started by MikeJ on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Try:
now = DateTime.now flag = Date.leap?( now.year )
From: http://www.ruby-doc.org/stdlib/
is_leap_year = year % 4 == 0 && year % 100 != 0 || year % 400 == 0 .
|
|
Is there a easy-used two-way encryption method for string in ruby?
Started by zhessy on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Public-key cryptography of any kind is going to ....
As I do not speak the language I cannot attest to its usefulness, but I couldn't let the Base64 answer go unchallenged .
This article discusses someone who wrapped RSA encryption and decryption in Ruby .
|
|
I need to get the first and last day of a month in the format YYYY-MM-DD given only the month and year. Is there a good, easy way to do this?
Started by Thomas Owens on
, 8 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Date ('Y-m-d', mktime(0,0,0,MM,01,YYYY));
Last is a little trickier, but not much', mktime(0,0,0,$MM + 1,0,$YYYY)); // Day zero instead of -1
By the way @ ZombieSheep solution
date ('Y-m-d.
Is dead easy.
|
|
Is there an easy way to export and then import users/permissions from one Sql Server 2005 instance to another?
Started by jfar on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Select your user: Select DB and expand security\users folder Right Click --> Script User... .
Same can be done for the server logins in the security folder .
Use the management console to generate a script for your users and thier associated permissions .
|
|
What is an easy way to compare ArrayLists for equality using JUnit? Do I n d to implement the equality interface? Or is there a simple JUnit method that makes it easier?
Started by Alex Baranosky on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Testing ArrayLists for equals.
This might be a slightly too easy answer (although it is correct).
|
|
I'm looking for an easy way to monitor free disk space on a large number of servers.
I would also like to be able to count files in certain folders on those servers
Started by harlev on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at serverfault):
Zenoss comes.
Both are very easy web based systems to set up.
You'll that costs money would be PRTG.
The 'easy way' as far as I'm concerned is to turn on SNMP, and poll each server from a Nagios box.
|