How to change the Standard Browers in Lotus Notes

Today I reinstalled Lotus Notes, everything works perfect except one thing: When I click on a Link Lotus Notes opens the Link internal and not in my Google Chrome. This is how I solved it.  

Go to the top left of Lotus Notes and open File > Preferences. (Shown below)

ImageBanana - MailInboxIBMLotusNotes_002.png

Next a windows opens: type in the field at the top (Number 1 in Screenshot) “Web” and klick on Web Browser, then select Option show in the Screenshot as Number 2. Confirm this with the “Apply” Button (Number 3 in Screenshot).   

ImageBanana - Selection_003.png

You are done. Enjoy that links now will open in your choosen browers.

Implemented a ROT13 Encryption Web App

The Source Code for the Python Web App using Templates (jinja2):
[sourcecode language="python"]
import os #http://effbot.org/librarybook/os.htm operating system fumctions
import re #http://effbot.org/librarybook/re.htm regular expression module
from string import letters

import webapp2
import jinja2

from google.appengine.ext import db

template_dir = os.path.join(os.path.dirname(__file__), 'templates')
jinja_env = jinja2.Environment(loader = jinja2.FileSystemLoader(template_dir), autoescape = True)

def render_str(template, **params):
t = jinja_env.get_template(template)
return t.render(params)

class MainHandler(webapp2.RequestHandler):
def render(self, template, **kw):
self.response.out.write(render_str(template, **kw))

def write(self, *a, **kw):
self.response.out.write(*a, **kw)

class Rot13(MainHandler):
def get(self):
self.render('rot13-form.html')

def post(self):
rot13 = ''
text = self.request.get('text')
if text:
rot13 = text.encode('rot13')

self.render('rot13-form.html', text=rot13)

app = webapp2.WSGIApplication([
('/', Rot13)],
debug=True)
[/sourcecode]
Source code for the Template positioned in a folder 'templates':
[sourcecode language="html"]</pre>
<!DOCTYPE html>

<html>
<head>
<title>Unit 2 Rot 13</title>
</head>

<body>
<h2>Enter some text to ROT13:</h2>
<form method="post">
<textarea name="text"
style="height: 100px; width: 400px;">{{text}}</textarea>
<br>
<input type="submit">
</form>
</body>

</html>[/sourcecode]

Should you go for a Ph.D.? Most of us shouldn’t!

Botton line: If you want to go into – Academics or into R&D (e.g. in the Lab of a big company), then go for a Ph.D. otherwise go for the business experience.

And this is why:

The best answer I’ve seen to this question is by Prof. Matthew Might on his blog. Like many great answers, it uses pictures (taken from The illustrated guide to a Ph.D.):

Imagine a circle that contains all of human knowledge:

 

By the time you finish elementary school, you know a little:

By the time you finish high school, you know a bit more:

With a bachelor’s degree, you gain a specialty:

A master’s degree deepens that specialty:

Reading research papers takes you to the edge of human knowledge:

Once you’re at the boundary, you focus:

You push at the boundary for a few years:

Until one day, the boundary gives way:

And, that dent you’ve made is called a Ph.D.:


Extending this boundary of human knowledge gives you a number of other skills apart from the knowledge gained (as explained in Vijay Chidambaram’s answer to PhD Careers: If a PhD doesn’t go into research or industry in his or her chosen field or specialty, what is he or she actually more qualified than college graduates to do?):

Ability to work independently. The degree is not conferred until the candidate has proved to experts that he or she has produced original work and advanced the state of the field in some way. Though some work may be done in collaboration, the ideas as such must originate with the degree holder. 

Critical thought. Extending the state of the art cannot be done without knowing what is wrong with the current state. A PhD candidate learns to critically examine the thoughts of others and pick out the pros and cons.

Perseverance. Getting the degree is a long and arduous journey that tests the determination of the candidate.

Ability to work with poorly defined goals. One of the bigger hurdles of the PhD is that there is no clear cut goal. You know you have to do original research, but no one can exactly say these are the things you need to do every day to do it. Research as such involves going back and forth, exploring blind alleys and so forth.

Effective communication. The candidate must be able to communicate about his or her research effectively, at least on paper. The better candidates will be able to communicate through oral presentations as well.

Though a Master’s degree equips one with specialized knowledge, most of the above skills are not learnt during a Masters degree. Do note that you don’t need any degree to acquire the above skills on your own.

A masters degree equips you to do high level, complex design and potentially lead software engineering teams.

A PhD degree equips you to do original research and potentially lead R&D teams.

Date Converter: Transform a date into different formats

One very common data transformation is the stadardization of dates. This Date Converter Code can be customized to your need. You can use foreign languages or change the order of day, month and year. Also you could include other standardizations like ’01’ and ‘1’.
[sourcecode language=”python”]# Date Converter
# Write a procedure date_converter which takes two inputs. The first is
# a dictionary and the second a string. The string is a valid date in
# the format month/day/year. The procedure should return
# the date written in the form <day> <name of month> <year>.
# For example , if the
# dictionary is in English,
english = {1:"January", 2:"February", 3:"March", 4:"April", 5:"May",
6:"June", 7:"July", 8:"August", 9:"September",10:"October",
11:"November", 12:"December"}
# then  "5/11/2012" should be converted to "11 May 2012".
# If the dictionary is in Swedish
swedish = {1:"januari", 2:"februari", 3:"mars", 4:"april", 5:"maj",
6:"juni", 7:"juli", 8:"augusti", 9:"september",10:"oktober",
11:"november", 12:"december"}
# then "5/11/2012" should be converted to "11 maj 2012".
# Hint: int(’12’) converts the string ’12’ to the integer 12.
def date_converter(dic, string):
first_split = string.find(‘/’)
month = string[0:first_split]
second_split = string.find(‘/’,first_split+1)
day = string[first_split+1:second_split]
year = string [second_split+1:]

month_name= dic[int(month)]

return day+’ ‘+month_name+’ ‘+year
print date_converter(english, ‘5/11/2012’)
#>>> 11 May 2012
print date_converter(english, ‘5/11/12’)
#>>> 11 May 12
print date_converter(swedish, ‘5/11/2012′)
#>>> 11 maj 2012
print date_converter(swedish, ’12/5/1791’)
#>>> 5 december 1791[/sourcecode]