Sep
18
Posted on 18-09-2008
Filed Under (Programming Hints) by Steven on 18-09-2008

This is an error I recently received when trying to use TextWrangler to edit files on a remote host through SSH/SFTP.  It would be interesting if anyone could shed the light on the problem.

What I know is I edited the .bashrc and .bash_profile files in order to set a couple of enviroment variables and I decided to put in a echo to remind myself each time that it was done (so I remember to edit the files again when I am done with my current class at school that is requiring this change).

It was after adding that echo ‘Variables set’ to the .bashrc that TextWrangler starting giving the error: An unexpected I/O error occurred (MacOS Error code: -36)

After taking the echo line out of the .bashrc file it seemed to be fine.  So it looks like TextWrangler or using these sorts of source editing programs is not compatible with certain things happening when you login to a server through SSH.

(0) Comments    Read More   
Aug
29
Posted on 29-08-2008
Filed Under (Programming Hints) by Steven on 29-08-2008

I am just adding this script to the page.  It could be added on a page load event or something like that.

Just call tb_show

<script type=”text/javascript”>
tb_show(‘Message Area’,'/linktofile/index.php?id=0&KeepThis=true&TB_iframe=true&height=500&width=750′,false);
</script>

(0) Comments    Read More   
Aug
15
Posted on 15-08-2008
Filed Under (Programming Hints) by Steven on 15-08-2008

A few of the main social bookmarking sites

  • Blue Dot API
  • Delicious API
  • Connotea API
  • Digg API
  • Diigo API
  • My Web API
  • Mixx API
  • Friend Feed API
  • (0) Comments    Read More   
    Mar
    05
    Posted on 05-03-2008
    Filed Under (Programming Hints) by Steven on 05-03-2008


    1. I am just posting this code because I think I am going to need it later, and I don’t want to lose it. 
    2. <? php 
    3. if ($handle opendir(‘/path/to/files’)) { 
    4. echo “Directory handle: $handle\n”;     
    5. echo “Files:\n”;     // List all the files     
    6. while (false !== ($file readdir($handle))) {         
    7. echo “$file\n”;     }     closedir($handle); } 
    8. ?> 
    (0) Comments    Read More   
    Nov
    29
    Posted on 29-11-2007
    Filed Under (Programming Hints) by Steven on 29-11-2007

    I found a nice little application online called access to mysql acc2mssd.exe or something like that. I was a free to try application, but it’s only limitation was on the number of records it saved (5 rows). However, since I was only really worried about the structure, it worked perfectly since I am using a shared server and my mySql databases are adminstrated through the cpanel only, I had to create the table first in cpanel and then make sure the USE statement in the .sql file matched that database name exactly (though if you use the import tool in the database you want it in, you can just de-select the options to add/drop the database in the migration program. Now I just need to figure out the error I am getting with the database connection in the chilisoft asp language. But I leasted I converted the access to mysql successfully.

    (0) Comments    Read More