Main Part: Store huge datasets in “almost” SQL
Key Features of Cassandra DB:
Querying by key, or key range (secondary indices are also available)
Data can have expiration (set on INSERT)
Writes can be much faster than reads (when reads are disk-bound)
Map/reduce possible with Apache Hadoop
All nodes are similar, as opposed to Hadoop/HBase
Very good and reliable cross-datacenter replication
Distributed counter data type
You can write triggers in Java
Best use: When you need to store data so huge that it doesn’t fit on server, but still want a friendly familiar interface to it.
Examples: Web analytics, to count hits by hour, by browser, by IP, etc. Transaction logging. Data collection from huge sensor arrays.
Regards,
Alok
Mobile application development is a set of processes and procedures involved in writing application software for small, handheld or wireless computing devices such as smart phones, PDAs, EDAs or tablets.
In Mobile App development process, Mobile User Interface (UI) Design is also an essential part considering constraints & contexts, screen, input and mobility as outlines for design.
One critical difference between Mobile application development and traditional software development, is that mobile applications (apps) are often written specifically to take advantage of the unique features a particular mobile device offers. So, the development should be centric on optimum performance for a given device, even when application is interacting with external applications.
In such a scenario (interaction with external world) REST API is the best option. REST stands for Representational State Transfer & it is a simple stateless architecture and a communication approach that generally runs over HTTP.
REST is preferred over SOAP (Simple Object Access Protocol) for development of web services as the latter is quite heavyweight and consumes comparatively greater bandwidth. Owing to its decoupled architecture and lighter weight communications, REST usage is very prevalent in mobile applications. It is a better fit for use over the Internet and easily binds with cloud-based APIs like those of Amazon, Microsoft, and Google.
Here is an example to ” Create REST API client Async in android ”
1. This is AsyncTask which will run in background with affecting the UI.
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import android.os.AsyncTask;
public class CallRestApi extends AsyncTask
{
public AsyncResponse delegate=null;
public CallRestApi(AsyncResponse asyncResponse) {
delegate = asyncResponse;//Assigning call back interfacethrough constructor
}
@Override
protected void onPreExecute() {
// if you want, start progress dialog here
}
@Override
protected String doInBackground(String… params)
{
String urlString = params[0];
String resultToDisplay = “”;
InputStream in = null;
try
{
URL url = new URL(urlString);
HttpURLConnection urlConnection = (HttpURLConnection) url
.openConnection();
in = new BufferedInputStream(urlConnection.getInputStream());
resultToDisplay = convertStreamToString(in);
in.close();
} catch (Exception e)
{
System.out.println(e.getMessage());
return e.getMessage();
}
return resultToDisplay;
}
@Override
protected void onPostExecute(String result) {
// if you started progress dialog dismiss it here
delegate.processFinish(result);
}
private static String convertStreamToString(InputStream is)
{
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
StringBuilder sb = new StringBuilder();
String line = null;
try
{
while ((line = reader.readLine()) != null)
{
sb.append(line + “\n”);
}
}
catch (IOException e)
{
e.printStackTrace();
}
finally
{
try
{
is.close();
}
catch (IOException e)
{
e.printStackTrace();
}
}
return sb.toString();
}
}
2. Create Interface for getting result.
This is for getting AsyncResponse in the activity class
public interface AsyncResponse {
void processFinish(Object output);
}
3. Call REST API client from activity class
private void functionName(String newUrl)
{
CallRestApi client = new CallRestApi(new AsyncResponse()
{
@Override
public void processFinish(Object output) {
String responseResult = ((String) output);
});
}
try
{
client.execute(new String[] { newUrl });
}
catch (Exception e)
{
e.printStackTrace();
}
}
Enjoy 🙂
Avinash
That is all for this article, in case you need Salesforce Implementation Services for any Salesforce related work, then please feel free to reach out to sales@girikon.com
Main point: Retains some friendly properties of SQL. (Query, index)
Key Features Of Mongo DB:
Master/slave replication (auto failover with replica sets)
Sharding built-in Queries are javascript expressions
Run arbitrary javascript functions server-side
Better update-in-place than CouchDB
Uses memory mapped files for data storage
Performance over features
Journaling (with –journal) is best turned on
On 32bit systems, limited to ~2.5Gb
Text search integrated
GridFS to store big data + metadata (not actually an FS)
Has geospatial indexing
Data center aware
Best used: If you need dynamic queries. If you prefer to define indexes, not map/reduce functions. If you need good performance on a big DB. If you wanted CouchDB, but your data changes too much, filling up disks.
Examples: For most things that you would do with MySQL or PostgreSQL, but having predefined columns really holds you back.
Regards,
Alok
Step 1: Attach (plug in) the printer with one computer.
Step 2: Open the Devices and Printers where you will see a list with all external devices installed on your PC.
Step 3: Go to the Printers section and select the printer you want to share.
Step 4: Right click on it -> Select printer properties -> Select Printer
Step 5: Click on the sharing tab and check share this printer box then click ok.
Regards,
Mahesh
Step 1: Look at the infrastructure area then plan how to do cabling.
Step 2: To connect PC/devices, setup a switch/hub in suitable area.
Step 3: Connect all computers and devices to the switch/hub through straight-through cable.
Step 4: Assign the IP address to all computers and devices.
Step 5: Check the connectivity using ping 192.168.1.10 command in command prompt.
Now any other cabled computer can access on local network.
Regards,
Mahesh
Recently i created a Penalization calculator which is written in Perl [.exe] language to calculate panel required to manufacture a printed circuited board. I did it for one of our customers. The output screen for this calculator looks like below:
I wanted to integrate the same penalization calculator in one of the projects which is written in java.
So I code like mentioned below to call exe in java.
package panelcalculator;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
public class PanelCalculator {
public String calculate(String strParms)
{
String result = “”;
try {
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec(strParms);
InputStream inStream = process.getInputStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(inStream));
String data = “”;
while ((data = reader.readLine()) != null) {
result += data + ” “;
}
reader.close();
inStream.close();
process.destroy();
}
catch (Exception e)
{
result = e.toString();
}
return result.trim();
}
public static void main(String arg[])
{
PanelCalculator pc = new PanelCalculator();
String result = pc.calculate(“D:\\MyWebapp\\PanelizationCalculator\\PanelCalculator.exe PanelX=12 PanelY=18 NLayers=2 Spec=\”IPC-6012 Class 2\” BoardX=12 BoardY=2.25 Spacing=0.2 LaserDrill=N Flex=N Impedance=N ImpSingleEnd=0 ImpDiff=0 EdgePlating=N”);
if(result!=null){
System.out.println(result);
}
}
}
And finally i got output like following, exactly the same as I wanted:
UsableX=10.2 UsableY=14.6 MaxUp=4
Thank you.
Narendra
Connectivity is the key in the modern world. Everyone is looking at 24*7 connectivity to achieve the highest levels in sales, marketing and services.
The Salesforce1 Customer Platform has a bouquet of new APIs, mobile tools and more to enable you to connect to all your devices and to all your customer data. It empowers and prepares you for this new word where hyper-connectivity is setting new standards of expectations among customers. The platform readies you for very personalized customer service with real-time insights into customer problems and needs.
With Salesforce1 you can get the following features :
All your sales, service, and marketing data at your finger tip
Instantly bring your customizations like workflow, permissions, and sharing settings to mobile.
All your custom objects, fields, and any app you’ve integrated or built declaratively is now mobile.
The apps you’ve downloaded from the AppExchange are now accessible from anywhere.
Global and contextual actions you’ve created for the publisher.
View all the posts and processes that need your attention in the notifications center.
Connect with other employees and collaborate on sales opportunities, service cases, campaigns, and projects.
Access everything you need from your favorite device, iOS, or Android.
With complete and open APIs, developers can build the next generation of apps today. Mobile-ready and more accessible, it’s the fastest way to connect anything to everything. And sell, service, and market on any device. Everywhere.
That’s all folks for today. That’s all for this article, in case you need Certified Salesforce Consultant then please feel free to reach out to us at sales@girikon.com