News for hackers. Stuff that matters.

waratuman

Re:Postgres Auditing in 150 lines of SQL on Monday March 14, 2022 @12:23PM (#30674354)
At 42Floors, we experienced a similar need for auditing. Initial we did a similar approach as described in the post. Over time the audit tables began to be incorporated into every aspect of the product, which over time caused the table to become quite large, and ended up causing a lot of downtime. Our initial implementation only audited what was inserted by our Rails application. If a change was made by another application or manually, it wouldn’t appear in the table.

Over the course of a few months we extracted the system and built a standalone application that today has become [changebase.io](https://changebase.io/). We now use CDC, change data capture, to capture all events in the database and a metadata table to capture the context of why the change occurred and who made the change. The changes are then structured to be easily queryable.

Initially, we encoded the data as JSON, but over time have opted for encoding the data in the database’s native format. This creates a more complex query system, but at the end of the day we don’t have to worry about type conversions and querying is done in the same format the database that was replicated. Teams have benefited from the system by being able to recover data that was accidentally deleted, or deleted maliciously. Notifications have also been used for high value datasets where someone on a sales team wants to immediately know of a change in the system.

Re:Battery Swap Pilot Program on Friday December 19, 2014 @04:40PM (#8774692)
Strange that it would cost just less than a full tank of gas. I was assuming it would be much cheaper, not comparable to gas.
Re:FundersClub Ditches Dumb Money By Going Invite-Only on Saturday August 17, 2013 @02:40AM (#6228382)
My guess is that this was just an easier story to sell because they can just approve accredited investors and not have to deal with those who are not due to regulations. They may have planned to make it open to everyone but had to step the plan back a bit.
Re:It was not a DDoS: MtGox got 20k new accounts per day on Thursday April 11, 2013 @01:08AM (#5530082)
Facebook users generally don't intend to transact though.
Re:How To Land Any Major Brand For Your Startup on Wednesday October 17, 2012 @12:38AM (#4663172)
So did you land anyone?
Re:Game Over on Sunday October 14, 2012 @08:06PM (#4653057)
People did not criticize the post but the person.
Re:Game Over on Sunday October 14, 2012 @07:56PM (#4653026)
It is a shame to see such hate against people. @antirez was attacked for openly sharing his thoughts about sexism. The sad part is that those who attacked him seek respect for their points of view yet do not give it to others.
Re:What's Wrong With antirez's Post on Sexism in IT on Sunday October 14, 2012 @06:43PM (#4652878)
This is an emotional article full of personal attacks and not worthy of reading.
Re:One of the SpaceX engines came apart during launch on Monday October 08, 2012 @02:17PM (#4628100)
Misleading title.
Re:The effect of typefaces on credibility on Thursday August 09, 2012 @02:51PM (#4362584)
I'm not that great of a writer. My papers were usually in the B range and I almost never got an A. Then I started using LaTeX and now my papers are used as examples in classes.
Re:All the oxygen trapped in a bubble on Thursday May 17, 2012 @02:10PM (#3988274)
Inflation isn't an increase in demand that leads to higher cost. Inflation is a general increase in supply. A rise in prices is not the same as inflation. Inflation will eventually cause a rise in prices but it is not the only reason for an increase in prices.
Re:How LinkedIn built its new iPad app on Wednesday May 02, 2012 @04:04PM (#3920871)
Nope, nope, I can totally believe it.
His family example doesn't really work. If we had all agreed to throw this big party then each person who agreed stated his obligations to the party. If someone had not agreed to the party, they simply would have not payed and not come. This is not how it works with the government. You are forced to come to the party and pay for it to make everyone else happy. It does not matter that it cost you or that it is not what you want to do. You must surrender yourself for societies "greater good."

It is also worth mentioning that happiness is a subjective value. It is pointless to draw a conclusion about what make society happy when only individuals can be happy. If someone goes their own way, they are not leaving happiness on the table, they are seeking it out elsewhere.

Re:User Authentication with Rails and Backbone.js on Thursday April 19, 2012 @02:33PM (#3864422)
Have you looked into cross-origin resource sharing? It doesn't support all browsers, but it may be a great solution for browsers that support it. http://en.wikipedia.org/wiki/Cross-Origin_Resource_Sharing
Re:User Authentication with Rails and Backbone.js on Wednesday April 18, 2012 @02:19PM (#3859424)
Yes, this is true. I'll mention this in an update. When working in dev I've always just used regular HTTP. I'll mention how to configure Rails to use SSL.
Re:This is the mail system on Wednesday April 11, 2012 @06:57PM (#3830053)
Its old, it doesn't look nice. But it is surprisingly reliable.
Re:This is why I don't give you a job on Saturday January 07, 2012 @04:30AM (#3436650)
The cost should not be distributed. The cost should go directly to the business that is employing these women. If a business employs anyone they hope to do so by creating more value then the value then is spent on the employee. Even if the cost could be distributed, it has little impact on the fact that when the women goes on leave she is taking some 'business knowledge' that will take time to replace. The ability to even determine the value lost is impossible except under very general assumptions.

Car insurance isn't compulsory in all states (assuming you are from the US, but most require it). In NH you simple have to prove the ability to provide personal responsibility. If the roads were private, then it should be up to the owner of the road whether or not insurance is required.

Re:This is why I don't give you a job on Saturday January 07, 2012 @03:39AM (#3436576)
And the state passes that right along to the business / people through taxes.
Re:Startups: Silicon Valley vs. The Emerging World on Sunday November 27, 2011 @02:13AM (#3281924)
The use of "reality distortion field" is out of place here. It used to highlight a difference in culture, but I see no "distortion field" here. It is also applied something that has no standard. How old is a company before its no longer considered a startup? Reality? What is reality in a startup anywhere in the world?
Re:Want Smarter Kids? Space Them (At Least) Two Years Apart on Saturday November 19, 2011 @01:08AM (#3254737)
Perhaps there is no need for a standard for everyone. Take any student who wishes to enter into an industry, whether it is engineering, philosophy, aviation, or sports. Is there any value for him or her being rated by a standard that does not apply? Instead the student will try to achieve the accepted standard for the industry they enter.

How many years after high school will you or any employer care about your transcript? How about college? The experience you have in an industry quickly outweighs the number of years in college, at least in my industry (this may not be true when you need to go to specialized schooling, such as when you enter a medical profession, but I speak of general schooling).

Re:Want Smarter Kids? Space Them (At Least) Two Years Apart on Friday November 18, 2011 @04:00PM (#3253390)
This is using a predefined standard for being "smart," higher reading and writing skills. First the basis should be established that proves that being smarter, based on this metric, is actually better for every person. I find value in being smarter, but this does not mean that others will.

A better metric would be the amount of value the person derives from what he or she is doing. But this is an impossible metric to gather and even if it were it can't be used to compare individuals.

Re:Show HN: Scroll Reddit on Saturday November 05, 2011 @12:55AM (#3198972)
Ok, may have scrolled on this page forever. When the page gets lots of content it gets slow. Could you remove the DOM elements at the top as you scroll?
Re:Why The 99% Should Protest Against Y Combinator on Wednesday October 12, 2011 @07:20PM (#3105148)
This article itself is outrageous. First, I highly doubt that you can claim 99%. Second, what right do you have to declare what is ethical and what is not ethical? Has Monsanto done any harm to you in any way or intervened in your personal affairs? You might as well become a religious zealot.
In Ruby?

Older »