AmazonEC2 - Hadoop Wiki:
'via Blog this'
Tuesday, October 30, 2012
Monday, October 29, 2012
"dfs.namenode.logging.level info The logging level for dfs namenode. Other values are "dir"(trac e namespace mutations), "block"(trace block under/over replications and block creations/deletions), or "all".
dfs.secondary.http.address 0.0.0.0:50090 The secondary namenode http server address and port. If the port is 0 then the server will start on a free port.
dfs.datanode.address 0.0.0.0:50010 The datanode server address and port for data transfer. If the port is 0 then the server will start on a free port.
dfs.datanode.http.address 0.0.0.0:50075 The datanode http server address and port. If the port is 0 then the server will start on a free port.
dfs.datanode.ipc.address 0.0.0.0:50020 The datanode ipc server address and port. If the port is 0 then the server will start on a free port."
'via Blog this'
dfs.secondary.http.address 0.0.0.0:50090 The secondary namenode http server address and port. If the port is 0 then the server will start on a free port.
dfs.datanode.address 0.0.0.0:50010 The datanode server address and port for data transfer. If the port is 0 then the server will start on a free port.
dfs.datanode.http.address 0.0.0.0:50075 The datanode http server address and port. If the port is 0 then the server will start on a free port.
dfs.datanode.ipc.address 0.0.0.0:50020 The datanode ipc server address and port. If the port is 0 then the server will start on a free port."
'via Blog this'
Hadoop Default Ports Quick Reference | Apache Hadoop for the Enterprise | Cloudera
Hadoop Default Ports Quick Reference | Apache Hadoop for the Enterprise | Cloudera: "Web UIs for the Common User
The default Hadoop ports are as follows:
Daemon Default Port Configuration Parameter
HDFS Namenode 50070 dfs.http.address
Datanodes 50075 dfs.datanode.http.address
Secondarynamenode 50090 dfs.secondary.http.address
Backup/Checkpoint node? 50105 dfs.backup.http.address
MR Jobracker 50030 mapred.job.tracker.http.address
Tasktrackers 50060 mapred.task.tracker.http.address"
'via Blog this'
The default Hadoop ports are as follows:
Daemon Default Port Configuration Parameter
HDFS Namenode 50070 dfs.http.address
Datanodes 50075 dfs.datanode.http.address
Secondarynamenode 50090 dfs.secondary.http.address
Backup/Checkpoint node? 50105 dfs.backup.http.address
MR Jobracker 50030 mapred.job.tracker.http.address
Tasktrackers 50060 mapred.task.tracker.http.address"
'via Blog this'
Saturday, October 27, 2012
JavaScript is the new Punk Rock
JavaScript is the new Punk Rock:
Stuart Memo is back with more. Stuart's presentation "JavaScript is the new Punk Rock", which was delivered at JSConf EU 2012 is now up on YouTube. It is not only informative and a great place to start when beginning with Web Audio API, but it's a quite fun presentation full of pop music references and things you probably never knew before.
Stuart Memo is back with more. Stuart's presentation "JavaScript is the new Punk Rock", which was delivered at JSConf EU 2012 is now up on YouTube. It is not only informative and a great place to start when beginning with Web Audio API, but it's a quite fun presentation full of pop music references and things you probably never knew before.
Friday, October 26, 2012
how to change java path for maven - Stack Overflow
how to change java path for maven - Stack Overflow: "
1
down vote
You will need both Java JDK and JRE.
${java.home} specifies the path to the current JRE_HOME environment use with relative paths to get for example: ${java.home}../bin/java.exe
And with a JDK for example in c:\jdk the maven ${java.home} is pointing to c:\jdk\jre"
'via Blog this'
1
down vote
You will need both Java JDK and JRE.
${java.home} specifies the path to the current JRE_HOME environment use with relative paths to get for example: ${java.home}../bin/java.exe
And with a JDK for example in c:\jdk the maven ${java.home} is pointing to c:\jdk\jre"
'via Blog this'
mcansky : Git is cheap !
mcansky : Git is cheap !: "TL;DR : committing and branching is cheap with git so stop worrying about it : split your features into small bricks and commit early and often.
Git is a wonderful tool, yet many of us use it like a glorified svn. Git is not only about features but also about flows and we should pay more attention to that when learning or teaching about git.
"
'via Blog this'
Git is a wonderful tool, yet many of us use it like a glorified svn. Git is not only about features but also about flows and we should pay more attention to that when learning or teaching about git.
"
'via Blog this'
Thursday, October 25, 2012
Kill the Zombies in Your Code | BitNative
Kill the Zombies in Your Code | BitNative: "Improved Signal To Noise
When writing code, we must strive to keep our signal to noise as high as possible. This aids in comprehension, speeds reading, and helps protect us from creating buggy code due to misunderstanding. Zombie code is directly opposed to comprehension. It slows reading and maintenance because less actual production code is on the screen at any given time. It’s visual noise because it’s unclear if one should read it at all. For some reason we often accept this compromise as developers, but we’d never accept such sloppiness in the real world. Imagine if the New York Times looked like this."
'via Blog this'
When writing code, we must strive to keep our signal to noise as high as possible. This aids in comprehension, speeds reading, and helps protect us from creating buggy code due to misunderstanding. Zombie code is directly opposed to comprehension. It slows reading and maintenance because less actual production code is on the screen at any given time. It’s visual noise because it’s unclear if one should read it at all. For some reason we often accept this compromise as developers, but we’d never accept such sloppiness in the real world. Imagine if the New York Times looked like this."
'via Blog this'
MIT OpenCourseWare | Electrical Engineering and Computer Science | 6.824 Distributed Computer Systems Engineering, Spring 2006 | Lecture Notes
MIT OpenCourseWare | Electrical Engineering and Computer Science | 6.824 Distributed Computer Systems Engineering, Spring 2006 | Lecture Notes: "Lecture Notes
LEC # TOPICS HANDOUTS
1 Introduction and O/S review (PDF)
syscall.c (C)
webserver.c (C)
2
I/O concurrency (PDF 1)
Event-driven programming (PDF 2)
events.c (C)
webclient.c (C)
webclient_libasync.c (C)
3 Event-driven programming (cont.) (PDF) arpc.c (C)
4 Network file system (PDF)
5 RPC transparency (PDF)
6 Crash recovery (PDF)
7 Logging (PDF)
8 Cache consistency and locking (PDF)
9 Memory consistency (PDF)
10 First project conferences
11 Memory consistency (cont.) (PDF)
12 Vector timestamps and version vectors (PDF)
13 Two-phase commit (PDF)
14 Paxos (PDF)
15 Viewstamped replication (PDF)
16 Harp (PDF)
17 Second project conferences
18 Frangipani (PDF)
19 Scalable lookup (PDF)
20 Wide-area storage
21 Hacking day (no class)
22 Project demonstrations
23 Content distribution
24 Distributed computing "
'via Blog this'
LEC # TOPICS HANDOUTS
1 Introduction and O/S review (PDF)
syscall.c (C)
webserver.c (C)
2
I/O concurrency (PDF 1)
Event-driven programming (PDF 2)
events.c (C)
webclient.c (C)
webclient_libasync.c (C)
3 Event-driven programming (cont.) (PDF) arpc.c (C)
4 Network file system (PDF)
5 RPC transparency (PDF)
6 Crash recovery (PDF)
7 Logging (PDF)
8 Cache consistency and locking (PDF)
9 Memory consistency (PDF)
10 First project conferences
11 Memory consistency (cont.) (PDF)
12 Vector timestamps and version vectors (PDF)
13 Two-phase commit (PDF)
14 Paxos (PDF)
15 Viewstamped replication (PDF)
16 Harp (PDF)
17 Second project conferences
18 Frangipani (PDF)
19 Scalable lookup (PDF)
20 Wide-area storage
21 Hacking day (no class)
22 Project demonstrations
23 Content distribution
24 Distributed computing "
'via Blog this'
Readable programs - Luke Gorrie's blog
Readable programs - Luke Gorrie's blog: "Programming is, among other things, a kind of writing. One way to learn writing is to write, but in all other forms of writing, one also reads. We read examples - both good and bad - to facilitate learning. But how many programmers learn to write programs by reading programs? A few, but not many. And with the advent of terminals, things are getting worse, for the programmer may not even see his own program in a form suitable for reading. In the old days … programmers would while away the time by reading each others’ programs. Some even went so far as to read programs from the program library - which in those days was still a library in the old sense of the term.
– Gerald Weinberg, The Psychology of Computer Programming"
'via Blog this'
– Gerald Weinberg, The Psychology of Computer Programming"
'via Blog this'
OS X: Changing or resetting an account password
OS X: Changing or resetting an account password: "Start up from a Mac OS X Install disc (one whose version is closest to the version of Mac OS X installed). Usually, you can start from the disc by putting it in your computer, restarting, and holding the C key. Or, put it in the computer and click the Install or Restore icon you see in the disc's main window (after which the computer will start from the disc without you needing to hold C). Or, you can use Startup Manager or the Startup Disk preference pane to select the Install disc.
"
'via Blog this'
"
'via Blog this'
How to reset your Mac OS X password without an installer disc | MacYourself
How to reset your Mac OS X password without an installer disc | MacYourself: "Tricking your Mac into creating a new user account
Power on or restart your Mac (should work for any Mac OS X system).
At the chime (or grey screen if your chime is turned off), hold down Command+S on your keyboard to enter single-user mode.
This step is optional, but it’s a good idea because it checks the consistency of the hard disk before moving on. At the prompt, type fsck -fy and press Enter/Return. Wait for the checks to complete before going to the next step.
Type mount -uw / and press Enter.
Type rm /var/db/.AppleSetupDone and press Enter.
Type shutdown -h now and press Enter.
"
'via Blog this'
Power on or restart your Mac (should work for any Mac OS X system).
At the chime (or grey screen if your chime is turned off), hold down Command+S on your keyboard to enter single-user mode.
This step is optional, but it’s a good idea because it checks the consistency of the hard disk before moving on. At the prompt, type fsck -fy and press Enter/Return. Wait for the checks to complete before going to the next step.
Type mount -uw / and press Enter.
Type rm /var/db/.AppleSetupDone and press Enter.
Type shutdown -h now and press Enter.
"
'via Blog this'
Wednesday, October 24, 2012
AVL tree - Wikipedia, the free encyclopedia
AVL tree - Wikipedia, the free encyclopedia: "In computer science, an AVL tree is a self-balancing binary search tree, and it was the first such data structure to be invented.[1] In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by more than one, rebalancing is done to restore this property. Lookup, insertion, and deletion all take O(log n) time in both the average and worst cases, where n is the number of nodes in the tree prior to the operation. Insertions and deletions may require the tree to be rebalanced by one or more tree rotations."
'via Blog this'
'via Blog this'
How to sort a Python dict (dictionary) by keys or values « SaltyCrane Blog
How to sort a Python dict (dictionary) by keys or values « SaltyCrane Blog: "for key in sorted(mydict.iterkeys()):
print "%s: %s" % (key, mydict[key])"
'via Blog this'
print "%s: %s" % (key, mydict[key])"
'via Blog this'
Google Bot delays executing your JS - It Broke And iFixit
Google Bot delays executing your JS - It Broke And iFixit: "tl;dr
If you're removing code or changing an endpoint, be careful you don't screw the Google bot, which might be "viewing" 3-day-old pages on your altered backend."
'via Blog this'
If you're removing code or changing an endpoint, be careful you don't screw the Google bot, which might be "viewing" 3-day-old pages on your altered backend."
'via Blog this'
Visualizing Facebook Friends With D3.js or “How Wolfram|Alpha Does That Cool Friend Network Graph” | rfw’s blog
Visualizing Facebook Friends With D3.js or “How Wolfram|Alpha Does That Cool Friend Network Graph” | rfw’s blog: "A while ago, Wolfram|Alpha got the ability to generate personal analytics based on your Facebook profile. It made some cool numbers and stuff, but the friend network graph was the most impressive:"
'via Blog this'
'via Blog this'
Tuesday, October 23, 2012
Do more with Chrome Developer Tools
Do more with Chrome Developer Tools: The Chrome Developer Tools team recently launched new features and made several UI changes to improve your development and debugging workflow.
Develop for mobile
Since we launched Chrome for Android, you’ve been able to use Chrome Developer Tools to debug and profile mobile web pages and web apps.
Today, we take this feature one step further by introducing device emulation support in Chrome Developer Tools. Device emulation includes, among other things, native User Agent and dimension overriding. This allows developers to debug mobile browsers on different devices and operating systems via the Settings Menu. So, now, you can emulate the exact device metrics of devices like the Galaxy Nexus and the iPhone to test your media query-driven design.
Chrome Developer Tools also supports single touch event emulation to make it easier to debug mobile applications on the desktop.
Profile rendering performance
The Timeline’s Frame Mode feature now allows you to profile Chrome’s rendering performance, remove the jank and deliver the silky smooth performance users expect from your apps. To learn more about this topic, check out the recent "Jank Busters" video from Google I/O.
Preview your log items
The console now prints a user-friendly snapshot of the object properties taken at log time, whereas by expanding the object manually, you can still see its live content. This is especially useful when logging an object in a loop and observing its mutation. With this change, we resolved a longstanding bug many of you prioritized on crbug.com.
Play with experimental features
You can now try new experimental features in Chrome Developer Tools by visiting chrome:flags and enabling them there. Once you do that, a new tab called “Experiments” will be visible in the settings menu, allowing you to enable and use any of the following experiments:
To get more information on all of Chrome Developer Tools features, check out our “Chrome Developer Tools Evolution” talk at the I/O 2012. You can also follow Google Chrome Developers on Google+ or @ChromiumDev on Twitter for more news on changes landing in Chrome Developer Tools.
Posted by Stefano Cazzulani, Product Manager
Develop for mobile
Since we launched Chrome for Android, you’ve been able to use Chrome Developer Tools to debug and profile mobile web pages and web apps.
Today, we take this feature one step further by introducing device emulation support in Chrome Developer Tools. Device emulation includes, among other things, native User Agent and dimension overriding. This allows developers to debug mobile browsers on different devices and operating systems via the Settings Menu. So, now, you can emulate the exact device metrics of devices like the Galaxy Nexus and the iPhone to test your media query-driven design.
Chrome Developer Tools also supports single touch event emulation to make it easier to debug mobile applications on the desktop.
Profile rendering performance
The Timeline’s Frame Mode feature now allows you to profile Chrome’s rendering performance, remove the jank and deliver the silky smooth performance users expect from your apps. To learn more about this topic, check out the recent "Jank Busters" video from Google I/O.
Preview your log items
The console now prints a user-friendly snapshot of the object properties taken at log time, whereas by expanding the object manually, you can still see its live content. This is especially useful when logging an object in a loop and observing its mutation. With this change, we resolved a longstanding bug many of you prioritized on crbug.com.
Play with experimental features
You can now try new experimental features in Chrome Developer Tools by visiting chrome:flags and enabling them there. Once you do that, a new tab called “Experiments” will be visible in the settings menu, allowing you to enable and use any of the following experiments:
- Snippets (essentially multi-line console on steroids)
- Source mapping support for SASS
- Native memory profiling
- Geolocation / orientation override
- FileSystem inspection
- Canvas inspection
- CPU activity in Timeline
- CSS Regions support
To get more information on all of Chrome Developer Tools features, check out our “Chrome Developer Tools Evolution” talk at the I/O 2012. You can also follow Google Chrome Developers on Google+ or @ChromiumDev on Twitter for more news on changes landing in Chrome Developer Tools.
Posted by Stefano Cazzulani, Product Manager
Monday, October 22, 2012
DIY iPhone 4S NFC (Near Field Communications) Mod modification Mifare ISO14443 - YouTube
DIY iPhone 4S NFC (Near Field Communications) Mod modification Mifare ISO14443 - YouTube: ""
'via Blog this'
NFC enabled iPhone "How do you like me now, bitch!"
'via Blog this'
NFC enabled iPhone "How do you like me now, bitch!"
Interactive navigable audio visualization using WebAudio API and Canvas - HTML5 Audio
Interactive navigable audio visualization using WebAudio API and Canvas - HTML5 Audio: "Need to draw and navigate an audio waveform? You need wavesurfer.js, an open source project that utilizes the Web Audio API and Canvas. There isn't an online demo, but it's easy enough to try out:"
'via Blog this'
'via Blog this'
Pedalboard — an open-source JavaScript framework for developing audio effects for guitars - HTML5 Audio
Pedalboard — an open-source JavaScript framework for developing audio effects for guitars - HTML5 Audio: "Following hot on the heels of last week's real-time audio input support announcement in Canary, we have Pedalboard.js, a framework for developing guitar effects boxes using the Web Audio API. Lots of information on the website regarding how it works and how to develop for Pedalboard.js. The whole thing is available on GitHub."
'via Blog this'
'via Blog this'
Wavy Jones — Hey, hey it's a waveform! - HTML5 Audio
Wavy Jones — Hey, hey it's a waveform! - HTML5 Audio: "Stuart Memo is still churning out cool Web Audio API frameworks and libraries you can plug into your projects. This time he gives Wavy Jones, a tool to draw an oscilloscope-style waveform display that works in realtime on Web Audio-capable browsers. The library makes use of Raphaël in order to draw vector graphics. Very easy to implement, even easier to customize!"
'via Blog this'
'via Blog this'
Abbey Load – A simple way to load audio files into a Web Audio project - HTML5 Audio
Abbey Load – A simple way to load audio files into a Web Audio project - HTML5 Audio: "Stuart Memo, creator of Qwerty Hancock, brings us another useful little library of Web Audio goodness. Today it's a simple tool called Abbey Load, which makes loading audio files for use in Web Audio API projects incredibly simple. The documentation is sparse, but Memo promises to provide more detail in the future.
"
'via Blog this'
"
'via Blog this'
Exploring the HTML5 Web Audio: visualizing sound | Smartjava.org
Exploring the HTML5 Web Audio: visualizing sound | Smartjava.org: "
Exploring the HTML5 Web Audio: visualizing sound
By jos.dirksen on Wed, 10/17/2012 - 21:10
If you've read some of my other articles on this blog you probably know I'm a fan of HTML5. With HTML5 we get all this interesting functionality, directly in the browser, in a way that, eventually, is standard across browsers. One of the new HTML5 APIs that is slowly moving through the standardization process is the Web Audio API. With this API, currently only supported in Chrome, we get access to all kinds of interesting audio components you can use to create, modify and visualize sounds (such as the following spectrogram)."
'via Blog this'
Exploring the HTML5 Web Audio: visualizing sound
By jos.dirksen on Wed, 10/17/2012 - 21:10
If you've read some of my other articles on this blog you probably know I'm a fan of HTML5. With HTML5 we get all this interesting functionality, directly in the browser, in a way that, eventually, is standard across browsers. One of the new HTML5 APIs that is slowly moving through the standardization process is the Web Audio API. With this API, currently only supported in Chrome, we get access to all kinds of interesting audio components you can use to create, modify and visualize sounds (such as the following spectrogram)."
'via Blog this'
Exploring the HTML5 Web Audio: visualizing sound | Smartjava.org
Exploring the HTML5 Web Audio: visualizing sound | Smartjava.org: "
Exploring the HTML5 Web Audio: visualizing sound
By jos.dirksen on Wed, 10/17/2012 - 21:10
If you've read some of my other articles on this blog you probably know I'm a fan of HTML5. With HTML5 we get all this interesting functionality, directly in the browser, in a way that, eventually, is standard across browsers. One of the new HTML5 APIs that is slowly moving through the standardization process is the Web Audio API. With this API, currently only supported in Chrome, we get access to all kinds of interesting audio components you can use to create, modify and visualize sounds (such as the following spectrogram)."
'via Blog this'
Exploring the HTML5 Web Audio: visualizing sound
By jos.dirksen on Wed, 10/17/2012 - 21:10
If you've read some of my other articles on this blog you probably know I'm a fan of HTML5. With HTML5 we get all this interesting functionality, directly in the browser, in a way that, eventually, is standard across browsers. One of the new HTML5 APIs that is slowly moving through the standardization process is the Web Audio API. With this API, currently only supported in Chrome, we get access to all kinds of interesting audio components you can use to create, modify and visualize sounds (such as the following spectrogram)."
'via Blog this'
ofmlabs/aurora.js
ofmlabs/aurora.js: "Aurora.js is a framework that makes writing audio decoders in JavaScript easier. It handles common tasks for you such as dealing with binary data, and the decoding pipeline from source to demuxer to decoder, and finally to the audio hardware itself by abstracting browser audio APIs. Aurora contains two high level APIs for inspecting and playing back decoded audio, and it is easily extendible to support more sources, demuxers, decoders, and audio devices."
'via Blog this'
'via Blog this'
The Flatiron School | SQL Joins Explained Visually: The 3 Ring Binder Model
The Flatiron School | SQL Joins Explained Visually: The 3 Ring Binder Model: "Any programmer worth their weight in bitcoins is going to need to know a bit about databases. If you’re not familiar with databases, you should take some time to read up on them, but hurry back, because for this post we’re going to be talking about the different kinds of JOINS. ‘Joins’ are a method of linking multiple tables in a database together so we can access values from them with a single query. Seems simple enough, but joins can be confusing. Since tables in a database aren’t tangible things, it can be difficult to understand the links we create between them. I for one find it difficult to really wrap my head around a concept until I can draw it, which made for some interesting moments in high school sex ed, but also led me to develop a method for visualizing how the different kinds of joins work! Let’s have a look:"
'via Blog this'
'via Blog this'
jq
jq: "jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text.
jq is written in portable C, and it has zero runtime dependencies. You can download a single binary, scp it to a far away machine, and expect it to work.
jq can mangle the data format that you have into the one that you want with very little effort, and the program to do so is often shorter and simpler than you’d expect."
'via Blog this'
jq is written in portable C, and it has zero runtime dependencies. You can download a single binary, scp it to a far away machine, and expect it to work.
jq can mangle the data format that you have into the one that you want with very little effort, and the program to do so is often shorter and simpler than you’d expect."
'via Blog this'
Friday, October 19, 2012
This Is Why They Call It a Weakly-Ordered CPU
This Is Why They Call It a Weakly-Ordered CPU: "On this blog, I’ve been rambling on about lock-free programming subjects such as acquire and release semantics and weakly-ordered CPUs. I’ve tried to make these subjects approachable and understandable, but at the end of the day, talk is cheap! Nothing drives the point home better than a concrete example.
If there’s one thing that characterizes a weakly-ordered CPU, it’s that one CPU core can read values from shared memory in a different order than another core wrote them. That’s what I’d like to demonstrate in this post using pure C++11."
'via Blog this'
If there’s one thing that characterizes a weakly-ordered CPU, it’s that one CPU core can read values from shared memory in a different order than another core wrote them. That’s what I’d like to demonstrate in this post using pure C++11."
'via Blog this'
The Orionid Meteor Shower - NASA Science
The Orionid Meteor Shower - NASA Science: "Oct. 12, 2012: Usually, waking up before sunrise is a good way to get a head start on the day. On Oct. 21st, waking up early could stop you in your tracks.
Blame Halley’s Comet. Every year in mid-to-late October, Earth passes through a stream of dusty debris from Comet Halley, and the pre-dawn sky lights up with a pretty display of shooting stars.
"We expect to see about 25 meteors per hour when the shower peaks on Sunday morning, Oct 21st," says Bill Cooke, the head of NASA's Meteoroid Environment Office. "With no Moon to spoil the show, observing conditions should be ideal.""
'via Blog this'
Blame Halley’s Comet. Every year in mid-to-late October, Earth passes through a stream of dusty debris from Comet Halley, and the pre-dawn sky lights up with a pretty display of shooting stars.
"We expect to see about 25 meteors per hour when the shower peaks on Sunday morning, Oct 21st," says Bill Cooke, the head of NASA's Meteoroid Environment Office. "With no Moon to spoil the show, observing conditions should be ideal.""
'via Blog this'
Thursday, October 18, 2012
Tutorial: Submitting a job using qsub - IBEST Wiki
Tutorial: Submitting a job using qsub - IBEST Wiki: "#!/bin/sh
if [ "x" == "x$MYVAR" ] ; then
echo "Variable is not set"
else
echo "Variable says: $MYVAR"
fi"
'via Blog this'
if [ "x" == "x$MYVAR" ] ; then
echo "Variable is not set"
else
echo "Variable says: $MYVAR"
fi"
'via Blog this'
Google+
Google+:
'via Blog this'
'via Blog this'
Problem loading Google+
There was a problem loading the Google+ CSS. Please double check your network connection and try reloading in a few minutes.
#fail
AngularJS — Superheroic JavaScript MVW Framework
AngularJS — Superheroic JavaScript MVW Framework: "Why AngularJS?
HTML is great for declaring static documents, but it falters when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop."
'via Blog this'
HTML is great for declaring static documents, but it falters when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop."
'via Blog this'
Latest Quotes
Latest Quotes: " I would totally play a roguelike where you play as a slime mold
you have to grow yourself across the level to reach your goal
moldhack
I love these little guys
Welcome to SlimeHack! You are a neutral neuter physarum polycephalum."
'via Blog this'
you have to grow yourself across the level to reach your goal
moldhack
I love these little guys
Welcome to SlimeHack! You are a neutral neuter physarum polycephalum."
'via Blog this'
Wednesday, October 17, 2012
Re: How do I pipe output from query to a file in PostgreSQL?
Re: How do I pipe output from query to a file in PostgreSQL?: "> How do I do this from the psql command line?
\g will execute the query and send the result to ."
'via Blog this'
\g will execute the query and send the result to ."
'via Blog this'
Postgresql: show tables, show databases, show columns - LinuxScrew: Linux Blog
Postgresql: show tables, show databases, show columns - LinuxScrew: Linux Blog: "mysql: SHOW TABLES
postgresql: \d
postgresql: SELECT table_name FROM information_schema.tables WHERE table_schema = 'public';
mysql: SHOW DATABASES
postgresql: \l
postgresql: SELECT datname FROM pg_database;
mysql: SHOW COLUMNS
postgresql: \d table
postgresql: SELECT column_name FROM information_schema.columns WHERE table_name ='table';
mysql: DESCRIBE TABLE
postgresql: \d+ table
postgresql: SELECT column_name FROM information_schema.columns WHERE table_name ='table';"
'via Blog this'
postgresql: \d
postgresql: SELECT table_name FROM information_schema.tables WHERE table_schema = 'public';
mysql: SHOW DATABASES
postgresql: \l
postgresql: SELECT datname FROM pg_database;
mysql: SHOW COLUMNS
postgresql: \d table
postgresql: SELECT column_name FROM information_schema.columns WHERE table_name ='table';
mysql: DESCRIBE TABLE
postgresql: \d+ table
postgresql: SELECT column_name FROM information_schema.columns WHERE table_name ='table';"
'via Blog this'
psvm - Parallel svm | a parallel version of support vector machine - Google Project Hosting
psvm - Parallel svm | a parallel version of support vector machine - Google Project Hosting: "It is the code of the following paper: http://books.nips.cc/papers/files/nips20/NIPS2007_0435.pdf. This is an all-kernel-support version of SVM, which can parallel run on multiple machines.
We migrate it from Google's large scale computing infrastructure to MPI, then every one can use and run it. Please notice this open source project is a 20% project (we do it in part time), and it is still in a Beta version. :)
If you wish to publish any work based on psvm, please cite our paper as: Edward Chang, Kaihua Zhu, Hao Wang, Hongjie Bai, Jian Li, Zhihuan Qiu, and Hang Cui, PSVM: Parallelizing Support Vector Machines on Distributed Computers. NIPS 2007. Software available at http://code.google.com/p/psvm."
'via Blog this'
We migrate it from Google's large scale computing infrastructure to MPI, then every one can use and run it. Please notice this open source project is a 20% project (we do it in part time), and it is still in a Beta version. :)
If you wish to publish any work based on psvm, please cite our paper as: Edward Chang, Kaihua Zhu, Hao Wang, Hongjie Bai, Jian Li, Zhihuan Qiu, and Hang Cui, PSVM: Parallelizing Support Vector Machines on Distributed Computers. NIPS 2007. Software available at http://code.google.com/p/psvm."
'via Blog this'
Running Jobs | WestGrid
Running Jobs | WestGrid: "The documentation in this Running Jobs section includes a description of the general features of job scripts, how to submit them for execution and how to monitor their progress. Some of the commands, sample scripts and usage policies vary from one WestGrid system to another, so, as the web site is developed there will be additional, separate pages for each major computational site. If you are working on a particular WestGrid facility, you might like to read the general background given here before jumping to the site-specific information available through these links (or the menus in the side bar to the left):"
'via Blog this'
'via Blog this'
Documentation
Documentation: "Documentation
To review technical documentation for any component of the Moab® product family, (Moab HPC Suite or Moab Cloud Suite), please click the appropriate link. For earlier versions of component technical documentation than those listed, see the Documentation Archive.
For installation instructions to install the Moab HPC Suite, either Enterprise Edition or Basic Edition, choose the appropriate link from the following options:"
'via Blog this'
To review technical documentation for any component of the Moab® product family, (Moab HPC Suite or Moab Cloud Suite), please click the appropriate link. For earlier versions of component technical documentation than those listed, see the Documentation Archive.
For installation instructions to install the Moab HPC Suite, either Enterprise Edition or Basic Edition, choose the appropriate link from the following options:"
'via Blog this'
Tuesday, October 16, 2012
Universal hashing - Wikipedia, the free encyclopedia
Universal hashing - Wikipedia, the free encyclopedia: "Using universal hashing (in a randomized algorithm or data structure) refers to selecting a hash function at random from a family of hash functions with a certain mathematical property (see definition below). This guarantees a low number of collisions in expectation, even if the data is chosen by an adversary. Many universal families are known (for hashing integers, vectors, strings), and their evaluation is often very efficient. Universal hashing has numerous uses in computer science, for example in implementations of hash tables, randomized algorithms, and cryptography."
'via Blog this'
'via Blog this'
Monday, October 15, 2012
OS X Keyboard Shortcuts with AppleScript
OS X Keyboard Shortcuts with AppleScript: "You can test the workflow by clicking “Run” in the Automator Toolbar. The AppleScript you selected in Step 3 should launch. Now we know that the workflow functions correctly, let’s save it as a Service."
'via Blog this'
'via Blog this'
visionmedia/ejs
visionmedia/ejs: "
'via Blog this'
- <% users.forEach(function(user){ %> <% include user/show %> <% }) %>
'via Blog this'
Exotic Data Structures
Exotic Data Structures: "A few basic data structures:
Dynamic arrays
Linked lists
Unordered maps
Ordered maps
Ordered maps (over finite keys)
Fully persistent ordered maps
Fully persistent ordered sets
Heaps"
'via Blog this'
Dynamic arrays
Linked lists
Unordered maps
Ordered maps
Ordered maps (over finite keys)
Fully persistent ordered maps
Fully persistent ordered sets
Heaps"
'via Blog this'
SpaceWeather.com -- News and information about meteor showers, solar flares, auroras, and near-Earth asteroids
SpaceWeather.com -- News and information about meteor showers, solar flares, auroras, and near-Earth asteroids: "If this picture confuses you, turn it sideways to see it the same way photographer June Grønseth did. "I took more than 400 pictures last night," says Grønseth. "The butterfly and the heart were my favorites.""
Yeoman - Modern workflows for modern webapps
Yeoman - Modern workflows for modern webapps: "Yeoman is a robust and opinionated client-side stack, comprised of tools and frameworks that can help developers quickly build beautiful web applications. We take care of providing everything needed to get started without any of the normal headaches associated with a manual setup.
With a modular architecture that can scale out of the box, we leverage the success and lessons learned from several open-source communities to ensure the stack developers use is as intelligent as possible.
As firm believers in good documentation and well thought out build processes, Yeoman includes support for linting, testing, minification and much more, so developers can focus on solutions rather than worrying about the little things.
Yeoman is fast, performant and is optimized to work best in modern browsers."
'via Blog this'
With a modular architecture that can scale out of the box, we leverage the success and lessons learned from several open-source communities to ensure the stack developers use is as intelligent as possible.
As firm believers in good documentation and well thought out build processes, Yeoman includes support for linting, testing, minification and much more, so developers can focus on solutions rather than worrying about the little things.
Yeoman is fast, performant and is optimized to work best in modern browsers."
'via Blog this'
Sunday, October 14, 2012
YOLO | Know Your Meme
YOLO | Know Your Meme: "“YOLO” is an acronym for the phrase “you only live once”, which is often used as a hashtag on Twitter to bring attention to exciting events or excuse irresponsible behaviors. "
'via Blog this'
'via Blog this'
Bandcamp Defender on Vimeo
Bandcamp Defender on Vimeo: "
Bandcamp Defender from Alan Jones on Vimeo.
"
Bandcamp Defender from Alan Jones on Vimeo.
"
Bandcamp Defender from Alan Jones on Vimeo.
Saturday, October 13, 2012
Express.js Tutorial
Express.js Tutorial: "In this tutorial I will run you through the process setting up an Express.js app and making it do what a basic website might do. You will learn the basics of routes, views, Jade templates, Stylus CSS engine, handling POST and GET requests.
Let's create an online store to sell Ninja items. We will call it the Ninja Store."
'via Blog this'
Let's create an online store to sell Ninja items. We will call it the Ninja Store."
'via Blog this'
1602/jugglingdb
1602/jugglingdb: "JugglingDB is cross-db ORM, providing common interface to access most popular database formats. Currently supported are: mysql, mongodb, redis, neo4j and js-memory-storage (yep, self-written engine for test-usage only). You can add your favorite database adapter, checkout one of the existing adapters to learn how, it's super-easy, I guarantee.
Installation"
'via Blog this'
Installation"
'via Blog this'
javascript - How do I get started with Node.js - Stack Overflow
javascript - How do I get started with Node.js - Stack Overflow: "Crockford's videos (must see!)
Essential JavaScript Design Patterns For Beginners
JavaScript garden
JavaScript Patterns book
JavaScript: The Good Parts book
"
'via Blog this'
Essential JavaScript Design Patterns For Beginners
JavaScript garden
JavaScript Patterns book
JavaScript: The Good Parts book
"
'via Blog this'
The Node Beginner Book » A comprehensive Node.js tutorial
The Node Beginner Book » A comprehensive Node.js tutorial: "database.query("SELECT * FROM hugetable", function(rows) {
var result = rows;
});
console.log("Hello World");
Here, instead of expecting database.query() to directly return a result to us, we pass it a second parameter, an anonymous function.
In its previous form, our code was synchronous: first do the database query, and only when this is done, then write to the console."
'via Blog this'
var result = rows;
});
console.log("Hello World");
Here, instead of expecting database.query() to directly return a result to us, we pass it a second parameter, an anonymous function.
In its previous form, our code was synchronous: first do the database query, and only when this is done, then write to the console."
'via Blog this'
The Node Beginner Book » A comprehensive Node.js tutorial
The Node Beginner Book » A comprehensive Node.js tutorial: ""Hello World"
Ok, let's just jump in the cold water and write our first Node.js application: "Hello World".
Open your favorite editor and create a file called helloworld.js. We want it to write "Hello World" to STDOUT, and here is the code needed to do that:
console.log("Hello World");
Save the file, and execute it through Node.js:
node helloworld.js
"
'via Blog this'
Ok, let's just jump in the cold water and write our first Node.js application: "Hello World".
Open your favorite editor and create a file called helloworld.js. We want it to write "Hello World" to STDOUT, and here is the code needed to do that:
console.log("Hello World");
Save the file, and execute it through Node.js:
node helloworld.js
"
'via Blog this'
Friday, October 12, 2012
Hermes/Nestor QuickStart Guide | WestGrid
Hermes/Nestor QuickStart Guide | WestGrid: "Hermes is a capacity cluster geared towards serial jobs. The Hermes cluster consists of 84 nodes having 8 cores each and 120 nodes with 12 cores each, which gives a total of 2112 cores. The 120 nodes were added during our recent extension. Nestor is a capability cluster consisting of 288 nodes (2304 cores) geared towards large parallel jobs. The two clusters share infrastructure such as resource management, job scheduling, networked storage, and service nodes."
'via Blog this'
'via Blog this'
isaacs/node-supervisor
isaacs/node-supervisor: "Examples:
supervisor myapp.js
supervisor myapp.coffee
supervisor -w scripts -e myext -x myrunner myapp
supervisor -w lib,server.js,config.js server.js
supervisor -- server.js -h host -p port"
'via Blog this'
supervisor myapp.js
supervisor myapp.coffee
supervisor -w scripts -e myext -x myrunner myapp
supervisor -w lib,server.js,config.js server.js
supervisor -- server.js -h host -p port"
'via Blog this'
The Life & Times of a West Coast Fairy
The Life & Times of a West Coast Fairy: "Every day in San Francisco is a festival........ "
'via Blog this'
'via Blog this'
Audio Working Group Publishes Use Cases and Requirements
Audio Working Group Publishes Use Cases and Requirements:
The Audio Working Group has now published a Use Cases document which details the kinds of things the Web Audio API is intended for. The document details the following uses:
The Audio Working Group has now published a Use Cases document which details the kinds of things the Web Audio API is intended for. The document details the following uses:
- Video Chat Application
- 3D game with music and convincing sound effects
- Online music production tool
- Online radio broadcast
- Music Creation Environment with Sampled Instruments
- Connected DJ booth
- Playful sonification of user interfaces
- Podcast on a flight
- Short film with director's commentary and audio description
- Web-based guitar practice service
- User Control of Audio
Illustration and design of Natalie Ratkovski
Illustration and design of Natalie Ratkovski: "My name is Natalie Ratkovski, I'm a graphic designer and illustrator, currently living in Oberhausen, Germany. I studied graphic design at the University of Applied Sciences and Arts (Dortmund, Germany). Welcome on my home page!
"
'via Blog this'
"
'via Blog this'
Wednesday, October 10, 2012
OpenStack - Wikipedia, the free encyclopedia
OpenStack - Wikipedia, the free encyclopedia: "OpenStack is an Infrastructure as a Service (IaaS) cloud computing project started by Rackspace Cloud and NASA in 2010. Currently more than 150 companies have joined the project among which are AMD, Intel, Canonical, SUSE Linux, Red Hat, Cisco, Dell, HP, IBM and Yahoo!.[1] [2] [3] [4] It is free open source software released under the terms of the Apache License."
'via Blog this'
'via Blog this'
orcaTalk
orcaTalk: "Orca Talk
The Northern Resident Orcas are a small population of killer whales living off the west coast of British Columbia. They make three main kinds of vocalizations, whistles, echolocation clicks and stereotyped pulsed calls. The land-based research station with OrcaLab has recorded over 20,000 hours of orca vocalizations, and in collaboration with them, we have digitized these and have made them available on the web on The Orchive. The calls that they make have been classified into different call types by scientists, and in this website, we have games to help you to learn these calls. We have a number of games for you to play, the first is Orca Talk, which teaches you the different calls of these unique individuals.
"
'via Blog this'
The Northern Resident Orcas are a small population of killer whales living off the west coast of British Columbia. They make three main kinds of vocalizations, whistles, echolocation clicks and stereotyped pulsed calls. The land-based research station with OrcaLab has recorded over 20,000 hours of orca vocalizations, and in collaboration with them, we have digitized these and have made them available on the web on The Orchive. The calls that they make have been classified into different call types by scientists, and in this website, we have games to help you to learn these calls. We have a number of games for you to play, the first is Orca Talk, which teaches you the different calls of these unique individuals.
"
'via Blog this'
GIT: To force-push or not to force-push - sensible.io Blog
GIT: To force-push or not to force-push - sensible.io Blog: "Be aware that force-pushing is a highly dangerous and unclean solution when you’re working in a shared repository. All commits in the shared repository should be considered immutable. To keep your repository consistent and keep your coworkers happy, you should use git revert instead."
'via Blog this'
'via Blog this'
How to make a multi-player game – part 1 | Paul's blog@Wildbunny
How to make a multi-player game – part 1 | Paul's blog@Wildbunny: "Why choose Flash? Because:
The install base is massive, even compared to HTML5
It’s a fixed platform, you don’t need to worry about different browsers, or different hardware
The Flash portals are an amazing resource for distributing games
There are very mature development environments available which support full debugging via the world class Visual Studio
It has support for TCP sockets built right in
"
'via Blog this'
The install base is massive, even compared to HTML5
It’s a fixed platform, you don’t need to worry about different browsers, or different hardware
The Flash portals are an amazing resource for distributing games
There are very mature development environments available which support full debugging via the world class Visual Studio
It has support for TCP sockets built right in
"
'via Blog this'
ABalytics.js: Client-side A/B Testing With Google Analytics | A Techsolutionist's Blog
ABalytics.js: Client-side A/B Testing With Google Analytics | A Techsolutionist's Blog: "There are lots of very good server-side solutions, but what I wanted was one that I didn’t need to configure on the server, and that could be integrated into Google Analytics, where I already track my websites performances. I found on the web some how-tos about the use of GA custom variables for A/B testing, but no ready-made libraries to do so."
'via Blog this'
'via Blog this'
Re: HTML5 Audio Editor from Rainer Heynke on 2012-07-12 (public-audio@w3.org from July to September 2012)
Re: HTML5 Audio Editor from Rainer Heynke on 2012-07-12 (public-audio@w3.org from July to September 2012): "Thank you for you feedback,
I will continue my work in clean up the code, finding performance issues and get more compatibility with webkit based browser on different platforms.
Cheers,
Rainer
"
'via Blog this'
I will continue my work in clean up the code, finding performance issues and get more compatibility with webkit based browser on different platforms.
Cheers,
Rainer
"
'via Blog this'
Tuesday, October 09, 2012
Typed Array Specification
Typed Array Specification: "This specification defines an ArrayBuffer type, representing a generic fixed-length binary buffer. It is not possible to manipulate the contents of an ArrayBuffer directly. Instead, a group of types are used to create views of the ArrayBuffer. For example, to access the buffer as an array of 32-bit signed integers, an Int32Array would be created that refers to the ArrayBuffer."
'via Blog this'
'via Blog this'
toji/gl-matrix
toji/gl-matrix: "glMatrix
With the the increasing popularity of WebGL comes the need for javascript libraries that handle matrix and vector operations. glMatrix is designed to handle those operations at stupidly fast speeds!"
'via Blog this'
With the the increasing popularity of WebGL comes the need for javascript libraries that handle matrix and vector operations. glMatrix is designed to handle those operations at stupidly fast speeds!"
'via Blog this'
HTML5 Audio APIs – How Low can we Go? | The Worm Hole
HTML5 Audio APIs – How Low can we Go? | The Worm Hole: "There are many others, such as XAudioJS which sports a Flash® and base64 data url wav generation fallback, older projects like dynamic.js that just provides a Flash® fallback for the Audio Data API and DSP.js a Digital Signal Processing Library.
"
'via Blog this'
"
'via Blog this'
How to customize the color of the jquery slider range? - Stack Overflow
How to customize the color of the jquery slider range? - Stack Overflow: "div.ui-slider-range.ui-widget-header {
background: blue;
}"
'via Blog this'
background: blue;
}"
'via Blog this'
Monday, October 08, 2012
Abbey Load — an asset loader for web audio projects
Abbey Load — an asset loader for web audio projects: "Need a simple way of loading audio files into a project that uses the Web Audio API? Abbey Load is just the thing.
Specify the names and paths of your audio files along with a function to call when you're done and ready to have the time of your life."
'via Blog this'
Specify the names and paths of your audio files along with a function to call when you're done and ready to have the time of your life."
'via Blog this'
Sunday, October 07, 2012
Friday, October 05, 2012
Limbic Media | real-time interactive media control technologies
Limbic Media | real-time interactive media control technologies: "We have been doing some audio-reactive lighting research at Limbic for some upcoming projects this year. Check out this video to see an audio-reactive LED sculpture by new Limbic Media team member Gabrielle Odowichuk followed by an audio-reactive beat-boxing performance by Manj Benning."
Code Review with Gerrit, a mostly visual guide
Code Review with Gerrit, a mostly visual guide: "A while ago, when Paul, Jason and I worked together, I became a big fan of code reviews before merging code. It was no surprise really, we were the first to adopt Git at the company and our workflow was quite ad-hoc, the need to federate knowledge within the group meant code reviews were a pretty big deal. At the time, we mostly did code reviews in person by way of "hey, what's this you're doing here?" or by literally sending patch emails with git-format-patch(1) to the team mailing list so all could participate in the discussion about what merits "good code" exhibited versus "less good code." Now that I've left that company and joined another one, I've found myself in another small-team situation, where my teammates place high value on code review. Fortunately this time around better tools exist, namely: Gerrit."
'via Blog this'
'via Blog this'
Setting up Disco — Disco v0.4.3 documentation
Setting up Disco — Disco v0.4.3 documentation: "Short Version
git clone git://github.com/discoproject/disco.git DISCO_HOME
cd DISCO_HOME
make
bin/disco nodaemon"
'via Blog this'
git clone git://github.com/discoproject/disco.git DISCO_HOME
cd DISCO_HOME
make
bin/disco nodaemon"
'via Blog this'
Tutorial — Disco v0.4.3 documentation
Tutorial — Disco v0.4.3 documentation: "from disco.core import Job, result_iterator
def map(line, params):
for word in line.split():
yield word, 1
def reduce(iter, params):
from disco.util import kvgroup
for word, counts in kvgroup(sorted(iter)):
yield word, sum(counts)
if __name__ == '__main__':
job = Job().run(input=["http://discoproject.org/media/text/chekhov.txt"],
map=map,
reduce=reduce)
for word, count in result_iterator(job.wait(show=True)):
print word, count"
'via Blog this'
def map(line, params):
for word in line.split():
yield word, 1
def reduce(iter, params):
from disco.util import kvgroup
for word, counts in kvgroup(sorted(iter)):
yield word, sum(counts)
if __name__ == '__main__':
job = Job().run(input=["http://discoproject.org/media/text/chekhov.txt"],
map=map,
reduce=reduce)
for word, count in result_iterator(job.wait(show=True)):
print word, count"
'via Blog this'
Radix sort - Wikipedia, the free encyclopedia
Radix sort - Wikipedia, the free encyclopedia: "Radix sort's efficiency is O(k·n) for n keys which have k or fewer digits. Sometimes k is presented as a constant, which would make radix sort better (for sufficiently large n) than the best comparison-based sorting algorithms, which are all O(n·log(n)). However, in general k cannot be considered a constant. In particular, under the common (but sometimes implicit) assumption that all keys are distinct, then k must be at least of the order of log(n), however other sorting methods become O(log (n) * log (n) * n) under similar constraints as they also need to step through an ever increasing number of symbols to do the comparisons."
What does Google Closure Library offer over jQuery? - Stack Overflow
What does Google Closure Library offer over jQuery? - Stack Overflow: "“Closure is an ecosystem. It is not like jQuery where you just use it here and there to make accessing or manipulating the DOM easier. If you want to truly use Closure, you have to make a commitment to truly use it.”"
'via Blog this'
'via Blog this'
Ask HN: JQuery vs Google Closure | Hacker News
Ask HN: JQuery vs Google Closure | Hacker News: "The flip side is that coding to Closure conventions is very verbose. It feels like Java, a lot of the time. If your app is going to have hundreds of thousands of lines and dozens of developers, this is the right move. If it's just you trying to bang out an interactive website in a couple weeks, JQuery will let you get the basics done in much less code."
'via Blog this'
'via Blog this'
Rapture of the Nerds
Rapture of the Nerds: "Huw makes sure to wake up in his own bed the next morning. It’s ancient and creaky, the springs bowed to conform to his anatomy, and he wove the blankets himself on the treadle-powered loom in the back parlor that Mum and Dad left him when they ascended, several decades before. (Huw is older than he looks, thanks to an unasked-for inheritance of chromosomal hackery, and has for the most part become set in his ways: incurious and curmudgeonly. He has his reasons.) His alarm clock is a sundial sketched on the whitewashed wall opposite in bold lines of charcoal, slightly smudged; his lifestyle a work of wabi in motion."
'via Blog this'
'via Blog this'
Wednesday, October 03, 2012
Create a landscape only iPad app with Phonegap - Google Groups
Create a landscape only iPad app with Phonegap - Google Groups: "[self.window addSubview:self.viewController.view];
replace it with
self.window.rootViewController = self.viewController;
At this point orientation is handled correctly, but for one problem: the webview doesn't appear to know the dimensions of the status bar, and tries to display content underneath it. I tried all sorts of things, and finally got this to work, in viewDidLoad: of MainViewController.m:
After
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
add
self.webView.frame = CGRectMake ( 0, 20, self.view.frame.size.width, self.view.frame.size.height-20);
"
'via Blog this'
replace it with
self.window.rootViewController = self.viewController;
At this point orientation is handled correctly, but for one problem: the webview doesn't appear to know the dimensions of the status bar, and tries to display content underneath it. I tried all sorts of things, and finally got this to work, in viewDidLoad: of MainViewController.m:
After
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
add
self.webView.frame = CGRectMake ( 0, 20, self.view.frame.size.width, self.view.frame.size.height-20);
"
'via Blog this'
underscore.js - obj.length === +obj.length in javascript - Stack Overflow
underscore.js - obj.length === +obj.length in javascript - Stack Overflow: "It's another way of writing if (typeof obj.length == 'number'). Why they do it that way, it's anyone's guess. Probably trying to be clever at the expense of readability. Which is not too uncommon these days, unfortunately..."
'via Blog this'
'via Blog this'
Tuesday, October 02, 2012
CAP Twelve Years Later: How the "Rules" Have Changed
CAP Twelve Years Later: How the "Rules" Have Changed: "In its classic interpretation, the CAP theorem ignores latency, although in practice, latency and partitions are deeply related. Operationally, the essence of CAP takes place during a timeout, a period when the program must make a fundamental decision-the partition decision:
cancel the operation and thus decrease availability, or
proceed with the operation and thus risk inconsistency."
'via Blog this'
cancel the operation and thus decrease availability, or
proceed with the operation and thus risk inconsistency."
'via Blog this'
CAP Twelve Years Later: How the "Rules" Have Changed
CAP Twelve Years Later: How the "Rules" Have Changed: "The CAP theorem states that any networked shared-data system can have at most two of three desirable properties:
consistency (C) equivalent to having a single up-to-date copy of the data;
high availability (A) of that data (for updates); and
tolerance to network partitions (P).
"
'via Blog this'
consistency (C) equivalent to having a single up-to-date copy of the data;
high availability (A) of that data (for updates); and
tolerance to network partitions (P).
"
'via Blog this'
CAP theorem - Wikipedia, the free encyclopedia
CAP theorem - Wikipedia, the free encyclopedia: "In theoretical computer science, the CAP theorem, also known as Brewer's theorem, states that it is impossible for a distributed computer system to simultaneously provide all three of the following guarantees:[1][2]
Consistency (all nodes see the same data at the same time)
Availability (a guarantee that every request receives a response about whether it was successful or failed)
Partition tolerance (the system continues to operate despite arbitrary message loss or failure of part of the system)"
'via Blog this'
Consistency (all nodes see the same data at the same time)
Availability (a guarantee that every request receives a response about whether it was successful or failed)
Partition tolerance (the system continues to operate despite arbitrary message loss or failure of part of the system)"
'via Blog this'
Paper Trail » Blog Archive » Consensus Protocols: Two-Phase Commit
Paper Trail » Blog Archive » Consensus Protocols: Two-Phase Commit: "The worst case scenario is when the co-ordinator is itself a participant, and grants itself a vote on the outcome of the protocol. Then a crash to the co-ordinator takes out both it and a participant, guaranteeing that the protocol will remain blocked, and as a result of only one failure."
'via Blog this'
'via Blog this'
Paper Trail » Blog Archive » Consensus Protocols: Two-Phase Commit
Paper Trail » Blog Archive » Consensus Protocols: Two-Phase Commit: "For the next few articles here, I’m going to write about one of the most fundamental concepts in distributed computing – of equal importance to the theory and practice communities. The consensus problem is the problem of getting a set of nodes in a distributed system to agree on something – it might be a value, a course of action or a decision. Achieving consensus allows a distributed system to act as a single entity, with every individual node aware of and in agreement with the actions of the whole of the network."
'via Blog this'
'via Blog this'
The NewSQL Movement
The NewSQL Movement: "We talk often about various types of NoSQL databases - document stores like Apache CouchDB, graph databases like Neo4j and BigTable clones like Hbase. But we also occasionally talk about various attempts to improve the tried and true relational database model - projects like Drizzle (coverage), HandlerSocket (coverage), RethinkDB (coverage), TokuTek (coverage) and VoltDB (coverage).
The 451 Group dubs these "NewSQL" databases. In a blog post, 451 analyst Matthew Aslett explores this burgeoning category of database and adds several to our growing list of projects."
'via Blog this'
The 451 Group dubs these "NewSQL" databases. In a blog post, 451 analyst Matthew Aslett explores this burgeoning category of database and adds several to our growing list of projects."
'via Blog this'
CiteSeerX — Venti: A New Approach to Archival Storage
CiteSeerX — Venti: A New Approach to Archival Storage: "This paper describes a network storage system, called Venti, intended for archival data. In this system, a unique hash of a block's contents acts as the block identifier for read and write operations. This approach enforces a write-once policy, preventing accidental or malicious destruction of data. In addition, duplicate copies of a block can be coalesced, reducing the consumption of storage and simplifying the implementation of clients. Venti is a building block for constructing a variety of storage applications such as logical backup, physical backup, and snapshot file systems."
'via Blog this'
'via Blog this'
Jeff Dean - Google+ - Spanner: Google's Globally-Distributed Database I and many…
Jeff Dean - Google+ - Spanner: Google's Globally-Distributed Database I and many…: "Spanner: Google's Globally-Distributed Database
I and many others have been working for the last few years on building a large-scale storage system that can manage data across all of Google's datacenters. This system underlies Google's advertising system, among other products. We'll be presenting a paper describing the system (with 26 co-authors!) at OSDI 2012 next month. We've now put up a web page with a link to the PDF of the final version of the paper.
Feedback is welcome, of course."
'via Blog this'
I and many others have been working for the last few years on building a large-scale storage system that can manage data across all of Google's datacenters. This system underlies Google's advertising system, among other products. We'll be presenting a paper describing the system (with 26 co-authors!) at OSDI 2012 next month. We've now put up a web page with a link to the PDF of the final version of the paper.
Feedback is welcome, of course."
'via Blog this'
Cloudant Labs: On Google Spanner | Cloudant
Cloudant Labs: On Google Spanner | Cloudant: "This past weekend Google released the latest in their seminal research publications -- Spanner. First introduced quietly nearly three years ago, Spanner is fully described, from motivation, to execution through operational performance data. The Spanner paper is technically revolutionary for a few reasons (described below), but most importantly it is continued proof that Google is a clear leader in distributed big data systems. In contrast to the original canon (GFS, MapReduce, Bigtable) and more recent replacements (Collosus, Percolator, Pregel, Dremel), I don't predict a Spanner clone will land as an Apache incubator anytime soon. The primary reason is that Spanner's largest design innovation leverages special hardware. Specifically one must install a coordinate network of GPS and atomic clocks in each participating datacenter."
'via Blog this'
'via Blog this'
Google Spanner — instamatic redundancy for 10 million servers? • The Register
Google Spanner — instamatic redundancy for 10 million servers? • The Register: "Dean declined to discuss the presentation with The Reg. And Google’s PR arm has yet to respond to specific questions about the Spanner setup. But Google senior manager of engineering and architecture Vijay Gill alluded to the technology during an appearance at the cloud-happy Structure 09 mini-conference in San Francisco earlier this year."
'via Blog this'
'via Blog this'
La Crosse Technology WS-8119U-IT-B Atomic Digital Wall Clock, with Temperature: Amazon.ca: Home & Garden
La Crosse Technology WS-8119U-IT-B Atomic Digital Wall Clock, with Temperature: Amazon.ca: Home & Garden: "Self-setting atomic clock gives you the most accurate time along with display of current temperatures. Wireless outdoor temperature In Fahrenheit or Celsius. The outdoor sensor transmits a fast and reliable signal to the indoor clock giving you accurate outside temperature within a 260 ft range. Transmitter is weather resistant and requires 2 AAA alkaline batteries (not included.) Calendar date can be read in 4 different languages: English, French, German, or Spanish and also features a time alarm with snooze."
'via Blog this'
'via Blog this'
Remote Client Logging — RCL
Remote Client Logging — RCL: "What is RCL?
RCL is a browser library and server client that allows you to log extensively from a JavaScript application to a remote consumer.
What do I get?
Loads of beautiful logs viewable from multiple clients all the while not bloating your production code."
'via Blog this'
RCL is a browser library and server client that allows you to log extensively from a JavaScript application to a remote consumer.
What do I get?
Loads of beautiful logs viewable from multiple clients all the while not bloating your production code."
'via Blog this'
Five Myths about Hash Tables « Hugh E. Williams
Five Myths about Hash Tables « Hugh E. Williams: "This doesn’t happen in practice. At least, it won’t happen if you make a reasonable attempt to design a hash function using some knowledge of the search keys. Indeed, hashing is usually in the average case much closer to O(1). In practice, that means almost always you’ll find what you’re looking for on the first search attempt (and you will do very little secondary searching).
"
'via Blog this'
"
'via Blog this'
What it’s like to work for Stripe | Alex MacCaw
What it’s like to work for Stripe | Alex MacCaw: "IM & IRC
Google Chat and group IRC rooms are as integral as email to internal communication. Instead of meetings, we just do short chat conversations. Rather than constantly interrupt people’s train of thought, we prefer to communicate asynchronously. Chat is often the happy medium between the latency of email, and the bother of in-person interruptions.
That said, sometimes it is much better to discuss things face to face. If someone hasn’t got their headphones on, then it’s totally acceptable to come over and ask them for five minutes of their time when they can spare it.
Also, an IRC bot messages me every six hours or so asking me to optionally reply with brief description of whatever I’m working on. It then displays what I wrote on some of our dashboards. This is rather useful, as it gives visibility at a company wide level into what everyone’s doing."
'via Blog this'
Google Chat and group IRC rooms are as integral as email to internal communication. Instead of meetings, we just do short chat conversations. Rather than constantly interrupt people’s train of thought, we prefer to communicate asynchronously. Chat is often the happy medium between the latency of email, and the bother of in-person interruptions.
That said, sometimes it is much better to discuss things face to face. If someone hasn’t got their headphones on, then it’s totally acceptable to come over and ask them for five minutes of their time when they can spare it.
Also, an IRC bot messages me every six hours or so asking me to optionally reply with brief description of whatever I’m working on. It then displays what I wrote on some of our dashboards. This is rather useful, as it gives visibility at a company wide level into what everyone’s doing."
'via Blog this'
html - Phonegap page has wrong rotation, shows as portrait in landscape mode - Stack Overflow
html - Phonegap page has wrong rotation, shows as portrait in landscape mode - Stack Overflow: "You can check the root Controller - shouldAutorotateToInterfaceOrientation, allow rotation for certain orientation. Hope it helps.
For example return true in Classes/MainViewController.m:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
//return (interfaceOrientation == UIInterfaceOrientationPortrait);
return true;
}"
'via Blog this'
For example return true in Classes/MainViewController.m:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
//return (interfaceOrientation == UIInterfaceOrientationPortrait);
return true;
}"
'via Blog this'
Got big JSON? BigQuery expands data import for large scale web apps - Google Developers Blog
Got big JSON? BigQuery expands data import for large scale web apps - Google Developers Blog: "JSON is the data format of the web. JSON is used to power most modern websites, is a native format for many NoSQL databases hosting top web applications, and provides the primary data format in many REST APIs. Google BigQuery, our cloud service for ad-hoc analytics on big data, has now added support for JSON and the nested/repeated structure inherent in the data format. "
'via Blog this'
'via Blog this'
Monday, October 01, 2012
HTML5 audio experiment - JavaScript sound synthesis and audio encoding
HTML5 audio experiment - JavaScript sound synthesis and audio encoding: ""riffwave.js" is a tiny javascript library that encodes audio data to a format (PCM inside a RIFF container) that can be used to play synthesized sounds with the HTML5 audio element.
Simply use the generated data URI as source."
'via Blog this'
Simply use the generated data URI as source."
'via Blog this'
The Man in Blue > Visualising
The Man in Blue > Visualising <audio> elements with the Web Audio API: "For a new project I'm working on I'd like to create an audio-reactive visualisation using analysis of the music that's playing. The new Web Audio API lets you do this pretty easily in the browser (Webkit-only at the moment).
"
'via Blog this'
"
'via Blog this'
A List Apart: Articles: The Web Aesthetic
A List Apart: Articles: The Web Aesthetic: "It is the nature of the web to be flexible, and it should be our role as designers and developers to embrace this flexibility, and produce pages which, by being flexible, are accessible to all.
— John Allsopp, The Dao of Web Design"
'via Blog this'
— John Allsopp, The Dao of Web Design"
'via Blog this'
John Digweed - Transitions with John Digweed - 27th September 2012 | Mixcloud - Re-think radio
John Digweed - Transitions with John Digweed - 27th September 2012 | Mixcloud - Re-think radio: "The weekly series of exclusive Cloudcasts continues playing a minimix of music from the Transitions radio show -aired around the world on the best FM Stations and online exclusively at protonradio.com and johndigweed.com. "
'via Blog this'
'via Blog this'
"Honey Badger Don't Give A Shit" T-Shirts & Hoodies by jezkemp | Redbubble
"Honey Badger Don't Give A Shit" T-Shirts & Hoodies by jezkemp | Redbubble: "Honey badger. Most fearless creature ever. And total badass.
Thanks for all the sales everyone! Honey Badger may not care but I do.
"
Thanks for all the sales everyone! Honey Badger may not care but I do.
"
Urban Dictionary: Velvet Rut
Urban Dictionary: Velvet Rut: "
Any locale, esp. a smaller city, with few opportunities for career advancement that traps its inhabitants with its laidback lifestyle.
Victoria, BC, Canada"
'via Blog this'
Any locale, esp. a smaller city, with few opportunities for career advancement that traps its inhabitants with its laidback lifestyle.
Victoria, BC, Canada"
'via Blog this'
mrdoob/stats.js
mrdoob/stats.js: "var stats = new Stats();
stats.setMode(1); // 0: fps, 1: ms
// Align top-left
stats.domElement.style.position = 'absolute';
stats.domElement.style.left = '0px';
stats.domElement.style.top = '0px';
document.body.appendChild( stats.domElement );
setInterval( function () {
stats.begin();
// your code goes here
stats.end();
}, 1000 / 60 );"
'via Blog this'
stats.setMode(1); // 0: fps, 1: ms
// Align top-left
stats.domElement.style.position = 'absolute';
stats.domElement.style.left = '0px';
stats.domElement.style.top = '0px';
document.body.appendChild( stats.domElement );
setInterval( function () {
stats.begin();
// your code goes here
stats.end();
}, 1000 / 60 );"
'via Blog this'
How to Turn a NO into a YES! | Neuromarketing
How to Turn a NO into a YES! | Neuromarketing: "Several psychological factors may be at work here. Framing is one – the second request seems small, or even inconsequential, in scale compared to the first one. The main effect may be “concession reciprocity” – when the first request is moderated to a much smaller request, there’s a social expectation that the second party will give a little, too."
efesx » Python directing C++
efesx » Python directing C++: "The next logical step would then be a way to combine the benefits of such different programming languages in a single system. For instance, we could use C++ solely for the cpu-intensive parts, while the rest of the software could very well be written entirely in Python. The missing piece would then be a way to integrate the two. The common way of doing so is through SWIG, which is a tool that is able to wrap C++ to many different programming languages, Python included. Using SWIG right out of the box, we will be able to invoke C++ code directly from a Python interpreter. But what if we wanted to extend C++ classes in Python, making native C++ seamlessly call Python code?"
SourceForge.net: Faust : signal processing language:
SourceForge.net: Faust : signal processing language:: "We have continued our experiments with Faust and web tools. With the help of Chris Rogers, developer at Google, we have integrated the Faust technology "natively" in the WebAudioAPI. Instead of using Faust to produce JavaScriptNode (hence the audio code of the JavaScriptNode is ultimately not very fast ...), we have developed a native Faust node. This node embed the Faust compiler as a library and the LLVM technology (http://llvm.org/) to generate very fast native code "on the fly." The chain is then:
DSP source code Faust ==> LLVM IR code (using the library board Faust and LLVM backend) ==> native code (using LLVM JIT embedded)
Faust nodes can then be inserted into a WebAudioAPI graph node like any other native node. They are of course much faster than the JavaScript version....
Here is a package if you want to test: https://dl.dropbox.com/u/28869550/WebKit-faust.zip (OSX Snow Leopard and Mountain Lion). The package contains:
"
'via Blog this'
DSP source code Faust ==> LLVM IR code (using the library board Faust and LLVM backend) ==> native code (using LLVM JIT embedded)
Faust nodes can then be inserted into a WebAudioAPI graph node like any other native node. They are of course much faster than the JavaScript version....
Here is a package if you want to test: https://dl.dropbox.com/u/28869550/WebKit-faust.zip (OSX Snow Leopard and Mountain Lion). The package contains:
"
'via Blog this'
Welcome to TypeScript
Welcome to TypeScript: "TypeScript is a language for application-scale JavaScript development.
TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
Any browser. Any host. Any OS. Open Source"
'via Blog this'
TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
Any browser. Any host. Any OS. Open Source"
'via Blog this'
plotting - xkcd style graphs - Mathematica
plotting - xkcd style graphs - Mathematica: "h[fun_, divisor_, color_, at_] :=
Module[{k},
k = BSplineFunction[
Table[fun@x + RandomReal[{-0.1, 0.1}/divisor], {x, 0.01,10, .1}]];
ParametricPlot[k[x], {x, 0.1, 0.9},
PlotStyle -> {color, AbsoluteThickness[at]}, Axes -> None]];
Show[{Show[
h[{#, 1.5 + 10 (Sin[#]^2/Sqrt[#]) Exp[-(# - 5)^2/2]} &, 3, Darker[Cyan, 0.3], 3],
h[{#, 3 + 10 (Sin[#]^2/Sqrt[#]) Exp[-(# - 7)^2/2]} &, 3, White, 8],
h[{#, 3 + 10 (Sin[#]^2/Sqrt[#]) Exp[-(# - 7)^2/2]} &, 3, Darker[Red, 0.3], 3],
h[{1, #} &, 4, Black, 3],
h[{#, 1} &, 4, Black, 3],
h[{3 + #/6, 7 - 2 #/5} &, 8, Black, 1.25], PlotRange -> All],
Graphics[Text[Style["This is a nice curve isn't it ?",
FontFamily -> "Humor Sans", 14], {4, 7}]],
Arrow[{{1, 7}, {1, 9}}] // Graphics,
Arrow[{{7, 1}, {9, 1}}] // Graphics,
Arrow[{{4.5, 3.5}, {4.6, 3.2}}] // Graphics}, AspectRatio -> 2/3]"
Module[{k},
k = BSplineFunction[
Table[fun@x + RandomReal[{-0.1, 0.1}/divisor], {x, 0.01,10, .1}]];
ParametricPlot[k[x], {x, 0.1, 0.9},
PlotStyle -> {color, AbsoluteThickness[at]}, Axes -> None]];
Show[{Show[
h[{#, 1.5 + 10 (Sin[#]^2/Sqrt[#]) Exp[-(# - 5)^2/2]} &, 3, Darker[Cyan, 0.3], 3],
h[{#, 3 + 10 (Sin[#]^2/Sqrt[#]) Exp[-(# - 7)^2/2]} &, 3, White, 8],
h[{#, 3 + 10 (Sin[#]^2/Sqrt[#]) Exp[-(# - 7)^2/2]} &, 3, Darker[Red, 0.3], 3],
h[{1, #} &, 4, Black, 3],
h[{#, 1} &, 4, Black, 3],
h[{3 + #/6, 7 - 2 #/5} &, 8, Black, 1.25], PlotRange -> All],
Graphics[Text[Style["This is a nice curve isn't it ?",
FontFamily -> "Humor Sans", 14], {4, 7}]],
Arrow[{{1, 7}, {1, 9}}] // Graphics,
Arrow[{{7, 1}, {9, 1}}] // Graphics,
Arrow[{{4.5, 3.5}, {4.6, 3.2}}] // Graphics}, AspectRatio -> 2/3]"
Burning Blog » Blog Archive » MOOP Map Live 2012: Where are the MOOP-conscious mutant vehicles?
Burning Blog » Blog Archive » MOOP Map Live 2012: Where are the MOOP-conscious mutant vehicles?: "I was out at well-loved-and-well-known-art-car-that-shall-not-be-named one morning and they did something wonderful. Between sets the DJ that was coming on stopped the music and said he wasn’t going to turn it back on until, “all the moop was picked up”. I’d like to encourage all DJ’s who play at BM to follow this ethos. Before your set, stop the music and make everyone there pick up “all the moop.” Sure some people will wonder off, but you’ll be doing wonders to help that sound camp and the rest of BM stay moop free."
'via Blog this'
'via Blog this'
The Music of Burning Man 2012 | Burners.Me Burning Man commentary blog
The Music of Burning Man 2012 | Burners.Me Burning Man commentary blog: "The Music of Burning Man 2012
JD Mack, Opulent Temple
We heard some wicked tunes this year, and there were certainly some amazing DJ’s on the Playa. We’re getting a bit tired of our friends saying “put on Robot Heart!”, because they don’t know where to find it. So here’s some links for you, some of these DJs are our friends, others are from camps whose music we enjoy. "
'via Blog this'
JD Mack, Opulent Temple
We heard some wicked tunes this year, and there were certainly some amazing DJ’s on the Playa. We’re getting a bit tired of our friends saying “put on Robot Heart!”, because they don’t know where to find it. So here’s some links for you, some of these DJs are our friends, others are from camps whose music we enjoy. "
'via Blog this'
Subscribe to:
Posts (Atom)