Composer is amazing for pulling in packages, but what if you find a Gist that isn't Composer aware? Fear not, as Composer has the magical ability to pull in repositories not explicitly set up in Packagist by defining them in the "repositories" section. But what if you wanted to load a single class from a git gist? You can add the following repositories section to your composer.json file, adjusting name and url as necessary. The name s....
|
Composer is amazing for pulling in packages, but what if you find a Gist that isn't Composer aware? Fear not, as Composer has the magical ability to pull in repositories not explicitly set up in Packagist by defining them in the "repositories" section. But what if you wanted to load a single class from a git gist? You can add the following repositories section to your composer.json file, adjusting name and url as necessary. The name s....
|
|
Diagnosing buffer busy waits with the ash_wait_chains.sql script (v0.2)
-
tanelpoder.com
-
12 years ago
-
eng
In my previous post ( Advanced Oracle Troubleshooting Guide – Part 11: Complex Wait Chain Signature Analysis with ash_wait_chains.sql ) I introduced an experimental script for analysing performance from “top ASH wait chains” perspective. The early version (0.1) of the script didn’t have the ability to select a specific user (session), SQL or module/action performance data for analysis. I just hadn’t figured out how to write the SQL for th..
|
|
Diagnosing buffer busy waits with the ash_wait_chains.sql script (v0.2)
-
tanelpoder.com
-
12 years ago
-
eng
In my previous post ( Advanced Oracle Troubleshooting Guide – Part 11: Complex Wait Chain Signature Analysis with ash_wait_chains.sql ) I introduced an experimental script for analysing performance from “top ASH wait chains” perspective. The early version (0.1) of the script didn’t have the ability to select a specific user (session), SQL or module/action performance data for analysis. I just hadn’t figured out how to write the SQL for th..
|
|
For my next project, I was exploring the session storages for ExpressJS, and I found a question on StackOverflow, but I was frustrated with the accepted and 30 upvoted answer, which compares local in memory session store with remote session stores. The answer is very misleading, there is no chance that remote storage can beat local storage, even if the in-memory solution does O(n^9) calculations, it would be faster than going to web.
|
|
In the works for nearly a year , Matt Alexander’s new startup Need addresses a fascinating deficiency of not just fashion, but any degree of concern with respect to one’s physical appearance all too prevalent in today’s society, especially amongst young people. At nineteen a young person myself, I speak from first-hand experience: you would not believe the things I see my peers wearing, especially on a college campus. I am not wholly exemp..
|
|
Following Apple’s event last week and after I ordered a top of the line 15“ Retina MacBook Pro, I sat down to read John Siracusa’s famous Mavericks review . I started last year’s Lion review with good intentions, but without any incentive to finish I only read a few pages. This year though, with a shiny new Mac already on its way from China, I finally had more of a reason to persevere than simply to say that I had. Surprisingly, that gra..
|
|
Greg 1.0 Born in the Bronx. Grew up in upper middle class suburban New Jersey. College at Virginia Tech: went in a Computer Science major, came out with a B.A. in Interdisciplinary Studies. College summers working at Walt Disney World, first at Cosmic Ray's Starlight Cafe
|
|
Hi there, I hope you enjoyed my “ Pushing Puppet (to its limit)” talk and demos from Puppet Camp D.C., LISA 2013 . As requested, I’ve posted the code and slides. Here is the code: https://github.com/purpleidea/puppet-pushing This module will require three modules as dependencies. The dependencies are: My Puppet-Common module https://github.com/purpleidea/puppet-common My Puppet-Runonce module https://github.com/purpleid..
|
|
Hi there, I hope you enjoyed my “ Pushing Puppet (to its limit)” talk and demos from Puppet Camp D.C., LISA 2013 . As requested, I’ve posted the code and slides. Here is the code: https://github.com/purpleidea/puppet-pushing This module will require three modules as dependencies. The dependencies are: My Puppet-Common module https://github.com/purpleidea/puppet-common My Puppet-Runonce module https://github.com/purpleid..
|
|
XML libraries in Java is a minefield. The amount of code required to manipulate and read XML is staggering, the risk of getting class path problems with different libraries is substantial and the handling of namespaces opens for a lot of confusion and errors. The worst thing is that the situation doesn’t seem to improve. A colleague made me aware of the JOOX library some time back. It’s a very good attempt to patch these problems.
|
|
I’m here at LISA 2013 at the Gluster Community Day . I’ve been asked by Joe Brockmeier to give a little recap about what’s been going on. So here it is! Wesley Duffee-Braun started off with a nice overview talk about GlusterFS . The great thing about his talk was that he gave a live demo, running on virtual machines, on his laptop. If you’re a new GlusterFS user, this is good exposure to help you get started. He also has the nicest ..
|
|
I’m here at LISA 2013 at the Gluster Community Day . I’ve been asked by Joe Brockmeier to give a little recap about what’s been going on. So here it is! Wesley Duffee-Braun started off with a nice overview talk about GlusterFS . The great thing about his talk was that he gave a live demo, running on virtual machines, on his laptop. If you’re a new GlusterFS user, this is good exposure to help you get started. He also has the nicest ..
|
|
Linux is unique to Windows in many ways, and writing programs in Linux is no exception. The use of standard out, standard err and null devices is not only a good idea but it’s the law. If your programs are going to be logging information, it is best to follow the destination conventions. This way your programs will work with all of the Mac/Linux tooling and hosted environments. Go has a package in the standard library called log and a ..
|
|
Prefer double quotes if escaping single quotes. Prefer string interpolation over join. Eg. "'%s'" % member_default. Prefer double underscore for privates. Prefer with statement to implicitly close file. with open(path, 'r') as text_file: text = text_file.read() Prefer list comprehensions to filter. Prefer using separate modules over classes if only using for separation. Keep in mind: "eafp vs lbyl" (ie. just let it throw). Prefer except....
|
|
I’m speaking at LISA 2013 , the “Large Installation System Administration” conference. This conference runs all week in Washington . I’ll be giving two talks during the week, and attending at least one BOF. My first talk is on Monday during the Gluster Community Day . I’ll be speaking about puppet-gluster , and giving a live demo. I’ll be showing some new features too. If you’d like to talk more about puppet-gluster, or want to attend..
|
|
I’m speaking at LISA 2013 , the “Large Installation System Administration” conference. This conference runs all week in Washington . I’ll be giving two talks during the week, and attending at least one BOF. My first talk is on Monday during the Gluster Community Day . I’ll be speaking about puppet-gluster , and giving a live demo. I’ll be showing some new features too. If you’d like to talk more about puppet-gluster, or want to attend..
|
|
Today I want to present my Tiny Tiny RSS -installation, running on my own VPS . tt-rss is “an open source web-based news feed ( RSS /Atom) reader and aggregator, designed to allow you to read news from any location, while feeling as close to a real desktop application as possible.” Preface Update: Since 30.01.2015 the installation and update-mechanism switched to git . I (hopefully) updated the post accordingly. I’m r....
|
JS Error using X-Editable If you're trying to use X-Editable and getting a JS error similar to this... TypeError: $.fn.popover.defaults is undefined It may be because you're using Bootstrap 3 and using their CDN urls for including their JS and CSS. Their CDN currently only hosts their Bootstrap 2 code. To use it with Bootstrap 3, you need to download their repository and host it locally.
|
|
Jon Skeet was once asked to give three questions to check how well you know C#. He asked the following questions : Q1. What constructor call can you write such that this prints True (at least on the Microsoft .NET implementation)? object x = new /* fill in code here */ ; object y = new /* fill in code here */ ; Console . WriteLine ( x == y ); Note that it’s just a constructor call, an....
|
|
Jon Skeet was once asked to give three questions to check how well you know C#. He asked the following questions : Q1. What constructor call can you write such that this prints True (at least on the Microsoft .NET implementation)? object x = new /* fill in code here */ ; object y = new /* fill in code here */ ; Console . WriteLine ( x == y ); Note that it’s just a constructor call, an....
|
|
I am working on a project that requires pulling and processing different XML feeds from the web and storing the data into MongoDB as JSON. Since new feeds come up everyday, changing the Go program to process and publish new feeds is out of the question. A second constraint is that processing has to work in Iron.io or any other linux cloud based environment. What I needed was a Go program that could take an XML document and XSLT stylesh....
|
|
After a long hiatus, let’s continue our foray into amateur genomics with Clojure , in which we continue to encounter elegant expressions of Clojure’s power as well as a few additional wrinkles in the Clojure ecosystem (in this case, Incanter). In our last post we upgraded our genome decoder and used it to show frequencies of the four nucleotides, illustrating Chargaff’s Rule . Another simple question to be asked of the data is, Wh....
|
|
After a long hiatus, let’s continue our foray into amateur genomics with Clojure , in which we continue to encounter elegant expressions of Clojure’s power as well as a few additional wrinkles in the Clojure ecosystem (in this case, Incanter). In our last post we upgraded our genome decoder and used it to show frequencies of the four nucleotides, illustrating Chargaff’s Rule . Another simple question to be asked of the data is, Wh....
|
|
After a long hiatus, let’s continue our foray into amateur genomics with Clojure , in which we continue to encounter elegant expressions of Clojure’s power as well as a few additional wrinkles in the Clojure ecosystem (in this case, Incanter). In our last post we upgraded our genome decoder and used it to show frequencies of the four nucleotides, illustrating Chargaff’s Rule . Another simple question to be asked of the data is, Wh....
|
|
I hesitate to pass judgement just yet, but after the first I can’t say I’m all too hopeful for a sequel. Taking a more adult approach in production will certainly help, but then again the first film didn’t exactly set a high bar. Permalink.
|
|
I haven’t been to too many countries, but I’ve been to a few. I love exploring new places as I never know what I will discover, and how will I feel then. Every new place brings up a completely new kind of advertures. My life is more interesting when I can see historical landmarks such as Chichen Itsa or the Acropolis, or speak to strangers in San Diego or to enjoy a glass of wine on a university square in Rome. My life is also richer when ....
|
|
Today is my last day at CIBC and that makes me sad. It’s been an honour and a privilege to work with Mike Salvagna and his fantastic development team for the last 18 months. Mike has assembled one of the best development teams in Toronto that, in his words, “can build anything”. I believe he’s right. Tomorrow I start at Intelliware where I’ll be leading another FX project. I’m looking forward to the challenges that this new position w..
|
|
UPDATE: Migrated from a post I wrote when working on leve.rs More often than not, when PHP developers debug others’ code, the majority of each method is taken up by array manipulations. Spending this much time on array manipulations is a huge hassle when trying to understand any given method. In order to speed up the debugging process, it’s important to start writing array manipulations the correct way, first. Here are a few example..
|
|
The plumber always has plumbing problems at home.” … “Carpenters buy their furniture at IKEA.” … “The developers never has a good website”… For years I did not only “not have a good website”, but I didn’t have a website at all. finally, I decided to make something. It may not be the prettiest thing in the world, but hey… at least it is a website. This site will be used as a gateway to all of my projects and discoveries over the years. I..
|
|
Mikael Cho is the founder of Ooomf, which is an online marketplace that connects awesome projects with world-class designers and developers.
|
|
startups The software world is always atwitter with predictions on the next big piece of technology. And a lot of chatter focuses on what venture capitalists express interest in. As an investor, how do you pick a good company to invest in? Do you notice quirky names like “Kaggle” and “Meebo,” require deep technical abilities, or value a charismatic sales pitch? When it comes to innovation in software engineering and computer science, and th..
|
|
startups The software world is always atwitter with predictions on the next big piece of technology. And a lot of chatter focuses on what venture capitalists express interest in. As an investor, how do you pick a good company to invest in? Do you notice quirky names like “Kaggle” and “Meebo,” require deep technical abilities, or value a charismatic sales pitch? When it comes to innovation in software engineering and computer science, and th..
|
|
startups The software world is always atwitter with predictions on the next big piece of technology. And a lot of chatter focuses on what venture capitalists express interest in. As an investor, how do you pick a good company to invest in? Do you notice quirky names like “Kaggle” and “Meebo,” require deep technical abilities, or value a charismatic sales pitch? When it comes to innovation in software engineering and computer science, and th..
|
Are you developing in Ruby and have just upgraded your OSX Machine to Mavericks (OSX 10.9)? Are you suddenly having trouble installing or…
|
|
In my last article, The iPad Pro , I promised to write about Apple’s perpetuation of its second-generation tablet. I actually set out to discuss both the iPad 2 and a hypothetical Pro model in that piece, but long-windedness got the better of me and I had to push it off until now. Given that these points have already been made in parts elsewhere, I will keep this brief. Permalink.
|
|
For any given finite string, there is a compression method (an invertible (one-to-one) function) for which the finite string is compressed to the empty string. Proof: Given a finite string i, we can construct the one-to-one function \( C_i \): $$ C_i(x) = \begin{cases} \epsilon &\mbox{if } x = i \\ i &\mbox{if } x = \epsilon \\ x &\mbox{otherwise} \end{cases} $$ which means that $$C_i(i) = \epsilon$$ i.e. the input string \( i \)..
|