Showing posts with label Tools. Show all posts
Showing posts with label Tools. Show all posts

Wednesday, May 5, 2010

Testing windows live writer

Windows Live Writer is expected to help me write source code examples easily and post them to my blog seamlessly. In this post I am trying to test its functions.

Here is some C++ code:

  1: class A
  2: {
  3: public:
  4:     A();
  5:     ~A();
  6:     void f();
  7: };
  8: 
  9: // an example of implementation inheritance
 10: class B : private A
 11: {
 12: public:
 13:     B();
 14:     ~B();
 15:    void g();
 16: };
 17: 
 18: 


Following is some Python code:



  1: import os
  2: import sys
  3: 
  4: def main():
  5:     filepath = sys.argv[1]
  6:     contents = open(filepath).readlines()
  7:     print 'Number of lines: ' , len(contents)
  8: 
  9: if __name__ == '__main__':
 10:     main()


A Haskell code example:



  1: double:: Integer -> Integer
  2: double x = x + x
  3: 
  4: square :: Integer -> Integer
  5: square x = x * x
  6: 
  7: main = do
  8:          print $ square 10
  9:          print $ double 20
 10: 
 11: 


Some JavaScript:



  1: fucntion f()
  2: {
  3:      alert('Hello World');
  4: }
  5: 


 



Some HTML:



  1: <html>
  2:   <head>
  3:     <title>Hello World </title>
  4:   </head>
  5:   <body>
  6:     <p> Don't Panic </p>
  7:   </body>
  8: </html>
  9: 


Some CSS:



  1: .header
  2: {
  3:   forground-color: black;
  4:   background-color: red;
  5:   text-size: 20;
  6: }
  7: 

I guess this is more than enough for me. I am happy it works nicely.

Saturday, January 9, 2010

Writer - Windows Live

Writer - Windows Live

Writer makes it easy to share your photos and videos on almost any blog service—Windows Live, Wordpress, Blogger, LiveJournal, TypePad, and many more.

It also has an Insert code plugin which helps you quickly format source code examples in your blog posts.

Tuesday, December 15, 2009

Dojo Toolbox - SitePen, Inc.

Dojo Toolbox - SitePen, Inc. is a great tool for offline viewing of DOJO Toolkit APIs. If you are working with DOJO Toolkit and haven't installed this tool yet, then may be its time you should give this a try. All the API documentation is locally available after installation and is easy to search through.

This was also my first ever experience with an ADOBE AIR application and I liked it very much. The application works like a regular desktop application with great web like experience. It automatically synchronizes with the server and keeps the local API documentation up to date.

Saturday, February 21, 2009

testing code prettifier

Just learnt about how to prettify code inside Blogger.
So trying it out now.


print "Hello World"
for i in range(10):
print i,
print


Well this works nicely.

For more information about how to set it up, please follow it at:

http://lukabloga.blogspot.com/2008/10/to-test-new-highlighting.html