Skip to content

Matheus Bratfisch Posts

Install Windows 7 in a VirtualBox

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…

Block root access, ssh.

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…

Creating your own Url shortener.

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.

Rank Sort, Concurrent Programming

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…

Twitter.

Good night, I created a twitter for me, so if you want to receive some news, updates, or know something that maybe I’m doing, follow…

Quick Flickr Widget, WordPress.

Hello, I found this interesting plugin for wordpress Quick-flickr-widget. A widget to show pics from Flickr in your blog. You can configure it in many…

Linked List, Data Structure

Hello,

What is a Linked List? Linked-list is a list that each element has a pointer to the next one.

The professor once again send us an enunciation to solve and it is too big. And I will not translate it. Inside the problem it have a Linked list.

Problem using linked-list..

Regards,
Matheus

PS: You can see the enunciation in portuguese and then use google translate to translate it

Conversion table – 2 – Computer Organization (INE5411)

This post have some extra conversion. The first one just have some pages that I used until that moment. This one have the conversion table until now.

List, with pointers, Data Structure

Hello,

Today I will introduce you to a list using pointers. This list doesn’t have limit of elements (if you have infinite memory). Again the enunciation is too big, so take the file, read it and learn.

Stack with pointers implementation

Regards,
Matheus

PS: You can see the enunciation in portuguese and then use google translate to translate it

Damn Small Linux, VirtualBox 2.2, Java

Hello, A week ago I was thinking about banks autentications, here in Brazil, you have to register your computer to get access to the bank…