Juliana Louback: Contribute a JSCommunicator Translation
To those who don t know, JSCommunicator is a SIP communication tool developed in HTML and JavaScript, currently supporting audio/video calls and SIP SIMPLE instant messaging. We ve recently added i18n internationalization support for English, Portuguese, Spanish, French and now Hebrew. We would like to have support for other languages and it s a pretty straightforward process to add a translation, so even if you do not have a tech background you can contribute!
Setup
First, create and account in Github. Github is a hosting service for git repositories and open source projects get to use Github for FREE! As a result, many open source project repositories are hosted on Github, including but not limited to JSCommunicator.
Once you have created your git account, follow steps 1-4 in the section Setting up git listed in Github s setup tutorial. This will help you install git and configure anything you need.
Fork
Now fork the JSCommunicator repo. I really like the word fork . Great term. If this is your first fork, know that this will make a copy of the JSCommunicator repo and all its respective code to your Github account. Here s how we go about it:
You should now have your own JSCommunicator repository on your Github account. On your main page select the tab Repositories . It should be the first on the list. The url will be https://github.com/YOUR-USERNAME/jscommunicator. My Github username is JLouback, so my jscommunicator repo can be found at https://github.com/JLouback/jscommunicator.
Clone
Now you should download all that code to your local machine so you can edit it. On your JSCommunicator page somewhere around the lower right corner you ll see a field entitled HTTPS clone URL:
I don t know if this is correct, but you can just copy the URL on your browser too. I do that.
Now on your terminal, navigate to the directory you d like to place your repository and enter
The current directory should now have a folder named jscommunicator and in it is all the JSCommunicator code.
Switch branches
The JSCommunicator repo has a branch for the i18n support. A branch is basically a copy of the code that you can modify without changing the original code. It s great for adding new features, once everything is done and tested you can add the new feature to the original code. A more detailed explanation of branches can be found here.
On the terminal, enter
This will list all the branches in the repository, both local and remote. There should be a branch named remotes/origin/i18n-support . Switch to this branch by entering
This will create a local branch named i18n-support with all the contents of the remote i18n-branch in https://github.com/opentelecoms-org/jscommunicator.
Create a .properties file
Now your jscommunicator directory will have some new files for the internationalization functionality. Among them you should find an INTERNATIONALIZATION_README file with instructions for adding a JSCommunicator translation. It s a less detailed version of this post, but it s worth a read in case I ve missed something here.
Go to the directory internationalization . You ll see a few .properties files with different language codes. Choose the language of your preference for the translation base and make a copy of it in the internationalization directory. Your copy should be named Messages_LANGUAGECODE.properties . For example, the language code for german is de , so the german file should be named Messages_de.properties . If you re not sure about the code for your language, please check out this list of ISO 639-1 language codes so you re using the same code as (most) browsers.
The .properties file is list of key-value pairs, a word or a few words joined by _ which is the key, the equals sign = then a word or phrase which is the value. Do not change anything to the left of the equals sign. Translate what is on the right of the equals sign.
Modify available_languages.xml
Go back to the root directory (jscommunicator) and open the file named available_languages.ruby . This .ruby has a series of language elements. At the end of the last </language> add a new language element with your language display name and code, copying the previous languge elements. You actually can put your language element anwhere, as long as it s after the ' and before the , as well as not cutting into any of the other language elements. Your display name should be the name of the language in its native language, for example for a french translation we ll put Fran ais (I think). And the code is the code we used for the .properties file. Here s how it should look:
Save your changes and voila!
Test your work
Once you ve made a .properties file, JSCommunicator will automatically load your translation if you ve set your browser preference to that language. If your browser preference is french, it will load the Messages_fr.properties. If your browser preference is a language we don t have a translation for (let s say german), JScommunicator will load the default Messages.properties file which is in english.
The available_languages.ruby is used to build a language selection menu. If you add a language element without a corresponding .properties file, JSCommunicator will throw a JS error and load the default (english) translation. The same happens if you use different language codes in the .properties file name and the available_languages.ruby. The error won t disturb your use of JSCommunicator, it just won t load the language you selected. No harm, no foul. But if you want others to use your translation, do take care to do this correctly.
If you read the INTERNATIONALIZATION_README, you will have seen that we need the jquery.i18n.properties.js file that s included in the .html pages. You can download that code here. Be sure to place it in the jscommunicator directory. This is only necessary if you want to see your addition at work, you don t need this file to contribute your translation. There are other 3rd party code dependencies to run JSCommunicator too as you may have noticed. Just creating the .properties file and adding a language element to available_languages.ruby, if done correctly, is enough to make a pull request.
Commit
Here s the part where we load all your local changes to your remote repository. In the terminal, navigate to the root directory (jscommunicator) and enter
Of course, please replace Messages_de.properties with the name of your new .properties file. And mind you, we don t have a german translation yet!
Then enter
You can enter whatever you d like in the part, it s a good idea to explain what language you are adding. Now we can push the changes:
You should now see the changes you made in your Github account page at github.com/YOUR_USER/jscommunicator. The message you put in double quotations ( ) in the commit will be beside each modified file. This push also creates a new branch in your jscommunicator repository, now you will have a master and a i18n-support branch.
Pull
Now it s time to share your translation with everyone else if you feel so inclined. Your version of JSCommunicator has a new translation but not the official version. First navigate to you jscommunicator repo at github.com/YOUR_USER/jscommunicator and make sure you are on the i18n-branch as that will contain your changes.
Click the green button directly to the left of the branch drop down menu shown above. This will create a pull request to add your new code to the official jscommunicator code. Once you click that button, you should see this:
Make sure that the base repo (the first on the line above the green Create pull request button) is opentelecoms-org:i18n-support and not opentelecoms-org:master or another branch name. If it is, just click Edit on the right and you ll be able to select the branch from a dropdown like so:
If first repo is opentelecoms-org:i18n-support and the second is YOUR_USER:i18n-support and you ve verified (scroll down) that there are 2 files changed which are your new .properties file and the added element to the available_languages.xml, go ahead and press create pull request. It ll open a window with a text box you can add an explanation to with one final Create pull request button. Click that and you re done! You ve kindly contributed with a translation for JSCommunicator!
- Sign in to Github
- Browse to https://github.com/JLouback/jscommunicator
- Somewhere around the upper left corner, you will see a button labeled Fork . Click that.
You should now have your own JSCommunicator repository on your Github account. On your main page select the tab Repositories . It should be the first on the list. The url will be https://github.com/YOUR-USERNAME/jscommunicator. My Github username is JLouback, so my jscommunicator repo can be found at https://github.com/JLouback/jscommunicator.
Clone
Now you should download all that code to your local machine so you can edit it. On your JSCommunicator page somewhere around the lower right corner you ll see a field entitled HTTPS clone URL:
I don t know if this is correct, but you can just copy the URL on your browser too. I do that.
Now on your terminal, navigate to the directory you d like to place your repository and enter
git clone https://github.com/YOUR-USERNAME/jscommunicator
cd jscommunicator
git branch -a
git checkout --track origin/i18n-support
<language>
<display>Deutsch</display>
<code>de</code>
</language>
git add internationalization/Messages_de.properties
git add available_languages.ruby
git commit -m "German translation"
git push -u origin i18n-support
Click the green button directly to the left of the branch drop down menu shown above. This will create a pull request to add your new code to the official jscommunicator code. Once you click that button, you should see this:
Make sure that the base repo (the first on the line above the green Create pull request button) is opentelecoms-org:i18n-support and not opentelecoms-org:master or another branch name. If it is, just click Edit on the right and you ll be able to select the branch from a dropdown like so:
If first repo is opentelecoms-org:i18n-support and the second is YOUR_USER:i18n-support and you ve verified (scroll down) that there are 2 files changed which are your new .properties file and the added element to the available_languages.xml, go ahead and press create pull request. It ll open a window with a text box you can add an explanation to with one final Create pull request button. Click that and you re done! You ve kindly contributed with a translation for JSCommunicator!

Dear lazyweb,
Or yet another reason why it s really important that we succeed with Debian LTS. Last year we heard of 
My job exposes me to a large variety of computing systems and I regularly use
Mac, Windows and Linux desktops. My main desktop environment at home and work
has been Debian GNU/Linux for over 10 years. However every now and then I take
a little "holiday" and use something else for a few weeks. Often I'm spurred on
by some niggle or other on the GNOME desktop, or burn-out with whatever the
current contentious issue of the moment is in Debian. Usually I switched to
Windows and I used it as an excuse to play some computer games.
Last November I had just such an excuse to take a holiday but this time I opted
to go for Mac. I had a back-log of Mac issues to investigate at work anyway.
I haven't looked back.
It appears I have switched for good. I've been meaning to write about this for
some time, but I couldn't quite get the words right. I doubted I could express
my frustrations in a constructive, helpful way, even if I think that my
experiences are useful and my discoveries valuable, perhaps I would put them
across in a way that seemed inciteful rather than insightful. I wasn't sure
anyone cared. Certainly the GNOME community doesn't seem interested in
feedback.
I turns out that one person that doesn't care is me: I didn't realise just how
broken the F/OSS desktop is. The straw that broke the camel's back was
For
2014 and it s still annoyingly hard to find a reasonable GPG key management system for personal use All I want is to keep the key material isolated from any Internet connected host, without requiring me to jump through major inconvenience every time I want to use the key.
An HSM/Smartcard of some sort is an obvious choice, but they all suck in their own ways:
So recently I got into trouble running Redis on a host, because the data no-longer fits into RAM.
As an interim measure I fixed this by bumping the RAM allocated to the guest, but a real solution was needed. I figure there are three real alternatives:
I just made an account on yet another web service. On the suggestion of my
password manager, I attempted to use the password
So I was at Ocracoke island, camping with family, and I brought my laptop
along as I've done probably half a dozen times before. An enormous
thuderstorm came up. It rained for 8 hours and thundered for 3 of those.
Some lightning cracks quite close by as we crouched in the food tent, our
feet up off the increasingly wet ground "just in case". The campground
flooded. Luckily we were camped in the dunes and tents mostly avoided being
flooded with 2-3 inches of water. (That was just the warmup; a hurricane
hit a week after we left.)
My laptop was in my tent when this started, and I got soaked to the skin
just running over there and throwing it up on the thermarest to keep it out
of any flooding and away from any drips. It seemed ok, so best not to try
to move it to the car in that downpour.
Next time I checked, it turned out the top vent of the tent was slightly
open and dripping. The laptop bag was damp. But inside it seemed ok. Rain
had slackened to just heavy, so I ran it down to the car. Laptop appeared
barely damp, but it was hard to tell as I had quite forgotten what "dry"
was. Turned it on for 10 seconds to check the time. It was 7:30 and
we still had to cook dinner in this mess. Transferred it to a dry bag.
(By the way, in some situations, discovering you have a single dry towel
you didn't know you had is the best gift in the world!)
Next morning, the laptop was dead. When powered on, the fan came on full,
the screen stayed black, and after a few seconds it turned itself back off.
I need this for work, so it was a crash priority to get it fixed or a
replacement. Before I even got home, I had logged onto Lenovo's website to
check warantee status and found 2 things:
I put out the