<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="xslt-atom.xsl"?>
<feed version="0.3" 
  xmlns="http://purl.org/atom/ns#"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="en">

<title>Greggman.com Category (code)</title>
<link rel="alternate" type="text/html" href="http://blog.greggman.com/" />
<modified>2008-07-04T13:10:09+09:00</modified>
<author>
<name>Gregg Tavares</name>
<url>http://blog.greggman.com</url>
</author>
<tagline mode="escaped">Entries from Greggman.com About code</tagline>
<entry>
<title mode="escaped">How to detect E-Mail Scams (Phishing)</title>
<link rel="alternate" type="text/html" href="http://blog.greggman.com/edit/editheadlines/2006-01-08.htm" />
<id>http://blog.greggman.com/edit/editheadlines/2006-01-08.htm</id>
<summary mode="escaped">Is someone phishing for you? Find out</summary>
<dc:subject>code</dc:subject>
<issued>2006-01-08T19:00:00+09:00</issued>
<created>2006-01-08T19:00:00+09:00</created>
<modified>2006-01-08T19:00:00+09:00</modified>
<content type="text/html" mode="escaped" xml:base="http://blog.greggman.com/edit/editheadlines/2006-01-08.htm">
<![CDATA[Is someone phishing for you? <a href="../../pages/phishing/phishing.htm">Find out</a>]]>
</content>
</entry>
<entry>
<title mode="escaped">Flickdown 2.0</title>
<link rel="alternate" type="text/html" href="http://blog.greggman.com/edit/editheadlines/2005-11-23.htm" />
<id>http://blog.greggman.com/edit/editheadlines/2005-11-23.htm</id>
<summary mode="escaped">I updated flickrdown for the release version of .NET 2.0 and added support for private images, tags and groups. You can download it here.</summary>
<dc:subject>code</dc:subject>
<issued>2005-11-23T19:00:00+09:00</issued>
<created>2005-11-23T19:00:00+09:00</created>
<modified>2005-11-23T19:00:00+09:00</modified>
<content type="text/html" mode="escaped" xml:base="http://blog.greggman.com/edit/editheadlines/2005-11-23.htm">
<![CDATA[I updated flickrdown for the release version of .NET 2.0 and added support for private images, tags and groups.  You can download it <a href="../../pages/flickrdown.htm">here</a>.]]>
</content>
</entry>
<entry>
<title mode="escaped">FlickrDown</title>
<link rel="alternate" type="text/html" href="http://blog.greggman.com/edit/editheadlines/2005-05-02.htm" />
<id>http://blog.greggman.com/edit/editheadlines/2005-05-02.htm</id>
<summary mode="escaped">I needed a program to download a friend's images from flickr so I whipped this up.</summary>
<dc:subject>code</dc:subject>
<issued>2005-05-02T19:00:00+09:00</issued>
<created>2005-05-02T19:00:00+09:00</created>
<modified>2005-05-02T19:00:00+09:00</modified>
<content type="text/html" mode="escaped" xml:base="http://blog.greggman.com/edit/editheadlines/2005-05-02.htm">
<![CDATA[I needed a program to download a friend's images from <a href="http://flickr.com">flickr</a> so I whipped this up.]]>
</content>
</entry>
<entry>
<title mode="escaped">Tanjunka</title>
<link rel="alternate" type="text/html" href="http://blog.greggman.com/edit/moblogposts/2005-04-10moblog.htm" />
<id>http://blog.greggman.com/edit/moblogposts/2005-04-10moblog.htm</id>
<summary mode="escaped">1 of the reasons I haven't been updating my website as much as before is I've been spending nearly all my free time writing this software. </summary>
<dc:subject>code</dc:subject>
<issued>2005-04-10T19:00:00+09:00</issued>
<created>2005-04-10T19:00:00+09:00</created>
<modified>2005-04-10T19:00:00+09:00</modified>
<content type="text/html" mode="escaped" xml:base="http://blog.greggman.com/edit/moblogposts/2005-04-10moblog.htm">
<![CDATA[1 of the reasons I haven't been updating my website as much as before is I've been spending nearly all my free time writing <A href="http://tanjunka.com/">this software</A>.
<P></P><GMAN_CUTHERE>
<P>Today I just got it to the point that I think I can use it on this site.&nbsp; I wrote it basically because at the time, last November, I couldn't find an<IMG height=174 src="http://greggman.com/images/moblog/2005-04-10-tanjun_20050411_0000054.jpg" width=238 align=right>y&nbsp;blogging software that did what Tanjunka does.&nbsp; Basically it lets you post entries to your blog with photos faster than any other software I've used.&nbsp; Drag in the photos, type a your entry, pick post.&nbsp; By default Tanjunka will resize the photos to a blog friendly size.&nbsp; It always seemed to take 5 to 15 extra minutes to post anything with a photo to a blog so my goal was to get rid of that problem.&nbsp; The easier it is the more likely I'l post.</P>
<P>Tanjunka can do basic photo editing so hopefully I won't have to go to photoshop anymore.</P>
<P>&nbsp;</P>]]>
</content>
</entry>
<entry>
<title mode="escaped">Javascript Sidebars</title>
<link rel="alternate" type="text/html" href="http://blog.greggman.com/edit/editheadlines/2004-08-20.htm" />
<id>http://blog.greggman.com/edit/editheadlines/2004-08-20.htm</id>
<summary mode="escaped">I saw this post about how to put part of your moblog on a side bar on your front page using PHP. Getting PHP to run can be trouble for some or your ISP might not support it. I also saw this link on how to get it to work using some MT plugin. That's of course an MT specific solution and it has the disadvantage that the bar doesn't update automatically.Well, here's a way to get it to both update automatically and not require PHP or any plugs.</summary>
<dc:subject>code</dc:subject>
<issued>2004-08-20T19:00:00+09:00</issued>
<created>2004-08-20T19:00:00+09:00</created>
<modified>2004-08-20T19:00:00+09:00</modified>
<content type="text/html" mode="escaped" xml:base="http://blog.greggman.com/edit/editheadlines/2004-08-20.htm">
<![CDATA[I saw <a href="http://www.easterwood.org/hmmn/archives/000639.html">this post</a> about how to put part of your moblog on a side bar on your front page using PHP.  Getting PHP to run can be trouble for some or your ISP might not support it.  I also saw <a href="http://gme.jp/arch/000333.html">this link</a> on how to get it to work using some MT plugin.  That's of course an MT specific solution and it has the disadvantage that the bar doesn't update automatically.<br><br>Well, here's a way to get it to both update automatically and not require PHP or any plugs.<br><br>That is to have your blog generate a javascript page generator page for you (that's a mouth full) and then put a short javascript link on your main page.  This is how <a href="http://blogrolling.com">blogrolling.com</a> works for example.<br><br>In your moblog make a new index template and set the output file to "mobar.js"<br><br>Set the Template Body to something like this<br><br><blockquote><pre>mymobar('Moblog'+<br>&lt;MTEntries lastn="3"&gt;<br>"&lt;$MTEntryTitle encode_js="1"$&gt;"+<br>"Posted: &lt;$MTEntryDate encode_js="1"$&gt;"+<br>"&lt;$MTEntryBody encode_js="1"$&gt;"+<br>"&lt;a href=\"&lt;$MTEntryPermalink$&gt;\" target=_blank name=\"comments\"&gt;Comments&lt;/a&gt; | &lt;a href=\"&lt;$MTBlogURL$&gt;\" target=_blank&gt;View all&lt;/a&gt;"+<br>&lt;/MTEntries&gt;<br>'') ;<br><br>function mymobar( s ) {<br>  document.write( s );<br>}</pre></blockquote>rebuild<br><br>Now go to your main blog and edit the template for your front page.  In the spot you want your mobar to appear put in this line<br><br><blockquote><pre>&lt;script language="javascript" type="text/javascript" src="http://yourblock.com/moblog/mobar.js"&gt;&lt;/script&gt;</pre></blockquote>Now, if you didn't make any typos and you fixed (http://yourblog.com/moblog/mobar.js") to point to the mobar.js on your site you should have a live mobar on your blog.<br><br>If you want to modify it, the important parts are that each line in your template that generates text needs to have quotes around it and it needs to end with a + sign.  In top of that you need to add <b>encode_js="1"</b> to tell movabletype to adjust anything it outputs to work with Javascript.  And on top of that you need to make sure any quotes you use are escaped with a backslash \ , like for example the links HTML in the example above.  If you make a mistake the browsers will not display anything where you expected your sidebar to appear and you'll get a javascript error.  It can be a pain to debug if you are not used to alll that but once you get it correct it should work fine.<br><br>This method will work with almost any blogging system.  It will even work across servers.  For example it's what I use to get the headlines from <a href="http://game-science.com">game-science.com</a> to appear on the <a href="http://tokyopia.com">tokyopia.com</a> front page on the right bar.  The game-science people put in a template to generate a javascript file that outputs their headlines and then I just put the one line javascript on our site to use their headlines.<br><br>The only issue is the browser viewing the page must support Javascript but half the stuff on the web requires javascript now-a-days so I suspect that's not a big problem.]]>
</content>
</entry>
<entry>
<title mode="escaped">Furl</title>
<link rel="alternate" type="text/html" href="http://blog.greggman.com/edit/editheadlines/2004-07-14.htm" />
<id>http://blog.greggman.com/edit/editheadlines/2004-07-14.htm</id>
<summary mode="escaped">Furl was recently recommended to me. It's a site that lets you keep your net bookmarks online but more than that, it will keep copies of the pages for you if you want so even if the original site disappears you'll still have the info. It also lets you share your bookmarks in various ways. Here's mine so far. I'm not sure if anyone will find them useful but I find it useful to be able to bookmark something at work and then reference it at home and visa versa.It also lets you present your bookmarks as blog entries if you want, giving a comment to each one and allowing others to comment as well.</summary>
<dc:subject>code</dc:subject>
<issued>2004-07-14T19:00:00+09:00</issued>
<created>2004-07-14T19:00:00+09:00</created>
<modified>2004-07-14T19:00:00+09:00</modified>
<content type="text/html" mode="escaped" xml:base="http://blog.greggman.com/edit/editheadlines/2004-07-14.htm">
<![CDATA[<a href="http://www.furl.net">Furl</a> was recently recommended to me.  It's a site that lets you keep your net bookmarks online but more than that, it will keep copies of the pages for you if you want so even if the original site disappears you'll still have the info.  It also lets you share your bookmarks in various ways.  <a href="http://www.furl.net/members/greggman">Here's mine</a> so far.  I'm not sure if anyone will find them useful but I find it useful to be able to bookmark something at work and then reference it at home and visa versa.<br><br>It also lets you present your bookmarks as blog entries if you want, giving a comment to each one and allowing others to comment as well.<br><br>It's even got importing and exporting to and from IE and Mozilla.<br><br>I'm not sure what the original intent was, blog tool, bookmark tool or what but either way it's pretty cool.]]>
</content>
</entry>
<entry>
<title mode="escaped">Thumbs</title>
<link rel="alternate" type="text/html" href="http://blog.greggman.com/headlines/2000/2000-09-27.htm" />
<id>http://blog.greggman.com/headlines/2000/2000-09-27.htm</id>
<summary mode="escaped">I finally got my first shareware program online. I don't really expect it to sell but it was fun to make it and see all the stuff I had to do to get it ready to sell. You can check it out here.</summary>
<dc:subject>code</dc:subject>
<issued>2000-09-27T19:00:00+09:00</issued>
<created>2000-09-27T19:00:00+09:00</created>
<modified>2000-09-27T19:00:00+09:00</modified>
<content type="text/html" mode="escaped" xml:base="http://blog.greggman.com/headlines/2000/2000-09-27.htm">
<![CDATA[I finally got my first shareware program online.&nbsp; I don't really expect
it to sell but it was fun to make it and see all the stuff I had to do to get it
ready to sell.&nbsp; You can check it out <a href="../../thumbs/index.html">here</a>.]]>
</content>
</entry>
</feed>
