Machine Learning in Stanford University

stanford-logoMachine Learning is a branch of Artificial Intelligence, that aims to develop systems with the ability of learning from the experience. Machine learning techniques can be used in different fields. For example, recommendation systems (as Amazon), biology, games…

If you are looking for a introduction to Machine Learning, you must visit the Stanford University Youtube channel. You will find a complete course about this topic, taught by Professor Andrew Ng. This is the info of the course:

This course (CS229) provides a broad introduction to machine learning and statistical pattern recognition. Topics include supervised learning, unsupervised learning, learning theory, reinforcement learning and adaptive control. Recent applications of machine learning, such as to robotic control, data mining, autonomous navigation, bioinformatics, speech recognition, and text and web data processing are also discussed.

JScrollPane, JTable and horizontal scroll

I was coding a graphical interface using Java, and what I wanted was to insert a JTable object inside a JScrollPane. The table was bigger than the JScrollPane, but I didnt know why, only the vertical scroll bar was shown. I spent hours reading Swing tutorials, checking my code… everything seemed to be ok, so.. why it wasnt working?
Finally, I found the answer: there is a bug in Java when you are using JScrollPane and JTable. And the solution was to create a new class extending JTable, in order to override JTable.getScrollableTracksViewportWidth() method with this one:

public boolean getScrollableTracksViewportWidth() {

if (autoResizeMode != AUTO_RESIZE_OFF) {

if (getParent() instanceof JViewport) {

return (((JViewport)getParent()).getWidth() > getPreferredSize().width);

}

}

return false;

}

Source: DaniWeb Forum

Fixing Wordpress Error 500

After this, I’ve learned that its convenient to deactivate all your plugins before updating to the last version of Wordpress. Im not sure when I did the last update, but it seems this blog have been offline since then.

This morning I tried to read an article of the blog, and I got an “Error 500″ message. First of all, I checked that my Wordpress was working, because I could access to my dashboard. Next step: deactivate all the plugins. But it didnt work. So lets take a look into the Apache log. What I found was:

SoftException in Application.cpp:252: File “/home/xxxxx/public_html/blog/index.php” is writeable by group

Thats it: a permissions problem. So I used Cyberduck (but you can use any other FTP application) to fix it. Delete the “write” permissions of Group and Others:

Permissions-Cyberduck

Note: be sure to apply this to all your files and directories. In my case, as you can see in the image, I used the option “Apply changes recursively”. Your FTP application should have the option to do something like this.

Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds. Valid XHTML and CSS.