|
||||||||||
|
|
Affordable Web HostingMarch 31, 2008 on 11:23 pm | In Linux Resource, Programming, hosting article, hosting tutorials | 1 CommentThe affordable web hosting preferred high-end, name-brand gear whereas nowadays, some no-name brands are almost as good and less offering half the price, on the contrary they’re claiming that they are offering affordable web hosting. Before signing up a hosting company with lowest price, take a close look at web hosting as $3 per month might look quite attractive, but spending $2 or $3 dollars will certainly not lasting longer. Going for those lower prices may put you in problem sooner or later when your site will start mounting to pinnacle. Many of the web hosts presently offering affordable web hosting and as a customer you will need to look at other facet too like quality of service to make a good and perfect decision. A straightforward search on any google will throw up hundreds of web hosts that fall into the medium price range; additionally the search results might be confusing you more. It is better to make the most uses of web host review site and directories to find reviews of hosting companies as they offer the better known web hosts. However a mid-sized host company does not essentially mean superior one, but it does bring in endurance and the comfort of knowing that you aren’t dealing with a shady hosting company.
Generate Passwords-(ASP.NET)March 31, 2008 on 11:06 pm | In Window Hosting | 1 CommentBy using these code you can generate random Password with ASP.net. The code begin: ' VB.NET
Function GeneratePassword(ByVal length As Integer, _
ByVal numberOfNonAlphanumericCharacters As Integer) As String
'Make sure length and numberOfNonAlphanumericCharacters are valid....
'... checks omitted for brevity ... see live demo for full code ...
Do While True
Dim i As Integer
Dim nonANcount As Integer = 0
Dim buffer1 As Byte() = New Byte(length - 1) {}
'chPassword contains the password's characters as it's built up
Dim chPassword As Char() = New Char(length - 1) {}
'chPunctionations contains the list of legal non-alphanumeric characters
Dim chPunctuations as Char() = "!@@$%^^*()_-+=[{]};:>|./?".ToCharArray()
'Get a cryptographically strong series of bytes
Dim rng as New System.Security.Cryptography.RNGCryptoServiceProvider
rng.GetBytes(buffer1)
For i = 0 To length - 1
'Convert each byte into its representative character
Dim rndChr As Integer = (buffer1(i) Mod 87)
If (rndChr < 10) Then
chPassword(i) = Convert.ToChar(Convert.ToUInt16(48 + rndChr))
Else
If (rndChr < 36) Then
chPassword(i) = Convert.ToChar(Convert.ToUInt16((65 + rndChr) - 10))
Else
If (rndChr < 62) Then
chPassword(i) = Convert.ToChar(Convert.ToUInt16((97 + rndChr) - 36))
Else
chPassword(i) = chPunctuations(rndChr - 62)
nonANcount += 1
End If
End If
End If
Next
If nonANcount < numberOfNonAlphanumericCharacters Then
Dim rndNumber As New Random
For i = 0 To (numberOfNonAlphanumericCharacters - nonANcount) - 1
Dim passwordPos As Integer
Do
passwordPos = rndNumber.Next(0, length)
Loop While Not Char.IsLetterOrDigit(chPassword(passwordPos))
chPassword(passwordPos) = _
chPunctuations(rndNumber.Next(0, chPunctuations.Length))
Next
End If
Return New String(chPassword)
Loop
End of the code.
Ruby Installation ProcessMarch 31, 2008 on 3:56 pm | In Programming | 7 CommentsBefore you start installing Ruby, make sure before installing Ruby, zlib is installed in PHP. You can do this by running a simple script with this code. Follow these steps; <?php phpinfo(); ?> Now you are ready for installation. cd /usr/local/src If the installaiton is successful, then you will get a message “test succeeded”. Install Ruby Gems cd /usr/local/src This step involves execution of `ruby setup.rb` with arguments `config / setup / install` all together gem query –local Listing all installed gems gem install rails OR # (Enter Y for all dependencies) Install FastCGI wget http://fastcgi.com/dist/fcgi-2.4.0.tar.gz Install mod_fastcgi wget http://www.fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz In Apache’s httpd.conf, add this line. Include /path/to/httpd/conf/fastcgi.conf Now, add this text to fastcgi.conf cat > /path/to/httpd/conf/fastcgi.conf Ctrl + D mkdir /tmp/fastcgi_ipc/ NOTE : In some systems, the ownership of fastcgi_ipc is done by Apache itself, but its safe to include these steps in your routine. Related files: /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/dispatches/dispatch.fcgi # OR ~USER/<app_name>/public/dispatch.fcgi # Log file declaration & all To install gem bindings for Fastcgi and MySQL gem install fcgi Testing cd ~USER In order to allow symlinks, enter the following in to ~USER/httpdocs/.htaccess Options Indexes +FollowSymLinks Now you have to set the correct ownership and permissions for the test application. here is the cample; example: cd ~USER Create Test Pages cd ~USER Create a file called test_controller.rb and put in the following code: cat > test_controller.rb Now create the test page. cat > ~USER/testapp/app/views/test/hello.rhtml # The test page Ctrl + D Now just access the URL: http://yourdomain/rails/test/hi Important: Don’t forget to change ownership of the test pages you created. Now, you have installed Ruby On Rails successfully!
Linux-Security Software ToolsMarch 27, 2008 on 2:49 pm | In Linux hosting | 2 Comments* Argus - reads network datagrams from a specified interface, and generates network traffic status records Wireless:
How to Install Mod_perl on cpanel serverMarch 25, 2008 on 3:57 pm | In Linux hosting, hosting tutorials | No CommentsThese set of directories will help you to install mod_perl onto a cpanel server. * First-To install Mod_perl, Login to your existing account or create new account. You may select either the rvskin admin account or fantastico admin account. In case if you’ve install it in the rvadmin account, then you can proceed as below. Next Page » |
![]()
Powered by WordPress |