Showing posts sorted by relevance for query Apple. Sort by date Show all posts
Showing posts sorted by relevance for query Apple. Sort by date Show all posts

WWDC 2017: What to expect from Apple’s big developer event keynote

WWDC 2017: What to expect from Apple’s big developer event keynote
Apple’s annual Worldwide Developers Conference kicks off with one of its trademark product keynotes, starting Monday, June 5 at 10am PT, 1pm ET. Recode will cover WWDC live from San Jose, Calif. — stay tuned for the latest.
What will Apple introduce? The company’s promotional material for WWDC doesn’t say anything specific this year. But here are several announcements Apple could make, in our best-guess order of their likelihood.

iOS 11

A new version of iOS, Apple’s operating system for the iPhone and iPad, is a near certainty. What’s more interesting is that basically nothing about iOS 11 has leaked yet — similar to last year — except a “Files” placeholder app that suggests more granular access to files on iOS devices.
We’ll be looking for a few things from Apple’s most important platform.
One is Apple’s continued evolution of Siri, its voice-based assistant. Last year, Apple opened Siri to a select set of developers, such as Uber, Square and Pinterest. It would seem obvious to open Siri further, especially as Amazon is getting traction with its rival Alexa and Google is putting muscle behind its Assistant service.
Apple will probably also have more to say about its AI efforts, one of the more important technology arms races in the industry today.

Facebook, Instagram and Google are pushing ahead with AR, and Snapchat AR selfie filters have become part of everyday communication. Apple has the advantage of controlling the default camera app that millions of people use every day. Something here seems possible — even if just some Apple-designed camera filters.
Another thing we’re curious about is some sort of augmented-reality or camera developer platform.
This month is the tenth anniversary of the first iPhone launch, which many think will lead to a more-dramatic-than-usual update to its hardware design later this year. What does that mean for iOS’s user-interface design? Perhaps Apple will make some substantial changes to the home screen, which has evolved over the years but is still mostly an array of app icons.
Other iOS possibilities could include an Apple Pay-powered peer-to-peer Venmo competitor, which Recode previously reported was being discussed; some iPad-specific features to make the tablets more capable for would-be “pro” users; group FaceTime, à la the popular House Party app; and some Apple Music updates, perhaps around its video efforts like Carpool Karaoke.
watchOS 4
Apple used WWDC last year to reveal watchOS 3, a major rethink of the software that runs the Apple Watch.
We don’t expect anything as dramatic this time. But Apple will likely introduce some new features for Watch users and developers. We’d expect to hear more about health and fitness, notifications and watch faces.
(Though we wouldn’t expect anything that requires new Watch hardware or sensors — that’s probably later in the year.)

tvOS update

Apple should also offer some new features for the software that powers the Apple TV set-top box, which seems to be doing okay but not extraordinarily well. (When’s the last time you heard about a must-have Apple TV app?)
New Siri features seem pretty obvious. Apple may also use the venue to officially announce that an Amazon Prime streaming app for Apple TV will be arriving.

macOS 10.13

A new version of the Mac’s operating system is also likely imminent, though we don’t expect anything revolutionary here.
Wish list: Breaking up the bloated iTunes app and a cleaner Apple Music experience.

Mac hardware updates

Apple will reportedly update some Mac models, according to a report from Bloomberg’s Mark Gurman, though the upgrades don’t sound extraordinary. Gurman’s report said some MacBook Pro notebooks would get faster chips, the MacBook would receive its annual update (which happened earlier in the spring last year), and the old-but-popular MacBook Air could even get an update. Nothing about a larger MacBook, or non-Intel Macs, though an iMac update also seems plausible.
More interesting: Whether Apple will say anything more to the developer audience about its plans for the mea culpa Mac Pro. It’s probably too early.

iPad updates?

Apple rolled out a new iPad this spring but didn’t touch its iPad Pro lineup, which is getting suspiciously old. Bloomberg’s Alex Webb writes Apple is “likely to unveil iPads” at WWDC, and so the iPad Pro seems the most likely candidate for a revamp.
Perhaps this is where Apple will start talking up the AI chip it has reportedly been working on.
(The iPad mini, too, is due for an update, though Apple may instead ignore it, focusing on larger iPads and iPhones.)

Some sort of Siri speaker?

Apple has “started manufacturing a long-in-the-works Siri-controlled smart speaker,” Bloomberg’s Gurman reported, with few details. This makes sense — the Amazon Echo is a popular device, Apple makes entertainment devices and owns Beats — but we don’t know much more about it.
Some speculation is that this will be less a kitchen-counter-focused gadget and something more appropriate for the living room, but not much information has leaked. Perhaps we’ll learn more this week.

What not to expect

We don’t anticipate hearing anything about AR glasses, AirPods 2.0, Apple cars or new iPhones.

WWDC 2017 Live Stream Supporting Devices

WWDC 2017 Live Stream Supporting Devices
Apple Uses HLS technology to stream WWDC 2017 Event.
It won't work on other than apple devices.
 Live streaming uses Apple’s HTTP Live Streaming (HLS) technology.
 Checkout Supported Devices:

 HLS Work on

  •      iPhone, iPad, or iPod touch with Safari on iOS 7.0 or later, 
  •      Mac with Safari 6.0.5 or later on OS X v10.8.5 or later, 
  •      Apple TV (2nd or 3rd generation) with software 6.2 or later or an 
  •      Apple TV (4th generation).

WWDC 2017 Apple Event will start in few minutes



Apple WWDC 2017 is going to start in few minutes. Please stay tune to get more updates







How to setup Mango DB on Mac OS X

How to setup Mango DB on Mac OS X

In his article, will learn how to do Mango database installation setup in Mac OS X

Image

Step 1: Download MongoDB:

Download MongoDB for MAC OS from official MongoDB site:

http://www.mongodb.org/downloads

Step 2: Install MongoDB:


$ cd ~/Download
$ tar xzf mongodb-osx-x86_64-2.6.1.tar
$ sudo mv mongodb-osx-x86_64-2.6.1 /usr/local/mongodb

Step 3: Create MongoDB Data Directory:

By default, MongoDB write/store data into the /data/db folder, you need to create this folder manually and assign proper permission as given below:


$ sudo mkdir -p /data/db
$ whoami garnaik
$ sudo chown garnaik /data/db

Step 4: Set you PATH on Bash Profile for MongoDB:

Create a ~/.bash_profile file if not exists else update, and assign /usr/local/mongodb/bin to $PATH environment variable, so that you can access MongoDB on commands easily.


$ cd ~
$ pwd/Users/garnaik
$ touch .bash_profile
$ vim .bash_profile

exportMONGO_PATH=/usr/local/mongodb
exportPATH=$PATH:$MONGO_PATH/bin

##restart terminal

$ mongo -version
MongoDB shell version: 2.6.1

Step 5: Setting for auto start MongoDB:

To auto start yor installed mongoDB, create a launchd job on your Mac OS.


$ sudo vim /Library/LaunchDaemons/mongodb.plist

And add the following content to “/Library/LaunchDaemons/mongodb.plist”


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>mongodb</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/mongodb/bin/mongod</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>WorkingDirectory</key>
<string>/usr/local/mongodb</string>
<key>StandardErrorPath</key>
<string>/var/log/mongodb/error.log</string>
<key>StandardOutPath</key>
<string>/var/log/mongodb/output.log</string>
</dict>
</plist>

Save the file and load the above job:


$ sudo launchctl load /Library/LaunchDaemons/mongodb.plist

$ ps -ef | grep mongo
0 12 1 0 4:06PM ?? 0:20.29 /usr/local/mongodb/bin/mongod
501 542 435 0 4:37PM ttys000 0:00.00 grep mongo

Now restart your MAC OS.

Step 6: Start MongoDB:

If you already have added the above steps then MongoDB will start by the time your MAC OS started.

Otherwise you have to start MongoDB by using the below command:


$ mongod

Now ready to use MongoDB,


$ mongo

> mongod -version
MongoDB shell version: 2.6.1

> show dbs
Local (empty)

 

How to read data from properties file and store in to Map

How to read data from properties file and store in to Map

In this article we are going to discuss about how to read data from properties and store in to map.

Filename: sample.properties
## Web Site information
site1 = www.google.com
site2 = www.becbe.com
site3 = www.linux.com
site4 = www.motorola.com
site5 = www.apple.com

Filename: ReadPropertiesFileToMap.java
package com.becbe.sample;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;

/**
 * 
 */

/**
 * @author tponnam
 *
 */
public class ReadPropertiesFileToMap {
 private String filePath="d:\\sample.properties";
 
 /**
  * This method validate the file existence 
  * @return
  */
 private File getPropertiesFile()
 {
  File file = new File(filePath);
  if( !file .exists()){
   try {
    file.createNewFile();
    
   } catch (IOException e) {
    
   }
  }
  return file;
 }
 
 /**
  * This Method reads data from properties file and store into Map
  * @return
  */
 public HashMap getSBX5kNodeToProxyPortMap(){
     HashMap map = new HashMap();
  Properties properties = new Properties();
  try {
   properties.load(new FileInputStream(getPropertiesFile()));
     for (String key : properties.stringPropertyNames()) {
         String value = properties.getProperty(key);
         map.put(key, value);
       }

  } catch (FileNotFoundException e) {
   e.printStackTrace();
  } catch (IOException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }
  
  return map;
  
 }
 public static void main(String[] args) {
  
  ReadPropertiesFileToMap fileToMap = new ReadPropertiesFileToMap();
  HashMap map = fileToMap.getSBX5kNodeToProxyPortMap();
  Iterator iter = map.entrySet().iterator();
   
  while (iter.hasNext()) {
   Map.Entry mEntry = (Map.Entry) iter.next();
   System.out.println(mEntry.getKey() + " : " + mEntry.getValue());
  }
 }
}
Output:
site5 : www.apple.com
site4 : www.motorola.com
site3 : www.linux.com
site2 : www.becbe.com
site1 : www.google.com

How to define and loop Array in Angular JS

How to define and loop  Array in Angular JS

In the previous post we learn how setup angular JS and execution. Today we will learn following directives

ng-init : Is used to initialize the varibale(number, strings, arrays ..etc)

ng-model : It is used to synchronize variable with model

ng-repeat: This directive is used to iterate elements in array

The follwoing example demonstrates, how to define array and display elements in html file


<!DOCTYPE html>
<html>
<script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<body>

<div data-ng-app="" data-ng-init="brands=['apple','motorola','becbe']">
<p>Looping with ng-repeat:</p>
<ul>
<li data-ng-repeat="x in brands">
{{ x }}
</li>
</ul>
</div>

</body>
</html>

Output:

Looping with ng-repeat:

  • apple
  • motorola
  • becbe

 

How to copy file content using Java

How to copy file content using Java

In this article we are going to discuss about how to copy file content to another file

Filename:sourceFile.txt
site1 = www.google.com
site2 = www.becbe.com
site3 = www.linux.com
site4 = www.motorola.com
site5 = www.apple.com
Filename: targetFile.txt
sample file

Filename: FileCopyTest .java

package com.becbe.java.file;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.channels.FileChannel;
/**
 * This class shows demo to copy file content
 * @author bebce
 *
 */
public class FileCopyTest {

 public static String sourceFilePath="d:\\sourceFile.txt";
 public static String targetPath="d:\\targetFile.txt";
 /**
  * This method is used to copy content from one file other
  * @param sourceFile
  * @param targetFile
  * @return
  */
 public static boolean copy(File sourceFile, File targetFile)
 {
  boolean success = false;
  //File availability verification
     if(!sourceFile.exists() || !targetFile.exists())
     {
      return false;
     }
  try {
   //Reading file content from source File
   FileInputStream sourceFileStream = new FileInputStream(sourceFile);
   FileChannel sourceFileChannel = sourceFileStream.getChannel();
   //writing file content 
   FileOutputStream targetFileStream = new FileOutputStream(targetFile);
   FileChannel targetFileChannel=targetFileStream.getChannel();
   //copy file content
   sourceFileChannel.transferTo(0, sourceFile.length(), targetFileChannel);
   success = true;
  }
  catch (Exception e) {
   // TODO: handle exception
   
  }
    
  return success;
 }
 
 /**
  * @param args
  * @throws IOException 
  */
 public static void main(String[] args) {
  FileCopyTest cpTest=new FileCopyTest(); 
     File sourceFile = new File(cpTest.sourceFilePath);
     File targetFile = new File(cpTest.targetPath);
      if(cpTest.copy(sourceFile, targetFile))
     {
      System.out.println("File copied successfully ");
     }else{
      System.out.println("File copy operation failed ");
     }
     
  
 }

}


Output:
File copied successfully 

MAC OS X - Shortcut keys Sleep, log out, and shut down

MAC OS X  - Shortcut keys Sleep, log out, and shut down
               Shortcut               Description
Power button Tap to turn on your Mac or wake your Mac from sleep.  
Hold for 1.5 seconds while your Mac is awake to display a dialog asking if you want to restart, sleep, or shut down.
Hold for 5 seconds to force your Mac to turn off.
Command–Control–Power button Force your Mac to restart.
Command–Option–Power button Put your Mac to sleep.
Shift–Control–Power button Put your displays to sleep.
Command–Control–Power button Quit all apps, then restart your Mac. If any open documents have unsaved changes, you'll be asked whether you want to save them.
Command–Option–Control–Power button Quit all apps, then shut down your Mac. If any open documents have unsaved changes, you'll be asked whether you want to save them.
Command-Shift-Q Log out of your OS X user account. You'll be asked to confirm.
Command-Shift-Option-Q Log out of your OS X user account immediately, without being asked to confirm.

 

Reference:

https://support.apple.com/

How to use JDK 7 CopyOnWriteArrayList

How to use JDK 7 CopyOnWriteArrayList
package com.onlinecodegeek.java.numbers;import java.util.ArrayList;import java.util.Collections;import java.util.List;import java.util.Random;import java.util.concurrent.CopyOnWriteArrayList;public class CopyOnWriteArrayListDemo {  public static void main(String[] args) {    CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<String>();    startUpdatingThread(list);    for (String element : list) {      System.out.println("Element :" + element);    }    updatingThread.interrupt();    List<String> lista = Collections.synchronizedList(new ArrayList<String>());    lista.add("hi");    lista.add("hello");    lista.add("welcome");    lista.add("java");    lista.add("servlet");    lista.add("onlinecodegeek");    lista.add("apple");    lista.add("motorola");    lista.add("google");    lista.add("becbe");       startUpdatingThread(lista);    synchronized (lista) {      for (String element : lista) {        System.out.println("Element :" + element);      }    }    updatingThread.interrupt();  }  static Thread updatingThread;  private static void startUpdatingThread(final List<String> list) {    updatingThread = new Thread(new Runnable() {      long counter = 0;      public void run() {        while (!Thread.interrupted()) {          int size = list.size();          Random random = new Random();          if (random.nextBoolean()) {            if (size > 1) {              list.remove(random.nextInt(size - 1));            }          } else {            if (size < 20) {              list.add("Random string " + counter);            }          }          counter++;        }      }    });    updatingThread.start();  }}

WWDC 2017 Apple Event Live Streaming

WWDC 2017 Apple Event Live Streaming

Live Streaming will start at !0:00 AM PT

Checkout WWDC 2016

WWDC 2016 Apple Event

WWDC 2016 Apple Event
Streaming video support is only available in Mac and IOS devices

MAC OS X - Shortcut keys to Manipulate documents

MAC OS X  - Shortcut keys to Manipulate documents
               Shortcut               Description
Command-B Boldface the selected text, or turn boldfacing on or off. 
Command-I Italicize the selected text, or turn italics on or off.
Command-U Underline the selected text, or turn underlining on or off.
Command-T Show or hide the Fonts window.
Command-D Select the Desktop folder from within an Open dialog or Save dialog.
Command-Control-D Show or hide the definition of the selected word.
Command-Shift-Colon (:) Display the Spelling and Grammar window.
Command-Semicolon (;) Find misspelled words in the document.
Option-Delete Delete the word to the left of the insertion point.
Control-H Delete the character to the left of the insertion point. Or use Delete.
Control-D Delete the character to the right of the insertion point. Or use Fn-Delete.
Fn-Delete Forward delete on keyboards that don't have a Forward Delete   key. Or use Control-D.
Control-K Delete the text between the insertion point and the end of the line or paragraph.
Command-Delete Select Delete or Don't Save in a dialog that contains a Delete or Don't Save button.
Fn–Up Arrow Page Up: Scroll up one page. 
Fn–Down Arrow Page Down: Scroll down one page.
Fn–Left Arrow Home: Scroll to the beginning of a document.
Fn–Right Arrow End: Scroll to the end of a document.
Command–Up Arrow Move the insertion point to the beginning of the document.
Command–Down Arrow Move the insertion point to the end of the document.
Command–Left Arrow Move the insertion point to the beginning of the current line.
Command–Right Arrow Move the insertion point to the end of the current line.
Option–Left Arrow Move the insertion point to the beginning of the previous word.
Option–Right Arrow Move the insertion point to the end of the next word.
Command–Shift–Up Arrow Select the text between the insertion point and the beginning of the document.
Command–Shift–Down Arrow Select the text between the insertion point and the end of the document.
Command–Shift–Left Arrow Select the text between the insertion point and the beginning of the current line.
Command–Shift–Right Arrow Select the text between the insertion point and the end of the current line.
Shift–Up Arrow Extend text selection to the nearest character at the same horizontal location on the line above.
Shift–Down Arrow Extend text selection to the nearest character at the same horizontal location on the line below.
Shift–Left Arrow Extend text selection one character to the left.
Shift–Right Arrow Extend text selection one character to the right.
Shift–Option–Up Arrow Extend text selection to the beginning of the current paragraph, then to the beginning of the following paragraph if pressed again.
Shift–Option–Down Arrow Extend text selection to the end of the current paragraph, then to the end of the following paragraph if pressed again.
Shift–Option–Left Arrow Extend text selection to the beginning of the current word, then to the beginning of the following word if pressed again.
Shift–Option–Right Arrow Extend text selection to the end of the current word, then to the end of the following word if pressed again.
Control-A Move to the beginning of the line or paragraph.
Control-E Move to the end of a line or paragraph.
Control-F Move one character forward.
Control-B Move one character backward.
Control-L Center the cursor or selection in the visible area.
Control-P Move up one line.
Control-N Move down one line.
Control-O Insert a new line after the insertion point.
Control-T Swap the character behind the insertion point with the character in front of the insertion point.
Command–Left Curly Bracket ({) Left align.
Command–Right Curly Bracket (}) Right align.
Command–Shift–Vertical bar (|) Center align.
Command-Option-F Go to the search field. 
Command-Option-T Show or hide a toolbar in the app.
Command-Option-C Copy Style: Copy the formatting settings of the selected item to the Clipboard.
Command-Option-V Paste Style: Apply the copied style to the selected item.
Command-Shift-Option-V Paste and Match Style: Apply the style of the surrounding content to the item pasted within that content.
Command-Option-I Show or hide the inspector window.
Command-Shift-P Page setup: Display a window for selecting document settings.
Command-Shift-S Display the Save As dialog, or duplicate the current document.
Command–Shift–
Minus sign (-)    
Decrease the size of the selected item.
Command–Shift–
Plus sign (+)
Increase the size of the selected item. Command–Equal sign (=) performs the same function.
Command–Shift–
Question mark (?)
Open the Help menu.

 

Referece:

https://support.apple.com/en-in/HT201236