leons.im
Atlassian License Analytics - Next Spaceship
http://leons.im/posts/atlassian-license-analytics
Driving into future…. To better understand the relationship between orignal text and the license text, I write a Python code to uncover the original text from a license text. Laquo; Modify Java .class in a .jar. 9 most useful Jenkins plugins ». What We Use Make Who We Are. Integrate Everything Into Slack. Solve AutoCAD Chinese Question Mark Issue. How to Be a Good Tech Lead for a Start Up. Cast Android and iPhone Screen Onto Macbook. Proxy All TCP Traffic on a Remote Server. 9 Most Useful Jenkins Plugins.
leons.im
What We Use Make Who We Are - Next Spaceship
http://leons.im/posts/what-we-use-make-who-we-are
Driving into future…. What We Use Make Who We Are. For a start up, for a tech team, or for a community, what we use make who we are. They are the source of culture and they show what we believe. Which operating system, Windows, Linux or OS X, do you use as the default developing environment? Which operating system do you use as the production environment, Debian based, Red hat based, or Gentoo? Which cloud server do you use, AWS or other? Which infrastructure do you use? OS X for developing OS. Laquo; In...
leons.im
Automatically Backup MongoDB With AWS CLI - Next Spaceship
http://leons.im/posts/automatically-backup-mongodb-with-aws-cli
Driving into future…. Automatically Backup MongoDB With AWS CLI. After searching google, the information about backuping MongoDB is neither obselete or complicated. So this article is about a new practice on automatically backup MongoDB with AWS’s offical tool AWS CLI. It’s more straight forward and more compatable with the new Amazon S3 server (supporting the newest v4 signature). Before that, let’s review some existing methods. One method is use the open source project s3cmd. Install AWS CLI first.
leons.im
Modify Java .class in a .jar - Next Spaceship
http://leons.im/posts/modify-java-class-in-a-jar
Driving into future…. Modify Java .class in a .jar. Sometimes I need to know what’s inside to figure out a best solution, like modifying a Java. File After searching google and stack overflow for a while, I found this question is little cared, and almost all information is not complete. So I wrap them up and make the whole process runnable. Use luyten (or JD GUI if you don’t care its bugs) to decompile the jar, and save all files to folder. Modify a java file, then compile it to. Vi com/./A.java. Music b...
leons.im
Downgrade MongoDB From 3.0 to 2.6 - Next Spaceship
http://leons.im/posts/downgrade-mongodb-from-3-dot-0-to-2-dot-6
Driving into future…. Downgrade MongoDB From 3.0 to 2.6. Due to a Meteor bug (actually it’s a bug from MongoDB nodejs driver, but the bug has already been fixed by the nodejs driver, while the issue is Meteor is referencing an old version of this driver), I have to downgrade MongoDB from. Normally this is a trival work, but it cost me a whole afternoon to do this, because there are serveral traps in there, so I decide to write this blog to help other people who meet the same issue with me. First and most...
leons.im
POJ 1020 Anniversary Cake - Next Spaceship
http://leons.im/posts/poj-1020-anniversary-cake
Driving into future…. POJ 1020 Anniversary Cake. This is a simple search problem. With some pruning job it’s sufficient to pass test cases. The biggest possible area of cake is (16 times 10 times 10 ), so the biggest possbile side of cake is (40 ). Image a cake as a matrix with rows and colums. Each element of this matrix is a 1x1 cell. The problem can be translated to if there exists a method to fill this matrix with squares. Source code in C :. Laquo; Calculate distance between Latitude/Longitude points.
leons.im
Transform All Files to UTF-8 Encoding - Next Spaceship
http://leons.im/posts/python-script-to-transform-shift-jis-to-utf-8-encoding
Driving into future…. Transform All Files to UTF-8 Encoding. This blog is obselete, please head forward to this blog. I’m tired of transform shift-jis encoding to UTF-8 encoding for each file in my project these days, so I want to write a script to automatically do this job for me. After searching the Internet, I find it’s an easy job with the tool of Python. This code transforms all files, including files in sub-folders, from shift-jis encoding(or detected encodings) to UTF-8 encoding. 9 Most Useful Jen...
leons.im
Solve AutoCAD Chinese Question Mark Issue - Next Spaceship
http://leons.im/posts/solve-autocad-chinese-question-mark-issue
Driving into future…. Solve AutoCAD Chinese Question Mark Issue. This article describes a complicated issue when using AutoCAD, Chinese text shows as a question mark, and two common causes and a perfect solution. Chinese text shows as a question mark (? When opening the file in AutoCAD as opposed to the actual symbols. Often this is caused by a missing font file (.shx). Actually I do have this problem, so I search and find the missing shx called. And put it under. Convert multiple text individually.
leons.im
How to Be a Good Tech Lead for a Start Up - Next Spaceship
http://leons.im/posts/how-to-be-a-good-tech-lead-for-a-start-up
Driving into future…. How to Be a Good Tech Lead for a Start Up. To be a good tech lead in a start up is totally different from being CTO at a mature big company. There are numerous theories and technologies about managment in big companies. Unfortunately, there are not so much knowledges about how to lead a technical start up. Today, I’m gonna to give my advices. Hope they will inspire you. I’m gonna talk this in 9 respects. They are not all ordered by importances, even though some are. Well I change th...