Are you over 18 and want to see adult content?
More Annotations
![A complete backup of noryokukaihatsu.com](https://www.archivebay.com/archive2/c3378eb3-865e-4edf-99c5-9bc7731d0b84.png)
A complete backup of noryokukaihatsu.com
Are you over 18 and want to see adult content?
![A complete backup of sorvetescabral.com.br](https://www.archivebay.com/archive2/a612aee2-d237-4e20-ac7b-777322b83b24.png)
A complete backup of sorvetescabral.com.br
Are you over 18 and want to see adult content?
![A complete backup of nigerianwomentrustfund.org](https://www.archivebay.com/archive2/c356cba9-cd9b-4f02-8ae2-f39c32f9b6ab.png)
A complete backup of nigerianwomentrustfund.org
Are you over 18 and want to see adult content?
![A complete backup of dreifaltigkeit-stralsund.de](https://www.archivebay.com/archive2/c05e10c9-6d6e-495f-92c9-1bcc08c8ba05.png)
A complete backup of dreifaltigkeit-stralsund.de
Are you over 18 and want to see adult content?
Favourite Annotations
![A complete backup of https://totalfootballanalysis.com](https://www.archivebay.com/archive6/images/00bfc4fd-81a9-40ed-954f-0d25cbb3cc03.png)
A complete backup of https://totalfootballanalysis.com
Are you over 18 and want to see adult content?
![A complete backup of https://afscme3299.org](https://www.archivebay.com/archive6/images/34623843-7892-4282-8e8c-3dc235d829eb.png)
A complete backup of https://afscme3299.org
Are you over 18 and want to see adult content?
![A complete backup of https://thetimeshub.in](https://www.archivebay.com/archive6/images/fd5723e7-09b4-4236-b21e-52e9dde35242.png)
A complete backup of https://thetimeshub.in
Are you over 18 and want to see adult content?
![A complete backup of https://edenred.cz](https://www.archivebay.com/archive6/images/466fd890-44aa-46e2-a777-3dd0234c40bc.png)
A complete backup of https://edenred.cz
Are you over 18 and want to see adult content?
![A complete backup of https://tompkinssquare.com](https://www.archivebay.com/archive6/images/67b2f1b9-851f-485e-8d2b-1107d48f258c.png)
A complete backup of https://tompkinssquare.com
Are you over 18 and want to see adult content?
![A complete backup of https://studio-blaszczyk.pl](https://www.archivebay.com/archive6/images/aa8e60fb-1fa9-467b-be1f-803c831e5334.png)
A complete backup of https://studio-blaszczyk.pl
Are you over 18 and want to see adult content?
![A complete backup of https://concern.net](https://www.archivebay.com/archive6/images/30127a19-fb85-4cb2-b7ff-ad57919e3a7b.png)
A complete backup of https://concern.net
Are you over 18 and want to see adult content?
![A complete backup of https://jerseyshoreuniversitymedicalcenter.com](https://www.archivebay.com/archive6/images/97920970-6bde-4c3e-a76f-6e4ef7c19abd.png)
A complete backup of https://jerseyshoreuniversitymedicalcenter.com
Are you over 18 and want to see adult content?
![A complete backup of https://ryzom.com](https://www.archivebay.com/archive6/images/00fd64eb-b2a3-4d0f-9f4f-482453cfa4cf.png)
A complete backup of https://ryzom.com
Are you over 18 and want to see adult content?
![A complete backup of https://sendouts.com](https://www.archivebay.com/archive6/images/0bb49b6f-e4e8-4723-b413-89426e353d7b.png)
A complete backup of https://sendouts.com
Are you over 18 and want to see adult content?
![A complete backup of https://mtech.edu](https://www.archivebay.com/archive6/images/4882ecb9-ad7a-4b98-bc5c-f2c941d214eb.png)
A complete backup of https://mtech.edu
Are you over 18 and want to see adult content?
![A complete backup of https://nationalbank.co.ke](https://www.archivebay.com/archive6/images/5c9c24b8-d5fb-4abc-a48e-e12740f810fc.png)
A complete backup of https://nationalbank.co.ke
Are you over 18 and want to see adult content?
Text
created.
LINUX: CHANGING UIDS AND GIDS FOR A USER Just had to do a quick switch over of UID and GIDs for a couple of users.. I'm using Puppet to manage server configurations and it's got some nice features for automating the set-up of users. Unfortunately when I initially set-up the puppet directives, I overlooked setting the UID for each user which means that the UIDs assigned have beenrandomly created.
TITLECASE.PY: TITLECASE IN PYTHON Titlecase.py: Titlecase in python. John Gruber recently published a perl script to convert strings into title case avoiding capitalizing small words based on rules from the New York Times Manual of style as well as catering for several special cases. Before porting the perl script I tried out Python's inbuilt title string method to see howwell
FAKE SMTP SERVER WITH PYTHON The other day a colleague was testing some code which relied on sending mail to a local mailserver and it was failing when the mailserver couldn't be found. Needing to install postfix seemed overkill so I decided to look into what could be done to make a fakesmtp service.
PYTHON: TESTING BEYOND EXCEPTIONS Recently working on some code I was doing some basic tests that checked for an exception being raised. The tests looked like this: def test_user_identification_is_valid_option(self): with self.assertRaises(ValueError): example_seller(products=) def test_ INCLUDING PARTS OF README.RST IN YOUR SPHINX DOCS The solution. The answer (after some experimentation) was to put add the text directly to the README.rst and then include it from the docs. There's a neat facility in RST that allows you to specify text to start from when using the include directive. This means you don't have to include an entire file - for example in my case I didn't want the JAVASCRIPT: CREATING INSTANCES WITHOUT THE NEW KEYWORD During a code review recently I was looking at some code that was using the new keyword to create an instance e.g: var inst = new MyConstructor(); The context object when new isn't used The code contained a safeguard to bail if the new keyword wasn't used. Which isa
REDIRECTING SUBDOMAINS TO DIRECTORIES IN APACHE. Open that file with the command line editor of your choice and add the following directives: Substitute domain.com for your domain. Now here's a quick walkthrough how these rules work. The first line ServerAlias *.domain.com tells apache to accept anysubdomain.domain.com. Next the UNIFI ACCESS POINT (AP) DISCONNECTED A Unifi Access Point in all its glory!This morning I woke up to alerts from the unifi cloudkey telling me one of my wifi access points was disconnected. This was odd as this Access Point (AP) had been up and running fine ever since it had been configured. I CAN'T CONNECT TO UNIFI CLOUD KEY ON PORT 8443 This morning, I was having an issue where my cloud key appear to be running (SSH and the webui at :443 was up) but I couldn't connect to the controller interface on port 8443. ADDING MORE DISK SPACE TO A LINUX VIRTUAL MACHINE Open the Virtual Media Manger using Ctrl-D or File => Virtual Media Manager. Under the hard disks tab click "New". Follow the wizard. Go back to the VM settings, select storage and select "Add Hard Disk" (To the far right of IDE Controller) The first disk in the list is selected. Use the drop down on the right to select the new disk youcreated.
LINUX: CHANGING UIDS AND GIDS FOR A USER Just had to do a quick switch over of UID and GIDs for a couple of users.. I'm using Puppet to manage server configurations and it's got some nice features for automating the set-up of users. Unfortunately when I initially set-up the puppet directives, I overlooked setting the UID for each user which means that the UIDs assigned have beenrandomly created.
TITLECASE.PY: TITLECASE IN PYTHON Titlecase.py: Titlecase in python. John Gruber recently published a perl script to convert strings into title case avoiding capitalizing small words based on rules from the New York Times Manual of style as well as catering for several special cases. Before porting the perl script I tried out Python's inbuilt title string method to see howwell
FAKE SMTP SERVER WITH PYTHON The other day a colleague was testing some code which relied on sending mail to a local mailserver and it was failing when the mailserver couldn't be found. Needing to install postfix seemed overkill so I decided to look into what could be done to make a fakesmtp service.
PYTHON: TESTING BEYOND EXCEPTIONS Recently working on some code I was doing some basic tests that checked for an exception being raised. The tests looked like this: def test_user_identification_is_valid_option(self): with self.assertRaises(ValueError): example_seller(products=) def test_ INCLUDING PARTS OF README.RST IN YOUR SPHINX DOCS The solution. The answer (after some experimentation) was to put add the text directly to the README.rst and then include it from the docs. There's a neat facility in RST that allows you to specify text to start from when using the include directive. This means you don't have to include an entire file - for example in my case I didn't want the JAVASCRIPT: CREATING INSTANCES WITHOUT THE NEW KEYWORD During a code review recently I was looking at some code that was using the new keyword to create an instance e.g: var inst = new MyConstructor(); The context object when new isn't used The code contained a safeguard to bail if the new keyword wasn't used. Which isa
REDIRECTING SUBDOMAINS TO DIRECTORIES IN APACHE. Open that file with the command line editor of your choice and add the following directives: Substitute domain.com for your domain. Now here's a quick walkthrough how these rules work. The first line ServerAlias *.domain.com tells apache to accept anysubdomain.domain.com. Next theBUILDING A PISIGHT
Before I started I did a quite prototype with a breadboard. It uses a 330-ohm resistor to limit the current to the LED. The pins provide 3.3v when active. Prototyping the LED on the PiSight. The original iSight used a tiny surface mount LED to light this up. So I ripped this out of the guts of the old iSight. PYTHON: TESTING BEYOND EXCEPTIONS Recently working on some code I was doing some basic tests that checked for an exception being raised. The tests looked like this: def test_user_identification_is_valid_option(self): with self.assertRaises(ValueError): example_seller(products=) def test_ BACK TO THE FUTURE: ES6 + REACT Back to the future: ES6 + React. I've just recently finished shaving about a billion yaks * to convert a React app over to use ES6 modules and classes so we can start living in the future that is ES6 with a sprinkling of ES7. * Might not be true. SVG CREDIT-CARD PROVIDER ICONS SVG credit-card provider icons. Recently I've been working on a UI for credit-card payments. As part of this we needed some credit-card icons to show the card type as the user types in the number to the input field. In looking for existing iconography I either couldn't find exactly what I was looking for, or the license terms were unknown. TITLECASE.PY: TITLECASE IN PYTHON Titlecase.py: Titlecase in python. John Gruber recently published a perl script to convert strings into title case avoiding capitalizing small words based on rules from the New York Times Manual of style as well as catering for several special cases. Before porting the perl script I tried out Python's inbuilt title string method to see howwell
TIPS FOR BUILDING A DEV-ENV WITH DOCKER Using docker and docker-compose to run a development environment can be a good way to have all your services connected and running together.. I'm going to assume you've got a basic understanding of docker and how it works if not there's a good overview of what docker is here.. We're currently using docker-compose alongside docker to tie together several services for the Mozilla UBUNTU: INSTALLING THE BEEBEM BBC MICRO EMULATOR Ah the BBC Micro. I have very fond memories of our first computer, idling away countless hours attempting to load games from tape for them only to crash shortly after you started playing them. I also remember one hot summer spending epic amounts of time playing Eliteafter I'd stumbled
ANDROID: FORCE MOVING APPS TO AN SD CARD To change the default install location to the SD card (which also enables moving most apps to the SD card.) run the following from the dir containing the adb command: ./adb shell pm set InstallLocation 2. If you at any point hit the following: error: insufficient permissions for device. Try doing this: ./adb kill-server sudo ./adb start-server.1.
CLOSEST EQUIVALENT TO NETNEWSWIRE ON WINDOWS I have been looking for an equivalent for the mac only Feed reader software NetNewsWire on Windows and I think I have found something that comes the closest yet. FeedReader is a free RSS reader for Windows written by Toomas Toots. I have tried other readers such asRSSOwl, Feed
VMWARE: "SIOCSIFADDR: NO SUCH DEVICE ETH0" AFTER CLONING After cloning a vmware image to copy to my local machine I had an issue with eth0 not coming up on an Ubuntu VM. After a bit of googling I found a solution that required editing /etc/ftab to remove an incorrect generated mac address. Hardy Heron doesn't have this UNIFI ACCESS POINT (AP) DISCONNECTED A Unifi Access Point in all its glory!This morning I woke up to alerts from the unifi cloudkey telling me one of my wifi access points was disconnected. This was odd as this Access Point (AP) had been up and running fine ever since it had been configured. I PYTHON: TESTING BEYOND EXCEPTIONS Recently working on some code I was doing some basic tests that checked for an exception being raised. The tests looked like this: def test_user_identification_is_valid_option(self): with self.assertRaises(ValueError): example_seller(products=) def test_ CAN'T CONNECT TO UNIFI CLOUD KEY ON PORT 8443 This morning, I was having an issue where my cloud key appear to be running (SSH and the webui at :443 was up) but I couldn't connect to the controller interface on port 8443. TITLECASE.PY: TITLECASE IN PYTHON Titlecase.py: Titlecase in python. John Gruber recently published a perl script to convert strings into title case avoiding capitalizing small words based on rules from the New York Times Manual of style as well as catering for several special cases. Before porting the perl script I tried out Python's inbuilt title string method to see howwell
INCLUDING PARTS OF README.RST IN YOUR SPHINX DOCS The solution. The answer (after some experimentation) was to put add the text directly to the README.rst and then include it from the docs. There's a neat facility in RST that allows you to specify text to start from when using the include directive. This means you don't have to include an entire file - for example in my case I didn't want the FAKE SMTP SERVER WITH PYTHON The other day a colleague was testing some code which relied on sending mail to a local mailserver and it was failing when the mailserver couldn't be found. Needing to install postfix seemed overkill so I decided to look into what could be done to make a fakesmtp service.
LINUX: CHANGING UIDS AND GIDS FOR A USER Just had to do a quick switch over of UID and GIDs for a couple of users.. I'm using Puppet to manage server configurations and it's got some nice features for automating the set-up of users. Unfortunately when I initially set-up the puppet directives, I overlooked setting the UID for each user which means that the UIDs assigned have beenrandomly created.
JAVASCRIPT: CREATING INSTANCES WITHOUT THE NEW KEYWORD During a code review recently I was looking at some code that was using the new keyword to create an instance e.g: var inst = new MyConstructor(); The context object when new isn't used The code contained a safeguard to bail if the new keyword wasn't used. Which isa
REDIRECTING SUBDOMAINS TO DIRECTORIES IN APACHE. Open that file with the command line editor of your choice and add the following directives: Substitute domain.com for your domain. Now here's a quick walkthrough how these rules work. The first line ServerAlias *.domain.com tells apache to accept anysubdomain.domain.com. Next the CLOSEST EQUIVALENT TO NETNEWSWIRE ON WINDOWS I have been looking for an equivalent for the mac only Feed reader software NetNewsWire on Windows and I think I have found something that comes the closest yet. FeedReader is a free RSS reader for Windows written by Toomas Toots. I have tried other readers such asRSSOwl, Feed
UNIFI ACCESS POINT (AP) DISCONNECTED A Unifi Access Point in all its glory!This morning I woke up to alerts from the unifi cloudkey telling me one of my wifi access points was disconnected. This was odd as this Access Point (AP) had been up and running fine ever since it had been configured. I PYTHON: TESTING BEYOND EXCEPTIONS Recently working on some code I was doing some basic tests that checked for an exception being raised. The tests looked like this: def test_user_identification_is_valid_option(self): with self.assertRaises(ValueError): example_seller(products=) def test_ CAN'T CONNECT TO UNIFI CLOUD KEY ON PORT 8443 This morning, I was having an issue where my cloud key appear to be running (SSH and the webui at :443 was up) but I couldn't connect to the controller interface on port 8443. TITLECASE.PY: TITLECASE IN PYTHON Titlecase.py: Titlecase in python. John Gruber recently published a perl script to convert strings into title case avoiding capitalizing small words based on rules from the New York Times Manual of style as well as catering for several special cases. Before porting the perl script I tried out Python's inbuilt title string method to see howwell
INCLUDING PARTS OF README.RST IN YOUR SPHINX DOCS The solution. The answer (after some experimentation) was to put add the text directly to the README.rst and then include it from the docs. There's a neat facility in RST that allows you to specify text to start from when using the include directive. This means you don't have to include an entire file - for example in my case I didn't want the FAKE SMTP SERVER WITH PYTHON The other day a colleague was testing some code which relied on sending mail to a local mailserver and it was failing when the mailserver couldn't be found. Needing to install postfix seemed overkill so I decided to look into what could be done to make a fakesmtp service.
LINUX: CHANGING UIDS AND GIDS FOR A USER Just had to do a quick switch over of UID and GIDs for a couple of users.. I'm using Puppet to manage server configurations and it's got some nice features for automating the set-up of users. Unfortunately when I initially set-up the puppet directives, I overlooked setting the UID for each user which means that the UIDs assigned have beenrandomly created.
JAVASCRIPT: CREATING INSTANCES WITHOUT THE NEW KEYWORD During a code review recently I was looking at some code that was using the new keyword to create an instance e.g: var inst = new MyConstructor(); The context object when new isn't used The code contained a safeguard to bail if the new keyword wasn't used. Which isa
REDIRECTING SUBDOMAINS TO DIRECTORIES IN APACHE. Open that file with the command line editor of your choice and add the following directives: Substitute domain.com for your domain. Now here's a quick walkthrough how these rules work. The first line ServerAlias *.domain.com tells apache to accept anysubdomain.domain.com. Next the CLOSEST EQUIVALENT TO NETNEWSWIRE ON WINDOWS I have been looking for an equivalent for the mac only Feed reader software NetNewsWire on Windows and I think I have found something that comes the closest yet. FeedReader is a free RSS reader for Windows written by Toomas Toots. I have tried other readers such asRSSOwl, Feed
BUILDING A PISIGHT
Before I started I did a quite prototype with a breadboard. It uses a 330-ohm resistor to limit the current to the LED. The pins provide 3.3v when active. Prototyping the LED on the PiSight. The original iSight used a tiny surface mount LED to light this up. So I ripped this out of the guts of the old iSight. INCLUDING PARTS OF README.RST IN YOUR SPHINX DOCS The solution. The answer (after some experimentation) was to put add the text directly to the README.rst and then include it from the docs. There's a neat facility in RST that allows you to specify text to start from when using the include directive. This means you don't have to include an entire file - for example in my case I didn't want the PYTHON: TESTING BEYOND EXCEPTIONS Recently working on some code I was doing some basic tests that checked for an exception being raised. The tests looked like this: def test_user_identification_is_valid_option(self): with self.assertRaises(ValueError): example_seller(products=) def test_ BACK TO THE FUTURE: ES6 + REACT Back to the future: ES6 + React. I've just recently finished shaving about a billion yaks * to convert a React app over to use ES6 modules and classes so we can start living in the future that is ES6 with a sprinkling of ES7. * Might not be true. REDIRECTING SUBDOMAINS TO DIRECTORIES IN APACHE. Open that file with the command line editor of your choice and add the following directives: Substitute domain.com for your domain. Now here's a quick walkthrough how these rules work. The first line ServerAlias *.domain.com tells apache to accept anysubdomain.domain.com. Next the TITLECASE.PY: TITLECASE IN PYTHON Titlecase.py: Titlecase in python. John Gruber recently published a perl script to convert strings into title case avoiding capitalizing small words based on rules from the New York Times Manual of style as well as catering for several special cases. Before porting the perl script I tried out Python's inbuilt title string method to see howwell
LINUX: FIX FOR APT-GET UPDATE If you're a Google chrome user on Ubuntu you may have noticed apt-get update seems to wait around for two minutes sitting at 99%. The culprit is the google apt repo having issues with http/1.1 pipelining. Fortunately there's a bug for it on Launchpad with a workaround that PROXYING CONNECTIONS FROM FFOS WITH CHARLES After my post on Live debugging with Charles, Nick Desaulniers asked if I knew if it was possible to proxy device traffic via Charles. I didn't, but I did know that if it was possible it was sure to come in handy. 10 freshly shaved yaks later This post details getting FFOS (I'm using a flame with FFOS 2.1) to use Charles Proxy for all requests so we can debug requests on the phone. HOW DO YOU DEAL WITH DEPENDENT BRANCHES ON GITHUB? In general, it's good practice to make branches that are independent from other changes and in general kept to a diff of ~500 lines in order to keep pull requests (PRs) easy to review. One issue though is how to deal with the scenario where you need to make more VIM: SETTING THE COLORSCHEME DOESN'T WORK Vim: Setting the colorscheme Doesn't Work. If you've found a fancy colorscheme for vim and you want to try it out, once you've saved the colorscheme file to ~/.vim/colors you can enable the theme with the following in a vim session's command mode: :colorscheme fruity. If you want the colorscheme to be permanent then you can set the name of the UNIFI ACCESS POINT (AP) DISCONNECTED A Unifi Access Point in all its glory!This morning I woke up to alerts from the unifi cloudkey telling me one of my wifi access points was disconnected. This was odd as this Access Point (AP) had been up and running fine ever since it had been configured. I PYTHON: TESTING BEYOND EXCEPTIONS Recently working on some code I was doing some basic tests that checked for an exception being raised. The tests looked like this: def test_user_identification_is_valid_option(self): with self.assertRaises(ValueError): example_seller(products=) def test_ CAN'T CONNECT TO UNIFI CLOUD KEY ON PORT 8443 This morning, I was having an issue where my cloud key appear to be running (SSH and the webui at :443 was up) but I couldn't connect to the controller interface on port 8443. TITLECASE.PY: TITLECASE IN PYTHON Titlecase.py: Titlecase in python. John Gruber recently published a perl script to convert strings into title case avoiding capitalizing small words based on rules from the New York Times Manual of style as well as catering for several special cases. Before porting the perl script I tried out Python's inbuilt title string method to see howwell
INCLUDING PARTS OF README.RST IN YOUR SPHINX DOCS The solution. The answer (after some experimentation) was to put add the text directly to the README.rst and then include it from the docs. There's a neat facility in RST that allows you to specify text to start from when using the include directive. This means you don't have to include an entire file - for example in my case I didn't want the FAKE SMTP SERVER WITH PYTHON The other day a colleague was testing some code which relied on sending mail to a local mailserver and it was failing when the mailserver couldn't be found. Needing to install postfix seemed overkill so I decided to look into what could be done to make a fakesmtp service.
LINUX: CHANGING UIDS AND GIDS FOR A USER Just had to do a quick switch over of UID and GIDs for a couple of users.. I'm using Puppet to manage server configurations and it's got some nice features for automating the set-up of users. Unfortunately when I initially set-up the puppet directives, I overlooked setting the UID for each user which means that the UIDs assigned have beenrandomly created.
JAVASCRIPT: CREATING INSTANCES WITHOUT THE NEW KEYWORD During a code review recently I was looking at some code that was using the new keyword to create an instance e.g: var inst = new MyConstructor(); The context object when new isn't used The code contained a safeguard to bail if the new keyword wasn't used. Which isa
REDIRECTING SUBDOMAINS TO DIRECTORIES IN APACHE. Open that file with the command line editor of your choice and add the following directives: Substitute domain.com for your domain. Now here's a quick walkthrough how these rules work. The first line ServerAlias *.domain.com tells apache to accept anysubdomain.domain.com. Next the CLOSEST EQUIVALENT TO NETNEWSWIRE ON WINDOWS I have been looking for an equivalent for the mac only Feed reader software NetNewsWire on Windows and I think I have found something that comes the closest yet. FeedReader is a free RSS reader for Windows written by Toomas Toots. I have tried other readers such asRSSOwl, Feed
UNIFI ACCESS POINT (AP) DISCONNECTED A Unifi Access Point in all its glory!This morning I woke up to alerts from the unifi cloudkey telling me one of my wifi access points was disconnected. This was odd as this Access Point (AP) had been up and running fine ever since it had been configured. I PYTHON: TESTING BEYOND EXCEPTIONS Recently working on some code I was doing some basic tests that checked for an exception being raised. The tests looked like this: def test_user_identification_is_valid_option(self): with self.assertRaises(ValueError): example_seller(products=) def test_ CAN'T CONNECT TO UNIFI CLOUD KEY ON PORT 8443 This morning, I was having an issue where my cloud key appear to be running (SSH and the webui at :443 was up) but I couldn't connect to the controller interface on port 8443. TITLECASE.PY: TITLECASE IN PYTHON Titlecase.py: Titlecase in python. John Gruber recently published a perl script to convert strings into title case avoiding capitalizing small words based on rules from the New York Times Manual of style as well as catering for several special cases. Before porting the perl script I tried out Python's inbuilt title string method to see howwell
INCLUDING PARTS OF README.RST IN YOUR SPHINX DOCS The solution. The answer (after some experimentation) was to put add the text directly to the README.rst and then include it from the docs. There's a neat facility in RST that allows you to specify text to start from when using the include directive. This means you don't have to include an entire file - for example in my case I didn't want the FAKE SMTP SERVER WITH PYTHON The other day a colleague was testing some code which relied on sending mail to a local mailserver and it was failing when the mailserver couldn't be found. Needing to install postfix seemed overkill so I decided to look into what could be done to make a fakesmtp service.
LINUX: CHANGING UIDS AND GIDS FOR A USER Just had to do a quick switch over of UID and GIDs for a couple of users.. I'm using Puppet to manage server configurations and it's got some nice features for automating the set-up of users. Unfortunately when I initially set-up the puppet directives, I overlooked setting the UID for each user which means that the UIDs assigned have beenrandomly created.
JAVASCRIPT: CREATING INSTANCES WITHOUT THE NEW KEYWORD During a code review recently I was looking at some code that was using the new keyword to create an instance e.g: var inst = new MyConstructor(); The context object when new isn't used The code contained a safeguard to bail if the new keyword wasn't used. Which isa
REDIRECTING SUBDOMAINS TO DIRECTORIES IN APACHE. Open that file with the command line editor of your choice and add the following directives: Substitute domain.com for your domain. Now here's a quick walkthrough how these rules work. The first line ServerAlias *.domain.com tells apache to accept anysubdomain.domain.com. Next the CLOSEST EQUIVALENT TO NETNEWSWIRE ON WINDOWS I have been looking for an equivalent for the mac only Feed reader software NetNewsWire on Windows and I think I have found something that comes the closest yet. FeedReader is a free RSS reader for Windows written by Toomas Toots. I have tried other readers such asRSSOwl, Feed
BUILDING A PISIGHT
Before I started I did a quite prototype with a breadboard. It uses a 330-ohm resistor to limit the current to the LED. The pins provide 3.3v when active. Prototyping the LED on the PiSight. The original iSight used a tiny surface mount LED to light this up. So I ripped this out of the guts of the old iSight. INCLUDING PARTS OF README.RST IN YOUR SPHINX DOCS The solution. The answer (after some experimentation) was to put add the text directly to the README.rst and then include it from the docs. There's a neat facility in RST that allows you to specify text to start from when using the include directive. This means you don't have to include an entire file - for example in my case I didn't want the PYTHON: TESTING BEYOND EXCEPTIONS Recently working on some code I was doing some basic tests that checked for an exception being raised. The tests looked like this: def test_user_identification_is_valid_option(self): with self.assertRaises(ValueError): example_seller(products=) def test_ BACK TO THE FUTURE: ES6 + REACT Back to the future: ES6 + React. I've just recently finished shaving about a billion yaks * to convert a React app over to use ES6 modules and classes so we can start living in the future that is ES6 with a sprinkling of ES7. * Might not be true. REDIRECTING SUBDOMAINS TO DIRECTORIES IN APACHE. Open that file with the command line editor of your choice and add the following directives: Substitute domain.com for your domain. Now here's a quick walkthrough how these rules work. The first line ServerAlias *.domain.com tells apache to accept anysubdomain.domain.com. Next the TITLECASE.PY: TITLECASE IN PYTHON Titlecase.py: Titlecase in python. John Gruber recently published a perl script to convert strings into title case avoiding capitalizing small words based on rules from the New York Times Manual of style as well as catering for several special cases. Before porting the perl script I tried out Python's inbuilt title string method to see howwell
LINUX: FIX FOR APT-GET UPDATE If you're a Google chrome user on Ubuntu you may have noticed apt-get update seems to wait around for two minutes sitting at 99%. The culprit is the google apt repo having issues with http/1.1 pipelining. Fortunately there's a bug for it on Launchpad with a workaround that PROXYING CONNECTIONS FROM FFOS WITH CHARLES After my post on Live debugging with Charles, Nick Desaulniers asked if I knew if it was possible to proxy device traffic via Charles. I didn't, but I did know that if it was possible it was sure to come in handy. 10 freshly shaved yaks later This post details getting FFOS (I'm using a flame with FFOS 2.1) to use Charles Proxy for all requests so we can debug requests on the phone. HOW DO YOU DEAL WITH DEPENDENT BRANCHES ON GITHUB? In general, it's good practice to make branches that are independent from other changes and in general kept to a diff of ~500 lines in order to keep pull requests (PRs) easy to review. One issue though is how to deal with the scenario where you need to make more VIM: SETTING THE COLORSCHEME DOESN'T WORK Vim: Setting the colorscheme Doesn't Work. If you've found a fancy colorscheme for vim and you want to try it out, once you've saved the colorscheme file to ~/.vim/colors you can enable the theme with the following in a vim session's command mode: :colorscheme fruity. If you want the colorscheme to be permanent then you can set the name of the UNIFI ACCESS POINT (AP) DISCONNECTED A Unifi Access Point in all its glory!This morning I woke up to alerts from the unifi cloudkey telling me one of my wifi access points was disconnected. This was odd as this Access Point (AP) had been up and running fine ever since it had been configured. I PYTHON: TESTING BEYOND EXCEPTIONS Recently working on some code I was doing some basic tests that checked for an exception being raised. The tests looked like this: def test_user_identification_is_valid_option(self): with self.assertRaises(ValueError): example_seller(products=) def test_ CAN'T CONNECT TO UNIFI CLOUD KEY ON PORT 8443 This morning, I was having an issue where my cloud key appear to be running (SSH and the webui at :443 was up) but I couldn't connect to the controller interface on port 8443. TITLECASE.PY: TITLECASE IN PYTHON Titlecase.py: Titlecase in python. John Gruber recently published a perl script to convert strings into title case avoiding capitalizing small words based on rules from the New York Times Manual of style as well as catering for several special cases. Before porting the perl script I tried out Python's inbuilt title string method to see howwell
INCLUDING PARTS OF README.RST IN YOUR SPHINX DOCS The solution. The answer (after some experimentation) was to put add the text directly to the README.rst and then include it from the docs. There's a neat facility in RST that allows you to specify text to start from when using the include directive. This means you don't have to include an entire file - for example in my case I didn't want the FAKE SMTP SERVER WITH PYTHON The other day a colleague was testing some code which relied on sending mail to a local mailserver and it was failing when the mailserver couldn't be found. Needing to install postfix seemed overkill so I decided to look into what could be done to make a fakesmtp service.
LINUX: CHANGING UIDS AND GIDS FOR A USER Just had to do a quick switch over of UID and GIDs for a couple of users.. I'm using Puppet to manage server configurations and it's got some nice features for automating the set-up of users. Unfortunately when I initially set-up the puppet directives, I overlooked setting the UID for each user which means that the UIDs assigned have beenrandomly created.
JAVASCRIPT: CREATING INSTANCES WITHOUT THE NEW KEYWORD During a code review recently I was looking at some code that was using the new keyword to create an instance e.g: var inst = new MyConstructor(); The context object when new isn't used The code contained a safeguard to bail if the new keyword wasn't used. Which isa
REDIRECTING SUBDOMAINS TO DIRECTORIES IN APACHE. Open that file with the command line editor of your choice and add the following directives: Substitute domain.com for your domain. Now here's a quick walkthrough how these rules work. The first line ServerAlias *.domain.com tells apache to accept anysubdomain.domain.com. Next the CLOSEST EQUIVALENT TO NETNEWSWIRE ON WINDOWS I have been looking for an equivalent for the mac only Feed reader software NetNewsWire on Windows and I think I have found something that comes the closest yet. FeedReader is a free RSS reader for Windows written by Toomas Toots. I have tried other readers such asRSSOwl, Feed
UNIFI ACCESS POINT (AP) DISCONNECTED A Unifi Access Point in all its glory!This morning I woke up to alerts from the unifi cloudkey telling me one of my wifi access points was disconnected. This was odd as this Access Point (AP) had been up and running fine ever since it had been configured. I PYTHON: TESTING BEYOND EXCEPTIONS Recently working on some code I was doing some basic tests that checked for an exception being raised. The tests looked like this: def test_user_identification_is_valid_option(self): with self.assertRaises(ValueError): example_seller(products=) def test_ CAN'T CONNECT TO UNIFI CLOUD KEY ON PORT 8443 This morning, I was having an issue where my cloud key appear to be running (SSH and the webui at :443 was up) but I couldn't connect to the controller interface on port 8443. TITLECASE.PY: TITLECASE IN PYTHON Titlecase.py: Titlecase in python. John Gruber recently published a perl script to convert strings into title case avoiding capitalizing small words based on rules from the New York Times Manual of style as well as catering for several special cases. Before porting the perl script I tried out Python's inbuilt title string method to see howwell
INCLUDING PARTS OF README.RST IN YOUR SPHINX DOCS The solution. The answer (after some experimentation) was to put add the text directly to the README.rst and then include it from the docs. There's a neat facility in RST that allows you to specify text to start from when using the include directive. This means you don't have to include an entire file - for example in my case I didn't want the FAKE SMTP SERVER WITH PYTHON The other day a colleague was testing some code which relied on sending mail to a local mailserver and it was failing when the mailserver couldn't be found. Needing to install postfix seemed overkill so I decided to look into what could be done to make a fakesmtp service.
LINUX: CHANGING UIDS AND GIDS FOR A USER Just had to do a quick switch over of UID and GIDs for a couple of users.. I'm using Puppet to manage server configurations and it's got some nice features for automating the set-up of users. Unfortunately when I initially set-up the puppet directives, I overlooked setting the UID for each user which means that the UIDs assigned have beenrandomly created.
JAVASCRIPT: CREATING INSTANCES WITHOUT THE NEW KEYWORD During a code review recently I was looking at some code that was using the new keyword to create an instance e.g: var inst = new MyConstructor(); The context object when new isn't used The code contained a safeguard to bail if the new keyword wasn't used. Which isa
REDIRECTING SUBDOMAINS TO DIRECTORIES IN APACHE. Open that file with the command line editor of your choice and add the following directives: Substitute domain.com for your domain. Now here's a quick walkthrough how these rules work. The first line ServerAlias *.domain.com tells apache to accept anysubdomain.domain.com. Next the CLOSEST EQUIVALENT TO NETNEWSWIRE ON WINDOWS I have been looking for an equivalent for the mac only Feed reader software NetNewsWire on Windows and I think I have found something that comes the closest yet. FeedReader is a free RSS reader for Windows written by Toomas Toots. I have tried other readers such asRSSOwl, Feed
BUILDING A PISIGHT
Before I started I did a quite prototype with a breadboard. It uses a 330-ohm resistor to limit the current to the LED. The pins provide 3.3v when active. Prototyping the LED on the PiSight. The original iSight used a tiny surface mount LED to light this up. So I ripped this out of the guts of the old iSight. INCLUDING PARTS OF README.RST IN YOUR SPHINX DOCS The solution. The answer (after some experimentation) was to put add the text directly to the README.rst and then include it from the docs. There's a neat facility in RST that allows you to specify text to start from when using the include directive. This means you don't have to include an entire file - for example in my case I didn't want the PYTHON: TESTING BEYOND EXCEPTIONS Recently working on some code I was doing some basic tests that checked for an exception being raised. The tests looked like this: def test_user_identification_is_valid_option(self): with self.assertRaises(ValueError): example_seller(products=) def test_ BACK TO THE FUTURE: ES6 + REACT Back to the future: ES6 + React. I've just recently finished shaving about a billion yaks * to convert a React app over to use ES6 modules and classes so we can start living in the future that is ES6 with a sprinkling of ES7. * Might not be true. REDIRECTING SUBDOMAINS TO DIRECTORIES IN APACHE. Open that file with the command line editor of your choice and add the following directives: Substitute domain.com for your domain. Now here's a quick walkthrough how these rules work. The first line ServerAlias *.domain.com tells apache to accept anysubdomain.domain.com. Next the TITLECASE.PY: TITLECASE IN PYTHON Titlecase.py: Titlecase in python. John Gruber recently published a perl script to convert strings into title case avoiding capitalizing small words based on rules from the New York Times Manual of style as well as catering for several special cases. Before porting the perl script I tried out Python's inbuilt title string method to see howwell
LINUX: FIX FOR APT-GET UPDATE If you're a Google chrome user on Ubuntu you may have noticed apt-get update seems to wait around for two minutes sitting at 99%. The culprit is the google apt repo having issues with http/1.1 pipelining. Fortunately there's a bug for it on Launchpad with a workaround that PROXYING CONNECTIONS FROM FFOS WITH CHARLES After my post on Live debugging with Charles, Nick Desaulniers asked if I knew if it was possible to proxy device traffic via Charles. I didn't, but I did know that if it was possible it was sure to come in handy. 10 freshly shaved yaks later This post details getting FFOS (I'm using a flame with FFOS 2.1) to use Charles Proxy for all requests so we can debug requests on the phone. HOW DO YOU DEAL WITH DEPENDENT BRANCHES ON GITHUB? In general, it's good practice to make branches that are independent from other changes and in general kept to a diff of ~500 lines in order to keep pull requests (PRs) easy to review. One issue though is how to deal with the scenario where you need to make more VIM: SETTING THE COLORSCHEME DOESN'T WORK Vim: Setting the colorscheme Doesn't Work. If you've found a fancy colorscheme for vim and you want to try it out, once you've saved the colorscheme file to ~/.vim/colors you can enable the theme with the following in a vim session's command mode: :colorscheme fruity. If you want the colorscheme to be permanent then you can set the name of theClose
Menu
* Home
* GO
* __ Twitter
* __ Subscribe
__ Menu
MUFFIN RESEARCH LABS The blog of Stuart Colville, Engineering Manager at Mozilla. Focusing primarily on web technologies, web development and in-depth yakshaving.
Page 1 of 39 Older Posts __ VERTICALLY AND HORIZONTALLY RESPONSIVE CIRCLE WITH TEXT Stuart Colville on svg , Code| 20 May 2017
Recently in building out a dashboard to show the number of github issues for a given search, I wanted to show a circle containing a count. When we think about responsiveness in web pages we mostly think about making things that respond to a horizonal constraint. However,for a dashboard,…
USING THE LATEST VERSION OF FIREFOX IN TRAVIS CI Stuart Colville on Firefox , mozilla , testing | 09 Mar 2016 A quick tip. If you're running karma tests via Firefox on Travis CI by default the Firefox version used is quite old (31 at time of writing). To always use the latest (current) version you can add this snippet to your .travis.yml. addons: firefox: latest This will keep your… INCLUDING PARTS OF README.RST IN YOUR SPHINX DOCS Stuart Colville on ReStructuredText, github , Code |
04 Mar 2016
This will probably be of use to about 3 people, and I'm one of them. If you feel your eyes glazing over, don't fret and look at this kitten picture instead: The problem I wanted to add some content to both our docs (built via sphinx docs and written in… REMOVING LEADING WHITESPACE IN ES6 TEMPLATE STRINGS Stuart Colville on ES6 , JavaScript , mozilla | 12 Oct 2015 Note: this post remains for posterity but rather than using the template tags described here I'd suggest taking a look at common-tags. In some recent code at work we're using fairly large strings for error descriptions. JavaScript has always made it hard to deal with long strings, especially when you… OSX: INKSCAPE NOT WORKING WITH MULTIPLE MONITORS Stuart Colville on OSX | 12 Oct 2015 I recently noticed that under OSX Inkscape behaves strangely with multiple monitors. I thought I'd broken the installation as when launching Inkscape it opened and then the window immediately disappears. Fortunately there's a bug that's been filed here: XQuartz on OS X 10.9 and later: limited support for multi-monitor… PYTHON: TESTING BEYOND EXCEPTIONS Stuart Colville on Python , mozilla , testing | 28 Aug 2015 Recently working on some code I was doing some basic tests that checked for an exception being raised. The tests looked like this: def test_user_identification_is_valid_option(self): with self.assertRaises(ValueError): example_seller(products=) def test_… BACK TO THE FUTURE: ES6 + REACT Stuart Colville on mozilla , JavaScript , React , ES6 , Babel , ES7 | 24 Jul 2015 I've just recently finished shaving about a billion yaks * to convert a React app over to use ES6 modules and classes so we can start living in the future that is ES6 with a sprinkling of ES7. * Might not be true Transpiling back to the present We're using babel via… RUNNING TESTS ON SAUCE LABS VIA TRAVIS Stuart Colville on mozilla , testing , karma , travis | 10 Jul2015
For the Payments Team's front-end projects we've just landed support for running the front-end unit tests using Sauce Labs. About Sauce Labs In case you've never heard of Sauce Labs (unlikely!) they provide access to a multitude of browser/platform combinations via vms so you can run your automated test… SVG CREDIT-CARD PROVIDER ICONS Stuart Colville on github , mozilla , svg , open source , ux , payments | 08 Jul 2015 Recently I've been working on a UI for credit-card payments. As part of this we needed some credit-card icons to show the card type as the user types in the number to the input field. In looking for existing iconography I either couldn't find exactly what I was looking for,… TIPS FOR BUILDING A DEV-ENV WITH DOCKER Stuart Colville on docker , mozilla , docker-compose , fig| 05 Jun 2015
Using docker and docker-compose to run a development environment can be a good way to have all your services connected and running together. I'm going to assume you've got a basic understanding of docker and how it works if not there's a good overview of what dockeris here. We're…
Page 1 of 39 Older Posts __ Theme Attila by zutrinken Published with GhostDetails
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0