So… ‘sup?
- With your linux box i mean... What's up with it?
- Not much... here goes:
User: mimir (uid:1000) Groups: mimir adm dialout cdrom plugdev lpadmin admin sambashare vboxusers Working dir: /home/mimir Home dir: /home/mimir Hostname: orion IP (lo): 127.0.0.1/8 IP (eth1): 192.168.1.102/24 Gateway: 192.168.1.1 Name Server: 208.67.222.222 Name Server: 208.67.220.220 Date: Wed Jan 21 19:43:43 EET 2009 Uptime: 19:43:43 up 9:44, 3 users, load average: 0.56, 0.42, 0.25 Kernel: Linux orion 2.6.28-4-generic #11-Ubuntu SMP Fri Jan 16 21:50:52 UTC 2009 x86_64 GNU/Linux Memory: Total: 3895Mb Used: 3071Mb Free: 823Mb Swap: Total: 1953Mb Used: 7Mb Free: 1945Mb Architecture: Processor: 0 : Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz Processor: 1 : Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz
All that info is found just by invoking Scott Morris's 'sup script.
Cool script!
Eclipse plugins written in PHP?
On another Eclipse related news, i have noticed today the GSOC 2009 ideas for eclipse. Although all the ideas are interesting, what catched my view was "Write Eclipse plug-ins in PHP
" through e4.
e4 is the community effort for building the next generation of the Eclipse Platform. The project has three principle aims:
- Simplify the Eclipse programming model: This will
reduce development and maintenance costs and enable a larger developer
community to leverage the platform in their own Eclipse-based
applications.- Enable the platform for use on emerging web-based runtime technologies:
This will ensure the platform remains a compelling and viable
application framework in a rapidly changing web technology landscape,
and it will allow e4-based applications to leverage web technologies,
while remaining insulated from specific technology choices that may
quickly become obsolete.- Broaden participation in development of the platform:
This reduces the risks associated with building on a platform largely
funded from a single source. Having a large and diverse group of
commercial backers, will ensure the platform remains vibrant and viable
over the long term.Please refer to the project proposal for more information, including the initial list of committers. The e4 project summary page is here.
I'm really interested to see what comes out of that.
eclipse.org receives a facelift
Today eclipse.org received a new skin. It's great for me so see that they are going for a simpler design, that will appeal to more people.
For developer of any kind, eclipse seems the way to go. They have a ton of projects that are in constant development. I think they have one of the most active communities in the open source world. Note that unlike Linux communities that don't have a lot of backing up from enterprise, eclipse has quite a few huge "strategic members".
I can't wait for the next release of PDT
Generating random numbers
This is just an idea, don't throw rocks at me if someone else posted it before or if it turns out to be utter crap.
I've been thinking on how one could generate random numbers. My first thought was that you would need some complex algorithm then a few nights back I observed something in nature while waiting for a friend. It was snowing.
Looking for a while how the snow flakes were going every possible directions I realized that their movement was pretty random. At least it was to my eye. Let's imagine you have camera that's able to capture in perfect 3D images in HD. You could then get each flake's coordinates using adequate software that can identify objects into a 3D image.
There you go. Random number of snow flakes in a frame, random position of each snow flake in each frame. Add some external randomizer (like some wind) and you really get some interesting stuff.
Can someone confirm if there is even a small chance that at least two snow falls can be identical? Then my idea is utter crap
Chmod only files or chmod only folders
I moved the blog the a new server and i realised that all the permissions got screwed up on the process. All files and folders were having chmod 777, and that's not exactly ideal. After digging a bit on google on how to chmod only files or chmod only folders, i came up with this:
1. Recursive chmod only files within this folder:
find . -type f -exec chmod 0600 {} ;
2. Recursive chmod only folders within this folder:
find . -type d -exec chmod 0755 {} ;
Hope this helps!