Pages

Showing posts with label blogger. Show all posts
Showing posts with label blogger. Show all posts

Monday, December 10, 2012

Adding a new blogspot from MarsEdit.

When you want to setup a new blog connection between blogspot and MarsEdit, this is how you can do it.

The basic idea is to make a setting from MarsEdit as follows:

Screenshot12%25253A10%25253A1212%25253A22PM-2-2012-12-10-12-23.png

Procedure

You start from “New Blog”.

PastedGraphic13-2012-12-10-12-23.png

Then, you are requested to add google account that relates to the bloodspot.

PastedGraphic14-2012-12-10-12-23.png

And that’s it. It automatically gets all the blogs from the blogger so that you can update or add some more.

Saturday, October 27, 2012

embed swf file into blogger

You need to video capture from any tool. I used Jing for it.

Then, you need to store it into somewhere in the cloud, I used google sites.
<embed src="https://sites.google.com/site/csmgroup/files/2012-10-27_2026.swf"
quality="high" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" height="300pt" width="500pt">

Change the name of label in the blogger's new interface

Let's say you want to change the blogger label with bloodspot.

Add a new label, and set the posts with the new label

Click the Posts menu.

Screen Shot 2012 10 27 at 1 16 56 PM

Then select them all.
Screen Shot 2012 10 27 at 1 18 29 PM

Then, add bloodspot as a new label
Screen Shot 2012 10 27 at 1 19 06 PM

Using tab/menu in blogger(blogspot)

You may want to add tabs/menus on top of your blogger.
Screen Shot 2012 10 27 at 1 27 59 PM
Actually they are nothing but a web page that you can make a link. For my case, I use label to get the posts with the label. For example, with the Python tab, I link http://prosseek.blogspot.com/search/label/python, and so on.
Then you can visit blogger.com to select your blogs.
Screen Shot 2012 10 27 at 11 05 24 AM
Click Pages to add the page you want. Don't forget to set the "Show pages as" to "Top tabs".
Screen Shot 2012 10 27 at 11 08 12 AM
Screen Shot 2012 10 27 at 11 06 48 AM
You can change the configuration
Screen Shot 2012 10 27 at 11 09 14 AM

SyntaxHighlighter brushes

This is a list what kind of brushes that SyntaxHighlighter provides. Screen Shot 2012 10 27 at 11 40 49 AM From http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/.

Changing font size for headers

Some of the default font size in blogger template does not setup accordingly. This is my rendered output with h2 tag.
2012 10 27 10 41 24
In order to change this, one needs to edit the css file. The first step is click the design button.
Screen Shot 2012 10 27 at 10 42 33 AM
Then Customize the layout.
Screen Shot 2012 10 27 at 10 43 00 AM
In advanced menu, you need to use Add CSS.
Screen Shot 2012 10 27 at 10 43 20 AM

Add the necessary code in the editor.

Screen Shot 2012 10 27 at 10 44 02 AM

Now you have larger font.

Screen Shot 2012 10 27 at 10 44 28 AM

Reference

Syntax highlighter issue with google chrome

The code with SyntaxHighlighter shows wrong line formatting in google chrome. Screen Shot 2012 10 27 at 10 10 36 AM
I found that this is a known issue with of line formatting, check this site.

The http://alexgorbatchev.com/pub/sh/current/styles/shCore.css source has the line that causes this problem.
Screen Shot 2012 10 27 at 10 16 49 AM

There are easy two solutions.

Solution 1

Modify the shCore.css : replace this line.
.syntaxhighlighter table td.gutter .line {
  text-align: right !important;
  padding: 0 0.5em 0 1em !important; <-- Replace this line
}
.syntaxhighlighter table td.gutter .line {
  text-align: right !important;
  padding: 0 5px  !important;
}
Or make it point to where the bug is fixed. : http://codeoncloud.co.cc/shCore.css

Solution 2

Add following line after Configure HTML/JavaScript edit. Screen Shot 2012 10 27 at 10 19 03 AM

Following code should be added.


Thursday, October 25, 2012

Displaying updated post in blogspot

This post teaches how to enlist newly generated posts.




Get this widget

The basic idea is retrieve information from blogger, and calls he callback function to enlist the result.

The summary has all the information, you can check it from http://prosseek.blogspot.com/feeds/posts/summary. Compare it to the case with only for python label with http://prosseek.blogspot.com/feeds/posts/summary/-/python. so if you want to enlist all the posts updated not for specific label, you can modify the code as follows.

Wednesday, October 24, 2012

How to make cloud form of labels in blogpost

As the number of blogs grow, I need to organize and find the posting based on labels.

This post explains how to do that.

In short:
  1. click the Layout link
  2. Select where to put the label cloud and select label :
  3. Then select options :

Using LaTeX in blogspot

First method

I googled this site helps to make LaTeX working in blogspot. I have prosseek/files, for file storing purposes (even though it allows me keep only 1GB). Just right click in google/sites, and copy the file using HREF allows me to download the file from the site like this.
The code is as follows:
$latex \displaystyle S(n)=\sum_{k=1}^{n}{\frac{1}{T_{k}}=\sum_{k=1}^{n}{\frac{6}{k(k+1)(k+2)}$
This is the result: $latex \displaystyle S(n)=\sum_{k=1}^{n}{\frac{1}{T_{k}}=\sum_{k=1}^{n}{\frac{6}{k(k+1)(k+2)}$
You can refer to this post for embedding HTML/javascript in your blog.

MathJax

I googled this post to use MathJax. You need to add the code in template, which add jQuery and MathJax.



The code is as follows:


And this is the result:

Warning

As is written in this post, there is a bug that the result is not shown in Chrome.

References

  1. Embedding math with replacemath
  2. How to show the string inside a tag verbatim?

Easier way to embed java script/HTML in blogpost

When using javascript in your blogspot, I just copied the javascript and HTML code in the editor, but using template, one can share the java script and HTML code for all of the blogs that I make. The first step is visit blogger.com, and choose your blogspot. Open layout.
Then, open "Add a Gadget", and select HTML/Javascript.
When you need to change some of the template, you also can edit the template HMTL code.
Then add your code in there. I have this for my code.

Showing LaTeX code in blogger

Refer to this post.


Syntax highlighter setup

Refer to this post.







pretty printer

Refer to Code highlighting on blogger by LUKA MARINKO. You also need to modify HTML template as explained before.


You can edit the code anytime you want.