LeetCode – Rotate Image (Java) http://ift.tt/1qOwxFl http:...

Please Visit: http://ift.tt/1ajReyV



LeetCode – Rotate Image (Java)

http://ift.tt/1qOwxFl

http://ift.tt/1qOwxFr



LeetCode – Rotate Image (Java)







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1qghCpX

via LifeLong Community

LeetCode – 3Sum Closest (Java) http://ift.tt/1qOww4c http:...

Please Visit: http://ift.tt/1ajReyV



LeetCode – 3Sum Closest (Java)

http://ift.tt/1qOww4c

http://ift.tt/1qOww4i



LeetCode – 3Sum Closest (Java)







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1qOww4m

via LifeLong Community

Java theory and practice: Plugging memory leaks with weak references http://ift.tt/rYf96H...

Please Visit: http://ift.tt/1ajReyV



Java theory and practice: Plugging memory leaks with weak references

http://ift.tt/1qghBCD

http://ift.tt/1qOwvgN



Java theory and practice: Plugging memory leaks with weak references







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1qOwvgR

via LifeLong Community

The WeakHashMap Class - O'Reilly Media http://ift.tt/1iwSC6e...

Please Visit: http://ift.tt/1ajReyV



The WeakHashMap Class - O'Reilly Media

http://ift.tt/1iwSC6e

http://ift.tt/1iwSzY9



The WeakHashMap Class - O'Reilly Media







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1iwSzYb

via LifeLong Community

Difference Between Soft, Weak And Phantom References In Java http://ift.tt/UBIdkC...

Please Visit: http://ift.tt/1ajReyV



Difference Between Soft, Weak And Phantom References In Java

http://ift.tt/1iwSBPM

http://ift.tt/1p1NRYi



Difference Between Soft, Weak And Phantom References In Java







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1iwSBPQ

via LifeLong Community

Java Traps: Java Interview Questions http://ift.tt/1iwSwM6 http://m...

Please Visit: http://ift.tt/1ajReyV



Java Traps: Java Interview Questions

http://ift.tt/1iwSwM6

http://ift.tt/1iwSwM7



Java Traps: Java Interview Questions







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1iwSuDH

via LifeLong Community

Top 25 Most Frequently Asked Interview Core Java Interview Questions And Answers http://javahungry.b...

Please Visit: http://ift.tt/1ajReyV



Top 25 Most Frequently Asked Interview Core Java Interview Questions And Answers

http://ift.tt/1p4R3jQ

http://ift.tt/UBIdB4



Top 25 Most Frequently Asked Interview Core Java Interview Questions And Answers







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/UBIfZI

via LifeLong Community

Difference Between Static And Dynamic Class Loading In Java http://ift.tt/UBIdkC...

Please Visit: http://ift.tt/1ajReyV



Difference Between Static And Dynamic Class Loading In Java

http://ift.tt/1p4R2N1

http://ift.tt/UBIdkE



Difference Between Static And Dynamic Class Loading In Java







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1p4R5Iv

via LifeLong Community

Java Tricky Programming questions Part 2 http://ift.tt/1lu9jUw...

Please Visit: http://ift.tt/1ajReyV



Java Tricky Programming questions Part 2

http://ift.tt/1vcmDQv



Java Tricky Programming questions Part 2







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1lu9jUy

via LifeLong Community

Change the URI (URL) for a remote Git repository - Stack Overflow git remote set-url origin git://n...

Please Visit: http://ift.tt/1ajReyV



Change the URI (URL) for a remote Git repository - Stack Overflow



git remote set-url origin git://new.url.here

(see git help remote) or you can just edit .git/config and change the URLs there. You're not in any danger of losing history unless you do something very silly (and if you're worried, just make a copy of your repo, since your repo is your history.)

http://ift.tt/1ldJUOH

http://ift.tt/1vcmBI9



Change the URI (URL) for a remote Git repository - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1lu9hMn

via LifeLong Community

What is Java String Pool? http://ift.tt/1oYCdxi

Please Visit: http://ift.tt/1ajReyV



What is Java String Pool?

http://ift.tt/1oYCdxi



What is Java String Pool?







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1pUokiY

via LifeLong Community

Flyweight Pattern in Java – Example Tutorial http://ift.tt/1pUok2w...

Please Visit: http://ift.tt/1ajReyV



Flyweight Pattern in Java – Example Tutorial

http://ift.tt/1oYCdgN



Flyweight Pattern in Java – Example Tutorial







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1oYCfVT

via LifeLong Community

java - Examples of GoF Design Patterns - Stack Overflow http://ift.tt/1oYCd0j...

Please Visit: http://ift.tt/1ajReyV



java - Examples of GoF Design Patterns - Stack Overflow

http://ift.tt/1pUoiHW



java - Examples of GoF Design Patterns - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1oYCdgx

via LifeLong Community

Regular Expression Matching Can Be Simple And Fast http://ift.tt/zrzFug

Please Visit: http://ift.tt/1ajReyV



Regular Expression Matching Can Be Simple And Fast

http://ift.tt/zrzFug



Regular Expression Matching Can Be Simple And Fast







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1pUoirv

via LifeLong Community

Vagrant: What, Why, and How - Tuts+ Code Tutorial http://ift.tt/TT2aCK...

Please Visit: http://ift.tt/1ajReyV



Vagrant: What, Why, and How - Tuts+ Code Tutorial

http://ift.tt/1dOU9RJ



Vagrant: What, Why, and How - Tuts+ Code Tutorial







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/TT2bXj

via LifeLong Community

Add CDATA section to DOM document | Examples Java Code Geeks Element element = doc.getDocumentElement...

Please Visit: http://ift.tt/1ajReyV



Add CDATA section to DOM document | Examples Java Code Geeks

Element element = doc.getDocumentElement();31 CDATASection cdata = doc.createCDATASection("mycdata");32 element.appendChild(cdata);

http://ift.tt/1p2cFNH

http://ift.tt/TT291E



Add CDATA section to DOM document | Examples Java Code Geeks







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/TT291G

via LifeLong Community

How do I build xml CDATA sections? | Java Examples http://ift.tt/1p2cFgL...

Please Visit: http://ift.tt/1ajReyV



How do I build xml CDATA sections? | Java Examples

http://ift.tt/TT2a5K



How do I build xml CDATA sections? | Java Examples







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1p2cFgP

via LifeLong Community

java - Form too Large Exception - Stack Overflow import org.eclipse.jetty.server.Server; //... other...

Please Visit: http://ift.tt/1ajReyV



java - Form too Large Exception - Stack Overflow

import org.eclipse.jetty.server.Server;

//... other code here...//

int port = 8080;

Server server = new Server(port);

server.setAttribute("org.eclipse.jetty.server.Request.maxFormContentSize", -1);

http://ift.tt/1qGBAaW

http://ift.tt/1qGByjo



java - Form too Large Exception - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1qGBArg

via LifeLong Community

Is your pay measuring up? The 2014 tech salary guide http://ift.tt/1sazNiT...

Please Visit: http://ift.tt/1ajReyV



Is your pay measuring up? The 2014 tech salary guide

http://ift.tt/1sazNiV



If you want to see where you fit on the tech pay scale, this IT salary guide covers every tech job from CIO to help desk professionals







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1sazNiW

via LifeLong Community

amitph.com > Java Tutorials: Java 8 Streams API - Terminal Operations http://ift.tt/1sazPat...

Please Visit: http://ift.tt/1ajReyV



amitph.com > Java Tutorials: Java 8 Streams API - Terminal Operations

http://ift.tt/1qE9AVk



amitph.com > Java Tutorials: Java 8 Streams API - Terminal Operations







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1qE9AVm

via LifeLong Community

amitph.com > Java Tutorials: Java 8 Streams API - Intermediate Operations http://ift.tt/1sazOU1...

Please Visit: http://ift.tt/1ajReyV



amitph.com > Java Tutorials: Java 8 Streams API - Intermediate Operations

http://ift.tt/1qE9AEN



amitph.com > Java Tutorials: Java 8 Streams API - Intermediate Operations







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1qE9AEP

via LifeLong Community

amitph.com > Java Tutorials: Java 8 Streams API - Laziness and Performance Optimization http://java.amitph.com...

Please Visit: http://ift.tt/1ajReyV



amitph.com > Java Tutorials: Java 8 Streams API - Laziness and Performance Optimization

http://ift.tt/1oZG7UN



amitph.com > Java Tutorials: Java 8 Streams API - Laziness and Performance Optimization







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1hOOp2K

via LifeLong Community

Understanding Java 8 Streams API | Javalobby http://ift.tt/1hOOpQm...

Please Visit: http://ift.tt/1ajReyV



Understanding Java 8 Streams API | Javalobby

http://ift.tt/1dCoHGV



Understanding Java 8 Streams API | Javalobby







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1hOOoMr

via LifeLong Community

Lambda Expressions in Java 8 | Dr Dobb's A lambda expression is a block of code with parameters. Use...

Please Visit: http://ift.tt/1ajReyV



Lambda Expressions in Java 8 | Dr Dobb's

A lambda expression is a block of code with parameters.

Use a lambda expression whenever you want a block of code executed at a later point in time.

Lambda expressions can be converted to functional interfaces.

Lambda expressions can access effectively final variables from the enclosing scope.

Method and constructor references refer to methods or constructors without invoking them.

You can now add default and static methods to interfaces that provide concrete implementations.

You must resolve any conflicts between default methods from multiple interfaces.

http://ift.tt/1fY2fsa

http://ift.tt/1oZGaQj



Lambda Expressions in Java 8 | Dr Dobb's







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1oZGaQl

via LifeLong Community

Double Brace Initialization in Java! Java Initialization technique Well, the double brace ( {{ .. }}...

Please Visit: http://ift.tt/1ajReyV



Double Brace Initialization in Java! Java Initialization technique

Well, the double brace ( {{ .. }} ) initialization in Java works this way. The first brace creates a new AnonymousInnerClass, the second declares an instance initializer block that is run when the anonymous inner class is instantiated.

http://ift.tt/LnJk2z

http://ift.tt/1hOOpjs



Double Brace Initialization in Java! Java Initialization technique







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1oZG7Ec

via LifeLong Community

How Math in JDK8 Detect Overflow JDk8 add methods such as add/subtract/multiply/increment/decrement/...

Please Visit: http://ift.tt/1ajReyV



How Math in JDK8 Detect Overflow

JDk8 add methods such as add/subtract/multiply/increment/decrement/Exact etc to throw ArithmeticException if it the result overflows. The code: public static long addExact(long x, long y) {

long r = x + y;

// HD 2-12 Overflow iff both arguments have the...



JDk8 add methods such as add/subtract/multiply/increment/decrement/Exact etc to throw ArithmeticException if it the result overflows. The code: public static long addExact(long x, long y) { long r = x + y; // HD 2-12 Overfl...







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/TPwKgD

via LifeLong Community

LeetCode – 3Sum Given an array S of n integers, are there elements a, b, c in S such that a + b + c ...

Please Visit: http://ift.tt/1ajReyV



LeetCode – 3Sum

Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.

http://ift.tt/1oilQh2

http://ift.tt/1oilRSi



LeetCode – 3Sum







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1oilQh4

via LifeLong Community

Working With and Around the Same-Origin Policy - SitePoint http://ift.tt/1v5yQX3...

Please Visit: http://ift.tt/1ajReyV



Working With and Around the Same-Origin Policy - SitePoint

http://ift.tt/1eGmKsQ

http://ift.tt/1oilRBO



Working With and Around the Same-Origin Policy - SitePoint







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1v5ySye

via LifeLong Community

Bucket Sort | GeeksforGeeks http://ift.tt/1inxkqe http://ift.tt/1kCENWW...

Please Visit: http://ift.tt/1ajReyV



Bucket Sort | GeeksforGeeks

http://ift.tt/1inxkqe

http://ift.tt/1v5yS1d



Bucket Sort | GeeksforGeeks







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1v5yQGw

via LifeLong Community

Algorithm of the Week: Bucket Sort | Javalobby http://ift.tt/1mN5ZR6...

Please Visit: http://ift.tt/1ajReyV



Algorithm of the Week: Bucket Sort | Javalobby

http://ift.tt/ZfCEIh

http://ift.tt/1v5yRKz



Algorithm of the Week: Bucket Sort | Javalobby







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1v5yRKD

via LifeLong Community

Reshared post from Programming.com:

Please Visit: http://ift.tt/1ajReyV






Original Post from Programming.com:


How do I find the longest palindrome in a string? #LoL #Programming






palindrome.png







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1v5yPlW

via LifeLong Community

Algorithm of the Week: Bucket Sort | Javalobby http://ift.tt/1mN5ZR6...

Please Visit: http://ift.tt/1ajReyV



Algorithm of the Week: Bucket Sort | Javalobby

http://ift.tt/ZfCEIh

http://ift.tt/1povSgm



Algorithm of the Week: Bucket Sort | Javalobby







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1mN5Ywl

via LifeLong Community

Sorting algorithms/Counting sort - Rosetta Code public static void countingSort(int[] array, int min...

Please Visit: http://ift.tt/1ajReyV



Sorting algorithms/Counting sort - Rosetta Code

public static void countingSort(int[] array, int min, int max){

int[] count= new int[max - min + 1];

for(int number : array){

count[number - min]++;

}

int z= 0;

for(int i= min;i <= max;i++){

while(count[i - min] > 0){

array[z]= i;

z++;

count[i - min]--;

}

}

}

http://ift.tt/1povRZK

http://ift.tt/1povQoy



Sorting algorithms/Counting sort - Rosetta Code







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1mN5XZu

via LifeLong Community

Find the Minimum length Unsorted Subarray, sorting which makes the complete array sorted | GeeksforGeeks...

Please Visit: http://ift.tt/1ajReyV



Find the Minimum length Unsorted Subarray, sorting which makes the complete array sorted | GeeksforGeeks



1) Find the candidate unsorted subarray

a) Scan from left to right and find the first element which is greater than the next element. Let s be the index of such an element. In the above example 1, s is 3 (index of 30).

b) Scan from right to left and find the first element (first in right to left order) which is smaller than the next element (next in right to left order). Let e be the index of such an element. In the above example 1, e is 7 (index of 31).

2) Check whether sorting the candidate unsorted subarray makes the complete array sorted or not. If not, then include more elements in the subarray.

a) Find the minimum and maximum values in arr[s..e]. Let minimum and maximum values be min and max. min and max for [30, 25, 40, 32, 31] are 25 and 40 respectively.

b) Find the first element (if there is any) in arr[0..s-1] which is greater than min, change s to index of this element. There is no such element in above example 1.

c) Find the last element (if there is any) in arr[e+1..n-1] which is smaller than max, change e to index of this element. In the above example 1, e is changed to 8 (index of 35)

http://ift.tt/1mN5TZJ

http://ift.tt/1mN5Ug2



Find the Minimum length Unsorted Subarray, sorting which makes the complete array sorted | GeeksforGeeks







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1povOgF

via LifeLong Community

cortesi - Cyclesort - a curious little sorting algorithm http://ift.tt/1povNco...

Please Visit: http://ift.tt/1ajReyV



cortesi - Cyclesort - a curious little sorting algorithm

http://ift.tt/1povNco

http://ift.tt/1mN5TJb



cortesi - Cyclesort - a curious little sorting algorithm







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1povOgp

via LifeLong Community

Which sorting algorithm makes minimum number of memory writes? | GeeksforGeeks Among the sorting algorithms...

Please Visit: http://ift.tt/1ajReyV



Which sorting algorithm makes minimum number of memory writes? | GeeksforGeeks



Among the sorting algorithms that we generally study in our data structure and algorithm courses, Cycle Sort (Link->http://ift.tt/1povNZZ) almost always makes less number of writes compared to Selection Sort. In Cycle Sort, each value is either written zero times, if it’s already in its correct position, or written one time to its correct position. This matches the minimal number of overwrites required for a completed in-place sort.

http://ift.tt/1povMW4

http://ift.tt/1mN5RRC



Which sorting algorithm makes minimum number of memory writes? | GeeksforGeeks







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1povO01

via LifeLong Community

Merge Sort for Linked Lists | GeeksforGeeks http://ift.tt/1m5tNjX...

Please Visit: http://ift.tt/1ajReyV



Merge Sort for Linked Lists | GeeksforGeeks

http://ift.tt/1m5tNjX

http://ift.tt/1povL4v



Merge Sort for Linked Lists | GeeksforGeeks







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1mN5RAX

via LifeLong Community

水中的鱼: [LeetCode] Median of Two Sorted Arrays 解题报告 1: double findMedianSortedArrays(int A[], int m, int...

Please Visit: http://ift.tt/1ajReyV



水中的鱼: [LeetCode] Median of Two Sorted Arrays 解题报告

1: double findMedianSortedArrays(int A[], int m, int B[], int n) {

2: if((n+m)%2 ==0)

3: {

4: return (GetMedian(A,m,B,n, (m+n)/2) + GetMedian(A,m,B,n, (m+n)/2+1))/2.0;

5: }

6: else

7: return GetMedian(A,m,B,n, (m+n)/2+1);

8: }

9: int GetMedian(int a[], int n, int b[], int m, int k)

10: {

11: assert(a && b);

12: if (n <= 0) return b[k-1];

13: if (m <= 0) return a[k-1];

14: if (k <= 1) return min(a[0], b[0]);

15: if (b[m/2] >= a[n/2])

16: {

17: if ((n/2 + 1 + m/2) >= k)

18: return GetMedian(a, n, b, m/2, k);

19: else

20: return GetMedian(a + n/2 + 1, n - (n/2 + 1), b, m, k - (n/2 + 1));

21: }

22: else

23: {

24: if ((m/2 + 1 + n/2) >= k)

25: return GetMedian( a, n/2,b, m, k);

26: else

27: return GetMedian( a, n, b + m/2 + 1, m - (m/2 + 1),k - (m/2 + 1));

28: }

29: }

http://ift.tt/1liTYGl

http://ift.tt/1v49clo



水中的鱼: [LeetCode] Median of Two Sorted Arrays 解题报告







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1liTYGp

via LifeLong Community

Median of two sorted arrays | GeeksforGeeks http://ift.tt/1v49aKn...

Please Visit: http://ift.tt/1ajReyV



Median of two sorted arrays | GeeksforGeeks

http://ift.tt/1liTW15

http://ift.tt/1liTUX1



Median of two sorted arrays | GeeksforGeeks







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1liTUX3

via LifeLong Community

Write a C program to calculate pow(x,n) | GeeksforGeeks Time Complexity of optimized solution: O(logn...

Please Visit: http://ift.tt/1ajReyV



Write a C program to calculate pow(x,n) | GeeksforGeeks



Time Complexity of optimized solution: O(logn)

Let us extend the pow function to work for negative y and float x.

/* Extended version of power function that can work for float x and negative y*/#include<stdio.h> float power(float x, int y){ float temp; if( y == 0) return 1; temp = power(x, y/2); if (y%2 == 0) return temp*temp; else { if(y > 0) return x*temp*temp; else return (temp*temp)/x; }}

http://ift.tt/1l3777t

http://ift.tt/1l3777u



Write a C program to calculate pow(x,n) | GeeksforGeeks







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1l3777w

via LifeLong Community

Closest Pair of Points: Divide and Conquer http://ift.tt/1qxmzYT http...

Please Visit: http://ift.tt/1ajReyV






The aim of this task is to provide a function to find the closest two points among a set of given points in two dimensions, i.e. to solve the Closest pair of points problem in the planar case. The straightforward solution is a O(n2) algorithm (which we can call brute-force algorithm); ...







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1l374IR

via LifeLong Community

Bloom filters in Java: example implementation http://ift.tt/1u9fuOq...

Please Visit: http://ift.tt/1ajReyV



Bloom filters in Java: example implementation

http://ift.tt/1q5iXjn

http://ift.tt/1q5iXA1



Bloom filters in Java: example implementation







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1q5iXQg

via LifeLong Community

Bloom Filters by Example A Bloom filter is a data structure designed to tell you, rapidly and memory...

Please Visit: http://ift.tt/1ajReyV



Bloom Filters by Example



A Bloom filter is a data structure designed to tell you, rapidly and memory-efficiently, whether an element is present in a set.



The price paid for this efficiency is that a Bloom filter is a probabilistic data structure: it tells us that the element either definitely is not in the set or may be in the set.



The base data structure of a Bloom filter is a Bit Vector.

http://ift.tt/UzOZDg

http://ift.tt/1u9fuxM



Bloom Filters by Example







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1u9fwpr

via LifeLong Community

Coding Everyday: How to grab YouTube playback video files http://ift.tt/1u9fvlz...

Please Visit: http://ift.tt/1ajReyV



Coding Everyday: How to grab YouTube playback video files

http://ift.tt/1q5iWfp

http://ift.tt/1u9fvBP



Coding Everyday: How to grab YouTube playback video files







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1u9fttK

via LifeLong Community

Practice: Using JSZip to Download Current Week's Images in Blogger The Task There is a blogger: its ...

Please Visit: http://ift.tt/1ajReyV



Practice: Using JSZip to Download Current Week's Images in Blogger

The Task There is a blogger: its main content is pictures and photos, client wants to allow users to download today, this week and this month's pictures. The Solution The basic idea is to send a request to Blogger feed url, parse its json response to get al...



The Task There is a blogger: its main content is pictures and photos, client wants to allow users to download today, this week and this month's pictures. The Solution The basic idea is to send a request to Blogger feed url,...







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1oVdLLa

via LifeLong Community

Blogger: Get Url of First Post The Solution Edit the blogger's template to include the following javascript...

Please Visit: http://ift.tt/1ajReyV



Blogger: Get Url of First Post

The Solution Edit the blogger's template to include the following javascript code: <script>

function getFirstPostLink(){

var script = document.createElement('script');

script.type = 'text/javascript';

script.src = '/feeds/posts/default?alt=json-...



The Solution Edit the blogger's template to include the following javascript code:



Practice: Using JSZip to Download Multiple Remote Images Using JSZipUtils.getBinaryContent JSZipUtils...

Please Visit: http://ift.tt/1ajReyV



Practice: Using JSZip to Download Multiple Remote Images

Using JSZipUtils.getBinaryContent JSZipUtils provides getBinaryContent to fetch a file from remote server like below:

// loading a file and add it in a zip file

JSZipUtils.getBinaryContent("path/to/picture.png", function (err, data) {

if(err) {

thr...



Practice: Using JSZip to Download Multiple Remote Images







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1qv05I4

via LifeLong Community

Why Go Is An Excellent Modern Programming Language | Engineered Web http://ift.tt/1kZMTeT...

Please Visit: http://ift.tt/1ajReyV



Why Go Is An Excellent Modern Programming Language | Engineered Web

http://ift.tt/15X85ac

http://ift.tt/1kZMTeX



Why Go Is An Excellent Modern Programming Language | Engineered Web







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1qrLkWf

via LifeLong Community

Why Go? http://ift.tt/1kZMSrh http://ift.tt/1qrLmxz

Please Visit: http://ift.tt/1ajReyV






Why Go?







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1kZMSrk

via LifeLong Community

Using Javascript to Disallow IFramed and How to Hack it Describe how to use javascript to protect your...

Please Visit: http://ift.tt/1ajReyV



Using Javascript to Disallow IFramed and How to Hack it

Describe how to use javascript to protect your website to be iframed, and how to hack it using html5 sandbox property.

<iframe allowtransparency="true" frameborder="0" sandbox="" scrolling="no" src="http://www.webupd8.org/" style="border: none; overflow: hidden;"></iframe>

http://ift.tt/Sxhzaw



Using Javascript to Disallow IFramed and How to Hack it







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1kNHV3I

via LifeLong Community

Using Javascript to Disallow IFramed and How to Hack it Using Javascript to Disallow IFramed By accident...

Please Visit: http://ift.tt/1ajReyV



Using Javascript to Disallow IFramed and How to Hack it

Using Javascript to Disallow IFramed By accident, I accessed http://www.webupd8.org/ , which uses the following JavaScript to disallow other sites to put its webpages into iframe. If you put it the follow iframe in webpage, it will open an alter dialog and ...



Using Javascript to Disallow IFramed By accident, I accessed http://www.webupd8.org/, which uses the following JavaScript to disallow other sites to put its webpages into iframe. If you put it the follow iframe in webpage, ...







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/Sxhxzv

via LifeLong Community

10.06.2014 23:56

Please Visit: http://ift.tt/1ajReyV





Linux is amazing, unless it won't install. Then it just hurts. Fortunately, a number of laptop makers build machines specifically for Linux. A handful of others, such as Hewlett-Packard, design their products with Linux in mind. But how many of these offer good performance? This article covers three manufacturers who make Linux-equipped laptops and a…







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/THieaN

via LifeLong Community

Get first and last date of current month with javascript or jquery - Stack Overflow Very simple, no...

Please Visit: http://ift.tt/1ajReyV



Get first and last date of current month with javascript or jquery - Stack Overflow



Very simple, no library required:

var date = new Date();

var firstDay = new Date(date.getFullYear(), date.getMonth(), 1);

var lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);

or you might prefer:

var date = new Date(), y = date.getFullYear(), m = date.getMonth();

var firstDay = new Date(y, m, 1);

var lastDay = new Date(y, m + 1, 0);

http://ift.tt/THidU8

http://ift.tt/1qqIEZ4



Get first and last date of current month with javascript or jquery - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/THidUe

via LifeLong Community

How to Safeguard your Site with HTML5 Sandbox http://ift.tt/P8AdzZ http://m...

Please Visit: http://ift.tt/1ajReyV



How to Safeguard your Site with HTML5 Sandbox

http://ift.tt/P8AdzZ

http://ift.tt/1llDb53



How to Safeguard your Site with HTML5 Sandbox







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1mEBFYT

via LifeLong Community

Play safely in sandboxed IFrames - HTML5 Rocks http://ift.tt/1llDaOJ...

Please Visit: http://ift.tt/1ajReyV



Play safely in sandboxed IFrames - HTML5 Rocks

http://ift.tt/1194rdQ

http://ift.tt/1llD8Gk



Play safely in sandboxed IFrames - HTML5 Rocks







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1mEBI6J

via LifeLong Community

Prism http://prismjs.com/ http://ift.tt/1mEBFI7

Please Visit: http://ift.tt/1ajReyV






Prism







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1llD8q4

via LifeLong Community

Date Formatting In Java With Time Zone The Problem GAE's system timezone is UTC and I need print date...

Please Visit: http://ift.tt/1ajReyV



Date Formatting In Java With Time Zone

The Problem GAE's system timezone is UTC and I need print date using the specified timezone and format. The Solution We can call DateFormat.setTimeZone to set it's timezone: public static String formatDate(Date date, String format, TimeZone tz) {

DateFo...



The Problem GAE's system timezone is UTC and I need print date using the specified timezone and format. The Solution We can call DateFormat.setTimeZone to set it's timezone: public static String formatDate(Date date, Stri...







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1mEBHzM

via LifeLong Community

datejs - A JavaScript Date Library - Google Project Hosting http://ift.tt/1oaCSxM http:/...

Please Visit: http://ift.tt/1ajReyV



datejs - A JavaScript Date Library - Google Project Hosting

http://ift.tt/1oaCSxM

http://ift.tt/1qp2pAl



datejs - A JavaScript Date Library - Google Project Hosting







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1oaCSO3

via LifeLong Community

algorithm - JavaScript - get the first day of the week from current date - Stack Overflow Using the...

Please Visit: http://ift.tt/1ajReyV



algorithm - JavaScript - get the first day of the week from current date - Stack Overflow



Using the getDay method of Date objects, you can know the number of day of the week (being 0=Sunday, 1=Monday, etc).

You can then subtract that number of days plus one, for example:

function getMonday(d) {

d = new Date(d);

var day = d.getDay(),

diff = d.getDate() - day + (day == 0 ? -6:1); // adjust when day is sunday

return new Date(d.setDate(diff));

}

getMonday(new Date()); // Mon Nov 08 2010

http://ift.tt/1gxDur0

http://ift.tt/1oaCRcW



algorithm - JavaScript - get the first day of the week from current date - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1qp2mEF

via LifeLong Community

javascript - Get String in YYYYMMDD format from JS date object? - Stack Overflow Altered piece of code...

Please Visit: http://ift.tt/1ajReyV



javascript - Get String in YYYYMMDD format from JS date object? - Stack Overflow



Altered piece of code I often use:

Date.prototype.yyyymmdd = function() {

var yyyy = this.getFullYear().toString();

var mm = (this.getMonth()+1).toString(); // getMonth() is zero-based

var dd = this.getDate().toString();

return yyyy + (mm[1]?mm:"0"+mm[0]) + (dd[1]?dd:"0"+dd[0]); // padding

};

d = new Date();

d.yyyymmdd();

http://ift.tt/1oaCQWx

http://ift.tt/1qp2mo3



javascript - Get String in YYYYMMDD format from JS date object? - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1oaCQWA

via LifeLong Community

value of date input to date object · jsPerf http://ift.tt/1qp2jZx http...

Please Visit: http://ift.tt/1ajReyV



value of date input to date object · jsPerf

http://ift.tt/1qp2jZx

http://ift.tt/1oaCQWs



value of date input to date object · jsPerf







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1qp2mUW

via LifeLong Community

javascript Date.parse - Stack Overflow The (Link->http://ift.tt/1qp2jII...

Please Visit: http://ift.tt/1ajReyV



javascript Date.parse - Stack Overflow



The (Link->http://ift.tt/1qp2lAs) ).

I would recommend you to parse your date string manually, and use the Date constructor (Link->http://ift.tt/1oaCRJW) with the year, month and day arguments to avoid ambiguity:

// parse a date in yyyy-mm-dd format

function parseDate(input) {

var parts = input.split('-');

// new Date(year, month [, day [, hours[, minutes[, seconds[, ms]]]]])

return new Date(parts[0], parts[1]-1, parts[2]); // Note: months are 0-based

}

http://ift.tt/1qp2jIV

http://ift.tt/1oaCRK6



javascript Date.parse - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1qp2jZh

via LifeLong Community

The Highly Useful Java TimeUnit Enum | JavaWorld http://ift.tt/1pg77D0...

Please Visit: http://ift.tt/1ajReyV



The Highly Useful Java TimeUnit Enum | JavaWorld

http://ift.tt/1mD6k8G

http://ift.tt/1pg77Ti



The Highly Useful Java TimeUnit Enum | JavaWorld







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1pg77Tl

via LifeLong Community

Resolution for TEMPLATE ERROR: Invalid data reference post.url: No dictionary named: 'post' in: ['blog...

Please Visit: http://ift.tt/1ajReyV



Resolution for TEMPLATE ERROR: Invalid data reference post.url: No dictionary named: 'post' in: ['blog']

http://ift.tt/TCHnn2

http://ift.tt/1ql2xAL



Resolution for TEMPLATE ERROR: Invalid data reference post.url: No dictionary named: 'post' in: ['blog']







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/TCHq25

via LifeLong Community

How to make a blogger template : data tags -part 2 http://ift.tt/1oODl4r...

Please Visit: http://ift.tt/1ajReyV



How to make a blogger template : data tags -part 2

http://ift.tt/TCfwDn

http://ift.tt/1oODncw



How to make a blogger template : data tags -part 2







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/TCfviJ

via LifeLong Community

Understanding JQuery.Deferred and Promise http://ift.tt/TCfuLQ...

Please Visit: http://ift.tt/1ajReyV



Understanding JQuery.Deferred and Promise

http://ift.tt/Wmq4mk

http://ift.tt/TCfwmP



Understanding JQuery.Deferred and Promise







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1oODmWe

via LifeLong Community

Wealthfront Engineering: jQuery.Deferred is the most important client-side tool you have http://eng...

Please Visit: http://ift.tt/1ajReyV



Wealthfront Engineering: jQuery.Deferred is the most important client-side tool you have

http://ift.tt/11yYIwC

http://ift.tt/TCfuvo



Wealthfront Engineering: jQuery.Deferred is the most important client-side tool you have







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1oODmWa

via LifeLong Community

Reshared post from Ai Hiura:

Please Visit: http://ift.tt/1ajReyV






Original Post from Ai Hiura:


Top 8 Blog Widgets to Improve User Experience

Blog is one of the most effective marketing tools that you can use as a content management tool. Since it has the power to deliver a message to target customers, it is indispensable for content marketing and social media marketing. Not only driving traffic, also you are able to talk about your opinion for a specific topic, promote your business, provide tutorials for your tools, and share interesting stories with readers.



As it is said "content is king," the most important element is surely the contents of the blog posts but the blog widgets have an influence over it. Now through widgets, the reader can check out other posts, follow you on social networks, sign up for a email subscription... To enhance your blog performance, review the functionality of your blog once again.



Recently I changed my blog template for the usability and researched what widgets top marketers are using to improve my blog's user experience. There are many widgets you can consider and I picked up the 8 must-have widgets in the list below. Check out them to make your blog more reader friendly.






Blog is one of the most effective marketing tools that you can use as a content management tool. Since it has the power to deliver a message to target customers, it is indispensable for content marketing and social media marketing. Not only driving traffic, also you are able to talk about your ...







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1hAIQ84

via LifeLong Community

javascript - jquery : wait until all ajax calls finish then continue - Stack Overflow I do not like ...

Please Visit: http://ift.tt/1ajReyV



javascript - jquery : wait until all ajax calls finish then continue - Stack Overflow

I do not like any answer at all, the best way (since Jquery 1.5+) is to use Deferred objects, those are objects to manipulate async calls, you can solve :

$.when($.ajax("/page1.php"), $.ajax("/page2.php"))

.then(myFunc, myFailure);

This way myFunc executes after the 2 ajax calls are made, and myFailure if either one has an error.

You can read more about it in the jquery official documentation: (Link->http://ift.tt/1pSQ1uT)

http://ift.tt/1idrgly

http://ift.tt/1idrfOt



javascript - jquery : wait until all ajax calls finish then continue - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1pSQ1Lq

via LifeLong Community

javascript - jquery : wait until all ajax calls finish then continue - Stack Overflow I do not like ...

Please Visit: http://ift.tt/1ajReyV



javascript - jquery : wait until all ajax calls finish then continue - Stack Overflow

I do not like any answer at all, the best way (since Jquery 1.5+) is to use Deferred objects, those are objects to manipulate async calls, you can solve :

$.when($.ajax("/page1.php"), $.ajax("/page2.php"))

.then(myFunc, myFailure);

This way myFunc executes after the 2 ajax calls are made, and myFailure if either one has an error.

You can read more about it in the jquery official documentation: (Link->http://ift.tt/1pSQ1uT)

http://ift.tt/1idrgly

http://ift.tt/1pSQ35W



javascript - jquery : wait until all ajax calls finish then continue - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1idrfOq

via LifeLong Community

Wait until all jquery ajax request are done? - Stack Overflow Actually, jQuery now defines a 'when' ...

Please Visit: http://ift.tt/1ajReyV



Wait until all jquery ajax request are done? - Stack Overflow

Actually, jQuery now defines a 'when' function for this purpose.

http://ift.tt/qxIY0G (Link->http://ift.tt/1idrcSN)

It accepts any number of Deferred objects as arguments, and executes a function when all of them resolve.

That means, if you want to initiate (for example) four ajax requests, then perform an action when they are done, you could do something like this:

$.when(ajax1(), ajax2(), ajax3(), ajax4()).done(function(a1, a2, a3, a4){

// the code here will be executed when all four ajax requests resolve.

// a1, a2, a3 and a4 are lists of length 3 containing the response text,

// status, and jqXHR object for each of the four ajax calls respectively.

});

function ajax1() {

// NOTE: This function must return the value

// from calling the $.ajax() method.

return $.ajax({

url: "someUrl",

dataType: "json",

data: yourJsonData,

...

});

}

http://ift.tt/1oxz1K6

http://ift.tt/1idrf0X



Wait until all jquery ajax request are done? - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1pSQ0Ht

via LifeLong Community

Read EXIF data with Javascript - Nihilogic http://ift.tt/1pSPZDh...

Please Visit: http://ift.tt/1ajReyV



Read EXIF data with Javascript - Nihilogic

http://ift.tt/xH7sNe

http://ift.tt/1pSQ0Hc



Read EXIF data with Javascript - Nihilogic







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1idreKr

via LifeLong Community

Get binary image data from remote image http://ift.tt/1idrclG http://massiveprogram...

Please Visit: http://ift.tt/1ajReyV



Get binary image data from remote image

http://ift.tt/1idrclG

http://ift.tt/1idrclI



Get binary image data from remote image







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1pSPZmS

via LifeLong Community