Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 15 2018 06:47
    gasi synchronize #131
  • Nov 15 2018 06:47

    gasi on postgresql

    Add `pgloader` migration script Add image insertion and querying (compare)

  • Oct 17 2018 05:40
    gasi synchronize #131
  • Oct 17 2018 05:40

    gasi on postgresql

    Add `DeepZoomImage` `Generic` i… Suppress `opaleye` deprecations Fix comments and 8 more (compare)

  • Oct 15 2018 05:29
    gasi synchronize #131
  • Oct 15 2018 05:29

    gasi on postgresql

    :art: Fix lint errors Extract condition from `selectC… Replace `Integer` with `Int64` … and 4 more (compare)

  • Oct 07 2018 03:53
    gasi synchronize #131
  • Oct 07 2018 03:53

    gasi on postgresql

    Add basic Opaleye test for Post… Add dependencies for PostgreSQL… Fix :abc: and 114 more (compare)

  • Oct 07 2018 03:44

    gasi on master

    Split up formatting from linting Format imports (compare)

  • Sep 02 2018 01:22
    gasi opened #136
  • Sep 02 2018 01:21

    gasi on hfmt

    Split up formatting from linting Format imports Replace `stylish-haskell` with … and 1 more (compare)

  • Sep 02 2018 00:58
    gasi synchronize #131
  • Sep 02 2018 00:58

    gasi on postgresql

    Add basic Opaleye test for Post… Add dependencies for PostgreSQL… Fix :abc: and 107 more (compare)

  • Sep 01 2018 22:39

    gasi on circleci-2.0

    (compare)

  • Sep 01 2018 22:39

    gasi on master

    Simplify `stack` setup on Circle Automatically port Circle CI 1.… Simplify CircleCI configuration and 6 more (compare)

  • Sep 01 2018 22:39
    gasi closed #135
  • Sep 01 2018 22:23
    gasi edited #135
  • Sep 01 2018 22:22
    gasi synchronize #135
  • Sep 01 2018 22:22

    gasi on circleci-2.0

    Implement CircleCI 2.0 deployme… (compare)

  • Sep 01 2018 22:06
    gasi synchronize #135
Aseem Kishore
@aseemk
I think a method name like Model::countView or something like that. If that helps and if you can find it
I think I also based N on the existing count. So for low counts, it would increment more frequently than for high counts. Another way to view that is percentage
Aseem Kishore
@aseemk

For kicks, I dug up our old code @gasi:

# See the Model::countViews() method below; this ratio determines how many
# views we update at once for a given current tally, and thus how frequently.
VIEWS_UPDATE_RATIO = 0.05

# Probabilistically increments this node's view count. This is inspired by
# YouTube's implementation: batch the increments to reduce load! Our algo:
# add X views 1/X of the time, and determine X as N% of the current tally.
# Of course, X should never be lower than 1. N is a constant up top.
# TODO: We may want to make N adapt to the current tally also, e.g. a
# constant may be too high for a large tally, or vice versa.
countView: (_) ->
    incr = Math.max 1, Math.round @numViews * VIEWS_UPDATE_RATIO
    return if Math.random() >= 1 / incr

    # (otherwise increment `@numViews` by `incr`)

Though the commit that removed this noted:

  • This doesn't make sense anymore in the context of an API-driven app.
  • We can and should track this info w/ analytics services instead.

So food for your own thought as well. ;)

Daniel Gasienica
@gasi

@aseemk Awesome, thanks for sharing! I honestly don’t remember any of this.

Is this from the following?

Cheating - Know How to Fake Data
Awesome technique. The fastest function call is the one that doesn’t happen. When you have a monotonically increasing counter, like movie view counts or profile view counts, you could do a transaction every update. Or you could do a transaction every once in awhile and update by a random amount and as long as it changes from odd to even people would probably believe it’s real. Know how to fake data.

http://highscalability.com/blog/2012/3/26/7-years-of-youtube-scalability-lessons-in-30-minutes.html

Found your commit from 2012: d9a94e88908a3eacc2d04cbbf12f7fc97b9b6055
Aseem Kishore
@aseemk
Yep :+1:
Daniel Gasienica
@gasi
/all Now that we’re live with v2, any objections to merging it back into mainline https://github.com/zoomhub/zoomhub?
Aseem Kishore
@aseemk
None from me =)
Ian Gilman
@iangilman
@gasi None from me!
Daniel Gasienica
@gasi
@aseemk @iangilman Sweet — thanks! I just merged v2 back to mainline and pushed it to production. I enabled processing existing content for now, based on their number of views (I added sampling per your suggestion, @aseemk: https://github.com/gasi/zoomhub/commit/b449883b6c6f8081521b364424f176150736661c)
The pipeline of download --> create DZI --> upload DZI mostly seems to work with some sporadic errors to be worked out (UTF-8 decoding).
@iangilman @aseemk As you know, I’ll be in Japan in a week from now and if one of you would be interested to know what to do in case of emergency, let me know and I’d be happy to walk you through the basics for an hour or so. Just an offer, no pressure :smile:
Just confirmed that VIPS 8.x doesn’t have that issue. Will have to investigate this weekend.
Ian Gilman
@iangilman
Yow!
Exciting that it's creating DZIs though!
Ian Gilman
@iangilman
@gasi Is that happening for every image it converts?
Once you get it sorted out, can you have it convert the ones that have just been reported here? https://github.com/zoomhub/zoomhub/issues/89#issuecomment-210492191
Daniel Gasienica
@gasi

@iangilman Thanks for the lovely evening <3

Re: broken DZI. So far, I’ve only noticed it being broken for this one but there might be others. It’s not across the board though 😅 To provide good customer service, I manually converted this one locally using VIPS 8.x and uploaded it. It should be fine now, or at least once the cache is purged. Until then, enjoy modern DZI art:

4rcn_—_ZoomHub_·_Share_and_view_high-resolution_images_effortlessly.png

Thanks for pointing out the GitHub post. I just confirmed that most of them are 404s and just responded:

https://github.com/zoomhub/zoomhub/issues/89#issuecomment-210745836

First 24h looking good:
Search___Splunk_Light_6_3_3.png
Aseem Kishore
@aseemk
Nice work Daniel!
Daniel Gasienica
@gasi
:bow:
Ian Gilman
@iangilman
@gasi Thank you for joining us! It was lovely indeed :)
... and great to see the new zoomhub running smoothly!
Ian Gilman
@iangilman
@gasi Your discussion in zoomhub/zoomhub#121 made me think it might be cool to do something like http://openseadragon.github.io/examples/in-the-wild/ for zoomhub
Daniel Gasienica
@gasi
@iangilman Good idea. Feel free to start it if I don’t get to it :)
Ian Gilman
@iangilman
@gasi Done: zoomhub/zoomhub#122 (that's the first step). Please add any sites you know of!
Daniel Gasienica
@gasi
@iangilman awesome — thanks :)
Ian Gilman
@iangilman
Daniel Gasienica
@gasi
@iangilman Thanks — I responded to all three.
Ian Gilman
@iangilman
:+1:
Ian Gilman
@iangilman
@gasi Interesting to see this other entry in this space: https://sirv.com/
Daniel Gasienica
@gasi
Thanks for the link. How did you find it? I noticed one person used it in an issue they posted.
Ian Gilman
@iangilman
@gasi yeah, that's where I found it.
Ian Gilman
@iangilman
@gasi Those Rackspace alerts keep coming... I guess I was expecting that they would die down eventually once you got things sorted out. Are they just an expected part of business as usual?
Daniel Gasienica
@gasi
@iangilman I believe they are caused by the service being overwhelmed by writes due to SQLite. I plan on migrating to PostgreSQL, especially before enabling submissions, but given my move I have no ETA. Let me know if the alerts are too distracting and I’ll see what I can do.
Ian Gilman
@iangilman
@gasi Cool. I can always just file them... just making sure there wasn't a real problem. Would be good to eventually sort that out so we only get notified for real problems! :)
byron velasquez
@byrongits
I can't seem to unistall this from chrome. The extension is not listed and I can't find it anywhere on the computer. Whats the procedure?
Daniel Gasienica
@gasi
@byrongits Here we go: zoomhub/zoomhub#128
foobarable
@foobarable
@iangilman Do you still search references for osd in the wild? We are soon ready to go online with our site.
Ian Gilman
@iangilman
@foobarable absolutely! Let me know when it's ready :-)
cgoehl
@cgoehl
Could zoomhub be used for geographical map tiling? I.e. use it as tile server for OpenLayers?
Ian Gilman
@iangilman
@cgoehl As far as I know ZoomHub just supports DZI, which isn't really used for geo.
Irshrse🌹
@irshrse_twitter
Hello guys
JANA
@JANA60226035_twitter
. Hello
Low
Ian Gilman
@iangilman
Hello! Welcome to ZoomHub!