Google Code Prettify and WordPress plugin

Google Code Prettify enable syntax highlight to source code in HTML page. In WordPress you can use Simple Code Highlighter plugin.

To use the Google Code Prettify plugin, place your code within a <pre> text block, and then specify the class of the block as “prettyprint”.  To do this, switch to Text mode within the WordPress editor.

You can use pre tag and class=”prettyprint” attribute to your code

// your code here

Here are some examples:

Default

Many
lines
of
code

Default with line numbers

Many
lines
of
code

Java

class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Prints the string to the console.
    }
}

Python

class SchoolMember:
    '''Represents any school member.'''
    def __init__(self, name, age):
        self.name = name
        self.age = age
        print('(Initialized SchoolMember: {})'.format(self.name))

    def tell(self):
        '''Tell my details.'''
        print('Name:"{}" Age:"{}"'.format(self.name, self.age), end=" ")


class Teacher(SchoolMember):
    '''Represents a teacher.'''
    def __init__(self, name, age, salary):
        SchoolMember.__init__(self, name, age)
        self.salary = salary
        print('(Initialized Teacher: {})'.format(self.name))

    def tell(self):
        SchoolMember.tell(self)
        print('Salary: "{:d}"'.format(self.salary))


class Student(SchoolMember):
    '''Represents a student.'''
    def __init__(self, name, age, marks):
        SchoolMember.__init__(self, name, age)
        self.marks = marks
        print('(Initialized Student: {})'.format(self.name))

    def tell(self):
        SchoolMember.tell(self)
        print('Marks: "{:d}"'.format(self.marks))

t = Teacher('Mrs. Shrividya', 40, 30000)
s = Student('Swaroop', 25, 75)

# prints a blank line
print()

members = [t, s]
for member in members:
    # Works for both Teachers and Students
    member.tell()

Node.js

var http = require('http');

http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('Hello World!');
}).listen(8080);

Quais as vantagens do Wireless 5 GHz?

A tecnologia de conexão AC é o assunto do momento quando falamos em redes sem fio, mas neste artigo iremos focar na consolidação da frequência de 5GHz como uma tendência para os próximos anos. Para entender seus benefícios e suas desvantagens precisamos diferenciá-la da frequência mais comum nos dias de hoje.

A principal diferença entre as frequências sem fio de 2,4 GHz e 5 GHz diz respeito ao número de dispositivos por frequência. A 2,4 GHz sofre mais interferência que a 5 GHz. Isso ocorre por dois motivos: primeiro porque o velho padrão 11g utiliza apenas a frequência de 2,4 GHz, e esse é o padrão mais utilizado em escala global. Além disso, a 2,4 GHz tem menos opções de canal – apenas três – enquanto a 5 GHz apresenta 23 canais sem sobreposição. O segundo motivo é que muitos outros aparelhos “roubam” a frequência 2,4 GHz, como os fornos micro-ondas e telefones sem fio. Esses dispositivos criam um ruído que diminui ainda mais a velocidade das redes sem fio.

Matéria completa:
https://canaltech.com.br/telecom/quais-as-vantagens-do-wireless-5ghz-43799/

IBM Technical Rock Star

Hi Everyone

I want to share an award that I received. I was recognized as IBM Technical Rock Star.
IBM Technical Rock Star for Cloud Program invited IBMers with technical skills to subscribe, challenge and share their technical skills, and win prizes. The competing projects could vary from building apps, using social networking or doing a meetup for any of the IBM Cloud solutions in the program. The overall goal was to encourage widespread, worldwide adoption of IBM Cloud, SoftLayer, IBM Bluemix and its services like Data Services and DevOps, Linux on Power SDK, and Cloudant.

I was recognized as IBM Technical Rock Star twice. I received the second place in September and the third place in December.

The final of Technical Rock Star for Cloud Program results had very impressive numbers:

14.014 Social Profiles
286 Articles published
634 Meetup

I recored a presentation where I answered some questions about the Technical Rock Star program.

You can see presentation file  here [1] and the video  here [2] as well.

A tech guy as me to be recognized as Technical Rock Star is awesome [3].
I’m feeling like Rock Star.

Thank you

 

References

[1] http://www.slideshare.net/KleberCarvalho/ibm-trsklebercarvalhov3

[2] https://www.youtube.com/watch?v=ojvKQtbwfx8

[3] http://www.klebercarvalho.com/blog/2014/10/27/technical-rock-star/

Technical Rock Star

I have a proud to announce that I received a recognition as Technical Rock Star award for Cloud Computing.

 

The technical expertise that you shared this month is making an impact on the lives of developers around the world!! Your technical contributions encouraged developers to learn more, improve their skills, and achieve their goals faster.
You ROCKED it!! Expertise like yours shows that IBMers are superstars. This Gold Second Place Album is to recognize your achievement. Please print the attached certificate and share it with great pride.
We want to make sure you are seen as the expert that you are, by all IBMers, so please expect to be contacted by the Technical Rock Star team to capture your success story.
Thank you for participating in this month’s program. You are playing a critical role in the transformation of IBM! I encourage you to keep participating in this year long program! YOU make a difference.  WE SALUTE YOU!!!

The challenge was reach and engagement on social media to enhance and promote IBM’s Cloud thought leadership and get the word out about Cloud, IBM Bluemix and its services like Data Services.

Through my social networks (Twitter, Google+, Linkedin, Stack Overflow, my personal blog etc), I’ve shared resources that I’m reading such as webinars, blogs, tutorial, code samples, videos, books, papers, articles regarding Cloud computing. I tried share my experiences and insights to Developers, Architects Engineers and students.

Rather than receiving the award, I’m really very proud to receive the congratulations of several people at IBM that I admire.
They took a minute from the busy day to wish congrats to me. I appreciate it from the bottom of my heart.

A tech guy as me to be recognized as Technical Rock Star is awesome.
I’m feeling like Rock Star.

Thank you so much.

Who am I?

Kleber Carvalho has been working as a software engineer and software architect. He has studied Java since 1997 which is his main programing language, but he is also interesting in others programming language such as ANSI C/C++, Object C, PHP, Ruby and Python.
Kleber Carvalho has worked with technologies such as: HTML, XML, CSS, JavaScript, ShellScript bash/ksh and worked with database through DB2, Oracle DB, MySQL DB, Derby and HSQLDB , but his focus is SQL as developer.
Kleber Carvalho has developed mobile applications for Android and iOS.

– I am graduated in Computer Science, in the year 2000.

– I have Lato Sensu post-graduation with the title of ” Java and Java Enterprise Edition Architecture Specialist “, in the year 2002.

– I have MBA with the title of “High Availability in Enterprise Architecture”, in the year 2010. This particular MBA was interesting because IBM tailored this course along with its major banking customer in Brazil. The course goal was study all IBM Architecture Servers such as IBM System x, IBM System p, IBM System i and IBM System z architecture.

– I have more than 12 year working Java technology. In 2005 I started to work for IBM as Senior Developer, and since 2008 I have worked as an Application Architect, where I am responsible to provide application development, technical leadership, support and Life Cycle Management for the most important IBM internal applications.

– I am member of GBS AS Brazil Web Technologies CoC, where I am responsible for interview candidates who have Web developing, Web Architecture and Mobile developing skill to work on IBM Brazil.

– I am an IBM Academic Ambassador, helping IBM Academic Initiative Brazil, working to create a maintain a link between IBM and Universities, spreading IBM technology in the Academic environment.

– I am doing Master Degree in Computer Science, in Federal University of São Carlos (UFSCar), on going. My major study area are Mobile and Cloud Computing.

– I’m a translator and technical reviewer for software development books which are translated to Portuguese. I worked on 17 books translated to Brazil, the last 4 books that I worked, 2 books are related to Mobile developing regarding Android, IOS and Web
Mobile developing.

– Struts in Action
– Linux Power Tools,
– Linux Kernel Development
– JavaServer Faces Programming
– EJB Cookbook
– How Tomcat works
– Hibernate in Action
– The UML Reference Manual
– J2EE Tutorial 1.4
– Core Servlets & JavaServer Pages (2nd Edition)
– Building Web Services with Java: Making Sense of XML, SOAP, WSDL, and UDDI (2nd Edition)
– The Essential Guide to HTML5: Using Games to learn HTML5
– Pro Android Web Apps Develop for Android Using HTML5, CSS3 & JavaScript
– iOS 4 in Action: Examples and Solutions for iPhone & iPad
– Learning JavaScript

Mainframe Ubuntu Linux

Sources close to Canonical and IBM are telling me that Ubuntu may soon be certified on IBM’s System p mini-computers and blades and System z mainframes. Continue reading it here.

I have worked on linux on Z mainly SUSE linux. I like too much Ubuntu, and if we will have Ubuntu on Z, that would be great.

Kleber Rodrigo de Carvalho