Sunday, May 3, 2015

Google Adsense in Bangla (Bengali) Language web site

The answer is NO. Bangla is not a supported language for Adsense. Here are the languages Adsense Supports.
ArabicGermanPortuguese
BulgarianGreekRomanian
Chinese (simplified)HebrewRussian
Chinese (traditional)HungarianSerbian
CroatianIndonesianSlovak
CzechItalianSlovenian *
DanishJapaneseSpanish
DutchKoreanSwedish
EnglishLatvianThai
Estonian *LithuanianTurkish
FinnishPolishUkrainian
FrenchNorwegian
Yes, Bangla Language is not in the list. But the confusion arises when people notice that some popular Bangladeshi Newspaper like Prothom Alo and Kaler Kantho show Adsense Ads on their websites.
If you are wondering how they do it, here is the answer. Maybe they are premium Adsense publishers. Or they used an Adsense account that has been approved by another site. I mean they didn’t apply for Adsense with Bangla content based site, they added the site to their existing Adsense account. You can do the same if you want to violate the Adsense Policy.
I will never suggest you to place Adsense Ads on Bangla content based sites. If someone reports about your account that you are using Adsense on an unsupported language, Adsense team may ban you from their program. Another problem is, if Adsense team finds that a lot of Bangladeshi publishers are placing Adsense codes on Bangla content based site, they will become more strict on approving new applicants.
I hope Adsense will add Bangla language to its program real soon. After all, Bangla is one of the most spoken languages, ranked 7th in the world. All we need to do is, increase Bangla content and attract more local advertisers. Until Adsense approves Bangla, don’t use Adsense on your Bangle site. But you can consider using Adsense when your site contains both Bangla & English and English is primary language.
 So What is the Solution for Bangla Content Based Publishers?
The solution is G&R Ad Network. G&R is the first & largest Bangladeshi online Advertising network. It offers several monetization options to the publishers. If you are running a Bangla content based site, I would suggest you to use this network. It offers a good amount of revenue on impressions.
 

Saturday, May 2, 2015

CasparCG AIR client

This is a preview of a client for the CasparCG server (www.casparcg.com). Many things has to be solved yet and for the moment its done only for running CG elements. Yes, I know that it must be able to run videos also but the first version will be CG only because I need it for a project in a few weeks and videos aren't needed in that :) Version 0.2 will probably support that.

Anyhow, the client reads data from the template (using INFO TEMPLATE templatename) and shows those fields on screen (limited to 8 for the moment). After filling in the data, click Add to playlist. When everything is ready there will be a play button that you press when you want the selected line to go on air. Should also be possible to choose multiple and set then on air at once (the playlist should then change the background color to red when they are on air). As you see the channel/layer is now just added CG 1-1 and that will of course change... There will probably also be a edit/remove from playlist and a save/load function to/from xml file...




Wednesday, April 15, 2015

Proverb Teleprompter


Download Link:
https://proverbteleprompter.codeplex.com

Features include:
  • Save and load standard RTF formatted files (Word, WordPad etc.)
  • Copy and paste from web pages or other word processors and retain formatting
  • Support for remote controls (multimedia and others)
  • Adjustable font sizes
  • Adjustable scroll speed
  • Fast forward, fast reverse
  • Colored fonts
  • Black on white or white on black text
  • Support for multi-monitor
  • Support Flipping and mirroring output text
  • Eye line marks to indicate reading position
  • Time remaining estimate

Features to be added:
  • Support customization of key/remote mappings
  • Remote control from phones or browsers

TeleKast | Open Source Teleprompter


TeleKast is an open source teleprompter. Scripts are created and used to create content for the teleprompter. The scripts can also be used for doing feature stories and interviews. TeleKast is your means for creative communication.

TeleKast is your means for creative communication. It is an application you can use for your school, church or any organization which needs features like a script editor and teleprompter. Basically, you first create a script and then you can use it for just about anything. Broadcast journalism, whether in a school or professional television studio, can benefit from the built in teleprompter. The scripts could also be used for purposes such as interviews, feature stories or someone reading when standing in front of a crowd.
Please let us know how we can make TeleKast work for you by submitting a feature request, or contributing to the users forum if you need technical support. And, finally, if you find a bug, please report it so we can fix it.

Download Link:
http://telekast.sourceforge.net

Ubuntu as DHCP Server

Ubuntu as DHCP Server:
To install dhcp server, enter the following command at a terminal prompt:
sudo apt-get install isc-dhcp-server
If there is more than one network card(s) in your Ubuntu server, then you have to select the network card on which your server will be listen for dhcp request. (By default, it listens on eth0).
You can change this by editing  /etc/default/isc-dhcp-server file:
sudo nano /etc/default/isc-dhcp-server
Change “eth0” to the interface on which you want that your server will listen for dhcp request (In my case, it iseth1):
It’s always a good practice to make a backup copy of /etc/dhcp/dhcpd.conf file:
sudo cp /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.bak 
Now we will change the default configuration by editing /etc/dhcp/dhcpd.conf, I normally delete everything inside the file and manually add the configuration that suits my needs :-)
sudo nano /etc/dhcp/dhcpd.conf
Here is my dhcpd.conf file, you need to change it according to your needs:
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
option subnet-mask 255.255.255.0;
option broadcast-address 10.10.1.255;
option routers 10.10.1.1;
option domain-name-servers 10.10.1.1;
option domain-name "ubuntu.internal";
subnet 10.10.1.0 netmask 255.255.255.0 {
range 10.10.1.50 10.10.1.200;
}

Restart dhcp service using the following command:
sudo service isc-dhcp-server restart 
Configure Windows as DHCP Client:
Just follow these steps, in order to configure your Windows machine as DHCP client (In my case, it’s Windows 7):
To check the IP Address on Windows 7:
To Check the DHCP Leases on Ubuntu Server:
sudo tail /var/lib/dhcp/dhcpd.leases
Hope this will help you!

Install Itunes on Linux Mint and Ubuntu

How to Install Itunes on Linux Mint and Ubuntu

iTunes is a audio and music player especially developed for the Iphone and other devices produced by Apple. Basically, there is noiTunes version for Ubuntu and Linux Mint or other open source operating system. But, fortunately Linux user can choose otherapplication to run it function.

For the Apple users, however using the iTunesis more satisfying than other application. The Iphone users who use the open source operating system now can install and use the Playon Linux to install it on their desktop or laptops.


PlayOn Linux actually is an emulator that allows Linux users to run some Windows basedapplication. Based on wine, it tries to build the file structure as well as in the windows which enable windows application installation. According to my experience, some windows basedapplication such as Microsoft Office is available to be installed on Linux using this application.

To Install the iTunes, you need to install this emulator on your system. Run this command to install it:
 sudo apt-get install playonlinux
 For other Linux distribution, you can download it here.

Once you finished installing PlayOn, run the application and click install. See this picture:


You will see the new window where you can choose the application that will be installed. ActuallyiTunes is registered, so you can easily choose to install. See this picture:

Select and click Install. You will see installation process is running.


The system will need to download the installation files. Make sure that you have the internet access. It will done automatically, so just wait until finished.


Follow all installation process since it will take several minutes.


 



Now You have iTunes on Your computer.


Enjoy to listen and manage your music.

Network Time Protocol (NTP) Server and Clients Setup in Ubuntu

The Network Time Protocol (NTP) is a protocol for synchronizing the clocks of computer systems over packet-switched, variable-latency data networks. NTP uses UDP port 123 as its transport layer. It is designed particularly to resist the effects of variable latency (Jitter).

Using NTP is a great way to keep your system clock set correctly. It works by contacting a number of servers around the world, asking them for the time and then calculating what the correct local time is from their responses.
If you have install ntpdate package before you need to uninstall using the following command
sudo aptitude remove ntpdate
Install NTP server in Ubuntu
sudo aptitude install ntp
This will install all the required packages for NTP.
Configure NTP Server
The configuration file for ntpd is located at /etc/ntp.conf. The default Ubuntu file probably requires some modification for optimal performance.You need to edit the /etc/ntp.conf file using the following command
sudo nano /etc/ntp.conf
do the following changes shown in this example
Example Configuration
You need to add a number of servers to the server list. The Debian default is pool.ntp.org which works but isn’t always amazingly accurate because it makes no attempt to use time servers near you. If you want more accuracy use the time servers either on your continent (for instance europe.pool.ntp.org) or your country (for instance uk.pool.ntp.org) one of your local country servers.The optimal number of servers to listen to is three but two will also give a good accuracy. If your ISP runs a time server for you it is worth including it in your server list as it will often be more accurate than the pooled servers and will help keep the load down on the pool.
I am using the following two servers for my configuration
server ntp0.pipex.net
server ntp1.pipex.net
Restrict the type of access you allow these servers. In this example the servers are not allowed to modify the run-time configuration or query your Linux NTP server.
restrict otherntp.server.org mask 255.255.255.255 nomodify notrap noquery
restrict ntp.research.gov mask 255.255.255.255 nomodify notrap noquery
The mask 255.255.255.255 statement is really a subnet mask limiting access to the single IP address of the remote NTP servers.
If this server is also going to provide time for other computers, such as PCs, other Linux servers and networking devices, then you’ll have to define the networks from which this server will accept NTP synchronization requests. You do so with a modified restrict statement removing the noquery keyword to allow the network to query your NTP server. The syntax is:
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
In this case the mask statement has been expanded to include all 255 possible IP addresses on the local network.
We also want to make sure that localhost (the universal IP address used to refer to a Linux server itself) has full access without any restricting keywords
restrict 127.0.0.1
Save the file and exit
Now you need to restart NTP server for these settings to take effect using the following command
sudo /etc/init.d/ntp restart

Determining If NTP Is Synchronized Properly
Use the ntpq command to see the servers with which you are synchronized. It provided you with a list of configured time servers and the delay, offset and jitter that your server is experiencing with them. For correct synchronization, the delay and offset values should be non-zero and the jitter value should be under 100.
sudo ntpq -np
In the output of above command A star by any one of the chosen server names means that the system clock is synchronising with the NTP clock. If you don’t have a star (as in the example above) it means that the clocks are unreachable, already synchronized to this server or has an outrageous synchronization distance. Try running ntpdate (you will need to stop the ntp server) with your first ntp server as an argument. This will set your system clock fairly accuratly and mean that the server will be able to choose a clock to synchronize with.
Firewall Configuration for NTP
NTP servers communicate with one another using UDP with a destination port of 123. Unlike most UDP protocols, the source port isn’t a high port (above 1023), but 123 also. You’ll have to allow UDP traffic on source/destination port 123 between your server and the Stratum 1/2 server with which you are synchronizing.

NTP Linux Client Configuration
If you want to configure ntp client you need to install the following packages
sudo aptitude install ntp ntp-simple ntpdate
Configuring NTP client
You need to edit the /etc/ntp.conf file you need to point the following settings to NTP server ip address
sudo nano /etc/ntp.conf
Server configuration settings
server 192.168.1.1
Restrict the type of access you allow these servers. In this example the servers are not allowed to modify the run-time configuration or query your Linux NTP server.
restrict default notrust nomodify nopeer
Localhost configuration
restrict 192.168.1.1
In this case the mask statement has been expanded to include all 255 possible IP addresses on the local network.
We also want to make sure that localhost (the universal IP address used to refer to a Linux server itself) has full access without any restricting keywords
restrict 127.0.0.1
Now you need to save and exit the file
Run ntpdate command against your server
sudo ntpdate 192.168.1.1
Restart ntp service using the following command
sudo /etc/init.d/ntp restart
Windows Clients Configuration
Windows machines use a simplified version of NTP called Simple Network Time Protocol (SNTP), and can synchronize with NTP servers. In order to synchronize with your new server, double click on the time and go to the "Internet Time" tab. Put the IP address of your server in the "Server" field.

How to install Sublime 3 on CentOS 7 / RHEL 7

This guide will tell you how to install Sublime3 on CentOS 7 ( Currently, I am using CentOS 7.0). The reason why I start using Sublime3 is Eclipse takes so much time to open a big file ( greater than 1000 lines), especially PHP with PDP.

Step 1. Download [ http://www.sublimetext.com/ ]

There are multiple ways of downloading files. I will download file with wget command. If you want you can download sublime with FireFox.
$ cd ~/Downloads
 
## On 32bit
$ wget http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x32.tar.bz2
 
## On 64bit
$ wget http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x64.tar.bz2

Step 2. Extract Sublime package (example to /opt directory)

You can store Sublime any place you want. Here, I will put Sublime under /opt directory. 
## On 32bit
$ sudo tar -vxjf sublime_text_3_build_3065_x32.tar.bz2 -C /opt
 
## On 64bit
$ sudo tar -vxjf sublime_text_3_build_3065_x64.tar.bz2 -C /opt

Step 3. Make a symbolic link to the installed Sublime3

# sudo ln -s /opt/sublime_text_3/sublime_text /usr/bin/sublime3

Step 4. Run Sublime3 if it is installed correctly.

If you finish Step1 to Step3, you can run sublime from your terminal by executing sublime3.
$ sublime3

Step 5. Create Gnome desktop launcher

You can run Sublime3 on desktop by clicking a icon.
$ sudo sublime3 /usr/share/applications/sublime3.desktop

Step 6. Append this and close file.

[Desktop Entry]
Name=Sublime3
Exec=sublime3
Terminal=false
Icon=/opt/sublime_text_3/Icon/48x48/sublime-text.png
Type=Application
Categories=TextEditor;IDE;Development
X-Ayatana-Desktop-Shortcuts=NewWindow
 
[NewWindow Shortcut Group]
Name=New Window
Exec=sublime -n
TargetEnvironment=Unity
Now, you can see the Sublime3 icon on Applications/Programming !!
Enjoy!!
You can run Sublime3 on desktop by clicking a icon.