Profile cover photo
Profile photo
Drew Perttula
119 followers
119 followers
About
Posts

Post has attachment
Feature request: new key 'tr' ("tag repeat") to add the last-used tags to the current item. I'd like to be able to tag one item with some tags, then quickly add those tags to several more entries.

The tags to be added would be the last string I put in the 'tt' dialog box. The 'tt' box could advertise the new feature:
https://bigasterisk.com/post/checkvist-tag-repeat.png

Bug: It appears that when I'm filtered to #foo, and another editor adds a new item "bar" to the list, my view live updates to show the "bar" item even though it had no #foo  tag on it.

My page on example.com has this line:
<link rel="import" href="https://foo.example.com/my-element.html" crossorigin="use-credentials">

Note that foo.example.com is a different domain from example.com, but it's returning CORS headers. Not that this request will ever get that far that those could matter.

https://foo.example.com/my-element.html returns 403 Forbidden unless you pass your foo.example.com login cookie. That seems like the right behavior.

The page load on example.com shows this network request, which has no Cookie line despite the crossorigin setting I included:
:host:foo.example.com
:method:GET
:path:/my-element.html
:scheme:https
:version:HTTP/1.1
accept:*/*
accept-encoding:gzip, deflate, sdch
accept-language:en-US,en;q=0.8
cache-control:no-cache
origin:https://example.com
pragma:no-cache
referer:https://example.com/ user-agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2251.0 Safari/537.36

crossorigin="use-credentials" sounds like just what I want, but it has no apparent effect. Of course the load fails:

Imported resource from origin 'https://foo.example.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://example.com' is therefore not allowed access. The response had HTTP status code 403.

:(

Post has attachment
Made a new color picker with  #polymer  . Positioning of choices around a ring, html5 color input in the middle, bidirectional bindings everywhere, and it's all under 100 lines: https://github.com/drewp/homeauto/blob/master/service/pilight/static/big-picker.html

To have it drive some LEDs on a raspberry pi, I wrote this chunk of UI that binds the color picker output to another polymer element for sending the results:
  <polymer-element name="pilight-page" noscript>
      <template>
        LED color:
        <big-picker hex="{{c1}}"></big-picker>
        <led-output which="led" color="{{c1}}"></led-output>
      </template>
    </polymer-element>
    <pilight-page></pilight-page>

Notice the lack of addEventListener code. Polymer understands that big-picker and led-output need to read and write to the same JS value. I can add an https://github.com/arodic/input-rgb widget in about 2 lines of html and everything stays in sync.

I am realizing that, in the future, it might actually be hard to explain to new web UI programmers that we used to have tons of update/refresh bugs trying to tie things together right.
Photo

Post has attachment
Testing WS2812B leds in a plastic tube
PhotoPhotoPhotoPhoto
2014-05-11
4 Photos - View album

Post has attachment
first test with Google Web Designer on linux

Post has attachment
phone camera loves UV LEDs
Photo

Where do I host some privately shared photos where the viewers can comment and point to areas within the photos? I thought flickr had this but the annotation UI is lost. I've never seen annotations within G+ photos. Are there other services I might like?

Post has attachment
program: "Please talk now"
me: "take picture 10"
program: "taking picture 10"
program: "saved 10"

I want my android phone to sit near me, and when I say a number, I want it to take a picture that I can later look up by that number. I don't care if it burns the number into the pic or the filename or the exif or what.

Can I build this with web apis yet?
Wait while more posts are being loaded