Showing posts with label on. Show all posts
Showing posts with label on. Show all posts

Monday, March 9, 2015

How we built a Social Network for Productivity on Top of Google Docs Calendar Contacts and Reader

Editor’s note: This is a guest post by Martin Böhringer, Co-Founder and CEO of Hojoki.
-- Steve Bazyl

Honestly, we love Google’s productivity tools. Back in 2010, when I was a computer science researcher at university, I was a heavy user of Google Docs, Google Calendar, Google Contacts and Google Reader. So it was the most natural thing to put these tools to the front for integrations into our startup, Hojoki.

Hojoki integrate productivity cloud apps into one newsfeed and enables sharing and discussions on top of the feed. We’ve integrated 17 apps now and counting, so it’s safe to say that we’re API addicts. Now its Time to share with you what we learned about the Google Apps APIs!

The goal: a newsfeed

Our initial reason for building Hojoki was because of the fragmentation we experience in all of our cloud apps. And all those emails. Still, there was this feeling of “I don’t know what’s going on” in our distributed teamwork. So we decided to build something like a Google+ where streams get automatically filled by activities in the apps you use.

This leads to a comprehensive stream of everything that’s going on in your team combined with comments and microblogging. You can organize your stream into workspaces, which are basically places for discussions and collaboration with your team.

Information needs

To build this, we first need some kind of information on recent events. As we wanted to be able to aggregate similar activities and to provide a search, as well as splitting up the stream in workspaces, we also had to be able to sort events as unique objects like files, calendar entries and contacts.

Further, it’s crucial to not only know what has changed, but who did it. So providing unique identities is important for building federated feeds.

Google APIs

Google’s APIs share some basic architecture and structure, described in their Google Data Protocol. Based on that, application-specific APIs provide access to the application’s data. What we use is the following:

  • Google Docs: Google Documents List API version 3.0
  • Google Calendar: Google Calendar API v2
    Note: there is a new API v3 for Google Calendar
  • Google Contacts: Google Contacts API v2

The basic call for Google Contacts for example looks like this:

https://www.google.com/m8/feeds/contacts/default/full

This responds with a complete list of your contacts. Once we have this list all we have to do is to ask for the delta to our existing knowledge. For such use cases, Google’s APIs support query parameters as well as sorting parameters. So we can set “orderby” to “lastmodified” as well as “updated-min” to the timestamp of our last call. This way we are able to keep the traffic low and get quick results by only asking for things we might have missed.

If you want to develop using those APIs you should definitely have a look at the SDKs for them. We used the Google Docs SDK for an early prototype and loved it. Today, Hojoki uses its own generic connection handler for all our integrated systems so we don’t leverage the SDKs anymore.

Real world problems

If you’re into API development, you’ve probably already realized that our information needs don’t fit into many of the APIs out there. Most of the APIs are object centric. They can tell you what objects are included in a certain folder, but they can’t tell you which object in this folder has been changed recently. They just aren’t built with newsfeeds in mind.

Google Apps APIs support most of our information needs. Complete support of OAuth and very responsive APIs definitely make our lives easier.

However, the APIs are not built with Hojoki-like newsfeeds in mind. For example, ETags may change even if nothing happened to an object because of asynchronous processing on Google’s side (see Google’s comment on this). For us this means that, once we detect an altered ETag, in some cases we still have to check based on our existing data if there really have been relevant activities. Furthermore, we often have trouble with missing actors in our activities. For example, up to now we know when somebody changed a calendar event, but there is no way to find out who this was.

Another issue is the classification of updates. Google’s APIs tell us that something changed with an object. But to build a nice newsfeed you also want to know what exactly has been changed. So you’re looking for a verb like created, updated, shared, commented, moved or deleted. While Hojoki calls itself an aggregator for activities, technically we’re primarily an activity detector.

Final solution

You can think of Hojoki as a multi-layer platform. First of all, we try to get a complete overview on your meta-data of the connected app. In Google Docs, this means files and collections, and we retrieve URI and name as well as some additional information (not the content itself). This information fills a graph-based data storage (we use RDF, read more about it here).

At the moment, we subscribe to events in the integrated apps. If detected, they create a changeset for the existing data graph. This changeset is an activity for our newsfeed and related to the object representation. This allows us to provide a very flexible aggregation and filtering on the client side. See the following screenshot. You can filter the stream for a certain collection (“Analytics”) or only for the file history or for the Hojoki workspace where this file is added (“Hojoki Marketing”).

What’s really important in terms of such heavy API processing is to use asynchronous calls. We use the great Open Source project async-http-client for this task.

A wishlist

When I wrote that “we subscribe to events” this is a very nice euphemism for “we’re polling every 30s to see if something changed”. This is not really optimal and we’d love to change it. If Google Apps APIs would support a feed of user events modelled in a common standard like ActivityStrea.ms, combined with reliable ETags and maybe even a push API (e.g. Webhooks) this would also make life easier for lots of developers syncing their local files with Google and help to reduce traffic on both sides.


Martin Böhringer

Martin is Co-Founder and CEO of Hojoki. Hojoki integrates Google Docs, Calendar, Contacts and Reader next to other apps like Dropbox and Evernote into one newsfeed, showing changes by co-workers in one central place. Martin holds a PhD in information systems and likes to perform on stage at Tech Events.

Sunday, February 15, 2015

Ad hoc reporting on multidimensional database introduction PSW and Saiku Analytics quick Introduction

Why this info in my blog post :

You can better introduce the usage of tools to your client  
You can learn theory as well

Web-based Ad Hoc Query and Reporting
Pentaho web-based ad hoc query and reporting is a capability that extends Pentaho Reporting to provide end-user self-service for report creation.

How does Ad-Hoc Reporting work?
Web-based ad hoc query and reporting provides a browser-based wizard that allows end-users to create their own reports.

The wizard uses web services and components in the Pentaho platform to utilize metadata models that have been published from the Pentaho metadata editor.

Pentaho metadata allows the content of the reporting database to be presented to business users in familiar business terms.

Reports created by users use metadata queries to define the data that user wants to see.

These metadata queries are translated into SQL every time a report is run so any changes to the database are hidden from the users.

 What are the tools to be used for Ad-hoc reporting?
1)      Mondrian – PSW –Pentaho Schema workbench – OLAP cube creation
2)      Saiku Analytics
  Mondrian – PSW –Pentaho Schema workbench – OLAP cube creation
  • It is a designer interface that allows you to create and test Mondrian OLAP cube schemas visually.
  • The Mondrian engine processes MDX requests with the ROLAP (Relational OLAP) schemas.
  • These schema files are XML metadata models that are created in a specific structure used by the Mondrian engine.
  • These XML models can be considered cube-like structures which utilize existing FACT and DIMENSION tables found in your RDBMS.
  • It does not require that an actual physical cube is built or maintained; only that the metadata model is created.
Features of PSW:
  • High performance, interactive analysis of large or small volumes of information
  • Dimensional exploration of data, for example analyzing sales by product line, by region, by time period
  • Parsing the MDX language into Structured Query Language (SQL) to retrieve answers to dimensional queries
  • High-speed queries through the use of aggregate tables in the RDBMS
  • Advanced calculations using the calculation expressions of the MDX language
Saiku Analytics
  • On-Line Analytical Processing (OLAP) is a category of software technology that enables analysts, managers and executives to gain insight into data through fast, consistent, interactive access to a wide variety of possible views of information that has been transformed from raw data to reflect the real dimensionality of the enterprise as understood by the user.
  • OLAP functionality is characterized by dynamic multi-dimensional analysis of consolidated enterprise data supporting end user analytical and navigational activities (The OLAP Council)
  • By harnessing the power of OLAP, Saiku allows users to choose the measures and dimensions they need to analyse and “slice and dice” the data and drill into the detail to uncover relationships, opportunities and issues.
  • The intuitive user interface lets users drill down and up, filter, pivot, sort, and chart against OLAP and In-Memory engines.
  • Utilizing the Olap4J library, Saiku is the first application on the market to offer support for Mondrian’s Scenario feature allowing non destructive editing of query results, giving users the ability to adjust the figures and perform “what-if” analysis over their data.
  •  By harnessing the power of Mondrian, Saiku offers scalable in-memory analysis.
  • Large amounts of data can be stored in memory in a distributed manner across the local network, offering greatly improved performance over large data warehouses as the aggregated data is retrieved from the network instead of reading from disk.
NOTE:
  • Saiku Analytics for pentaho is a web-based Ad-hoc reporting tools.
  • It’s a plug-in for pentaho. You can download and install from Penthao Market Place in Penthao Server.
Features of Saiku Analytics
  • Drag & Drop Report-Design
  • Export to: PDF,CSV,XLS,CDA,PRPT
  • Uses Pentaho Report Designer PRPT-Templates
  • Grouping
  • Aggregation
  • Totals
  • OpenFormula Support
References :
Saiku web pages
Pentaho web pages
Pentaho wikipedia
Saiku wikipedia

Sunday, February 1, 2015

Unlcok Pattern lock or Gmail account on Android devices without access of Internet

Unlcok Pattern lock or Gmail account without access of Internet. Using Android Devlopment Bridge 
(ADB )Command .

To use this solution Android Tablet or Android Smart Phone USB debugging Mode must be enable . Other wise Hard Reset is an option.This solution works with Android Tablets and Android Smart Phones
  • Download Android SDK and install. Andriod directory will be created in C:Programe File 
  • Connect device with Computer
  • Install USB Drivers for Android Device 
  • From windows start button click on Run , write cmd and enter it will open DOS.
  • Change Compand path to Android SDK Manager (cd C:Program FilesAndroidandroid-sdkplatform-tools)Capital and small chracters count. 
  • Type Command in CMD : adb device (Connected Tablets or Smart Phone will be display in CMD directory if not then try to reconnect your android device again. 
  • adb shell 
  • cd /data/data/com.android.providers.settings/databases
  •  sqlite3 settings.db
  •  update system set value=0 where name=lock_pattern_autolock;
  • update secure set value=0 where name=lock_pattern_autolock; (for some devices update “system” is enough but I had to update “secure” too)
  • update system set value=0 where name=lockscreen.lockedoutpermanently;
  •  update secure set value=0 where name=lockscreen.lockedoutpermanently;
  • .quit
  • exit
  • adb reboot 
Your android device should be unlocked if not , then add this line in CMD as well (adb shell rm /data/system/gesture.key)
This Pattern unlock done with the help of android database . I mostly keep enable my USB debugging mode but if you concern to the security of your Android Tablets or Android smart phones then you must keep it off. 

Saturday, January 31, 2015

Root Samsung Tab 3 SM T210 and SM T210R on 4 4 2

How to Root Samsung Tab 3 SM-T210 and SM-T210R on 4.4.2

How to Root Android KitKat 


Step by Step Tutorial . 


Before starting you must read What is Root in Android . 

This method will work on Samsung Tab 3 SM-T210 and SM-T210R . You should know the difference between 3G and WIFI based Samsung tablets.

Preparation for Rooting . 


Download Odin 3.09 .
Download T210.TWRP.2.8.0.0.tar.md5 (TEAMWIN RECOVERY PROJECT)
Download Update SuperSU . 
 Copy UPDATE SUPERSU to the root directory of your tablet internal or external memory. 

how to root Samsung tablet and smartphones.

How to Root Samsung Tab 3 SM-T210.


Turn on your Samsung tablet into Download Mode by pressing volume down + home + power button. Connect with computer .open Odin and let it select com . 
When you see "Added " on Odin , click on AP|PDA and select T210.TWRP.2.8.0.0.tar.md5 File . 
Click Start to upload TWRP . 

how to root Samsung tablet and smartphones.

After completing installation , a PASS!/RESET! message  will appear and galaxy tab will be rebooted. 
You have successfully install TWRP Recovery on your tablet, but you are not done yet. 
Turn off tablet and turn on into Recovery mode by pressing Volume UP  + Home + Power . You will be redirected to TWRP Recovery . 
how to root Samsung tablet and smartphones.

Click on Install and select UPDATE SUPERSU from tablet  internal or external memory .


how to root Samsung tablet and smartphones.


Slide confirmation slider button to flash SUPERSU on your galaxy tablet . 
When done reboot your tablet by click Reboot --System . 
Tablet will be reboot and SUPERSU icon will appear . 

how to root Samsung tablet and smartphones.

You are done. enjoy the unlimited benefit of being rooted. 


Note :- The above mentioned tutorial and procedure was  tested by myself. I have not found any problem during process . However the  procedure was 100% safe and secure but "backup your data first",  is always recommended. 

Saturday, January 10, 2015

How to Add Page Number on Blogger Blog


By default your blogger blog doesnt have any numbered page navigation system. Instead of it the usual themes provide Newer Post, Home and Older post to navigate the site. But it will be very convenient for the visitors to navigate your site, if you place a page number navigation system at the bottom of your contents!


In this post Im gonna share a code with you. And this can turn your old navigation system into numbered navigation system! Hope this will help you lot.

It is as easy as adding a gadget. All you need to do is just add an HTML or JavaScript Gadget. Just follow the steps below: 

  1. First go to www.blogger.com and open your dashboard.
  2. Then go to your blogs layout option.
  3. Now click on Add a Gadget.
  4. Here youll find a list of gadgets. Scroll down and select HTML/ JavaScript gadget.  
  5. Now copy and paste the following code in the gadget box. 
  6. Now save the gadget and refresh your blog to see the result! 

<style type=text/css>#blog-pager{padding:10px 0;clear:both;}
.showpageNum a {color:#333333;text-decoration:none;border: 1px solid #CCCCCC;margin:0 3px;padding:3px 7px;background-color:#FFFFFF;}
.showpageNum a:hover, .showpage a:hover, .showpagePoint {color:#333333;border: 1px solid #CCCCCC;padding:3px 7px;background-color:#CCCCCC;margin:0 3px;}
.showpageOf {color:#333;text-decoration:none;padding:3px 7px;margin: 0 3px 0 0;}
</style>
<script style=text/javascript>
var numshowpage=10;
var postperpage =7;
var upPageWord="Previous";
var downPageWord="Next";
var urlactivepage=location.href;
var home_page="/";
</script>
<script style=text/javascript src=http://bloggerblogwidgets.googlecode.com/files/way2blogging_bloggerpagenavi.js></script>

This gadget will create a number system like below:






Customization of this Code: You can customize the above code as below.

  • var numshowpage=10; here 10 is the number of pages will be shown. You can use 8, 12 or any number you want.
  • var postperpage =7; here 7 indicates how many posts will be shown per page. Normally blogger blog shows 7 posts per page. If you wanna increase or decrease the number of posts per page then go to Settings > Post and Comments > Show at most (choose the number you want) > Save settings. 
  • var upPageWord="Previous";  var downPageWord="Next"; the words Previous and Next are the words that will be shown before and after the page number. Actually you dont need to change the word. But if you wanna use other language then you can do this. 
 
Also have a look at the live demo below:



 

Stay with Marks PC Solution to get more interesting IT topics!

 
 
 

How to set up a LAMP test server on Ubuntu

You can set up a LAMP (Linux, Apache, MySQL, and PHP) server as a test server on your Ubuntu 9.10 PC. A LAMP server lets you develop a website on your computer before you upload it to a website host. For additional information and details, see Tux Tweaks: Install LAMP Server on Ubuntu.

Additional Information, 04-13-10: As explained in the Note in the "Using LAMP Server as Your Test Server" section at the end of this article, you must open the root file browser before you can add files to LAMP test server.

Installing LAMP Server on Ubuntu
To install a LAMP test server on your Ubuntu PC, do the following:
  1. Open Ubuntu, click Applications, select Accessories, and then click Terminal to display its window and a "~$" (tilde dollar-sign) prompt.
  2. At the flashing cursor immediately after the "~$" prompt, Type sudo apt-get install lamp-server^ and then press Enter to display a password prompt. Note: To type the "^" (caret symbol), use Shift+6.
  3. Type your password and then press Enter to display the packages that you can install, and "Do you want to continue [Y/n]?"
  4. Type y and then press Enter to start the installation and display a prompt to set your MySQL password. Type the password, press Enter to display a retype-password prompt, retype your MySQL password, and then press Enter to continue installing packages.
Testing Apache and php LAMP Server Components
Apache and php are components of the LAMP software bundle. To test Apache and php, do the following:
  1. Open a web browser. Type http://localhost/ in the address field, and then press Enter to display a web page that says "It works! This is the default web page for this server. The web server is running but no content has been added, yet." This Apache server is your LAMP test server. Close the web browser.
  2. Click Applications, select Accessories, and then click Terminal to display its window. Type gksudo gedit /var/www/testing.php and press Enter to display a password prompt. Enter your Ubuntu password and click OK to open a gedit text-editor window.
  3. Type into the text editor, and then click Save to save the file. Close the text-editor window to redisplay the terminal window.
  4. Type sudo /etc/init.d/apache2 restart and press Enter to restart the Apache server.
  5. Open a web browser. Type http://localhost/testing.php/ in the address field, and then press Enter to display a web page that shows details about your php installation.
Configuring the MySQL LAMP Server Component
MySQL is the database component of the LAMP software bundle. To configure MySQL for use with your LAMP test server, do the following:
  1. Click Applications, select Accessories, and then click Terminal to display its window.
  2. Type cat /etc/hosts | grep localhost and press Enter to display "127.0.0.1 localhost ::1 localhost ip6- localhost ip6-loopback." 127.0.0.1 is your localhost IP address. localhost is red.
  3. Type cat /etc/mysql/my.cnf | grep bind-address and press Enter to display "bind-address = 127.0.0.1." If the bind address does not match your localhost address, type gksudo gedit /etc/mysql/my.cnf to open a gedit text-editor window, scroll to the bind address, and then change it to "127.0.0.1".
Installing and Testing phpMyAdmin for LAMP Server
The phpMyAdmin utility simplifies working with a MySQL database within your LAMP test server. To install and test phpMyAdmin, do the following:
  1. Click Applications, select Accessories, and then click Terminal to display its window. Type sudo apt-get install libapache2-mod-auth-mysql phpmyadmin and press Enter to display the packages that you can install, and the message "Do you want to continue [Y/n]?"
  2. Type y and then press Enter to start the installation and display a Configuring phpmyadmin window. Use your keyboard up and down arrow keys and its spacebar to select apache2, and then press Enter to continue the installation and display another Configuring phpmyadmin window.
  3. Use the Tab key to select Yes and then press Enter to display a database-password prompt. Type your MySQL password (you had set this in the Installing LAMP section above), and then press Enter to display a phpMyAdmin-password prompt.
  4. For simplicity, you can use your MySQL password also as your phpMyAdmin password. Type your MySQL password, and then press Enter to display a password-confirmation prompt. Retype your MySQL password and then press Enter to finish installing phpMyAdmin. Close the terminal window.
  5. Open a web browser. Type http://localhost/phpmyadmin/ in the address field, and then press Enter to display the phpMyAdmin login web page. In the Username field, Type root in the Username field, type your MySQL password in the Password field, and then click OK to display a phpMyAdmin window.
Using LAMP Server as Your Test Server
If you wish to work on only a single website, place its files in /var/www. To see the initial contents of folder www, click Places, click Computer, click File System, double-click var, and then double-click www to open it. Folder www intially contains only two files: index.html and testing.php.

Note: Before you can add files to your LAMP test server, you must click Applications, select Accessories, click Terminal to display its window, and then type sudo nautilus to open the root file browser. You can then paste HTML files into root/var/www.

If you wish to work on multiple web sites, go to Tux Tweaks: Apache Configuration.