Convert posts to kramdown-style headers
This commit is contained in:
parent
ed344e732f
commit
e0e2dc0894
@ -26,7 +26,7 @@ which made it easy for me to dive right in. I'll probably try out
|
|||||||
[d3js](http://d3js.org/) for my next visualization project though, it looks a
|
[d3js](http://d3js.org/) for my next visualization project though, it looks a
|
||||||
whole lot more advanced.
|
whole lot more advanced.
|
||||||
|
|
||||||
###Current laundry usage charts###
|
### Current laundry usage charts
|
||||||
|
|
||||||
I created an [app](/laundry) in [Django](https://www.djangoproject.com/) to
|
I created an [app](/laundry) in [Django](https://www.djangoproject.com/) to
|
||||||
display current laundry machine usage charts for all of the laundry rooms on
|
display current laundry machine usage charts for all of the laundry rooms on
|
||||||
@ -47,7 +47,7 @@ folder).
|
|||||||
The point was to make this as dead simple and easy to use as possible. Do you
|
The point was to make this as dead simple and easy to use as possible. Do you
|
||||||
think I succeeded?
|
think I succeeded?
|
||||||
|
|
||||||
###Weekly laundry usage chart###
|
### Weekly laundry usage chart
|
||||||
|
|
||||||
Knowing the *current* laundry machine usage is nice for saving a wasted trip
|
Knowing the *current* laundry machine usage is nice for saving a wasted trip
|
||||||
down to the laundry room, but what if you wanted to plan ahead and do your
|
down to the laundry room, but what if you wanted to plan ahead and do your
|
||||||
|
@ -27,7 +27,7 @@ Since this is questionably legal, make sure you understand any Terms of
|
|||||||
Services you accepted or laws in your locality regarding this before you follow
|
Services you accepted or laws in your locality regarding this before you follow
|
||||||
the steps below ;).
|
the steps below ;).
|
||||||
|
|
||||||
###Have Linux###
|
### Have Linux
|
||||||
|
|
||||||
Most of these instructions will assume you have Ubuntu, but
|
Most of these instructions will assume you have Ubuntu, but
|
||||||
most distributions will work.
|
most distributions will work.
|
||||||
@ -36,7 +36,7 @@ While RTMPDump works on a variety of operating systems, I've only researched
|
|||||||
how to do this on Linux. Feel free to comment if you know how to do this in
|
how to do this on Linux. Feel free to comment if you know how to do this in
|
||||||
Windows or OSX.
|
Windows or OSX.
|
||||||
|
|
||||||
###Install RTMPDump###
|
### Install RTMPDump
|
||||||
|
|
||||||
This open source goodness can be found at
|
This open source goodness can be found at
|
||||||
[http://rtmpdump.mplayerhq.hu/](http://rtmpdump.mplayerhq.hu/) or you can just
|
[http://rtmpdump.mplayerhq.hu/](http://rtmpdump.mplayerhq.hu/) or you can just
|
||||||
@ -47,7 +47,7 @@ typing the following into your terminal:
|
|||||||
sudo apt-get install rtmpdump
|
sudo apt-get install rtmpdump
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
###Redirect ALL the RTMP!###
|
### Redirect ALL the RTMP!
|
||||||
|
|
||||||
Now we need to configure your firewall to redirect
|
Now we need to configure your firewall to redirect
|
||||||
all RTMP traffic to a local port on your computer (Note: this will screw up any
|
all RTMP traffic to a local port on your computer (Note: this will screw up any
|
||||||
@ -59,7 +59,7 @@ the following into your terminal, there should be no output from the command:
|
|||||||
sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
|
sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
###Run rtmpsrv###
|
### Run rtmpsrv
|
||||||
|
|
||||||
When you install `rtmpdump`, a program called `rtmpsrv`
|
When you install `rtmpdump`, a program called `rtmpsrv`
|
||||||
should have been bundled with it and installed as well. We will want to run
|
should have been bundled with it and installed as well. We will want to run
|
||||||
@ -73,7 +73,7 @@ This should output something that looks like this:
|
|||||||
|
|
||||||
Streaming on rtmp://0.0.0.0:1935
|
Streaming on rtmp://0.0.0.0:1935
|
||||||
|
|
||||||
###Feed rtmpsrv the Precious Video###
|
### Feed rtmpsrv the Precious Video
|
||||||
|
|
||||||
Now go to your browser and open/refresh
|
Now go to your browser and open/refresh
|
||||||
the page with the desired video. Try playing the video. If nothing happens and
|
the page with the desired video. Try playing the video. If nothing happens and
|
||||||
@ -87,7 +87,7 @@ will need it later.
|
|||||||
|
|
||||||
You can CTRL+C out of rtmpsrv now that we have what we need.
|
You can CTRL+C out of rtmpsrv now that we have what we need.
|
||||||
|
|
||||||
###Undo the Redirection###
|
### Undo the Redirection
|
||||||
|
|
||||||
You must undo the iptables redirection command we
|
You must undo the iptables redirection command we
|
||||||
performed earlier before you can do anything else, so run this in your
|
performed earlier before you can do anything else, so run this in your
|
||||||
@ -97,14 +97,14 @@ terminal:
|
|||||||
sudo iptables -t nat -D OUTPUT -p tcp --dport 1935 -j REDIRECT
|
sudo iptables -t nat -D OUTPUT -p tcp --dport 1935 -j REDIRECT
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
###Finally, Download the Precious Video###
|
### Finally, Download the Precious Video
|
||||||
|
|
||||||
Now paste that command you copied
|
Now paste that command you copied
|
||||||
from the rtmpsrv output in the step before last into your terminal prompt and
|
from the rtmpsrv output in the step before last into your terminal prompt and
|
||||||
hit enter. You should now see a torrent of `INFO` printout along with a
|
hit enter. You should now see a torrent of `INFO` printout along with a
|
||||||
percentage as the video is being downloaded.
|
percentage as the video is being downloaded.
|
||||||
|
|
||||||
###Feast Eyes on Precious Video###
|
### Feast Eyes on Precious Video
|
||||||
|
|
||||||
Once downloaded, the video file, which has a
|
Once downloaded, the video file, which has a
|
||||||
`flv` extension and was named by the `-o` parameter in the command you copied
|
`flv` extension and was named by the `-o` parameter in the command you copied
|
||||||
|
@ -82,7 +82,7 @@ of tweaking. If anyone has read my past posts, they know that I am obsessed
|
|||||||
with configuring things. Here is what I came up with for everything I would
|
with configuring things. Here is what I came up with for everything I would
|
||||||
ever need to do on my Chromebook:
|
ever need to do on my Chromebook:
|
||||||
|
|
||||||
###Writing###
|
### Writing
|
||||||
|
|
||||||
I spent a lot of time downloading
|
I spent a lot of time downloading
|
||||||
[various](https://chrome.google.com/webstore/detail/write-space/aimodnlfiikjjnmdchihablmkdeobhad)
|
[various](https://chrome.google.com/webstore/detail/write-space/aimodnlfiikjjnmdchihablmkdeobhad)
|
||||||
@ -115,7 +115,7 @@ hassle though, so I often just stick to the default style. It’s a sign that I
|
|||||||
am procrastinating if I’m trying to look for the “perfect template” to write in
|
am procrastinating if I’m trying to look for the “perfect template” to write in
|
||||||
anyways.
|
anyways.
|
||||||
|
|
||||||
###Programming###
|
### Programming
|
||||||
|
|
||||||
I’ve gotten so used to [vim](http://www.vim.org/) in a Linux
|
I’ve gotten so used to [vim](http://www.vim.org/) in a Linux
|
||||||
terminal that I don’t think I could ever use any other editor. There are a few
|
terminal that I don’t think I could ever use any other editor. There are a few
|
||||||
@ -150,7 +150,7 @@ have all of the great chrome apps and extensions right at my fingertips.
|
|||||||
Especially when some apps can be opened up in small panels in the corner of the
|
Especially when some apps can be opened up in small panels in the corner of the
|
||||||
screen temporarily.
|
screen temporarily.
|
||||||
|
|
||||||
###Panels###
|
### Panels
|
||||||
|
|
||||||
Chrome recently released a new concept for opening new windows
|
Chrome recently released a new concept for opening new windows
|
||||||
called “Panels”, and once I discovered them I couldn’t get enough of them. The
|
called “Panels”, and once I discovered them I couldn’t get enough of them. The
|
||||||
@ -187,7 +187,7 @@ Panel](https://chrome.google.com/webstore/detail/improved-google-tasks-pan/kgnap
|
|||||||
I’m still lacking Facebook Messenger and Google Voice panel view apps, so I
|
I’m still lacking Facebook Messenger and Google Voice panel view apps, so I
|
||||||
might try my hand at creating one myself soon.
|
might try my hand at creating one myself soon.
|
||||||
|
|
||||||
###Web Browsing###
|
### Web Browsing
|
||||||
|
|
||||||
And, of course, being a laptop dedicated to chrome, it
|
And, of course, being a laptop dedicated to chrome, it
|
||||||
obviously has a great web browsing experience.
|
obviously has a great web browsing experience.
|
||||||
|
@ -8,7 +8,7 @@ protect my eyes from the blinding light of my monitors I've tooled my desktop
|
|||||||
environment over the course of a few months to be as dark as possible. It has
|
environment over the course of a few months to be as dark as possible. It has
|
||||||
gotten complex enough that I thought it would be worth sharing now.
|
gotten complex enough that I thought it would be worth sharing now.
|
||||||
|
|
||||||
###dotfiles###
|
### dotfiles
|
||||||
|
|
||||||
Before I begin, I want to note that all the configuration for the setup I'm
|
Before I begin, I want to note that all the configuration for the setup I'm
|
||||||
describing is stored in a [dotfiles repo on my github
|
describing is stored in a [dotfiles repo on my github
|
||||||
@ -18,7 +18,7 @@ the master branch fairly often, but the
|
|||||||
[midnight](https://github.com/thallada/dotfiles/tree/midnight) branch will
|
[midnight](https://github.com/thallada/dotfiles/tree/midnight) branch will
|
||||||
always contain the setup described here.
|
always contain the setup described here.
|
||||||
|
|
||||||
###bspwm###
|
### bspwm
|
||||||
|
|
||||||
Inspired by [/r/unixporn](http://www.reddit.com/r/unixporn), I decided to switch
|
Inspired by [/r/unixporn](http://www.reddit.com/r/unixporn), I decided to switch
|
||||||
from gnome to bspwm, a minimal tiling window manager that positions windows like
|
from gnome to bspwm, a minimal tiling window manager that positions windows like
|
||||||
@ -38,7 +38,7 @@ under the home directory and it's super easy to add my own. The hotkeys make
|
|||||||
this superior to gnome for me because I never have to touch my mouse to move
|
this superior to gnome for me because I never have to touch my mouse to move
|
||||||
around the desktop.
|
around the desktop.
|
||||||
|
|
||||||
###gnome and gtk###
|
### gnome and gtk
|
||||||
|
|
||||||
I still love some of the features from gnome. Especially the text hinting, which
|
I still love some of the features from gnome. Especially the text hinting, which
|
||||||
is why I still run `gnome-settings-daemon` in my [bspwm startup
|
is why I still run `gnome-settings-daemon` in my [bspwm startup
|
||||||
@ -50,7 +50,7 @@ under the "Appearance" tab that can be enabled. I use the
|
|||||||
[Numix](https://numixproject.org/) gtk theme which seems to behave fine with
|
[Numix](https://numixproject.org/) gtk theme which seems to behave fine with
|
||||||
this setting.
|
this setting.
|
||||||
|
|
||||||
###Gnome Terminal###
|
### Gnome Terminal
|
||||||
|
|
||||||
I've tried using a few other lighter-weight terminals like xterm, but I still
|
I've tried using a few other lighter-weight terminals like xterm, but I still
|
||||||
like the features of gnome-terminal more. I created a "bspwm" profile and set
|
like the features of gnome-terminal more. I created a "bspwm" profile and set
|
||||||
@ -65,7 +65,7 @@ In my
|
|||||||
I can then map my hotkeys for starting a new terminal to the command
|
I can then map my hotkeys for starting a new terminal to the command
|
||||||
`gnome-terminal --window-with-profile=bspwm`.
|
`gnome-terminal --window-with-profile=bspwm`.
|
||||||
|
|
||||||
###vim###
|
### vim
|
||||||
|
|
||||||
Making vim dark is pretty easy. Just put this in the
|
Making vim dark is pretty easy. Just put this in the
|
||||||
[`.vimrc`](https://github.com/thallada/dotfiles/blob/master/vim/.vimrc):
|
[`.vimrc`](https://github.com/thallada/dotfiles/blob/master/vim/.vimrc):
|
||||||
@ -84,7 +84,7 @@ and adding this to the `.vimrc`:
|
|||||||
colorscheme distinguished
|
colorscheme distinguished
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
###tmux/byobu###
|
### tmux/byobu
|
||||||
|
|
||||||
I like the abstraction that [byobu](http://byobu.co/) puts ontop of tmux, so
|
I like the abstraction that [byobu](http://byobu.co/) puts ontop of tmux, so
|
||||||
that's what I use in the terminal. Colors can be configured by editing the
|
that's what I use in the terminal. Colors can be configured by editing the
|
||||||
@ -97,7 +97,7 @@ file. This is what I have in mine:
|
|||||||
BYOBU_HIGHLIGHT="\#303030"
|
BYOBU_HIGHLIGHT="\#303030"
|
||||||
MONOCHROME=0
|
MONOCHROME=0
|
||||||
|
|
||||||
###evince###
|
### evince
|
||||||
|
|
||||||
I tell my browser, firefox, to open pdfs in evince (aka. Document Viewer)
|
I tell my browser, firefox, to open pdfs in evince (aka. Document Viewer)
|
||||||
because evince can darken pdfs.
|
because evince can darken pdfs.
|
||||||
@ -105,21 +105,21 @@ because evince can darken pdfs.
|
|||||||
Select View > Invert Colors and then Edit > Save Current Settings as Default and
|
Select View > Invert Colors and then Edit > Save Current Settings as Default and
|
||||||
now most pdfs will be displayed as white text on black background.
|
now most pdfs will be displayed as white text on black background.
|
||||||
|
|
||||||
###gimp###
|
### gimp
|
||||||
|
|
||||||
Gimp allows you to change themes easily. [Gimp GTK2 Photoshop CS6
|
Gimp allows you to change themes easily. [Gimp GTK2 Photoshop CS6
|
||||||
Theme](http://gnome-look.org/content/show.php?content=160952) is my favorite
|
Theme](http://gnome-look.org/content/show.php?content=160952) is my favorite
|
||||||
dark theme. Put that in `~/.gimp-2.8/themes/` (or whichever gimp version is
|
dark theme. Put that in `~/.gimp-2.8/themes/` (or whichever gimp version is
|
||||||
installed) and, in Gimp, change the theme at Edit > Preferences > Theme.
|
installed) and, in Gimp, change the theme at Edit > Preferences > Theme.
|
||||||
|
|
||||||
###Firefox###
|
### Firefox
|
||||||
|
|
||||||
I had to hack firefox a lot to get it to be universally dark since the web
|
I had to hack firefox a lot to get it to be universally dark since the web
|
||||||
(unfortunately!) doesn't have a night mode switch. I'm using firefox instead of
|
(unfortunately!) doesn't have a night mode switch. I'm using firefox instead of
|
||||||
chrome because firefox has better customization for doing something this
|
chrome because firefox has better customization for doing something this
|
||||||
extreme.
|
extreme.
|
||||||
|
|
||||||
####Userstyles
|
#### Userstyles
|
||||||
|
|
||||||
Firefox has a really neat addon called
|
Firefox has a really neat addon called
|
||||||
[Stylish](https://addons.mozilla.org/en-us/firefox/addon/stylish/) that allows
|
[Stylish](https://addons.mozilla.org/en-us/firefox/addon/stylish/) that allows
|
||||||
@ -171,7 +171,7 @@ Midnight Surfing Alternative:
|
|||||||
* [Youtube - Lights Out - A Dark Youtube
|
* [Youtube - Lights Out - A Dark Youtube
|
||||||
Theme](https://userstyles.org/styles/92164/youtube-lights-out-a-dark-youtube-theme)
|
Theme](https://userstyles.org/styles/92164/youtube-lights-out-a-dark-youtube-theme)
|
||||||
|
|
||||||
####UI Themes
|
#### UI Themes
|
||||||
|
|
||||||
Most of my firefox UI is styled dark with the [FT
|
Most of my firefox UI is styled dark with the [FT
|
||||||
DeepDark](https://addons.mozilla.org/en-US/firefox/addon/ft-deepdark/) theme.
|
DeepDark](https://addons.mozilla.org/en-US/firefox/addon/ft-deepdark/) theme.
|
||||||
@ -179,7 +179,7 @@ DeepDark](https://addons.mozilla.org/en-US/firefox/addon/ft-deepdark/) theme.
|
|||||||
The firefox developer tools can be [themed dark in its
|
The firefox developer tools can be [themed dark in its
|
||||||
settings](http://soledadpenades.com/2014/11/20/using-the-firefox-developer-edition-dark-theme-with-nightly/).
|
settings](http://soledadpenades.com/2014/11/20/using-the-firefox-developer-edition-dark-theme-with-nightly/).
|
||||||
|
|
||||||
####Addons
|
#### Addons
|
||||||
|
|
||||||
For reddit, I use the [RES](http://redditenhancementsuite.com/) addon which has
|
For reddit, I use the [RES](http://redditenhancementsuite.com/) addon which has
|
||||||
a night mode option.
|
a night mode option.
|
||||||
@ -197,7 +197,7 @@ theme](https://github.com/vimpr/vimperator-colors). Also, in order to make all
|
|||||||
of the vimperator help pages dark, I had to add the protocol `liberator://` to
|
of the vimperator help pages dark, I had to add the protocol `liberator://` to
|
||||||
the regex for Midnight Surfing Alternative (exact syntax for that above).
|
the regex for Midnight Surfing Alternative (exact syntax for that above).
|
||||||
|
|
||||||
###Redshift###
|
### Redshift
|
||||||
|
|
||||||
At night, it's also useful to filter out blue light to help with sleep.
|
At night, it's also useful to filter out blue light to help with sleep.
|
||||||
[Redshift](http://jonls.dk/redshift/) is a utility that does this automatically
|
[Redshift](http://jonls.dk/redshift/) is a utility that does this automatically
|
||||||
@ -205,7 +205,7 @@ while running in the background.
|
|||||||
|
|
||||||
![Midnight in action with redshift](/assets/midnight_screenshot_redshift.png)
|
![Midnight in action with redshift](/assets/midnight_screenshot_redshift.png)
|
||||||
|
|
||||||
###Invert it all!###
|
### Invert it all!
|
||||||
|
|
||||||
I noticed that with the dark colors and my monitor brightness turned low, it was
|
I noticed that with the dark colors and my monitor brightness turned low, it was
|
||||||
hard to see the screen during the day because of glares. An easy solution to
|
hard to see the screen during the day because of glares. An easy solution to
|
||||||
|
@ -12,7 +12,7 @@ Skip to the **Applications** part of this post to see the outputs from my
|
|||||||
experimentation if you are already familiar with DeepDream, Deep Style, and all
|
experimentation if you are already familiar with DeepDream, Deep Style, and all
|
||||||
the other latest happenings in generating images with deep neural networks.
|
the other latest happenings in generating images with deep neural networks.
|
||||||
|
|
||||||
###Background and History###
|
### Background and History
|
||||||
|
|
||||||
On [May 18, 2015 at 2 a.m., Alexander
|
On [May 18, 2015 at 2 a.m., Alexander
|
||||||
Mordvintsev](https://medium.com/backchannel/inside-deep-dreams-how-google-made-its-computers-go-crazy-83b9d24e66df#.g4t69y8wy),
|
Mordvintsev](https://medium.com/backchannel/inside-deep-dreams-how-google-made-its-computers-go-crazy-83b9d24e66df#.g4t69y8wy),
|
||||||
@ -84,7 +84,7 @@ top-of-the-line GTX Titan X graphics card. Still, I believe this technology has
|
|||||||
a lot of potential for generating game art even if it can't act as a real-time
|
a lot of potential for generating game art even if it can't act as a real-time
|
||||||
filter.
|
filter.
|
||||||
|
|
||||||
###Applications: Generating Satellite Images for Procedural World Maps###
|
### Applications: Generating Satellite Images for Procedural World Maps
|
||||||
|
|
||||||
I personally know very little machine learning, but I have been able to produce
|
I personally know very little machine learning, but I have been able to produce
|
||||||
a lot of interesting results by using the tool provided by
|
a lot of interesting results by using the tool provided by
|
||||||
@ -183,7 +183,7 @@ treatment plant in Peru](/assets/treatment_plant.jpg)
|
|||||||
![Output of random clouds and water treatment
|
![Output of random clouds and water treatment
|
||||||
plant](/assets/random_treatment_plant.png)
|
plant](/assets/random_treatment_plant.png)
|
||||||
|
|
||||||
###Applications: More Fun###
|
### Applications: More Fun
|
||||||
|
|
||||||
For fun, here are some other outputs that I liked.
|
For fun, here are some other outputs that I liked.
|
||||||
|
|
||||||
@ -250,7 +250,7 @@ Brook by Albert Bierstadt](/assets/mountain_brook.jpg):
|
|||||||
![Output of Norwegian forest and The Mountain
|
![Output of Norwegian forest and The Mountain
|
||||||
Brook](/assets/mountain_brook_hill.png)
|
Brook](/assets/mountain_brook_hill.png)
|
||||||
|
|
||||||
###Limitations###
|
### Limitations
|
||||||
|
|
||||||
I don't have infinite money for a GTX Titan X, so I'm stuck with using OpenCL on
|
I don't have infinite money for a GTX Titan X, so I'm stuck with using OpenCL on
|
||||||
my more-than-a-few-generations-old AMD card. It takes about a half-hour to
|
my more-than-a-few-generations-old AMD card. It takes about a half-hour to
|
||||||
|
Loading…
Reference in New Issue
Block a user