As the title says the above image is the screenshot of a tweet gallery that i have designed using JAVA and JAVAFX., to access the tweets i have used twitter4j library.Below are the codes to design the gallery.Also My-SQL database is used to store the tweets periodically and when clicked on view then it shows the latest 25 tweets from the database. Code to authenticate User: package com.oksbwn.Y2014.twitter;import twitter4j.Twitter;import twitter4j.TwitterFactory;import twitter4j.conf.ConfigurationBuilder;public class getAuthorized { public Twitter auth() { String consumerKey = “”; String consumerSecret =””; String accessToken =…
Read MoreMonth: January 2014
MySQL database access using Python in Raspberry Pi
While working with Python in Raspberry Pi it might be useful to have a database access for your application or somewher it is required.Or may be as a beginner you would like to use MySQL with Python.Here i have compiled a post on how to use MySQL with Python… First of all you have to install python-MySQLdb which interacts between the My-SQL database and the Python.So to install it in the Raspberry-Pi terminal type.. sudo apt-get install python-mysqldb I have already installed so my…
Read MoreImage Gallery using JAVA and JAVAFX
I quite browsed internet a lot to find something to create a image gallery in JAVA but i got null out of it.So i started making my own gallery in JAVA and JAVAFX and also integrated SQL database with it so that i can keep the information about the images and my gallery can be searchable according to persons in the image or place or date taken etc.Here below i am providing the codes to make the gallery. So first of all create the following database in your local database.I…
Read MoreBooting Raspberry Pi from USB Flash Drive
The following tutorial will work/required for only 2B v1.2, 3A+, 3B, Compute Module 3, 3+ for 3B+ and above USB boot is out of the box. To make this work we still need to use one SD Card, the Pi will boot from it but it will redirect to the USB Storage device as the location of the OS. To start with write the image file to the USB Drive and an SD Card. You can remove the USB Storage device but resinsert the SD card. On liniux it will…
Read More