@GeorgeEdison it's in python, but my question is more general. Should I touch them, i.e. update a time-stamp, and invalidate the ones older than 15 minutes, or something like that?
if kwargs['user'] in self.users:
if self.users[kwargs['user']] == hashlib.sha1(kwargs['pass']).hexdigest():
session_key = hex(random.randint(0, 2**64-1))[2:].rstrip("L").rjust(16, "0")
self.sessions.append(session_key)
Now, I need a method to remove session keys from the list using some sensible metric
I was thinking maybe there's an accepted convention
bummer... how can you code a random number generator for a library without making it possible to set a seed? doesn't want to rewrite half of that lib :-(
It is supported at least since Karmic Koala on the amd64 architecture and since Natty Narwhal it is supported also on the i386 architecture.
You can find that out by looking at the kernel configuration files found here. Search for the term CONFIG_CRYPTO_AES_NI_INTEL.
So, the news that Ubuntu will use OpenStack for its cloud fabric starting with Oneiric is exciting, but what to do today?
I'm ready to begin deployments that will not be needed in production until Oneiric is released, but I'd like to get starting on them today. It doesn't seem to make any sense...
Some apps, including Transmission in particular, are not recognised by the Unity window manager.
I am not able to focus or select certain windows.
Curiously, I also can't drag it to the launcher.
Opening works using the standard Super > Type 'trans..' > Click.
I'm not quite sure what I...
Hi guys
I've been using natty since it came out now. I'm a developer and unity sucks for me.
I figured out how to disable unity (from the login screen) a week ago, but everything seems to be working only halfway on my desktop now, the notification area doesn't work correctly anymore, my sound-c...
the main div has position: absolute, and top: 48px; I can change that using jquery's .animate when the top notification bar hides, but I'd really like the top top be relative and the bottom to be absolute
is something like that possible?
(you'll note the scroll bar is behind the notification, not very elegant)
@JorgeCastro well this also depends on the backend, if the backend does has it implemented to inform you of changes in your collection the frontend is not that hard
@Rinzwind :( Us in the SuperUser Room (well, probably just me and a few others) were waiting and then it snuck up so fast... Congratulations, you got chat message 1,000,000! - chat.stackexchange.com/transcript/message/1000000#1000000
@JorgeCastro the client implementation would be quite easy actually, every song you retrieve gets written to a sqlite database and the image get cached on the system/sdcard (depends it there is a sdcard available or not), the images cover art n' stuff can be cached permanently as those things don't change that way you can get reduce the network communication on that part of the application quite a bit
On Stack Overflow it might look like it doesn't make much sense but it would make sense on smaller SE sites where there are not that many 10k users. On Ask Ubuntu the way we handle this right now is to have a separate chat room where we can post questions that need to be closed.
Wouldn't it make...
@Rinzwind I have respect for Ubuntu, I like it :) ... I just hate people who flame non stop without actually trying something - I used Ubuntu as my main machine for 6 months+ and did a usability research thing at Canonical a few years ago... I just prefer Windows, but if someone asks me something, I can give an honest opinion instead of blabla is better than blabla!
... Mind you, whilst I am here... Does anyone know of any quick guides (if such a thing exists) to private cloud? I set up one Ubuntu Server with the Eucalyptus (I know they are switching soon) and 3 nodes - but I just couldn't figure out how to actually do anything... It isn't serious or for work, I just wanted to muck around/test it
Brilliant thanks! I just set up everything in Workstation and wasn't sure what to do next - I doubt this will get serious, but I was just really curious to see if I could do something! Even if it is just a distributed "Hello World" app :)
@Alaukik I built the apturlredirector project from a spec by MPT: wiki.ubuntu.com/AptUrlRedirector We were in contact about it and contact has stopped without any replies for sometime
On the command line you'd issue a ls -la /srv/www. The part that is interesting for you is the second line.
Explanation of all columns:
total [NUMBER]
[PERMISSIONS] [LINKS] [OWNER] [GROUP] [FILE SIZE] [MODIFICATION DATE] [ITEM]
Sample output:
total 52
drwxr-xr-x 15 root root 4096 2011-04-1...
@Alaukik I Haven't really used Ubuntu seriously for about 3-4 years... Just every so often I install and muck around, but nothing serious (When I used it for around 6 months and nothing else)