Author Archives: opnchaudhary

About opnchaudhary

A Happy NOSKian | Linux User #535709 | Lazy Blogger | Programmer

Introduction to BrightScript Scripting Language

BrightScript is a scripting Language Developed for a tiny little device called Roku. Roku is a small computer specially designed for Video Streaming purpose from the Internet. You can check more about this fascinating computer at http://roku.com/. The language BrightScript is written in C. Roku runs Linux 2.6. BrightScript program runs over BrightScript Engine that resides above the kernel layer in Roku. Below you will find a picture showing the Internal Architecture of Roku.

Architectural View of Roku

Architectural View of Roku

The language though written in C is not like C in its syntax. Its more similar like Python / Ruby / Lua / Basic. You can check BrightScript Reference document at http://sdkdocs.roku.com/display/sdkdoc/BrightScript+Language+Reference. The language reference won’t be enough to write useful applications for Roku, you will need to know about the BrightScript Components too reference doc of which can be found at http://sdkdocs.roku.com/display/sdkdoc/Component+Reference. The language can be compiled by device only so for development in Roku. So for development of Roku programs you need the followings:
->  Roku device as you can only compile your programs in Roku device, no emulator or simulators are available
-> a text editor where you will write your programs
-> A web browser to access development interface of Roku
-> A terminal from which you can telnet to Roku Development console

To access development interface you need to enable development mode in a Roku,  use the following key combination to enable development mode:

Home key -3 times, Up key 2 times, Right key, Left Key, Right Key,Left Key, Right Key

Once development mode is enabled you can open http://ip_of_roku_/ in your browser to see the development interface. From the development you can upload zip file of your program and your program will be compiled and will run in your roku device. To make a setup file you can use the packager application in the development interface and use the setup file to create a channel in Roku’s developer website. But for packaging you will be needing to use a password created by the device which can be generated by the command ‘genkey’ after you access Roku’s console using

telnet ip_of_roku 8080

For debugging purpose you can telnet to port 8085. To access interpreter console,  when the program is running you can hit Ctrl + C. The console prompt for Interpreter mode is :

BrightScript>

Hope that helps you get some insight on BrightScript Language.

Share this page:
Bookmark this on Delicious
Share on LinkedIn
Reddit This
Digg This
Stumble Now!

IRC Integration Test

Today we have irc channel #nosk from freenode servers integrated to http://nosk.org.np/live-chat/ . Its now under test and if it is found to be useful the it will have a link on the home page too as far as I guess. But for now we have this live chat at http://nosk.org.np/live-chat/ . We would be happy to receive your comments and feedback on the irc integration to the website. As for todays record we had about 6 members in the channel including me. We hope this can be used for support by NOSKians to all the open source enthusiasts out there.

Cheers to all NOSKians!!!

Share this page:
Bookmark this on Delicious
Share on LinkedIn
Reddit This
Digg This
Stumble Now!

Live Chat Integration

join #nosk in freenode

Its been long, since we have NOSK’s channel registered in freenode as #nosk. But It has been of no use. Most of the time, NOSKians have been using facebook chat to talk, and sometimes gtalk. Twitter has also been an option. But since, we have our own channel we can use the channel for conversation too.
The main thing I want to highlight here is that, it would be better to integrate #nosk channel from freenode to NOSK’s website. The code for this is pretty simple and is as follows:
<iframe src="http://webchat.freenode.net?nick=NOSKian.&channels=nosk&prompt=0&uio=d4" width="647" height="400"></iframe>
This simple line of code can be used within NOSK’s site. And for any bloggers who want #nosk channel to be integrated in their site, they can use it.

Usage:
Though the channel is accessible using irc clients like empathy, xchat, pidgin, and more. It would be good to have it integrated in the website. The usage of this can be for live chat/conversation among open source enthusiasts like NOSKians and others.

 

Share this page:
Bookmark this on Delicious
Share on LinkedIn
Reddit This
Digg This
Stumble Now!

NOSK Saturday Event Resumes

After a long time of gap, back again NOSK is resuming the saturday events. It feels great to see the open source enthusiasts here at saturday events. Todays’ events are:
1. Introduction to Open Source, and NOSK
2. Installation/Troubleshooting
3. Localization
As I am writing this post during the event, I can see a huge number of enthusiasts, and that makes me feel real happy 🙂 . And definitely the events seem to continue regularly.

Share this page:
Bookmark this on Delicious
Share on LinkedIn
Reddit This
Digg This
Stumble Now!

firefox 15 released


Firefox has released its new version.It claims of less memory usage in browsing making browsing more smoother and more responsive.Firefox introduces support for compressed textures, allowing game developers to take full advantage of video memory to build graphics-heavy games without losing performance. Firefox makes animations smoother with an improved JavaScript engine and enhancements to WebGL. Firefox also provides game and other interactive content developers precision to within thousandths of milliseconds with high precision timing. Download the latest firefox 15 from the link: http://www.mozilla.org/firefox/new/

Share this page:
Bookmark this on Delicious
Share on LinkedIn
Reddit This
Digg This
Stumble Now!

A new open source community in Nepal: Mozilla Nepal

Mozilla Nepal is a new open source community being started in Nepal. It is a team of open source enthusiasts having common interests. Mozilla Nepal’s first meeting started at around 12:30 NPT At FOSS Nepal Office Putalisadak, on 26 August, 2012,Saturday. The meet up was attended by 20 attendees. The main theme of this meet up was to have team of common interest to contribute mozilla in the various areas identified.The meeting had the following agendas discussed:

  • Introduction of Attendees
  • Introduction to Mozilla Nepal Community
  • Current Involvements of Mozilla Nepal Community
  • Introduction to contribution areas
  • Scopes and Advantages
  • General Discussion
  • Future Plan

Contribution by Nepalese open source enthusiasts has been to mozilla independently but from now it Mozilla Nepal is trying to have all such enthusiasts tied into a team to work togather to acheive the milestones. Till now Mozilla Nepal team is focused on localization of firefox and as this is accomplished the team will extend to other mozilla softwares too.
A copy of the documentation brought up there in the meeting by Avash Mulmi can be obtained from the following link:
https://docs.google.com/document/d/1Yu2L_aS8ilsCdHwbA-Z6e6ZY3JEkAyI7RbfCzX5kGUo/edit
And the report of the meet up is at :
https://docs.google.com/document/d/16rQLSe_XIWgofaVUfgsk3DhdyEz54gwLRq2X6bS3y1U/edit?pli=1

A report from foss Nepal is also available at
http://wiki.fossnepal.org/index.php?title=Mozilla_Nepal_Meeting

Share this page:
Bookmark this on Delicious
Share on LinkedIn
Reddit This
Digg This
Stumble Now!