TIL: Best First Search and Local Maxima Problem

January 2, 2017 | Comments

Okay, this wasn’t the first time I learned about this but I did relearn this while talking to my SO about the AI textbook he was reading. There’s a concept called best first search. The basic example is traversing through a tree. Each node that the algorithm visits, it adds the node to an array solely for visited nodes. It keeps another array for nodes it hasn’t yet visited. While it traverses through the nodes, it sorts the visited node array so that the best node is at the start of the array.

Category: Programming
Tags: #AI #algorithms #TIL

Silly Mistakes

October 31, 2016 | Comments

At work I’m writing a simple script in Python that pulls data from a sqlite database. I was doing some inserts and deletes and I was wondering why the database wasn’t changing. I tried printing out the queries and double checking that they were indeed correct syntax-wise. I traced my program line by line up to the point where queries were being executed. Finally, I turned to Google. Stackoverflow, of course, delivered.

Category: Programming Work
Tags:

LFTP Fatal Error: Certificate verification

October 11, 2016 | Comments

The error: ~$ git-ftp pull<br /> ~$ cd: Fatal error: Certificate verification: certificate common name doesn’t match requested host name ‘ftp.mazohyst.org’<br /> ~$ mirror: Fatal error: Certificate verification: certificate common name doesn’t match requested host name ‘ftp.mazohyst.org’ Solution: Edit ~/.lftp/rc so that it contains set ssl:check-hostname no. What this does is pretty self explanatory. If the hostname in the certificate does not match the hostname you’re attempting to connect to, it doesn’t matter because it won’t check for that in the first place.

About

Categories

Archives

Blogroll

Misc

I'm a bookworm