How to use ConcurrentHashMap in Java - Example Tutorial and Working

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



Java ConcurrentHashMap

http://ift.tt/1d5OBGD

http://ift.tt/1aH7mAO

http://ift.tt/1aH7mAP



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1d5OBGD

via LifeLong Community

RStudio

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



Working in the RStudio Console

http://ift.tt/1g8Gqbt

Ctrl+L — Clear the Console

Ctrl+1 — Move focus to the Source Editor

Ctrl+2 — Move focus to the Console



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1g8Gqbt

via LifeLong Community

PowerShell Tips: Get a Random Sample from CSV File

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



PowerShell Tips: Get a Random Sample from CSV File

The Problem I am trying to write and test R script against some data from customer. But the data is too big, it would take a lot of time to load the data and run the script. So it would be to extract a small fraction from the original data. The Solution Fir...



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1eD02Wp

via LifeLong Community

Powershell: Get default system encoding

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



Powershell: Get default system encoding

[System.Text.Encoding]::Default

[System.Text.Encoding]::Default.EncodingName

http://ift.tt/1nYjDEw



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1nYjDEw

via LifeLong Community

#PSTip How to remove the first line from a text file

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



#PSTip How to remove the first line from a text file

http://ift.tt/1buSQap

PS C:\> $a,$b = Get-Content .\test.txt

PS C:\> $b > .\test.txt



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1d0H7Vm

via LifeLong Community

PSTip: Get-Random

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



PSTip: Get-Random

http://ift.tt/1ayvQMJ

1..5 | % { (1..49 | Get-Random -Count 6) -join (",") }

when 1..6 | Get-Random -Count 6 cannot display duplicates

do { if( ($num=(Get-Random -Minimum 1 -Maximum 7) ) -notin $nums ){ [int[]]$nums+=$num } } while ( $nums.count -lt 6 ) $nums

the syntax does not support -Count and -Minimum or -Maximum parameters together.

Get-Random -minimum 1 -maximum 101

you can use Get-Random to randomly select from a list of names:

($a = "Dasher","Dancer","Prancer","Vixen","Comet","Cupid","Donder","Blitzen" ) | Get-Random

Get-Random -input "Dasher","Dancer","Prancer","Vixen","Comet","Cupid","Donder","Blitzen"

($a = "Dasher","Dancer","Prancer","Vixen","Comet","Cupid","Donder","Blitzen" ) | Get-Random -count 3

1..10 | % {Get-Random -Minimum 2 -Maximum 20 } | Sort -Unique

1..4 | % { Get-Random -Minimum 1 -Maximum 30 }

$users = gc C:\fso\UserGroupNames.txt

$users | Get-Random -Count $users.Count



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1kZzzEe

via LifeLong Community

Using Solr DocTransformer to Add Anchor Tag and Text into Response

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



Using Solr DocTransformer to Add Anchor Tag and Text into Response

This series talks about how to use Nutch and Solr to implement Google Search's "Jump to" and Anchor links features. This article introduces how to use Nutch, HTML Parser Jsoup and Regular Expression to Extract Anchor Tag and Content The Problem In the searc...



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/N6leui

via LifeLong Community

Google Online Security Blog: Security Reward Programs Update

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



Google adds their Chrome apps and extensions to bug bounty

http://ift.tt/1kPfH6x

http://ift.tt/1atbcgQ



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1kPfH6x

via LifeLong Community

CTRL-Space always toggles Chinese IME (Windows 7)

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



CTRL-Space always toggles Chinese IME

http://ift.tt/1kOBFqc

Solution:

Go to Start > Type in regedit and start it

Navigate to HKEY_CURRENT_USER/Control Panel/Input Method/Hot Keys

Select the key named:

00000070 for the Chinese (Traditional) IME - Ime/NonIme Toggle hotkey

00000010 for the Chinese (Simplified) IME - Ime/NonIme Toggle hotkey

In the right sub-window, there are three subkeys.

Key Modifiers designate Alt/Ctrl/Shift/etc and is set to Ctrl (02c00000).

Virtual Key designates the finishing key and is set to Space (20000000).

Change the first byte in Key Modifiers from 02 to 00

Change the first byte in Virtual Key from 20 to FF

Log off and log back on. I don't think it's necessary to restart.

Do not change the Hot keys for input languages in Control Panel, unless you want to do this all over again.



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1kOBFqc

via LifeLong Community

LOL! What a douche bag!

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





LOL! What a douche bag!

Jeffery yuan (http://ift.tt/1fL2t9c) via The Secret Funny Laughter (http://ift.tt/1fL2tps)



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1en6HFO

via LifeLong Community

Invoke-WebRequest

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



PowerShell: Sending Http Request

Invoke-WebRequest

http://ift.tt/1cP1RPN

$r = Invoke-WebRequest -URI http://ift.tt/1fIiM6p

$r.AllElements | where {$.innerhtml -like "*=*"} | Sort { $.InnerHtml.Length } | Select InnerText -First 5



PowerShell: Executing a .NET Web Request

http://ift.tt/1fIiJI1

# // first argument is mapped to $url



$url="http://localhost:8983/solr/select?fl=contentid&q=contentid"

param($url)



# // create a request

[Net.HttpWebRequest] $req = [Net.WebRequest]::create($url)

$req.Method = "GET"

$req.Timeout = 600000 # = 10 minutes



# // Set if you need a username/password to access the resource

#$req.Credentials = New-Object Net.NetworkCredential("username", "password");



[Net.HttpWebResponse] $result = $req.GetResponse()

[IO.Stream] $stream = $result.GetResponseStream()

[IO.StreamReader] $reader = New-Object IO.StreamReader($stream)

[string] $output = $reader.readToEnd()

$stream.flush()

$stream.close()



# // return the text of the web page

Write-Host $output



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1cP1RPN

via LifeLong Community

Tips on Using Adobe Acrobat Reader PDF documents

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



Select column in Adobe PDF and Notepad++

http://ift.tt/1bkFTjp

In both Adobde PDF and Notepad++, Alt or "Ctrl+ Alt" puts you in Column Mode Select



To select a column of text (vertically), hold down Ctrl+Alt (Windows) or Option+Command (Mac OS) as you drag the length of the document.

To select multiple columns of text (horizontally), hold down Ctrl (Windows and UNIX) or Option (Mac OS) as you drag across the width of the document.



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1bkFTjp

via LifeLong Community

google-styleguide

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



Google Code Syle Guide

http://ift.tt/N01N3W

http://ift.tt/1dgZnLm

http://ift.tt/InrUei

http://ift.tt/1cFu510



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1ifjk4h

via LifeLong Community