Skip to main content

Insert code into your Blogger posts

Programmers know that blogger doesn't support code insertion (usefull if you need to demonstrate how to program something by copy/pasting code samples). Thus, you need to swicth  Blogger's editor to HTML and paste HTMLized text.

The nicest solution I found to format your code to HTML is to use this online code formatter : http://hilite.me/

So, let's show an example:


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
         http://maven.apache.org/maven-v4_0_0.xsd">
 <modelVersion>4.0.0</modelVersion>
 <groupId>com.horstmann.violet</groupId>
 <artifactId>parent</artifactId>
 <name>Violet UML Editor Parent Maven Project</name>
 <version>1.0.0</version>
 <packaging>pom</packaging>
 <modules>
     <module>violet-framework</module>
     <module>violetplugin-activitydiagram</module>
     <module>violetplugin-classdiagram</module>
     <module>violetplugin-objectdiagram</module>
     <module>violetplugin-sequencediagram</module>
     <module>violetplugin-statediagram</module>
     <module>violetplugin-usecasediagram</module>
     <module>violetproduct-swing</module>
     <module>violetdistrib-rpm</module>
 </modules>
 <properties>
     <applicationVersion>2.0.0-SNAPSHOT</applicationVersion>
   </properties>
 <build>
  <resources>
            <resource>
                <directory>src/main/resources</directory>
            </resource>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.gif</include>
                    <include>**/*.jpg</include>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
            </resource>
        </resources>
  <pluginManagement>
         <plugins>
             <plugin>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.0.2</version>
                 <configuration>
                     <source>1.6</source>
                     <target>1.6</target>
                 </configuration>
             </plugin>
         </plugins>
  </pluginManagement>
 </build>


 <distributionManagement>
  <repository>
   <id>web.sourceforge.net</id>
   <name>Violet's Maven Repository</name>
   <url>
                sftp://web.sourceforge.net/home/groups/v/vi/violet/htdocs/maven2/repo
            </url>
  </repository>
 </distributionManagement>
 <repositories>
  <repository>
   <id>violet.repo</id>
   <name>Violet's Maven repository (public access)</name>
   <url>http://violet.sourceforge.net/maven2/repo/
            </url>
  </repository>
 </repositories>
</project>

So nice!

Comments

Hello!

This helped me out! Just after I switched to HTML editor when posting it began to work!
Look nice!
Thank you!
Do you know what is even cooler.

I can myself easily remove border, change padding,margin,line-height, whatever!
B13 Technology said…
Really amazing blog you have it is very informative. Really I learn something new from you. Thanks for sharing.
I am delighted to see that people are in fact writing about this subject in such a elegant way, presenting us all diverse parts to it. You’re a fine blogger.
Thanku for visit us:

ARKA Softwares & Outsourcing is an IT Company focusing on software & Web development and providing offshore outsourcing solutions to enterprises worldwide.

website development company in india
Allan said…
This comment has been removed by the author.
Allan said…
The developers provide solutions independent of the operating system. Their templates and guidelines are applicable universally. It is the next level in Mobile App Development in Dwarka that an infrastructure is established at broad level with the aid of software environment that can be utilized to make apps for any operating system such as Android or iOS.
Rafi Saleem said…
thanks its work
Purob said…
Helpfull For me. I have used in my site. You can visit my site to see this and get Exclusive Skill Test Answers of oDesk, Elance & Freelancer.
dinesh kumar said…
I would like to say this is an excellent site that I have ever come across. Very informative. Please write more so that we can get more details.
Hosted Navision Pris
Yogesh Patil said…
Thanks. This is something i was looking for my blog.
Mahendhar E said…
Thanks
Thank you for another fantastic posting. Where else could anyone get that kind of information in such a perfect way of writing? I have a speech next week, and I was looking for more info ;)
Continue writing like this, very informative content, nice way to write, a real pleasur to read you !
Whoah this weblog is great i love studying your posts. Keep up the great paintings! You realize, lots of persons are hunting round for this information, you can help them greatly.
Great post ~
niazi said…
This blog awesome and i learn a lot about programming from here.The best thing about this blog is that you doing from beginning to experts level.

Love from
niaziakmal khan said…
Programming is combination of intelligent and creative work. Programmers can do anything with code. The entire Programming tutorials that you mention here on this blog are awesome. Beginners Heap also provides latest tutorials of Programming from beginning to advance level. Be with us to learn programming in new and creative way.
simashree said…
Thanks for the great information in your blog Selenium Training in Chennai
Hi, your blog really nice, keep it up! I’ll go ahead and bookmark your website to come back later.
Regards,
Java Training in Hyderabad
Java online Training in Hyderabad
Java Training in India
Java online Training in India
Avinash Pandey said…
Thank you so much.This blog awesome and i learn a lot about programming from here.The best thing about this blog is that you doing from beginning to experts level.
JAVA TRAINING IN GWALIOR
Mike said…
Hello Bosku....!! Member GADIS !
Kami mengingatkan kembali kepada seluruh member setia GADIS,
Promo terbaru dari GADIS PKR :
-BONUS Rp 5.000 Saat deposit Rp 50.000
-BONUS Rp 10.000 Saat deposit Rp 100.000.
-Minimal Depo / Wd Hanya : 10000,-
-Bonus Refferal 15% Seumur Hidup.
-Bonus TO/Turn Over Up TO 0,3% - 0,5%
-Hadiah Jackpot Puluhan Jutaan Rupiah

**Ketentuan :
Bonus dapat di klaim paling lambat 1 jam setelah melakukan deposit.
Bonus tidak berlaku jika tidak di klaim paling lambat 1 jam setelah deposit.

Gabung dan daftar sekarang dan buktikan sejauh apa keberuntungan membawa anda !

Live support 24 jam siap membantu anda kapanpun dibutuhkan:
☑️Pin BB : D8C893A4
☑️Whatsapp : +855966624192
☑️Skype : Gadispoker
☑️Yahoo : gadispokercs
☑️Line : gadispoker-cs

Semoga anda beruntung,,, dan tetap bermain secara bertanggung jawab.
Salam,,!
agen judi poker online terpercaya di indonesia

bandar judi poker online yang paling aman

taruhan judi poker online terpercaya

poker online

judi poker

dewa poker

raja poker

gadispoker

judi poker online terbesar

judi poker online yang aman dan terpercaya

bandar poker online indonesia

judi dewa poker terbaik indonesia

agen poker online indonesia

poker online betting

poker online terbaik
Unknown said…
nice article poker online
lisa wu said…
Silahkan di kunjungi ya kawan-kawan 100% Memuaskan
> Hoki anda ada di sini <
Allsbobet 1 DOMPET DEPOSITO Untuk Semua Permainan !!
WELCOME BONUS 100%
SPORTSBOOK CASINO TOGEL POKER E E-GAMES SLOT MACHINE NUMBER GAME SABUNG AYAM TEMBAK IKAN DAN SEBAGAINYA

Tentunya dengan berbagai BONUS-BONUS:
- Minimal Deposit Rp 50.000 & Withdraw Rp 50.000
- BONUS NEW MEMBER SPORTBOOK 100%
- BONUS ALL GAME 10%
- BONUS ROLLINGAN LIVE CASINO 0.8%
- BONUS REFFERAL 2.5%

Gabung yuk bersama dengan kami di ALLSBOBET.COM
Terpercaya Sejak 2015 - MENANG BERAPAPUN KAMI BAYAR
Proses Deposit / Withdraw gak pake ribet, proses CEPAT !!

UNTUK INFORMASI SELANJUTNYA BISA HUB KAMI DI :
LIVECHAT ALLSBOBET.COM 24 JAM ONLINE : https://lc.chat/now/8533171/
Pin BBM : D60E1BF8
LINE : ALLSBOBET
WECHAT : ALLSBOBET
WHATSAPP : +855 974 832 357

Agen Togel
Agen Bola
Agen Kasino
Togel SGP
Togel Hongkong
Togel Sydney
Judi Online
Agen Judi
Agen Judi QQ
Forum Judi Online
hubungi kami di :
Line : ALLSBOBET
Bbm : D60E1BF8
Wa : +855974832357

Popular posts from this blog

DCcduino usb drivers (CH340 / CH341 chipset)

I've just received my first arduino platform. It's a DCcduino board (a clone of Arduino Uno). As I had some difficulties to have it recognised by my MacBook, I decided to share its drivers. This card has a CH340 USB-to-serial chip. You can find drivers for this chip on the web site of the chinese manufacturer, here :

http://www.wch.cn/downloads.php?name=pro&proid=5

Or download it directly from my Google Drive. The archive contains drivers for Mac, Linux and Windows platforms.

https://drive.google.com/file/d/0B5okZr5AW4gaX2pZaWt6dVNaSFU/edit?usp=sharing

I hope this will help somebody.

UPDATE for Mac users with Yosemite :

Please, follow this extra instructions :
Install the CH340 driverRun the command in Terminal: sudo nvram boot-args="kext-dev-mode=1"Reboot

The great alternative to JRebel

I'm an old user and addict of JRebel. I started to use it on open source projects and in professional contexts. From the beginning, I've been convinced that the licensing mode was wrong because of its lifetime. Asking for license renewal each year is boring. So, I decided to look for FREE alternative solutions and finally I recently found one.

This solution is efficient for maven projects developed with Eclipse. It is base on :

Hotswap Agent project : http://hotswapagent.org/Dynamic Source Lookup plugin for Eclipse : https://github.com/ifedorenko/com.ifedorenko.m2e.sourcelookup
I tested it with Java 7 & Java 8. I work on web applications that run on Tomcat. I developed wih Spring (IoC), sometimes Hibernate and Vaadin



Hotswap Agent installation consists on the deployment of a patch for your JVM. You just have to download the corresponding patch here : https://github.com/dcevm/dcevm/releases Then, download the hotswap-agent.jar from here : https://github.com/HotswapProjects…

How to secure REST services exposed with Jersey (JAX-RS) using Spring Security

This is the challenge I had to perform. I have to open services to business partners and I want to secure them. I use a Java based application with Jersey API (JAX-RS).

The first thing to consider is : what kind of solution offers the best compromise between security and the effort I'll have to provide to maintain this solution?
After some discussions with developers and experts, the conclusion is : expose your services over https and use Basic authentication (Digest authentication and certificate based authentication are too complex for partners)

So, how to implement that? I delegate "https" to my Apache http servers. But I still need to handle authentication (and authorization of course). After long hours on Google, I understood that it is possible to manage security with Jersey by many many ways. Here is a short list :

Delegate simple authentication and authorization to your container (Tomcat) or to your frontend (Apache)Delegate authentication to your container or fro…