Wednesday, January 28, 2015

JSON viewer

http://jsonviewer.stack.hu/

Tuesday, January 27, 2015

Helix

Pete's First Impressions

Helix = Resident Evil + Andromeda Strain + The Thing + Alien + Aliens + SyFy
So far so good.
Not fantastic, but not terrible.  Very enjoyable at times.  Some very interesting visuals.
Silver Eyes. Heads in Jars.

Classic virus research story. All the usual good guys and bad guys.  Just enough twists to be fun and worth continuing.

Music is sublime to perfect.

saw this coming

It is quite interesting watching the country continue to grow apart.
The haves and the have nots.
The zealots and the rest.
The "conservatives" (aka want things back the old way) and the "progressives" (aka want to improve things for all).
The educated versus the willfully ignorant.

Marriage, abortion, guns, jesus, gays, no taxes versus ... everyone else.

That the country is equally split over this is even more interesting.


Posted on blakey's page
I remember a conversation, about 15 years ago, in Hyde Park, at Adrian's house.
We were discussing the Nov 2000 election, and Adrian pointed out that we would see more and more of this. Technology and focus groups and getting just enough votes to win.
I really hate that Adrian was so clearly on point and that we continue to see this trend. On so many issues, there is a clear divide which the groups are encouraged to find no common ground.

At least until massive demographic shifts take place.

quotes from B5

G'Kar turns to Vir. He slices his hand, letting the blood drip on the floor. "Dead... dead, dead, dead, dead, dead, dead, dead, dead, dead... How do you apologize to them?"

"I can't," Vir admits.

"Then I cannot forgive," G'Kar tells him, and walks away

and this is also why there will never be peace in the middle east

Thursday, January 22, 2015

REST GET

http://stackoverflow.com/questions/24975513/vba-excel-winhttprequest-returning-empty-response-text-and-body

Sub testlogin()

    fileUrl = "http://longurlwithparams"

    Set WHTTP = CreateObject("WinHTTP.WinHTTPrequest.5.1")

    WHTTP.Open "GET", fileUrl, False

    WHTTP.Send

    MsgBox WHTTP.Status
    MsgBox WHTTP.ResponseText
    MsgBox WHTTP.ResponseBody
    MsgBox WHTTP.GetAllResponseHeaders

    Set WHTTP = Nothing

End Sub


https://gist.github.com/refriedchicken/2885938
hmmmm

http://ramblings.mcpher.com/Home/excelquirks/json/rest/crest

hmmm
I have called a URL in excel and gotten the result ... WOOT
Option Explicit

Sub DoSomeJob()
Const sUrl As String = "http://randomnumbergenerator.intemodino.com/en/"

Dim oRequest As WinHttp.WinHttpRequest
Dim sResult As String

On Error GoTo Err_DoSomeJob

Set oRequest = New WinHttp.WinHttpRequest
With oRequest
    .Open "GET", sUrl, True
    .SetRequestHeader "Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"
    .Send "{range:9129370}"
    .WaitForResponse
    sResult = .ResponseText
    Debug.Print sResult
    sResult = oRequest.Status
    Debug.Print sResult
End With



Exit_DoSomeJob:
    On Error Resume Next
    Set oRequest = Nothing
    Exit Sub
   
Err_DoSomeJob:
    MsgBox Err.Description, vbExclamation, Err.Number
    Resume Exit_DoSomeJob

End Sub

google search engine try #2

1) create custom search engine
link
done

2) get api key
link
think this is already done

3) read introduction
https://developers.google.com/custom-search/json-api/v1/introduction

4) simple example using REST (code inside of HTML)
https://developers.google.com/custom-search/json-api/v1/using_rest


5) libraries and samples - including java, javascript and .NET
https://developers.google.com/custom-search/json-api/v1/libraries


901) AWESOME apis-explorer
http://developers.google.com/apis-explorer/#p/customsearch/v1/search.cse.list?q=test+me&_h=1&
You can use this to test things by hand with ZERO CODE
returns the code fragment (GET with options)
and returns the results

perfect for testing and learning, etc etc etc


902) NUGET
http://docs.nuget.org/docs/start-here/installing-nuget
extension manager ... shudder
installed the commandline version - took 10 seconds
copied to c:\windows cause stupid PATHS !@#!@#!@#!@#

http://docs.nuget.org/docs/reference/command-line-reference

902) install package
nuget install  Google.Apis.Customsearch.v1
worked but I dont know what that means !!
HAHAHAH sigh

C:\Users\god\AppData\Roaming\NuGet
yay location




Tuesday, January 20, 2015

most of africa is north of the equator
99% of the US is west of south america
almost all of europe is north of NYC

we really have a warped view of the world