Quantcast
Channel: 懒得折腾
Browsing all 764 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

The Hardware/Software Interface Lab 2

Lab 2: Instructions   When you’re ready to submit your solution, go to the assignments list.     Lab 2: Disassembling and Defusing a Binary Bomb Overview The nefarious Dr. Evil has planted a slew of...

View Article


Image may be NSFW.
Clik here to view.

Provincial Water Quality Monitoring Network (PWQMN) Update Scripts

1. The starting point is a Access Database and a shape file. Firstly, extract the 11 table from Access to tab separated txt file. 2. Run the following script. Python PWQMN.py > 1.txt class...

View Article


Image may be NSFW.
Clik here to view.

Provincial Groundwater Monitoring Network (PGMN) Update Scripts

1. Precipitation data update data input: a text file with all stations. import zipfile class PGMNPrecipitation: def __init__(self, file): import fileinput i = 0 precipitation = {} for line in...

View Article

Image may be NSFW.
Clik here to view.

Algorithms, Part II Final Exam Part II

Final Exam Part II The due date for this quiz is Mon 20 May 2013 8:59 AM PDT -0700. To specify an array or sequence of values in an answer, you must separate the values by a single space character...

View Article

Image may be NSFW.
Clik here to view.

Use Python to create Shape file

ID PatientLat PatientLon DoctorLati DoctorLong G1-2 43.72045100000 -79.33867000000 43.66356400000 -79.41844900000 G1-3 43.72256800000 -79.32789800000 43.66356400000 -79.41844900000 G1-4 43.66446500000...

View Article


Image may be NSFW.
Clik here to view.

App开源项目收集和汇总:App Store地址和源代码

这篇文章的内容来源于论坛2010的一篇帖子,最初列举了23个开源App的App Store地址和源代码,删除了不能下载源码的app,也添加了一些。由于源码托管的地方不一样,所以只下载了github上的部分源码,一些比较大的源码没有上传,所以烦请各位自己下载了。 非常感谢无私分享自己成果的开发者,为那些行业新进入者提供了很好的学习范例。...

View Article

Image may be NSFW.
Clik here to view.

PGMN and PWQMN test cases

PGMN test case: search W0000036-1 and make sure the Chemistry tab contain the sample date of 31/10/2011. search W0000001-1 and make sure the water level chart has the data between 2011 and 2012. search...

View Article

Image may be NSFW.
Clik here to view.

why parseInt(’08′) is giving 0, whereas parseInt(’07′) is giving 7

I am working on javascript, and I seem to find this strange, that the javascript function parseInt(’08′) is returning 0 and parseInt(’07′) is returning 7. this behavior seems to be there in Firefox....

View Article


Image may be NSFW.
Clik here to view.

Batch Geonews: Stamen Map Stack, 1,000 New Street View, Protest Maptivism,...

Batch Geonews: Stamen Map Stack, 1,000 New Street View, Protest Maptivism, D3.js Geo, 270TB of Bird’s Eye, and much more Fri, 2013/06/14 – 08:31 — Satri Here’s the recent geonews in batch mode. From...

View Article


Image may be NSFW.
Clik here to view.

QT + OpenCV

QT Console   #include <opencv2/opencv.hpp> //#include <opencv2/highgui/highgui.hpp> int main(int argc, char *argv[]) { cv::Mat image = cv::imread("img.jpg"); cv::namedWindow("My Image");...

View Article

Image may be NSFW.
Clik here to view.

Calculate Primes

// Fibonacci // http://en.wikipedia.org/wiki/Fibonacci_number var isPrime = function(n, arr) { for (var i = 0; i < arr.length; i++) { if (arr[i] > Math.sqrt(n)) { break; } if ((n % arr[i]) == 0)...

View Article

Image may be NSFW.
Clik here to view.

AWS, heroKu Set up

$ cd ~ $ cp /cygdrive/c/Users/JohnSmith/Downloads/cs184-john-stanford-edu.pem . $ chgrp Users cs184-john-stanford-edu $ chmod 400 cs184-john-stanford-edu.pem $ ssh -i cs184-john-stanford-edu.pem \...

View Article

Image may be NSFW.
Clik here to view.

The Battle of Modern Javascript Frameworks

The Battle of Modern Javascript Frameworks – Part I Posted April 10, 2013 by Bradley Trager and Roman Kagan & filed under Javascript Libraries. Welcome to the Javascript Framework revolution....

View Article


Image may be NSFW.
Clik here to view.

WARNING: gnome-keyring:: couldn’t connect to:...

The fix/workaround is as follows: 1. Do: sudo apt-get install libpam-gnome-keyring 2. Logout 3. Login 4. When the pop-up for unlocking the default keyring comes up, do not simply type in the password...

View Article

Image may be NSFW.
Clik here to view.

Git push requires username and password

A common mistake is cloning using the default (HTTPS) instead of SSH. You can correct this by going to your repository, clicking the ssh button left to the URL field and updating the URL of your origin...

View Article


Image may be NSFW.
Clik here to view.

Send method in Ruby

x = [1,2,3] x.send :[]=,0,2 x[0] + x.[](1) + x.send(:[],2) x = [1, 2, 3] x[0] = 2 x[0] + x[1] + x[2]

View Article

Image may be NSFW.
Clik here to view.

Ruby

def palindrome?(string) letters = string.downcase.scan(/\w/) return letters == letters.reverse end palindrome?("A man, a plan, a canal -- Panama") # => true palindrome?("Madam, I'm Adam!") # =>...

View Article


Image may be NSFW.
Clik here to view.

Git Real Slides

Level 1 Git Basic # get help $ git help config # git config $ git config --global user.name "Gregg Pollack" $ git config --global user.email gregg@codeschool.com $ git config --global color.ui true #...

View Article

Image may be NSFW.
Clik here to view.

New Esri Open Source Javascript Projects: Esri-Leaflet, Geoservices.js,...

New Esri Open Source Javascript Projects: Esri-Leaflet, Geoservices.js, Terraformer, Pushlet by Aaron Parecki on July 31, 2013  154 342 537 We are happy to announce four open source Javascript projects...

View Article

Image may be NSFW.
Clik here to view.

网友印度出差见闻

上个月中,受到印度方的邀请,和三十几位同僚一起造访了孟买。30几位中我们十位中国人是出公差,还有十位是欧美和中东国家的同行。剩下的十几人是国内大学去短期进修的研究生,还有几个驴友。他们特别先行出发,一来是为我们打前站,二来也是趁公差前有空去印度旅游一圈,虽然最后我们的行程不一样,但是月底的时候都会在孟买碰头,于是大家就这么联系上了。...

View Article
Browsing all 764 articles
Browse latest View live