Friday, October 23, 2009

Have not posted in a while

I have not posted in a while, I should be back shortly....

Wednesday, February 04, 2009

the really random password generator (Powershell)

ok,
 
Here is a powershell script I wrote awhile back. thought Id post it.  its a really random password generator:
 
$pwdlength = [int]
$pwdlength = Read-Host "please provide desired password length"
$bytes = [byte[]][byte]1
$pwd = [string]""
$rng = New-Object System.Security.Cryptography.RNGCryptoServiceProvider
for($i=1;$i -le $pwdlength;$i++)
{
 $rng.getbytes($bytes)
 $rnd = $bytes[0] -as [int]
 $int = ($rnd % 74) + 48
 $chr = $int -as [char]
 $pwd = $pwd + $chr
}
write $pwd
 
 
enjoy.  
 
 
maybe later, I will modify it to control special characters. or if someone wants to figure it out, I will repost the code.
 
 
 
-Nex6

using powershell to reslove a host name to IP

ok,
 
Here is the best part you'll need:
 
$rs = [System.Net.Dns]::GetHostAddresses($i)|select-object IPAddressToString -expandproperty  IPAddressToString
 
now, I wrote this and tested it using powershell v2 ctp3, and it should work on the Lower versions but have not tested it.
 
 
with that line, you will have just an IP address in the var, $rs. from there you can do other things and fancy stuff, all aglore.
 
 
the select statement cleans up the output of: [System.Net.Dns]::GetHostAddresses($i) otherwise the output is not really useable as the output is formated in its own colums, with outher propertys. the select-object strips everything out except the IP address.
 
 
-Nex6

Tuesday, February 03, 2009

Daemon, by Daniel Suarez

This book, Daemon, is really good. its a techo-thriller and if you like
cyber, and techo types of books this book is one for you.
 
-Nex6

Saturday, August 09, 2008

basic ruby script

I have been playing with Ruby, thought id post a basic hello world style script....


/code

#!/usr/bin/ruby


print "what do you want to print on screen:  "
str = gets
exit if str.nil? or str.empty?
str.chomp!

print "\n"
print str


/end code


-Nexus6



Tuesday, August 05, 2008

going forward

Everyone always likes to speculate  on the future of IT and computers / tech in general.  One thing for sure, there will be changes because.  There always is changes, the trick is to stay current and technical enough to have it not matter. weather thats getting a mac, or a linux desktop or if your a mac user getting a windows machine.  using all of the different OS's and at least playing with many of the different languages and other objects / items as yo can will help you in the long run.



-Nex6

 

random bilthering

In the dawn, of the information age indecision and lack of clarity would hamper innovation.  The large guilds, would all vi for power and control of that information. The cyberjockys that can
wield it. All of the large guilds, would have there own cyber warriors, each battling each other across the empty space of the NET.  With, the mundane users and peoples all plugged into this this massive power.

and, unwittingly the mundane become fodder in this new age.


-Nex6


Tuesday, June 10, 2008

Productivity

A lot of people on blogs all over the NET always say, OS [ insert type ] gives me more productivity. Things like, I switched to  OSX or Linux etc and it made me 100% more productive. 
My opinion is, that the OS you know. gives you, more productivity.  say for example, a long time windows user who is productive on windows. switches to Linux, FreeBSD or even OSX. 

now, said windows user who has many years of experience on windows. starts using Nix, he/she will be far less productive for a long time until such a time as he/she. gets
very used to the new OS. though some users will get used to the OS faster the others...

Though, all that said; some OS's like OSX or Linux (running E17 -enlightenment {shamefull plug}) can, make some more productive due to Virtual desktops, unix shell etc. though
now, Microsoft has powershell. which is shaping up pretty darn good.

I am all for open standards, and open standardized formats.

things like ODF files, and firefox plugins. that let you read the files nativity in the browser, will change things.


-Nex6  


Wednesday, June 04, 2008

Fedora 9 and E17 - Enlightenment

http://optics.csufresno.edu/~kriehn/fedora/repository.html

enjoy


-Nex6
View blog authority