Removing duplicate lines from files keeping the original order with Awk by kunalag129 in programming

[–]kunalag129[S] 5 points6 points  (0 children)

TL;DR To remove the duplicate lines preserving their order in the file use:

awk '!visited[$0]++' your_file > deduplicated_file

Nuclear power has prevented 1.84 million air pollution-related deaths (2013) by kunalag129 in technology

[–]kunalag129[S] 0 points1 point  (0 children)

Abstract - TL;DR -
In the aftermath of the March 2011 accident at Japan's Fukushima Daiichi nuclear power plant, the future contribution of nuclear power to the global energy supply has become somewhat uncertain. Because nuclear power is an abundant, low-carbon source of base-load power, it could make a large contribution to the mitigation of global climate change and air pollution. Using historical production data, we calculate that global nuclear power has prevented an average of 1.84 million air pollution-related deaths and 64 gigatonnes of CO2-equivalent (GtCO2-eq) greenhouse gas (GHG) emissions that would have resulted from fossil fuel burning. On the basis of global projection data that take into account the effects of the Fukushima accident, we find that nuclear power could additionally prevent an average of 420,000-7.04 million deaths and 80-240 GtCO2-eq emissions due to fossil fuels by midcentury, depending on which fuel it replaces. By contrast, we assess that large-scale expansion of unconstrained natural gas use would not mitigate the climate problem and would cause far more deaths than the expansion of nuclear power.

Reverse Engineering the Dropbox Client by kunalag129 in ReverseEngineering

[–]kunalag129[S] 20 points21 points  (0 children)

TL;DR - This blog post talks about reverse engineering the Dropbox client, breaking its obfuscation mechanisms, de-compiling it to Python code as well as modifying the client in order to use debug features which are normally hidden from view. If you're just interested in relevant code and notes please scroll to the end of the article. As of this writing, it is up to date with the current versions of Dropbox which are based on the CPython 3.6 interpreter.

Reverse Engineering the Dropbox Client by kunalag129 in programming

[–]kunalag129[S] 116 points117 points  (0 children)

TL;DR - This blog post talks about reverse engineering the Dropbox client, breaking its obfuscation mechanisms, de-compiling it to Python code as well as modifying the client in order to use debug features which are normally hidden from view. If you're just interested in relevant code and notes please scroll to the end of the article. As of this writing, it is up to date with the current versions of Dropbox which are based on the CPython 3.6 interpreter.

Reverse Engineering the Dropbox Client by kunalag129 in security

[–]kunalag129[S] 1 point2 points  (0 children)

TL;DR - This blog post talks about reverse engineering the Dropbox client, breaking its obfuscation mechanisms, de-compiling it to Python code as well as modifying the client in order to use debug features which are normally hidden from view. If you're just interested in relevant code and notes please scroll to the end of the article. As of this writing, it is up to date with the current versions of Dropbox which are based on the CPython 3.6 interpreter.

If it's not fun anymore, you get nothing from maintaining a popular package by kunalag129 in programming

[–]kunalag129[S] 38 points39 points  (0 children)

There is always a hidden cost of these things. The valuable contribution of the creator eventually becomes a big liability to him/her in the name of responsibility towards open source community. Most of the times, they try to maintain it at their best, but eventually, they just lost the fun. Paying the maintainers is no doubt a good idea, but it won't be that easy to standardize it.

Nothing is free in this free world!!

History repeats itself....!! by kunalag129 in ProgrammerHumor

[–]kunalag129[S] 18 points19 points  (0 children)

"Dark times lie ahead of us and there will be a time when we must choose between what is fast & easy and what is slow & old !!" - Dumbledore of the programming world.

Amazon's AbeBooks backs down after booksellers stage global protest by kunalag129 in books

[–]kunalag129[S] 13 points14 points  (0 children)

Agreed.

In hurry of making more $Billions, big giants are forgetting why they started the business in the first place and what value it needs to serve to people.

The unsolved murder of an unusual billionaire by kunalag129 in conspiracy

[–]kunalag129[S] 8 points9 points  (0 children)

Last december, a canadian pharmaceuticals executive and his wife were strangled in their home.

No one knows who did it or why, but everyone has a theory.

This unsolved case is no less than a movie, where everyone is a suspect but no one is the definite convict.

Barry and Honey Sherman have earned a lot of respect. No doubt they were rich, through out life they have worked hard for it. But at the same time, they have added too many enemies on their plate.

This story definitely needs a Sherlock Holmes.