HNHacker News
TopNewBestAskShowJobs

hrbrtglm

42 karma · joined June 10, 2012

submissionscomments
hrbrtglm··on Stripe Is the New PayPal
Is it against the TOS to route half of the payments to stripe and the other half to another payment processor in order to mitigate the problem of being shut down ?

With paymill looking like a stripe clone, it may be a good solution to split the revenues stream.

hrbrtglm··on Introducing the San Francisco system font
A diff button appearing for modified comments would be such a great feature ... :)
hrbrtglm··on Let's Encrypt Overview
This github issue explains why they won't deliver EV certs : https://github.com/letsencrypt/lets-encrypt-preview/issues/3...
hrbrtglm··on “Why does Chrome not have a good tab management system built in?”
It keeps getting better and better for sure.

Now, if only they could fix bugs hanging around for more than 6 years, it would be cool too. ie: https://bugzilla.mozilla.org/show_bug.cgi?id=488725

hrbrtglm··on “Why does Chrome not have a good tab management system built in?”
I ditched one-tab for Session Buddy (https://chrome.google.com/webstore/detail/session-buddy/edac...) for the sole reason I prefer the UI. Both are good candidates.
hrbrtglm··on Show HN: Diff.io
Damn, I had the exact same problem in another thread with an unrelated domain name : https://news.ycombinator.com/item?id=9645297

Also a comodo certificate.

hrbrtglm··on Show HN: Also Viewing – “Sally is also viewing this page” as a service
Chrome 43.0.2357.81 Safari 8.0.6

http://imgur.com/s4yQqLk

hrbrtglm··on Show HN: Also Viewing – “Sally is also viewing this page” as a service
Trying to connect to your website, my browser tells me your certificate has been signed by an unknown authority. Weird, comodo seems legit to me ... but happens with chrome and safari.
hrbrtglm··on Show HN: Hacker News reader for Android
I got it now.

I followed the link you provided and it seems the previous android version had different taskbar icons, which I found a bit easier to understand.

Still, Android and iOS do not help much with discoverability in my opinion, and the newest the version, the worst it is. What's next, heptagon for sending email and decagon for contacts ? I feel so old :(

hrbrtglm··on Show HN: Hacker News reader for Android
Thanks for the explanation.

May I ask a few questions : - what the "Back" triangle is for when there is a back arrow on the top left of the app, doest it perform the same action ? - As the "circle" is home, I guess there is no way to hide this taskbar as you could not go back to home screen, right ?

hrbrtglm··on Show HN: Hacker News reader for Android
Sorry for the off topic as I think I will comment on the OS rather than the app. I don't own any Android device, so maybe it seems all natural once you use one but the UX is so strange.

I can grasp the meaning of some icons, a cross for closing, an arrow to go back or forward, but the ones sitting on the lower taskbar ??? What the hell could be the meaning of a triangle, a circle and a square ?

hrbrtglm··on Meteor Raises $20M
I browse with cookies disabled for privacy reasons. How is it that every time I visit a webpage made with meteor, the only thing I get is a blank page ? Is it specific to meteor to not work without cookies enabled, couldn't it at least display a message asking me to enable cookies, even an error page explaining why I get nothing but a white background.
hrbrtglm··on When will we find aliens?
If an intelligent extraterrestrial life exists, it's surely looking for a pizzeria in space : http://pizzeria.space
hrbrtglm··on 1Password on Linux
Just discovered a new password manager yesterday that I didn't have time to review (try, trust ...) : http://enpass.io/ It seems to be available for every platform possible. Even if I'm perfectly happy with keepassx, I'll problably give it a try for its prettier interface.

Has someone already used this one ?

hrbrtglm··on Why was Pinball removed from Windows Vista? (2012)
If my memory doesn't trick me, there was a text you could type on word with a certain keyboard shortcut or something like that (sort of konami code) which let you play pinball under the Word program. Any one remember that one ?
hrbrtglm··on Death by Inches: The battle over the metric system in America
For such a conversion, you may need however to specify a screen aspect ratio, because even if the diagonal remain the same size, the height or with will vary regarding a 4:3, 16:9 or 16:10 screen.
hrbrtglm··on Death by Inches: The battle over the metric system in America
Well, I think it's just the same as you except 0 is the freezing point and not what seems like an an arbitrary 32 Farenheit for us.
hrbrtglm··on Death by Inches: The battle over the metric system in America
I love the metric system for no better reasons that it's the one I always used as a french, it just seems as natural for me as my ten fingers, I never really thought about it. Yet, I can understand why some would not change their “English customary measures”, they must feel it the same way, thinking it's as natural as their feet. For instance, our screens size (TV, computer, phones) are expressed in inches for whatever good reasons ... I don't have a clue at all about the size it represents, I just know 13 is smaller than 15, 11 is too small for me for a computer screen, and that 42 is a pretty good decent size for a TV. My surfboard is a 6.2, and for all I know, it's taller than me ...

If I were told, we were going to change our measure system, I would be kind of scared, could it be better or worse ! After all, the hardest part is not the real use but the idea of the switch.

Now, if you could just use the international ISO 216 paper size, I wouldn't have to mess with my PDF export settings and just push some A4.

hrbrtglm··on Screenshot Saturday
I should definitely open a blog detailing the progress on the webapp. It's just I never felt having the writing skills to do it. But these kind of skills do not come without practicing, so I will surely go ahead and see ...
hrbrtglm··on Screenshot Saturday
I like the UI a lot actually. Really nice. What are the parts making this one more dev oriented ?
hrbrtglm··on Screenshot Saturday
http://imgur.com/a/qryZL

The CRM webapp I'm working on with the basic features I think such a system should have :

  - Customers, suppliers and leads management.
  - Calendar
  - Tasks (billable time tracking)
  - Opportunities, Quotes, invoices, credit notes and purchases
  - Expenses (rebillable)
  - Products and services with inventory and moving average costs
  - reporting
  - customer dedicated page
hrbrtglm··on MariaDB 10
Well, let me explain the structure I choose :

Each tenant is assigned a subdomain (No vhost, all routed by the app to the same codebase) with the name he choosed when he subscribed. So this name is retrieved by inspecting the host header the browser send while connecting to the webapp, this name is checked in the public schema to find an appropriate uuid assigned (if it exists of course).

Something like :

  App_DB (database)
  -- public (public schema)
     -- tenants (tenants table)
        -- tenant_uuid uuid
        -- tenant_name text (same as subdomain name)
        -- coderev numeric (for split testing)
        -- some tenant general info like creation date, choosen plan, ...
     -- some other tables accessible by all tenants like shared stats, queues, etc ...
I then use this tenant_uuid as the schema name for this tenant :

  -- "b6e42fd1-d5b9-4de4-ba6b-6eca1dae06ff" (tenant_uuid schema name)
     -- users (it's a multi-user webapp per tenants, so ...)
        -- email (for auth)
        -- password (bcrypt for auth)
        -- etc ...
     -- other tables needed for the webapp
This for each tenant, so some tenants can have a different schema stucture based on their public.coderev

When the user login, his credentials are checked in his tenant schema, the tenant name and uuid are set in his session for not messing with other tenants data.

I think there are 2 ways to deal with connection pooling (If we are both talking about PgBouncer || pgpool connection pooling to be sure).

- The first one is to create a new PostgreSQL user for each tenant in order to access only his schema. Then there is no need to set the schema search path prior the connection object as by definition his search_path will be set to $user,public (http://www.postgresql.org/docs/9.1/static/ddl-schemas.html) But then, I can't really see the point of a connection pooling. I don't really like this solution, so many users, roles, passwords ... - The second (which I choose) is to connect with a role having access to all the schemas. You can set this one for connection pooling. The search_path is only set to public, and the queries use the qualified name to access the tenant data, ie: SELECT * FROM "b6e42fd1-d5b9-4de4-ba6b-6eca1dae06ff".users You can use the connections readily made available by the connection pool and query the data for the tenant you need without touching the search_path. The security is now dealt with the application and not the DB.

For the multi-version domain model, the coderev set in the public.tenants schema is retrieved with the tenant_uuid associated with the tenant name and then used by the webapp controller to route to the associated code version. No need for a second server, just a different branch on the same server. Transitioning a user then just really mean updating his schema and routing it through the new codebase. And that's why I said it's very ugly, because I still need to implement a good DDL and DML stategy in order to navigate between different versions without losing data.

Like you said, it's a tough environment. Unfortunately, I have nothing elegant to propose but I'm also interested in reading how others deal with that kind of stuff. I still lack fluency to write a blog post or something like that which could encourage debating or discussions. I'd be very glad if yourself find some interesting stuff on this topic to share it with me, my email address is my hn username @ gmail.com

hrbrtglm··on MariaDB 10
I'll take a typical context of a SaaS app, multi-tenant architecture. When it comes to store the data of your tenants, you have to decide between different approaches which will impact the level of isolation of each tenant's data. I will not discuss the benefits and disadvantages of each because it clearly depends of your needs, security guidelines and sometimes regulations regarding your business, backup strategy, geo-isolation, sharding, etc ...

With MySQL, you can choose 2 way to architecture your data : - the fully isolated way : each tenant has his own database. - the shared way : all tenants share the same schema, you usually use a tenant_id column on tables to query your data adequately.

Some other RDBMS like PostgreSQL offer you a third way between the fully isolated a shared data system : - all tenant access the same database but their data are stored on their own schema. It's up to you to decide if the tenants access their schema with the same database role (kind of user) or if you create a role for accessing solely their own schema.

Example :

App_DB

  -- Public schema

     -- tenant_id uuid

     -- tenant_name (subdomain name for example)

     -- etc ...

  -- tenant (named after the public.tenant_id)

     -- your application tables

  -- tenant (named after the public.tenant_id)

     -- your application tables

  -- tenant (named after the public.tenant_id)

     -- Some beta tables model for version n+1 of your app or whatever, you can add more table columns for this very tenant if he needs special features for example.

I hope it's non-documentation language but still english language :) (Need to improve my english and my writing skills)
hrbrtglm··on MariaDB 10
Well, you're right it's not just as easy as I wrote it. For the moment I'm just doing it the ugly way when testing 2 versions whith differences I maintain and detect directly in the application code logic. Not nice.
hrbrtglm··on MariaDB 10
Absolutely, multiple schemas is a really neat feature in a SaaS app context.

You can give each tenant his own schema, that way you can even make some nice split-testing when you incorporate new features in your app requiring changes in you database. Once a fraction of your tenants have tested/approved (much better if they choose themself to take part of a beta) the new model, you are good for rolling out progressively a full implementation to all of your tenants.

hrbrtglm··on "Why do all of your websites look the same?"
There was a time where lots of websites were built with flash, most of them looked different and some were really creative. Nobody thought about responsive at that times.

I don't miss these websites at all.

I think building a website targeting desktop and mobile devices is a limiting factor in terms of creativity.

hrbrtglm··on White House admits it has 'access' to Facebook, Google
As Microsoft was the first company to adhere PRISM as stated by the leaked slide, that also means that no company worldwide should ever use office 365, azure or managed sharepoint / exchange !

These software corps better be persuasive because a whole economic part of USA will be endangered then !

hrbrtglm··on White House admits it has 'access' to Facebook, Google
Ok, but what about companies who store sensitive data and emails on Google Apps for business, especially non US companies ? What about non US citizens who seems to have less protection and spyable at mercy ? Should we the ( whatever your country or citizenship ) avoid by all means US internet corps.

If the American gov wanted to kill the cloud, then good job ! I want to clarify that I do not trust my own gov neither ...

hrbrtglm··on Larry Page addresses PRISM
The dark side of the moon.
hrbrtglm··on [dead]
Being able to see a website the same way it was supposed to be 20 years ago is one of the best browser feature imho !
← PreviousPage 2 of 3Next →