Posts
Moving my blog...
I’ve now moved my blog to my own site and converted it into static HTML. No more creepy Google tracking me and everyone that visits the blog from now on! I’m currently using Jekyll+markdown to create the site, but may change to something else if I find something better.
Flashing the ZTE Axon 7 with LineageOS
With the recent sanctions on ZTE, it seems unlikely that the Axon 7 will still be receiving security updates for Android. Fortunately, third party ROMs like LineageOS still receive updates and can replace the version of Android ZTE installed on the phone, provided you are willing to risk having an expensive paperweight instead of working device.
Playing Games with Numbers
Note: What follows is a discussion mostly grounded in theory, not empirical data. It is also very drafty. Caveat lector.
In light of the President's proposal for an increase in the minimum wage (and the ensuing debate), I decided it'd be worthwhile to delve into some of the relevant economic theory.
The most common argument against the minimum wage tends to go something like this: The market is efficient. It correctly determines the value of a person's work, and pays them something less than or equal to this amount. A minimum wage interferes with this process. If the work done by an employee is worth less than what minimum wage says that employee should be paid, then a company would lose money if it hired that worker. Therefore, the company will not hire that worker (or others of a similar productivity).
The argument goes on to claim that, as the employees that produce the products of the least (monetary) value are generally the poor, a minimum wage law disproportionately harms the worst off in society.
While this argument appears solid at first, it conceals several assumptions. These assumptions, once violated, can lead to a very different conclusion than the one intended by opponents of the minimum wage.
Unfortunately, in order to discuss these hidden assumptions, I must get slightly technical.The Technical Part:
In economics, there are a number of different theories used to explain when companies hire workers. The one I will be discussing, is known as Search-Matching theory. In order to avoid being too technical, I will be simplifying. For full details, see this link.
Imagine we have two parties playing a game. One is a worker named Karl. The other is a company named The Very Big Corporation of America (henceforth referred to as TVBCA). TVBCA is attempting to rebuild after being defeated by The Crimson Permanent Assurance (footage available here). Karl has recently fallen on hard times, and is applying for a job with TVBCA.
Karl is willing to accept any wage that leaves him better off than unemployment. However, he prefers to be paid as much as possible. TVBCA is willing to pay Karl any amount less than the total value of what he produces for them. They prefer to pay him as little as possible.
Given these preferences, it is clear that Karl and TVBCA are bargaining over a wage between the minimum Karl is wiling to accept, and the maximum TVBCA is willing to pay. In other words, they are bargaining over a point (the wage) within an interval. It is here that the first hidden assumption in the anti-minimum wage argument is revealed, and shown to be false.
The anti-minimum wage argument assumes that any deviation from the market wage (a point), will lead to unemployment. However, as has been demonstrated, unless something strange happens (i.e., the interval contains only one point), there are any number of possible wages where employment will occur. Unemployment will only occur if the increase in wage goes beyond the maximum TVBCA is willing to pay Karl.The Key Assumption:
Having established that increasing the minimum wage doesn't inevitably result in an increase in unemployment, I move to the next (and most important) hidden assumption. Namely, that there would be more jobs lost due to the increased minimum wage than jobs gained from putting money in the pockets of the poor.
This assumption is more difficult to discuss intelligently, as determining its accuracy requires empirical data. It is also likely that the effect of the minimum wage on unemployment will not be constant. For instance, a minimum wage set during good economic times may have little to no negative effects, but during a future recession could lead to an increase in unemployment (as the value of what a worker produces decreases below the minimum wage).
Nevertheless, the minimum wage is not being set during good economic times. Quite the opposite, in fact. The world has barely stabilized after the worst economic crisis since the recession. Wages have stagnated, while corporate profits are the largest since records began. Worker's wages should therefore average towards the low end (as their bargaining power is very low), whilst the maximum wage tolerable to employers should be very high (as implied by record corporate profits, workers are very productive following recessions). All of this suggests that if there is any time where increasing the minimum wage won't lead to an increase in unemployment, it is now.Fiat Justitia Ruat Caelum
The recent white paper leaked to NBC appears to reveal the list of conditions the president says need to be satisfied before he may execute a US citizen without trial. These are as follows:- That the individual in question is "...a senior operational leader of al-Qa'ida or an associated force of al-Qa'ida...".
- A "high-level official" of the US government has determined that the target "poses an imminent threat of violent attack against the United States".
- Capture is infeasible.
- The operation would be "conducted in a manner consistent with applicable law of war principle.
- Asks the country where the target is located for permission and is given permission.
- Asks the country where the target is located for permission and is not given permission.
Likewise, capture is deemed "infeasible" if it involves "undue risk" to US personnel. What this means is presently unknown, however, given the Orwellian definitions used in the rest of the paper, "undue risk" probably translates to "any risk". Hence, this condition restricts nothing.
The most egregious crime against the English language, however, is the redefining of "imminent" to mean its opposite. According to the white paper, to declare a threat "imminent", no proof of any particular plan, attack, or scheme is needed. Nor is any information as to when an attack might occur required. Essentially, the Obama administration defines "imminent" as "this person might be planning something, someday". As such an "imminent" threat is generally implied by being a member of al-Qa'ida, condition 3 is not a restriction at all.
A number of the president's defenders cite the AUMF (Authorization for Use of Military Force Against Terrorists) as granting the president the power to pursue and kill terrorists. However, such an argument ignores several key difficulties in counter-terrorism. Who decides someone is a terrorist, and how is such a determination made?
While the AUMF certainly gives the president power to kill terrorists, it is unreasonable to claim that it also grants him (or one of his flunkies) the right to denote US citizens (in a non-combat situation) as members of al-Qa'ida without judicial review. Given the plastic conditions the president needs to satisfy in order to execute a US citizen, once a citizen has been denoted as a member of al-Qa'ida, the other conditions are (essentially) automatically satisfied. As a result, being denoted a member of al-Qa'da is equivalent to a death sentence.
During the Bush administration, any number of accused terrorists were found, after more information was gathered, to not be terrorists. These sorry individuals could be compensated (or at least released) following such revelations. Unfortunately, under current counter-terrorism doctrine, these cases of mistaken affiliation would result in death, not imprisonment. As death is not a reversible condition, something beyond the president's (or his adviser's) say-so should be required. This something is a public court, where evidence can be weighed by those whose careers are not dominated by the irrational fears of the mob.
To those that object to an open judicial process (perhaps out of fear), I can only respond:Set Up a Webpage, Scanned Most of My Books.
Finished setting up a basic webpage, linking together my disparate accounts on various websites.
I also finally took the plunge and scanned almost all of my books. They're all posted to a Goodreads account. I've lost track of when I read a many of them, however.Nominal GDP Targeting...
Evidently Prof. McCallum's writings (e.g. this) on nominal GDP targeting have stirred up some debate in the blogosphere...
http://newmonetarism.blogspot.de/2012/07/some-doubts-about-ngdp-targeting.html
http://www.themoneyillusion.com/?p=15157
http://economistsview.typepad.com/economistsview/2012/07/some-doubts-about-ngdp-targeting.htmlPrinting from the command line...
If you're like me (i.e. a neophyte college student), at the end of a semester you have folder for each class, with various sub-folders for hw, lectures, etc. Each folder has a number of files (say, lecture notes), and you'd like to print all of them with a single command (rather than opening each in some program, selecting print, and so forth).
If so, then you're in luck! Via the wonders of the command line (and BASH scripting), the following line of code when run from a terminal (both OSX and Linux) will do exactly that:
find . -name '*.pdf' -exec lpr {} \;
What the command does:
find . -name '*.pdf'
-searches the directory you are currently in (as well as all sub-directories) for all files ending in .pdf (you can change this to whatever you are trying to print. For instance, if you had some Word files you would change this to .doc)
This is then passed as an input (via the -exec) to the lpr function, which sends a print request for each file found by the 'find' command. The '{}' symbol is what sends the results from find to lpr. Finally, \; ends and executes the line.
Note: Make sure to only run this script from the directory you want to start searching from, otherwise you'll probably print more than you intended (See some of the stories about golems for further reference).Writing in Academia...
Memo to Self: Avoid doing this...
http://twentytwowords.com/2012/02/23/calvin-and-hobbes-discuss-the-purpose-of-writing/Emacs and Latex...
Recently a friend asked me if I could send him some links on Emacs and Latex. After sending it to him, thought it might prove useful to others, so I'm reposting it here.
Preliminaries:
http://kieranhealy.org/emacs-starter-kit.html (Setting up Emacs and
latex in Windows, Mac, or Linux)
http://www.kieranhealy.org/files/misc/workflow-apps.pdf (overview of
what's in the kit, and why you might want to use it - targeted at graduate students in the social sciences, but still fairly general)
Emacs (Note: After setting up, use the built in tutorial first):
http://www.gnu.org/software/emacs/manual/html_node/emacs/ index.html
(Reference manual - is built into the editor as well)
http://home.uchicago.edu/gan/file/emacs.pdf (cheat sheet)
Latex:
http://www.techscribe.co.uk/ta/latex-introduction.pdf ( One page overview)
http://ctan.tug.org/tex-archive/info/lshort/english/ lshort.pdf (main reference)
http://www.andy-roberts.net/misc/latex/ (tutorials for various levels)
http://en.wikibooks.org/wiki/LaTeX (Wikipedia's unfinished book on latex) Bypass SOPA/PIPA Blackout on Wikipedia
SOPA and PIPA are both horrid bills whose passage leads to the Internet being broken. To try and prevent their passage, Wikipedia (and many other organisations/businesses) have blacked-out their websites (or placed anti-SOPA banners) so as to raise awareness. Given the importance of stopping these bills, you should stop reading this tutorial and fill out one of the various petitions or contact your congress-critter.
Done that? Good, now here's how to bypass Wikipedia's blackout:
On Firefox: Open your options/preference menu (should be under edit or tools, depending on your operating system) and disable javascript. Congratulations, you've now bypassed the blackout. (Alternatively, you could install the add-on NoScript)
On Safari or IE: Open your options/preference/settings menu (should be under edit or tools, depending on your operating system/browser) Congratulations, you've now bypassed the blackout.
Note that you cannot edit pages, however you can still view them.Stanford's Online Game Theory Class...
If anyone else was interested in taking game theory next semester but couldn't due to a conflict with 36-402, you might be interested in registering for this online class that Stanford has going.
http://www.game-theory-class.org/
It's free (and isn't worth any credit), but if you're interested in the material, this may be useful.
H/T to cktShameless Self Promotion...
A slide from a group presentation/project I'm a member of appeared on the professor's blog.
http://bactra.org/weblog/843.html
The presentation was on our group's attempt to use a markov chain model to construct pseudo-Conrad text using the Heart Of Darkness as training text (i.e. the corpus).
If anyone's interested in seeing the code, here's a link to the project:
https://github.com/jasontc2/MarkovLanguage
The project is part of 36-350 (Statisitcal Computing) at CMU.
http://www.stat.cmu.edu/~cshalizi/statcomp/Air Quality in China
In case you were wondering what it would have been like to live during the 19th century, present day China has been holding a live demo.
More details:
http://www.theatlantic.com/international/archive/2011/12/chinese-smog-disaster-rouses-chinese-media/249533/
Larger version of photo:
http://cdn.theatlantic.com/static/mt/assets/jamesfallows/assets_c/2011/12/ChinaDailySMog-71227.phpLinks About Economics...
As I don't have much time to blog today, I'll just do another link post.
There are a number of different opinions in economics about public policy/research (a point which can be lost in undergraduate level classes). To avoid bias, it is often useful to check what persons of various persuasions say on a given topic, then weigh each of their arguments yourself. To that end, here's a list of some of the blogs/sites which I've found useful in avoiding groupthink (at least wrt debates in economics).
Note: These categories, as with most labels, are approximations of truth, and tend to gloss over important differences. For instance, libertarians/austrians get mixed up the with center-right. Should be taken with a large grain of salt.
"Left"
http://economistsview.typepad.com/economistsview/
http://delong.typepad.com/sdj/
http://thinkprogress.org/yglesias/issue/
http://www.washingtonpost.com/blogs/ezra-klein
"Center"
http://blogs.ft.com/economistsforum
http://www.economist.com/node/21003975/index.xml
http://www.nber.org/new.html
http://theincidentaleconomist.com/wordpress
http://modeledbehavior.com
http://chrisblattman.com
"Right"
http://gregmankiw.blogspot.com/
http://marginalrevolution.com
http://www.becker-posner-blog.com/Some Useful Links on China...
One thing I've noticed over the past few years is a dearth of decent reporting in the mainstream press on what is going on in China. As a result, I've tracked down a few useful sources by people "on the ground" (or with some relevant experience) that might come in handy next time you hear something about China on the news.
http://seeingredinchina.com
http://www.thechinabeat.org
http://www.pekingduck.org
http://granitestudio.org
http://chinageeks.orgDownloading Videos off of Youtube Using Linux...
Not so long ago grabbing a copy of a video off of Youtube (when running Linux) was easy. All you had to do was open the /tmp folder, and copy-paste the desired video (after it had finished buffering) wherever you wished. Nowadays Adobe setup its player to delete the temp. file immediately after its creation. However, the player still keeps track of the handle to the file. As a result, the file still exists, but doesn't show up via the traditional commands like ls, find, etc...
Luckily, the command lsof can be used to find the file's location.
Steps to find:
Command 1:
lsof | grep Flash
----------------------------
Having done this, you should get a screen-print that looks as follows;
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODENAME
Command 2:
cat /proc/[PID]/fd/[FD] > /desired/location/filename.flv
Note: [FD] typically ends with a letter, which should be excluded from the previous command. Additionally, [PID] and [FD] are variables taken from the output of command one, and should be filled in manually, without the square brackets.
Congratulations, you now have a copy of the video. Enjoy...lorem Ipsum...
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborumLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborumLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
subscribe via RSS