Hello, The last days I keep trying to configure my server. I know how to configure the network to this: MODEM -> (eth0) Servidor (eth1)…
Continue reading Share internet in a SERVER connected to WAN port.
Hello, The last days I keep trying to configure my server. I know how to configure the network to this: MODEM -> (eth0) Servidor (eth1)…
Continue reading Share internet in a SERVER connected to WAN port.
Hello, Today I will just recomment to you the post of Juliano Martins about how o install Ubuntu from pendrive. UPDATE: In the last days…
Good night, To install ssh server in Ubuntu use: $ sudo apt-get install openssh-server To let it safer edit /etc/ssh/sshd_config $ sudo vi /etc/ssh/sshd_config Than…
Continue reading Install and configure SSH server to be safer.
Good Night, This is a simple tip, how to execute some file in computer startup. (I used this tip to enable the port forward on…
Good afternoon, If you want to forward ports to a virtualmachine in VirtualBox you should do this: Create an interface "tap" #sudo tunctl -u $USER…
Good night,
A few days ago I created a XML-RPC server to test some functions. What is XML-RPC? XML-RPC is a remote procedure call (RPC) protocol which uses XML to encode its calls and HTTP as a transport mechanism.(wikipedia) To start using XML-RPC in Java I used apache xml-rpc.
Example client and server XML-RPC.
Best Regards,
Matheus
Continue reading Client and Server, Java XML-RPC
Hello, Today in class one of my teachers was using Windows 7 as your "main" operational system. He said "Windows 7 never crashed". So i…
Hey, Just a fast tip, if you want to have a ssh server more secure disable root access in "/etc/ssh/sshd_config" Find the line starting with…
Good Night,
Here I will show you how to create your own url shortener.
First of all you need to create a table like this:
CREATE TABLE IF NOT EXISTS `urls` (
`uid` int(11) NOT NULL auto_increment,
`url` text default NULL,
`unique_chars` varchar(25) BINARY NOT NULL,
PRIMARY KEY (`uid`),
UNIQUE KEY `unique_chars` (`unique_chars`)
);
This code was taken from Abhise in this post "Create your own tinyurl with php and mySQL" that was my bigest reference, from it I took some functions and update other ones to be more efficient. For an example I changed the field to BINARY so it be CASE SENSITIVE (aaaa different from AAAA)
The Abhise says to create many files, I particularly, created one file with all functions where I add all the functions and just called the functions in the files.
Hello, A few weeks ago I had a test of Concurrent programming (INE5410), where I had to implement a RankSort in Pascal FC. In this…