Saturday, April 30, 2016
Tuesday, April 26, 2016
Wednesday, March 23, 2016
How to install Ruby 2.1.4 on Ubuntu 14.04
First of all, install the prerequisite libraries:
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential
libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3
libxml2-dev libxslt1-dev libcurl4-openssl-dev
python-software-properties libffi-dev
Then install rbenv, which is used to install Ruby:
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo ‘export PATH=”$HOME/.rbenv/bin:$PATH”‘ >> ~/.bashrc
echo ‘eval “$(rbenv init -)”‘ >> ~/.bashrc
exec $SHELL
git clone git://github.com/sstephenson/ruby-build.git
~/.rbenv/plugins/ruby-build
echo ‘export PATH=”$HOME/.rbenv/plugins/ruby-build/bin:$PATH”‘ >> ~/.bashrc
exec $SHELL
rbenv install 2.2.0
rbenv global 2.2.0
ruby -v
Then (optional) tell Rubygems to not install local documentation:
echo “gem: –no-ri –no-rdoc” > ~/.gemrc
Credits: http://ift.tt/1wFwCwc
*Warning!!!* There are issues with Gnome-Shell. See comment below.
Ameerwww.linuxmails.com | khan@azmuna.comRiyadh,KSA
from WordPress http://ift.tt/1Ul6CHH
Monday, March 7, 2016
Area2 Download utility usage examples
Sourc: Area2 Website
Command-line scares you off? No, aria2 is really easy to use!!
Download from WEB:
1
$ aria2c http://ift.tt/1NcPxcl
Download from 2 sources:
1
$ aria2c http://a/f.iso ftp://b/f.iso
Download using 2 connections per host:
1
$ aria2c -x2 http://a/f.iso
BitTorrent:
1
$ aria2c http://ift.tt/1NcPygo
BitTorrent Magnet URI:
1
$ aria2c ‘magnet:?xt=urn:btih:248D0A1CD08284299DE78D5C1ED359BB46717D8C’
Metalink:
1
$ aria2c http://ift.tt/1PgmA2p
Download URIs found in text file:
1
$ aria2c -i uris.txt
Ameerwww.linuxmails.com | khan@azmuna.comRiyadh,KSA
from WordPress http://ift.tt/1TZcMfQ
No-IP on XBMC
Install noip
From: http://ift.tt/11zoehD
sudo apt-get install make gcc
mkdir /home/pi/noip
cd /home/pi/noip
wget http://ift.tt/1cFopRg
tar vzxf noip-duc-linux.tar.gz
cd noip-2.1.9-1
sudo make
sudo make install
noip can be started with:
sudo /usr/local/bin/noip2
To make noip load on boot, edit the crontab: sudo crontab -e, adding:
@reboot sudo /usr/local/bin/noip2
Source : github
Ameerwww.linuxmails.com | khan@azmuna.comRiyadh,KSA
from WordPress http://ift.tt/1UMCaF3
Friday, February 26, 2016
How to change time zone
Using the Command Line (terminal)
Using the command line, you can use dpkg-reconfigure tzdata.
1.
Open a terminal window by going to Applications>Accessories>Terminal
2.
dpkg-reconfigure tzdata
3. Follow the directions in the terminal.
Using the Command Line (unattended)
Find out the long description for the timezone you want to configure. Save
this name to /etc/timezone and run
sudo dpkg-reconfigure –frontend noninteractive tzdata:
$ echo “Australia/Adelaide” | sudo tee
/etc/timezoneAustralia/Adelaide$ sudo dpkg-reconfigure –frontend
noninteractive tzdataCurrent default time zone:
‘Australia/Adelaide’Local time is now: Sat May 8 21:19:24 CST
2010.Universal Time is now: Sat May 8 11:49:24 UTC 2010.
This can be scripted if required.
Ameerwww.linuxmails.com | khan@azmuna.comRiyadh,KSA
from WordPress http://ift.tt/1XPL83R
Friday, February 19, 2016
Monday, February 1, 2016
When I send a message she falls to the Queue and will awaken the following error Fail-info: Domain lookup error – axigen
When I send a message she falls to the Queue and will awaken the following
error
Fail-info: Domain lookup error
Status:PROCESSED – RELAY
MBox:INBOX
*Solution*
Please configure a valid DNS server via Webadmin -> Services -> DNR ->
Nameservers. this is required for Axigen in order to resolve domain names.
Ameerwww.linuxmails.com | khan@azmuna.comRiyadh,KSA
from WordPress http://ift.tt/1PQc1Vq
Friday, January 22, 2016
How to launch PowerShell script from the OS command line?
Use the command below
PowerShell.exe -File c:\users\azad\myrequest.ps1
Ameerwww.linuxmails.com | khan@azmuna.comRiyadh,KSA
from WordPress http://ift.tt/1RZ75hB
Tuesday, January 12, 2016
Wednesday, January 6, 2016
Microsoft WARNING — ‘Use Windows 7 at Your Own Risk’
Microsoft is Worried For us. Really?
"We do worry when people are running an operating system that’s 10 years old that the next printer they buy isn’t going to work well, or they buy a new game, they buy Fallout 4, a very popular game, and it doesn’t work on a bunch of older machines.And so, as we are pushing our ISV [Independent Software Vendor] and hardware partners to build great new stuff that takes advantage of Windows 10 that obviously makes the old stuff really bad and not to mention viruses and security problems."
In fact, Windows 7 has a greater market share, which means the operating system is developers’ first choice over Windows 10 as well as the OS has greater compatibility with legacy programs and peripherals.
Oh! Come On Microsoft, We Know...
"We think every machine that is capable of running Windows 10 we should be doing everything we possibly can to get people to move to Windows 10…We are going to try to find that right balance, but we just know there're many people out there who constantly kick the can down the street without a little bit more of a, frankly, push.And so, there’s no doubt with a base as big as ours, it is hard to move anyone to a new model without angering some people. We don’t want to anger anybody, but we do feel a responsibility to get people to a much better place, and Windows 10 is a much better place than Windows 7. We will always give you a way out, but we’re trying to find the right balance."
We know that technically Microsoft is giving an option to users, but by enforcing annoying pop-ups every time, removing opt-out options as well as threatening average user with baseless warnings, it appears there is no choice for users at all.
Friday, June 26, 2015
Monday, June 15, 2015
DirectConnect not working on N-Central
Clear the contents of the following folders in your machine and try to
connect again:
•Windows 8: C:\Users\*user*\AppData\Local\Temp\Low\ntr
•Other possible locations on Windows 8:•C:\Users\{USERNAME}\AppData(hidden
folder)\LocalLow\ntr
•C:\Users\{USERNAME}\AppData(hidden folder)\Local\Temp\Low\ntr\
•C:\Users\{USERNAME}\AppData(hidden folder)\Local\Temp\ntr\
•C:\Users\{USERNAME}\AppData(hidden folder)\Local\ntr\
•C:\Users\{USERNAME}\AppData(hidden folder)\Roaming\ntr\
Ameerwww.linuxmails.com | khan@azmuna.comRiyadh,KSA
from WordPress http://ift.tt/1ME0Ngo
Saturday, June 13, 2015
Create Google Tasks by sending email to Google GMail
*Goals:*
– Send email to a specified address – in this case to Gmail address
named yourgmail+task@gmail.com. (If Gmail ID is ittichai, the email
address to send to will be ittichai+task@gmail.com.) Read more about the
hidden feature with Gmail –
http://ift.tt/GIyuhr
– Script will parse that email based on a Gmail label assigned by
filter, and grab the email’s subject to create a new Google task.
*Instructions:*
– Create two new Gmail labels – *newtask* and *newtaskdone*.
[image: create_new_label1.jpg] [image: create_new_label2.jpg]
– Create a Gmail filter to apply “newtask” label to all incoming
yourgmail+task@gmail.com.
[image: filter1.jpg] [image: filter2.jpg]
– Create a new Google Sheet. Enter *Processed tasks* in cell A1. It will
be used to display how many tasks have been processed. Start the *Script
Editor* from Tools menu.
[image: GDoc_Script.jpg]
– Create a new blank project.
[image: create_blank_proj.jpg]
– Copy and paste the whole script here. Note below will walk through the
codes.
// Original Source:
http://ift.tt/Ne8Hn4
// —————————————————–
// Globals, constants
// —————————————————–
TASKLIST = “Ittichai’s list”;
LABEL_PENDING = “newtask”;
LABEL_DONE = “newtaskdone”;
// —————————————————–
// getTasklistId_(tasklistName)
// Returns the id of the tasklist specified
// Oddly, we should be able to use:
// Tasks.Tasklists.get(tasklistName)
// but it always gives an error “Invalid Value”.
// —————————————————–
function getTasklistId_(tasklistName) {
var tasklistsList = Tasks.Tasklists.list();
var taskLists = tasklistsList.getItems();
for (tl in taskLists) {
var title = taskLists[tl].getTitle();
if (title == tasklistName) {
return taskLists[tl].getId();
}
}
}
// —————————————————–
// processPending(sheet)
// Process any pending emails and then move them to done
// —————————————————–
function processPending_(sheet) {
var label_pending = GmailApp.getUserLabelByName(LABEL_PENDING);
var label_done = GmailApp.getUserLabelByName(LABEL_DONE);
// The threads currently assigned to the ‘pending’ label
var threads = label_pending.getThreads();
// Process each one in turn, assuming there’s only a single
// message in each thread
for (var t in threads) {
var thread = threads[t];
// Grab the task data
// This email’s subject will be task’s title.
var taskTitle = thread.getFirstMessageSubject();
// This email’s body will be task’s body. Most email message
now is HTML-based.
// It is desirable to remove all HTML tags so that only actual
content will be populated.
// Use a custom function getTextFromHtml to strip out all HTML tags.
// In addition, the string size will be limited to 3000
characters in case an email is very long.
var taskNote =
getTextFromHtml((thread.getMessages()[0]).getBody()).substring(0,3000);
// Insert the task
//addTask_(taskTitle, TASKLIST);
addTask_(taskTitle, taskNote, TASKLIST);
// [Optional] Send email for every new task
//MailApp.sendEmail(‘ittichai@gmail.com’, taskTitle, taskNote);
// Set to ‘done’ by exchanging labels
thread.removeLabel(label_pending);
thread.addLabel(label_done);
}
// Increment the processed tasks count
var processedRange = sheet.getRange(“B1″);
processedRange.setValue(processedRange.getValue() + threads.length)
}
// —————————————————–
// addTask_(title, taskListId)
// Create new task and insert into given tasklist
// —————————————————–
function addTask_(title, message, tasklistId) {
//var newTask = Tasks.newTask().setTitle(title);
var newTask = Tasks.newTask();
newTask.setTitle(title);
newTask.setNotes(message);
Tasks.Tasks.insert(newTask, getTasklistId_(tasklistId));
}
// —————————————————–
// main()
// Starter function; to be scheduled regularly
// —————————————————–
function main_taskconverter() {
// Get the active spreadsheet and make sure the first
// sheet is the active one
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sh = ss.setActiveSheet(ss.getSheets()[0]);
// Process the pending task emails
processPending_(sh);
}
// Strip out all HTML tags.
// Source: http://ift.tt/1QvmXrI
function getTextFromHtml(html) {
return getTextFromNode(Xml.parse(html, true).getElement());
}
function getTextFromNode(x) {
switch(x.toString()) {
case ‘XmlText': return x.toXmlString();
case ‘XmlElement': return x.getNodes().map(getTextFromNode).join(”);
default: return ”;
}
}
– Make sure that the name of the task list in TASKLIST variable is
changed to your primary task list name.
TASKLIST = “Ittichai’s list”;
LABEL_PENDING = “newtask”;
LABEL_DONE = “newtaskdone”;
– Integrate the script with Google API.
Pay attention to the *Integrate the script with Google API* in the *Script
Code* section especially if this is your first time coding this. You will
have to enable Google API service to allow access the Task API –
http://ift.tt/1Qvn0n9.
If not doing so, you will receive an error message saying “Tasks – not
defined” when running the script.
[image: g_api1.jpg] [image: g_api2.jpg]
– Confirm whether or not it is working by forwarding the email to
yourgmail+task@gmail.com, then manually running the script.
[image: run_gtask.jpg]
– If it works, you can now schedule to run this script via the
time-driven even trigger.
[image: schedul1.jpg] [image: schedule2.jpg]
*END*
*Notes*
Here is just a quick walk through explaining what I’ve done differently
from the original codes.
– Add the email’s body in addition to email’s subject.
// Grab the task data
// This email’s subject will be task’s title.
var taskTitle = thread.getFirstMessageSubject();
// This email’s body will be task’s body. Most email message
now is HTML-based.
// It is desirable to remove all HTML tags so that only actual
content will be populated.
// Use a custom function getTextFromHtml to strip out all HTML tags.
// In addition, the string size will be limited to 3000
characters in case an email is very long.
var taskNote =
getTextFromHtml((thread.getMessages()[0]).getBody()).substring(0,3000);
– Most email message now is HTML-based. Without stripping out the HTML
tags, the task’s note will be populated with many useless tags. I use
functions mentioned on this web site
http://ift.tt/1QvmXrI
to
get only text message. Basically, add these two functions in the script.
function getTextFromHtml(html) {
return getTextFromNode(Xml.parse(html, true).getElement());
}
function getTextFromNode(x) {
switch(x.toString()) {
case ‘XmlText': return x.toXmlString();
case ‘XmlElement': return x.getNodes().map(getTextFromNode).join(”);
default: return ”;
}
}
– Add new parameter of task’s note to addTask_
// Insert the task
//addTask_(taskTitle, TASKLIST);
addTask_(taskTitle, taskNote, TASKLIST);
– Update the addTask_ to include setNotes
Thanks Bernard Goldberger (http://ift.tt/1MyyyQe)
for updating script to fix some recent setNotes issue by separating
setTitle and setNotes into separate lines.
function addTask_(title, message, tasklistId) {
//var newTask = Tasks.newTask().setTitle(title);
//var newTask =
Tasks.newTask().setTitle(title).setNotes(message); // 2013-06
.setTitle concatenated with.setNotes Failed
var newTask = Tasks.newTask();
newTask.setTitle(title);
newTask.setNotes(message);
Tasks.Tasks.insert(newTask, getTasklistId_(tasklistId));
}
– Optionally, an email can be sent out for every new task.
// [Optional] Send email for every new task
MailApp.sendEmail(‘ittichai@gmail.com’, taskTitle, taskNote);
Reference:
http://ift.tt/Ne8Hn4
Ameerwww.linuxmails.com | khan@azmuna.comRiyadh,KSA
from WordPress http://ift.tt/1JPKzBF
Thursday, June 11, 2015
Friday, May 29, 2015
How to change the Axigen Admin Password
n order to change the Axigen administration password, the following command
can be used:
Code:
/opt/axigen/bin/axigen -A your_new_password
After this, the service should be restarted for the change to take effect:
Code:
/etc/init.d/axigen restart
Ameerwww.linuxmails.com | khan@azmuna.comRiyadh,KSA
from WordPress http://ift.tt/1PSAY25
Tuesday, May 26, 2015
IMAP doesn’t exist. PHP must be compiled with IMAP enabled.
If you ran “apt-get install php5-imap” then you installed and enabled imap.
You need to make sure that you restart Apache afterwards. The install
script enables php5’s imap when you ran it.
To be honest there are so many places where this could reside (based on
flavor) in Linux that I couldn’t begin to tell you where it might be in
your installation. Here are just a couple locations:
/etc/php5/apache2/conf.d/imap.ini
/etc/php5/php.ini
/etc/php.ini
/etc/apache2/
/etc/php/php.ini
The short of it is some where your install script places something similar
to:
; configuration for php IMAP module
extension=imap.so
in the extensions section of your php.ini or an included config file some
where on your machine.
Wednesday, May 20, 2015
My keyboard doesn`t work on firefox (only on firefox)
Question:
WeI made it working back by pressing WinKey+LeftShift.
Wednesday, October 30, 2013
iMacri tips
SIZE X=1360 Y=768
TAB T=1
URL GOTO=http://www.lexisnexis.com/hottopics/lnacademic/?shr=t&sfi=AC00NBEasySrch
FRAME F=2
TAG POS=1 TYPE=A ATTR=TXT:Power<SP>Search
TAG POS=1 TYPE=TEXTAREA FORM=NAME:searchForm ATTR=ID:terms CONTENT=acorda<SP>Pharmaceuticals<SP>stock<SP>offering
TAG POS=1 TYPE=SELECT FORM=NAME:searchForm ATTR=ID:dateSelector1 CONTENT=%from
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:searchForm ATTR=ID:fromDate1 CONTENT=1/1/2000
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:searchForm ATTR=ID:toDate1 CONTENT=1/1/2010
DS CMD=LDOWN X=223 Y=413 CONTENT=
DS CMD=LUP X=223 Y=413 CONTENT=
DS CMD=KEY X=223 Y=413 CONTENT=business<SP>wire
WAIT SECONDS=2
DS CMD=LDOWN X=223 Y=431 CONTENT=
DS CMD=LUP X=223 Y=431 CONTENT=
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:searchForm ATTR=VALUE:Search