tag:blogger.com,1999:blog-117426192060108492024-03-13T16:21:19.622+02:00Tricks & Snippets A blog about tips, tricks, and snippets about math and programmingRidvan Döngelcihttp://www.blogger.com/profile/03065171463045058648noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-11742619206010849.post-76554976624512588632014-06-21T11:58:00.001+03:002014-06-21T11:58:38.033+03:00Green Hackathon<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-DuDKFVN1R3M/U6VHUVM8vtI/AAAAAAAAA6k/HbIh7yOl4do/s1600/greenhackathon.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-DuDKFVN1R3M/U6VHUVM8vtI/AAAAAAAAA6k/HbIh7yOl4do/s1600/greenhackathon.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
I attended <a href="http://greencampus.greenhackathon.com/" style="background-color: white;"><span style="color: #274e13;"><b>Green Campus, Green Hackathon</b></span></a> in Otaniemi at 24 and 25 of May. I have to admit, it was quite of an experience. Lots of pizza, coffee and coding. First, we were struggled to come up with any concrete idea to implement. In the end, we came up with a idea of a game. A game where user tries to guess the real world statistics and information. The aim of the game was simple shock user with really interesting facts and make them aware and teach them something at the same time. 48 hours after we completed <a href="http://greenguess.herokuapp.com/"><span style="color: #274e13;"><b>Green Guess</b></span></a>. The aim of the game is to guess statistics correctly by playing interactive charts and HAVING FUN!!!Ridvan Döngelcihttp://www.blogger.com/profile/03065171463045058648noreply@blogger.com0tag:blogger.com,1999:blog-11742619206010849.post-58645837903853682992014-04-15T11:15:00.001+03:002014-06-20T17:45:45.746+03:00My XKCD Inspired Business Card DesignI really appreciate xkcd and this is my xkcd inspired business card design.<br />
Any comments and feedback is appreciated.<br />
<br />
<h3 style="text-align: center;">
FRONT FACE</h3>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-2fAWby2ac7k/U0zo9vTnmlI/AAAAAAAAA1I/E5zhGBMjw_s/s1600/businesscardfront.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-2fAWby2ac7k/U0zo9vTnmlI/AAAAAAAAA1I/E5zhGBMjw_s/s1600/businesscardfront.png" height="197" width="320" /></a></div>
<h3 style="text-align: center;">
BACK FACE</h3>
<div>
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-7yfIgUlvCZU/U0zpCOuS42I/AAAAAAAAA1Q/tmZ58lcjNh0/s1600/businesscard.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-7yfIgUlvCZU/U0zpCOuS42I/AAAAAAAAA1Q/tmZ58lcjNh0/s1600/businesscard.png" height="197" width="320" /></a></div>
<br />
<div style="text-align: center;">
HERE is the link for the Photoshop files: <a href="http://goo.gl/FyusMp">http:/<wbr></wbr>/goo.<wbr></wbr>gl/<wbr></wbr>FyusMp</a></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
Reference: <a href="http://xkcd.com/">http://xkcd.com/</a></div>
Ridvan Döngelcihttp://www.blogger.com/profile/03065171463045058648noreply@blogger.com0tag:blogger.com,1999:blog-11742619206010849.post-68668229736469930012013-10-11T13:53:00.004+03:002013-10-11T13:53:57.603+03:00Apache Hadoop in VirtualBox<div class="separator" style="clear: both; text-align: center;">
<a href="http://hadoop.apache.org/images/hadoop-logo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://hadoop.apache.org/images/hadoop-logo.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Apache Hadoop is framework for processing large amount of data in parallel fashion. Hadoop framework heavily relies onto map and reduce functions of functional programming languages. A user only defines the map and reduce functions, all other operations like distributing data and work over network, re-running failed jobs and collecting results is handled automatically via Hadoop. </div>
<div class="separator" style="clear: both; text-align: center;">
Hadoop first applies the user defined map function to key-value pairs, and results of mappings are sorted abd distributed over the nodes according to their key values. Each node applies user defined reduce function to each key-value pair and commonly writes results to a file on Hadoop Distributed File System (HDFS).</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h2>
Setting Hadoop onto Virtual Machine</h2>
<div>
Setup uses VirtualBox, Hadoop 1.2.1, Ubuntu 12.04.3 Server.</div>
<div>
<br /></div>
<h3>
Virtual Box and Ubuntu Setup</h3>
<div>
1. Download Virtual Box 4.2.18 or later version which suits your operation system.</div>
<div>
From: <a href="https://www.virtualbox.org/wiki/Downloads">https://www.virtualbox.org/wiki/Downloads</a></div>
<div>
<br /></div>
<div>
2. Install Virtual Box with the desired setting.</div>
<div>
<br /></div>
<div>
3. Download Ubuntu 12.04.3 Server edition image to be guest operation system to run Hadoop.</div>
<div>
From: <a href="http://www.ubuntu.com/download/server">http://www.ubuntu.com/download/server</a></div>
<div>
<br /></div>
<div>
4. Open Virtual Box and click 'New' option to create a new virtual machine.</div>
<div>
<br /></div>
<div>
5. Choose 'Type' as 'Linux' and 'Version' as 'Ubuntu' as shown in picture below.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-p3nPrFmwFRY/UlcTKokmZVI/AAAAAAAAAsI/G_QVVqq_Ao0/s1600/ubuntumachine.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="285" src="http://4.bp.blogspot.com/-p3nPrFmwFRY/UlcTKokmZVI/AAAAAAAAAsI/G_QVVqq_Ao0/s320/ubuntumachine.png" width="320" /></a></div>
<div>
<br /></div>
<div>
6. Proceed with selecting desired options like RAM size and Disk Size.</div>
<div>
<br /></div>
<div>
7. Select the virtual machine just created and click 'Start' option.</div>
<div>
<br /></div>
<div>
8. Virtual Box would ask a disk image to boot select the Ubuntu 12.04.3 Server edition image, you downloaded at step 3. If 'FATAL: No bootable medium found! System halted.' message occurred click 'Devices' menu -> 'CD/DVD Devices' -> 'Choose a virtual CD/DVD disk file...' option then browse and select Ubuntu image you downloaded. After selecting Ubuntu image click 'Machine' and then 'Reset'.</div>
<div>
<br /></div>
<div>
9. Setup Ubuntu in Virtual Machine with desired options.</div>
<div>
<br /></div>
<h3>
Setup Hadoop</h3>
<div>
10. Set port forwarding for virtual machine as shown here: </div>
<div>
<a href="http://tricksandsnippets.blogspot.fi/2013/10/virtual-box-port-forwarding-for-hadoop.html">http://tricksandsnippets.blogspot.fi/2013/10/virtual-box-port-forwarding-for-hadoop.html</a></div>
<div>
<br /></div>
<div>
11. After installing virtual machine, run virtual machine and login with username and password you picked in the setup. Go to home with "cd ~/" command.<br />
<br />
12. Install ssh client and server for connecting virtual machine with ssh and scp with following commands.<br />
After this step you may connect virtual machine with ssh client on the host by using "ssh -P 2222 localhost".<br />
</div>
<div>
<span style="color: #38761d; font-family: Courier New, Courier, monospace;"># Install ssh client and server</span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>sudo apt-get install ssh</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>sudo apt-get install openssh-server</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: inherit;">13. Add ssh keys as trusted as follows.</span><br />
<span style="font-family: inherit;"><br /></span>
<span style="color: #38761d; font-family: Courier New, Courier, monospace;"># add ssh key to trusted servers</span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa</b></span><br />
<br />
<span style="font-family: Courier New, Courier, monospace;"><b>cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys</b></span><br />
<span style="font-family: inherit;"><br /></span></div>
14. Install Java Runtime Environment and Java Developer Kit on Ubuntu Server by running the following commands.<br />
<br />
<span style="color: #38761d; font-family: Courier New, Courier, monospace;"># install jre and jdk (java)</span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>cd ~/</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>wget https://github.com/flexiondotorg/oab-java6/raw/0.3.0/oab-java.sh -O oab-java.sh</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>chmod +x oab-java.sh</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>sudo ./oab-java.sh</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>sudo apt-get install sun-java6-jre</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>sudo apt-get install sun-java6-jdk</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>rm oab-java.sh</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>rm -f oab-java.sh.log</b></span><br />
<br />
15. Rsync is necessary for Hadoop if you dont have it in Ubuntu setup run the following command.<br />
<br />
<span style="color: #38761d; font-family: Courier New, Courier, monospace;"># rsync is necessary for hadoop</span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>sudo apt-get install rsync</b></span><br />
<br />
16. Install Hadoop with using following commands.<br />
<br />
<span style="color: #38761d; font-family: Courier New, Courier, monospace;"># install hadoop</span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>cd ~/</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>wget http://www.nic.funet.fi/pub/mirrors/apache.org/hadoop/common/hadoop-1.2.1/hadoop-1.2.1.tar.gz</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>tar -xvf hadoop-1.2.1.tar.gz</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>rm hadoop-1.2.1.tar.gz</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b><br /></b></span>
<span style="font-family: inherit;">17. Next you need to configure Hadoop for </span>pseudo distributed mode. You may run following commands or change files with a text editor to contain following content.<br />
<span style="font-family: inherit;"><br /></span>
<span style="color: #38761d; font-family: Courier New, Courier, monospace;">#configure hadoop to psuedo distirbuted</span><br />
<span style="font-family: Courier New, Courier, monospace;"><b> mv ~/hadoop-1.2.1/conf/core-site.xml ~/hadoop-1.2.1/conf/core-site-backup.xml</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b> echo "<configuration> </b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b> <property> </b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b> <name>fs.default.name</name> </b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b> <value>hdfs://localhost:9000</value> </b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b> </property></b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b></configuration>" > ~/hadoop-1.2.1/conf/core-site.xml </b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b><br /></b></span>
<span style="font-family: Courier New, Courier, monospace;"><b>mv ~/hadoop-1.2.1/conf/hdfs-site.xml ~/hadoop-1.2.1/conf/hdfs-site-backup.xml</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>echo "<configuration></b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b> <property></b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b> <name>dfs.replication</name></b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b> <value>1</value></b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b> </property></b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b></configuration>" > ~/hadoop-1.2.1/conf/hdfs-site.xml</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"><b>mv ~/hadoop-1.2.1/conf/mapred-site.xml ~/hadoop-1.2.1/conf/mapred-site-backup.xml</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>echo "<configuration></b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b> <property></b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b> <name>mapred.job.tracker</name></b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b> <value>localhost:9001</value></b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b> </property></b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b></configuration>" > ~/hadoop-1.2.1/conf/mapred-site.xml</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b><br /></b></span>
<span style="font-family: Courier New, Courier, monospace;"><b>echo 'export JAVA_HOME=/usr/lib/jvm/java-6-sun' >> ~/hadoop-1.2.1/conf/hadoop-env.sh </b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b><br /></b></span>
<span style="font-family: inherit;">18. Set environment variables </span>necessary<span style="font-family: inherit;"> for Hadoop setup. You may run the commands or just export variables but in that case it will be only valid for the session you are using.</span><br />
<span style="font-family: inherit;"><br /></span>
<span style="color: #38761d; font-family: Courier New, Courier, monospace;">#set java home and hadoop home in bash</span><br />
<b><span style="font-family: Courier New, Courier, monospace;">echo 'export JAVA_HOME=/usr/lib/jvm/java-6-sun' >> ~/.bashrc</span></b><br />
<b><span style="font-family: Courier New, Courier, monospace;">echo 'export HADOOP_HOME=/~/hadoop-1.2.1/bin' >> ~/.bashrc</span></b><br />
<b><span style="font-family: Courier New, Courier, monospace;">echo 'export PATH=~/hadoop-1.2.1/bin:$PATH' >> ~/.bashrc</span></b><br />
<br />
<b><span style="font-family: Courier New, Courier, monospace;">source ~/.bashrc</span></b><br />
<b><span style="font-family: Courier New, Courier, monospace;"><br /></span></b>
<span style="font-family: inherit;">19. Now you may start and stop Hadoop by using following scripts respectively.</span><br />
<span style="font-family: inherit;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"><b>start-all.sh</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>stop-all.sh</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b><br /></b></span>
<br />
<b><span style="font-family: inherit;">Alternatively you may download and run the following script on your Ubuntu setup to perform all operations listed above.</span></b><br />
<b><span style="font-family: inherit;"><br /></span></b>
<b><span style="font-family: Courier New, Courier, monospace;">cd ~/</span></b><br />
<b><span style="font-family: Courier New, Courier, monospace;">wget http://www.cs.hut.fi/~dongelr1/hadoopscript.sh</span></b><br />
<span style="font-family: Courier New, Courier, monospace;"><b>chmod +x </b><b>hadoopscript.sh</b></span><br />
<span style="font-family: Courier New, Courier, monospace;"><b>./</b><b>hadoopscript.sh</b></span><br />
<h3>
WordCount Example</h3>
<div>
20. Run the following commands to load WordCount example. <span style="color: red;">If you have run hadoopscript.sh you may skip this step.</span></div>
<div>
<br /></div>
<div>
<div>
<span style="color: #38761d; font-family: Courier New, Courier, monospace;">#get scripts and wordcount example</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><b>cd ~/</b></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><b>wget http://www.cs.hut.fi/~dongelr1/WordCount.tar</b></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><b>tar -xvf WordCount.tar</b></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><b>rm WordCount.tar</b></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><b>cd WordCount</b></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><b>chmod +x start_commands</b></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><b>chmod +x run_commands</b></span></div>
</div>
<div>
<br /></div>
<div>
21. Run start_commands to start Hadoop as follows.</div>
<div>
<br /></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><b>cd ~/WordCount</b></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><b>./</b><b>start_commands</b></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><b><br /></b></span></div>
<div>
<span style="font-family: inherit;">22. Check <a href="http://localhost:50070/dfshealth.jsp">http://localhost:50070/dfshealth.jsp</a> to see if there is any data node live. If there is no alive node then run "stop-all.sh" and remove everything in tmp by "rm -r /tmp/*" and redo the step 21.</span></div>
<div>
<span style="font-family: inherit;"><br /></span></div>
<div>
<span style="font-family: inherit;">23. You may run "run_commands" to run WordCount example and you can examine the commands with "cat </span>run_commands". run_commands script basically makes an input directory in Hadoop Distributed File System and puts file1.txt and file2.txt to that direactory. Afterwards, compiles WordCount.java into wordcount_classes folder and creates a wordcount.jar file from compilation. Then executes a Hadoop job with wordcount.jar to count input/ directory and output it to output/ directory.</div>
<div>
<br /></div>
<div>
<b style="font-family: 'Courier New', Courier, monospace;">cd ~/WordCount</b></div>
<div>
<span style="font-family: Courier New, Courier, monospace;"><b>./run_commands </b></span></div>
Ridvan Döngelcihttp://www.blogger.com/profile/03065171463045058648noreply@blogger.com0tag:blogger.com,1999:blog-11742619206010849.post-21440002123335793382013-10-01T22:11:00.001+03:002013-10-01T22:11:53.385+03:00Virtual Box Port Forwarding For Hadoop1. Go to main screen in Virtual Box<br />
2. Select virtual machine to forward ports and click Settings<br />
3. Select Network from left panel in popup settings window.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-HWHYRMl9Ij0/Uksd0xMYBeI/AAAAAAAAAr4/sBtYVxPAOog/s1600/hadoop-port-forwarding.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-HWHYRMl9Ij0/Uksd0xMYBeI/AAAAAAAAAr4/sBtYVxPAOog/s320/hadoop-port-forwarding.png" width="314" /></a></div>
<br />
4. Click Advance to see more options<br />
5. Click Port Forwarding<br />
6. Click green plus to add rules<br />
7. Add the rules seen in picture<br />
(Map ports 22, 50070, 50060, 50075, 50030 to 2222, 50070, 50060, 50075, 50030)<br />
8. Click OK<br />
9. Return to main screen<br />
<br />Ridvan Döngelcihttp://www.blogger.com/profile/03065171463045058648noreply@blogger.com0tag:blogger.com,1999:blog-11742619206010849.post-65679081851702557602013-06-13T16:43:00.003+03:002014-08-13T16:50:20.693+03:00Bussit<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-APOGHXEzWP4/UbnMRSw8fqI/AAAAAAAAAmk/drV3PpTalLU/s1600/icon.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-APOGHXEzWP4/UbnMRSw8fqI/AAAAAAAAAmk/drV3PpTalLU/s320/icon.png" height="320" width="320" /></a></div>
<div style="text-align: center;">
<b>Light weight Helsinki metropolitan area transportation widget.</b><br />
<b><br /></b>
<b>Some Screenshots comments and bug reports are welcomed as well as feature suggestions.</b><br />
<b><br /></b>
<b><a href="https://play.google.com/store/apps/details?id=com.bussitpro">https://play.google.com/store/apps/details?id=com.bussitpro</a></b><br />
<br />
<span style="font-size: large;"><b style="background-color: white;">Bussit is also available for Tampere</b></span><br />
<b><a href="https://play.google.com/store/apps/details?id=com.bussittampere">https://play.google.com/store/apps/details?id=com.bussittampere</a></b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<span style="margin-left: 1em; margin-right: 1em;"><a href="mailto:bussitpro@gmail.com"><img border="0" src="http://1.bp.blogspot.com/-PhF1QJJcsi8/Ubn4y12n8wI/AAAAAAAAAm8/yvt8Ma9ufhw/s320/Screenshot_2013-06-13-16-26-15.png" height="320" width="192" /></a></span><a href="http://1.bp.blogspot.com/-JUcWAf5u_hQ/Ubn4y7x7GDI/AAAAAAAAAm0/7XRSXsnDUeU/s1600/Screenshot_2013-06-13-16-26-20.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-JUcWAf5u_hQ/Ubn4y7x7GDI/AAAAAAAAAm0/7XRSXsnDUeU/s320/Screenshot_2013-06-13-16-26-20.png" height="320" width="192" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-YBb6wse-JgI/Ubn4y3gEysI/AAAAAAAAAm4/pF49LXXEs5M/s1600/Screenshot_2013-06-13-16-27-04.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-YBb6wse-JgI/Ubn4y3gEysI/AAAAAAAAAm4/pF49LXXEs5M/s320/Screenshot_2013-06-13-16-27-04.png" height="320" width="192" /></a><a href="http://3.bp.blogspot.com/-RAJrc5RQCuc/Ubn4zhY9OuI/AAAAAAAAAnE/cemsYksMjdY/s1600/Screenshot_2013-06-13-16-27-19.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-RAJrc5RQCuc/Ubn4zhY9OuI/AAAAAAAAAnE/cemsYksMjdY/s320/Screenshot_2013-06-13-16-27-19.png" height="320" width="192" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-vFr5jg_NP88/Ubn40B9jNLI/AAAAAAAAAnU/FlFA_MnhYLs/s1600/Screenshot_2013-06-13-16-27-28.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-vFr5jg_NP88/Ubn40B9jNLI/AAAAAAAAAnU/FlFA_MnhYLs/s320/Screenshot_2013-06-13-16-27-28.png" height="320" width="192" /></a><a href="http://2.bp.blogspot.com/-Jd3YxfhXNyQ/Ubn40D_CwlI/AAAAAAAAAnQ/CIY4kh1UoYI/s1600/Screenshot_2013-06-13-16-28-16.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-Jd3YxfhXNyQ/Ubn40D_CwlI/AAAAAAAAAnQ/CIY4kh1UoYI/s320/Screenshot_2013-06-13-16-28-16.png" height="320" width="192" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-yfQ38ulXp-s/Ubn40n8jsYI/AAAAAAAAAnc/Zx8V4bkHAks/s1600/Screenshot_2013-06-13-16-28-33.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-yfQ38ulXp-s/Ubn40n8jsYI/AAAAAAAAAnc/Zx8V4bkHAks/s320/Screenshot_2013-06-13-16-28-33.png" height="320" width="192" /></a><a href="http://1.bp.blogspot.com/-gaWx4kCuuFs/Ubn41Urdj-I/AAAAAAAAAns/j642HewJZE8/s1600/Screenshot_2013-06-13-16-28-57.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-gaWx4kCuuFs/Ubn41Urdj-I/AAAAAAAAAns/j642HewJZE8/s320/Screenshot_2013-06-13-16-28-57.png" height="320" width="192" /></a></div>
<h2 style="clear: both; text-align: center;">
F.A.Q</h2>
<h3 style="text-align: center;">
How Can I Add Favorites?</h3>
<div>
There is several way of adding favorites but probably easiest way is to click the heart icon on the results page as shown below.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-YI2m-_NICEw/U-tsrM_Hu8I/AAAAAAAAA_E/8N0ib3p-pKI/s1600/favorites.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-YI2m-_NICEw/U-tsrM_Hu8I/AAAAAAAAA_E/8N0ib3p-pKI/s1600/favorites.png" height="320" width="192" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Other ways of adding favorites are: clicking entries on history screen, long clicking a point on map an tapping the title to show menu, clicking heart icon on stop screen.</div>
<div>
<br /></div>
<b><br /></b></div>
Ridvan Döngelcihttp://www.blogger.com/profile/03065171463045058648noreply@blogger.com18tag:blogger.com,1999:blog-11742619206010849.post-21621228448303514942013-04-27T19:48:00.000+03:002014-06-20T17:49:14.567+03:00Mobile Website Debugging Manually debugging a mobile webpage is a lot of effort. You need to run an emulator and it is usually slow and debugging tools are not existing. Opera has a solution for this problem: Opera Mobile Emulator. It is quite fast to run and you may test on many settings.<br />
<div style="text-align: center;">
<a href="http://dev.opera.com/articles/view/opera-mobile-emulator/opera-emulator.jpg" imageanchor="1"><img border="0" src="http://dev.opera.com/articles/view/opera-mobile-emulator/opera-emulator.jpg" /></a> </div>
Furthermore It has Dragon fly support for remote debugging. It is explained <a href="http://www.opera.com/dragonfly/documentation/remote/">here</a>. But I would like to give a quick review. First you need to run opera web browser and open Dragonfly with ctrl+shift+I and start listening desired socket. Then you need to open Opera Mobile Emulator and enter opera:debug to address bar. You will see following screen:<br />
<div style="text-align: center;">
<a href="http://www.opera.com/bitmaps/products/dragonfly/doc/remote-device.png" imageanchor="1"><img border="0" src="http://www.opera.com/bitmaps/products/dragonfly/doc/remote-device.png" /></a></div>
then connect to Dragonfly. And then type address of the webpage you need to test to same tab and you will see data goes through Dragonfly. Great!<br />
References:<a href="http://www.opera.com/dragonfly/documentation/remote/">http://www.opera.com/dragonfly/documentation/remote/</a>Ridvan Döngelcihttp://www.blogger.com/profile/03065171463045058648noreply@blogger.com0tag:blogger.com,1999:blog-11742619206010849.post-41651076227324907712013-04-26T12:38:00.001+03:002013-04-26T15:33:14.609+03:00Linearization of MultiplicationSo multiplication is generally not linearizable. However you can linearize binary multiplication. Let's assume <span style="font-family: Courier New, Courier, monospace;">x</span> and <span style="font-family: Courier New, Courier, monospace;">y</span> is two binary variables (either 0 or 1), we can linearize <span style="font-family: Courier New, Courier, monospace;">z = x*y</span> as follow:<br />
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<span style="font-family: Courier New, Courier, monospace;">z <= x; </span></div>
<div style="text-align: center;">
<span style="font-family: Courier New, Courier, monospace;">z <= y;</span></div>
<div style="text-align: center;">
<span style="font-family: Courier New, Courier, monospace;">z >= x+y-1;</span></div>
<div style="text-align: center;">
<span style="font-family: Courier New, Courier, monospace;">z >= 0; </span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div style="text-align: center;">
<div style="text-align: left;">
Further more you can use this trick to multiply two variables <span style="font-family: Courier New, Courier, monospace;">x</span> and <span style="font-family: Courier New, Courier, monospace;">y</span> with value {-1,1}. Here is the trick is noticing if <span style="font-family: Courier New, Courier, monospace;">x</span> and <span style="font-family: Courier New, Courier, monospace;">y</span> is equal then multiplication <span style="font-family: Courier New, Courier, monospace;">z</span> is 1 otherwise it is -1. Thus we can map variable <span style="font-family: Courier New, Courier, monospace;">x</span> to {0,1} by <span style="font-family: Courier New, Courier, monospace;">(x+1)/2</span><span style="font-family: inherit;"> or we can use binary variable to generate variables </span>with value {-1,1} by <span style="font-family: Courier New, Courier, monospace;">2*binary-1</span><span style="font-family: inherit;">. After we get binary variable </span><span style="font-family: Courier New, Courier, monospace;">x'</span><span style="font-family: inherit;"> and </span><span style="font-family: Courier New, Courier, monospace;">y'</span><span style="font-family: inherit;">, we multiply them as above to get </span><span style="font-family: Courier New, Courier, monospace;">z'</span><span style="font-family: inherit;">. And we may flip </span><span style="font-family: Courier New, Courier, monospace;">x'</span><span style="font-family: inherit;"> and </span><span style="font-family: Courier New, Courier, monospace;">y'</span><span style="font-family: inherit;">, to get </span><span style="font-family: Courier New, Courier, monospace;">x''</span><span style="font-family: inherit;"> and </span><span style="font-family: Courier New, Courier, monospace;">y''</span><span style="font-family: inherit;"> as </span><span style="font-family: Courier New, Courier, monospace;">x''=(1-x');</span><span style="font-family: inherit;"> and we may multiply them as show above as well to get </span><span style="font-family: Courier New, Courier, monospace;">z''</span><span style="font-family: inherit;">. If we add </span><span style="font-family: 'Courier New', Courier, monospace;">z'</span><span style="font-family: inherit;"> and </span><span style="font-family: 'Courier New', Courier, monospace;">z''</span><span style="font-family: inherit;">, we get </span><span style="font-family: Courier New, Courier, monospace;">sum </span><span style="font-family: inherit;">which is 1 if both values of </span><span style="font-family: Courier New, Courier, monospace;">x</span><span style="font-family: inherit;"> and </span><span style="font-family: Courier New, Courier, monospace;">y</span><span style="font-family: inherit;"> are same (1,1 or -1,-1) and 0 if they are different </span>(-1,1 or 1,-1)<span style="font-family: inherit;">. We may map sum to correct result by </span><span style="font-family: Courier New, Courier, monospace;">final_result=(2*sum-1)</span><span style="font-family: inherit;">formula. Bellow you may find a truth table:</span><br />
<span style="font-family: inherit;"><br /></span></div>
<div style="text-align: left;">
<table cellpadding="4" cellspacing="0" style="text-align: center; width: 645px;">
<colgroup><col width="55"></col>
<col width="56"></col>
<col width="56"></col>
<col width="56"></col>
<col width="56"></col>
<col width="56"></col>
<col width="56"></col>
<col width="56"></col>
<col width="56"></col>
<col width="55"></col>
</colgroup><tbody>
<tr>
<td colspan="10" style="border: 1px solid #000000; padding: 0.04in;" valign="TOP" width="635"><div class="western" style="text-align: center;">
<b>Truth Table</b></div>
</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="55"><div class="western" style="text-align: center;">
<span style="font-family: 'Courier New', Courier, monospace; text-align: left;">x'</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: Courier New, Courier, monospace;">y'</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: 'Courier New', Courier, monospace; text-align: left;">z'</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: 'Courier New', Courier, monospace; text-align: left;">x''</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: Courier New, Courier, monospace;">y''</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: 'Courier New', Courier, monospace; text-align: left;">z''</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: 'Courier New', Courier, monospace; text-align: left;">sum</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: 'Courier New', Courier, monospace; text-align: left;">x</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: Courier New, Courier, monospace;">y</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in; padding-top: 0in;" width="55"><div class="western" style="text-align: center;">
<span style="font-family: Courier New, Courier, monospace;">z</span></div>
</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="55"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">0</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">0</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">0</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1
</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">-1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">-1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in; padding-top: 0in;" width="55"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1</span></div>
</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="55"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">0</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">0</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">0</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">0</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">0
</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">-1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in; padding-top: 0in;" width="55"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">-1</span></div>
</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="55"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">0</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">0</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">0</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">0</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">0
</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">-1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in; padding-top: 0in;" width="55"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">-1</span></div>
</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="55"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">0</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">0</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">0</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1
</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="56"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1</span></div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in; padding-top: 0in;" width="55"><div class="western" style="text-align: center;">
<span style="font-family: inherit;">1</span></div>
</td>
</tr>
</tbody></table>
</div>
<div style="text-align: left;">
Reference: <a href="http://adrian.idv.hk/doku.php/notepad/math/linearization">Linearization in Mathematical Programming</a></div>
</div>
<meta charset="utf-8">
<meta name="description"content="Linerization of multiplication of binaries">
<meta name="keywords" content="1,-1,linear,programming,multiply,multplication,linerization"> Ridvan Döngelcihttp://www.blogger.com/profile/03065171463045058648noreply@blogger.com0