teleren/devto huggingface dataset:
vimで開いているファイルのディレクトリに移動する
Tags: vim
Published: 2014-06-15 04:37:00

---
title: vimで開いているファイルのディレクトリに移動する
published: true
tags: Vim
date: 20140615T04:37Z
canonical_url: https://qiita.com/shiena/items/1e98fd14d0ef0084b17f
---
## 自動的に移動する

[autochdir](http://vim-jp.org/vimdoc-ja/options.html#%27autochdir%27)より、コンパイル時に有効にされた場合のみ使用できます。
`:echo exists("+autochdir")`の結果が`0`なら残念ながら使う事ができません。

```vim
:set autochdir
```

## コマンドで指定して移動する

[Exコマンド用の特別な文字](http://vim-jp.org/vimdoc-ja/cmdline.html#cmdline-special)より、`%`はカレントファイル名、`:h`はファイル名のヘッド (末尾の部分と全ての区切りが除かれたもの)なので、`%:h`は開いているファイルのディレクトリに展開されます。

```vim
" グローバルなカレントディレクトリを変更する
:cd %:h
```

`:cd`はグローバルなカレントディレクトリを変更するので他のウインドウやバッファも変更されます。

```vim
" ローカルなカレントディレクトリを変更する
:lcd %:h
```

カレントウインドウのカレントディレクトリだけを変更したい場合は`:lcd`を使います。

## 現在のディレクトリを確認する

```vim
:pwd
```
パナソニック　プライベート・ビエラ UN-JL10T3 レビュー　第3回 番組視聴・HDMI接続編
Tags: review
Published: 2018-05-16 20:30:11

---
title: パナソニック　プライベート・ビエラ UN-JL10T3 レビュー　第3回 番組視聴・HDMI接続編
published: true
tags: review
canonical_url: http://connect.coron.tech/archives/51851421.html
---

[![DSCF9936](http://livedoor.blogimg.jp/cv_k/imgs/3/2/32107fa1-s.jpg)](http://livedoor.blogimg.jp/cv_k/imgs/3/2/32107fa1.jpg "DSCF9936")  

タッチで操るタブレット型テレビ
  
  
プライベート・ビエラの3回目のレビューとなります。いよいよ録画番組も溜まってきましたのでいよいよ実際に視聴してみた場合の紹介と、ネットワーク機能、そしてレコーダー部をHDMI接続させた場合の動作について解説していきます。  
  
続きは以下からどうぞ。  
[続きを読む](http://connect.coron.tech/archives/51851421.html) ![](http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=2732114&name=cv_k&pid=51851421)
Example Dockerfile
Tags: docker, dockerfile, nginx
Published: 2014-06-10 13:07:00

---
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/y9hxcwi5y92j6zfcxbjx.jpg
title: Example Dockerfile
slug: example-dockerfile
date: 2014-06-10 13:07
tags: 
 - docker
 - dockerfile
 - nginx
---
Here is an example Dockerfile. It installs nginx and adds /src to the wwwroot. Make sure that the files are 755.

    # DOCKER-VERSION 0.9.1

    FROM ubuntu
    MAINTAINER Adam K Dean

    RUN apt-get update
    RUN apt-get -y install nginx

    RUN echo "daemon off;" >> /etc/nginx/nginx.conf
    ADD default /etc/nginx/sites-available/default
    ADD /src /var/www

    EXPOSE 80

    CMD ["nginx"]

`FROM` defines the base image.

`RUN` runs a command, use it to install software for example.

`ADD` adds local files to the container.

`EXPOSE` exposes a port so that the host can map a port to tunnel to it.

`CMD` defines the command that will be run when the container starts. There can only be one command, if there are multiple, the last one will be used. You can pass parameters to it like so: 

    CMD ["service", "parameter"]
Access Docker host from container
Tags: docker, ubuntu
Published: 2014-06-10 13:00:00

---
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/y9hxcwi5y92j6zfcxbjx.jpg
title: Access Docker host from container
slug: access-docker-host-from-container
date: 2014-06-10 13:00
tags: 
 - docker
 - ubuntu
---
Docker 1.0 has just [been announced](http://blog.docker.com/2014/06/its-here-docker-1-0/), and one thing I was looking forward to was the introspection API which [Solomon Hykes said was coming in 1.0](https://github.com/dotcloud/docker/issues/1143#issuecomment-22354479). Unfortunately, it doesn't look like it has. This is a shame because it would allow the container to communicate with the host in a scoped and controlled manner.

For a small R&D project I just worked on, I had a 'gateway' container which would receive HTTP traffic and route it to other containers. For this it needed to have access to docker on the host so that it could index the containers and access their configurations, such as local IP addresses.

The way I got this to work was to install docker on the container, let's say this is the `ubuntu-docker` Dockerfile:

    FROM ubuntu

    # Install Docker
    RUN apt-get install docker.io -y
    RUN ln -sf /usr/bin/docker.io /usr/local/bin/docker

    CMD /bin/bash

Once that's built, I mount `docker.sock` to the container when running it like so:

    docker run -d -v /var/run/docker.sock:/var/run/docker.sock ubuntu-docker

Now if you were to run docker commands on the container, you'd actually be running them on the host. Bearing in mind that this is not a complete how to, I may write a full walkthrough if anyone needs it.
パナソニック　プライベート・ビエラ UN-JL10T3 レビュー　第2回 予約・設定編
Tags: review
Published: 2018-05-16 20:29:41

---
title: パナソニック　プライベート・ビエラ UN-JL10T3 レビュー　第2回 予約・設定編
published: true
tags: review
canonical_url: http://connect.coron.tech/archives/51850653.html
---

[![IMG_1520](http://livedoor.blogimg.jp/cv_k/imgs/b/3/b3ababbc-s.jpg)](http://livedoor.blogimg.jp/cv_k/imgs/b/3/b3ababbc.jpg "IMG\_1520")  

便利なところ、まだまだと思うところ、  
結構いろいろあります
  
  
プライベート・ビエラの2回目のレビューとなります。実際に使ってみて色々と感じるところがでてきました。今回の記事では、予約の方法や設定の種類や方法について詳しく解説していきます。  
  
続きは以下からどうぞ。  
[続きを読む](http://connect.coron.tech/archives/51850653.html) ![](http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=2732114&name=cv_k&pid=51850653)
Remove all Docker containers
Tags: linux, docker
Published: 2014-06-05 15:31:00

---
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/y9hxcwi5y92j6zfcxbjx.jpg
title: Remove all Docker containers
slug: remove-all-docker-containers
date: 2014-06-05 15:31
tags: 
 - linux
 - docker
---
After working with Docker for only a few hours, I now have more old containers than I have fingers. 

A quick and easy way to remove these is to run:

    $ docker rm $(docker ps -q -a);

`-q` is quiet mode, which only returns container IDs. 

`-a` is all, which as it's name suggests, returns all containers.

This will try and remove any running containers too, but that will fail.
IIS .woff MIME type
Tags: iis, woff, mime
Published: 2014-06-04 15:06:00

---
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/y9hxcwi5y92j6zfcxbjx.jpg
title: IIS .woff MIME type
slug: iis-woff-mime-type
date: 2014-06-04 15:06
tags: 
 - iis
 - woff
 - mime
---
IIS does not have a MIME type set up for woffs. I don' t like this, it throws errors like this one:

> GET http://localhost/fonts/glyphicons-halflings-regular.woff 404 (Not Found) 

To fix this, add a MIME type for `.woff` as `application/x-font-woff`. 

Don't just add `application/x-woff` or you'll get Chrome nagging you about resources interpreted as fonts but transferred with MIME types of application/x-woff.
Adding Windows back to grub
Tags: ubuntu, grub, linux, windows
Published: 2014-06-01 10:28:00

---
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/y9hxcwi5y92j6zfcxbjx.jpg
title: Adding Windows back to grub
slug: adding-windows-back-to-grub
date: 2014-06-01 10:28
tags: 
 - ubuntu
 - grub
 - linux
 - windows
---
After my previous post, I sit here with a working grub installation, but it doesn't yet allow me to boot into Windows.

This is really easy.

    $ sudo update-grub
    [sudo] password for adam: 
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-3.11.0-22-generic
    Found initrd image: /boot/initrd.img-3.11.0-22-generic
    Found linux image: /boot/vmlinuz-3.11.0-12-generic
    Found initrd image: /boot/initrd.img-3.11.0-12-generic
    Found memtest86+ image: /boot/memtest86+.bin
    Found Windows 7 (loader) on /dev/sda1
    done

Done.
Error file '/grub/i386-pc/normal.mod' not found in Ubuntu 13.10
Tags: linux, grub, i386, efi
Published: 2014-06-01 10:25:00

---
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/y9hxcwi5y92j6zfcxbjx.jpg
title: Error file '/grub/i386-pc/normal.mod' not found in Ubuntu 13.10
slug: error-file-grub-i386-pc-normal-mod-not-found-in-ubuntu-13-10
date: 2014-06-01 10:25
tags:
 - linux
 - grub
 - i386
 - efi
---
As I'm working less and less with the Microsoft stack and more and more with the Node stack, I decided it would be a good idea to develop on Linux. Ubuntu is the choice at work so to keep it consistent, I thought I'd try it at home. 14.04 LTS had some quirky bugs so I installed 13.10 to some space I made.

But after installing, grub decided to throw me a nasty message.

    Error: file '/grub/i386-pc/normal.mod' not found
    rescue>

I knew this had something to do with UEFI. I hate UEFI. SecureBoot is nothing but trouble. I tried many things but finally went to bed. Now, I'm writing this from a working installation. This is how I fixed it.

I booted into a Live environment, opened the terminal, and mounted the installation and chrooted into it. I had Windows siting on /dev/sda1 and /dev/sda2, and installed Ubuntu to an Ext4 partition which was /dev/sda3:

    $ sudo -s
    # mount /dev/sda3 /mnt
    # mount -t proc none /mnt/proc
    # mount -t sysfs none /mnt/sys
    # mount -o bind /dev /mnt/dev
    # mount -o bind /tmp/ /mnt/tmp
    # chroot /mnt

Next I removed the grub EFI packages:

    # apt-get remove --purge grub-efi-amd64 grub-efi-amd64-bin

Next I tried to re-install the grub pc packages, but had a strange error about resolving `gb.archive.ubuntu.com`. To fix this, I had to add some entries to the `/etc/hosts` file:

    91.189.91.15      archive.ubuntu.com
    91.189.92.200     gb.archive.ubuntu.com
    91.189.91.15      security.ubuntu.com
    91.189.92.152     extras.ubuntu.com

Now I reinstall grub pc packages:

    # apt-get --reinstall install grub-common grub-pc os-prober

When the screen pops up asking about where to install grub, I just selected /dev/sda. After that, reboot your machine and you might be in luck. If not, you could go and ask over at #ubuntu on freenode, though you probably won't get an answer.
Count number of files deleted between Git commits
Tags: gitlog, bash, git
Published: 2014-05-29 11:22:00

---
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/y9hxcwi5y92j6zfcxbjx.jpg
title: Count number of files deleted between Git commits
slug: count-number-of-files-deleted-between-git-commits
date: 2014-05-29 11:22
tags: 
 - git-log
 - bash
 - git
---
To count the number of files deleted between two Git commits, use the following command:

    $ git log --diff-filter=D --summary 45b0487..HEAD | grep 'delete mode' | wc -l

Be sure to change `45b0487` to the commit you want to count from, or remove `45b0487..HEAD` altogether to look through the entire history.

We use `grep` to count the number of deleted files.

    $ git log --diff-filter=D --summary | grep 'delete mode'

    delete mode 100644 test (3).txt
    delete mode 100644 test (4).txt
    delete mode 100644 test (2).txt

Then we use `wc -l` to do a line count:

    $ git log --diff-filter=D --summary | grep 'delete mode' | wc -l
          3

Sometimes you get whitespace back from `wc -l`, you can trim that with `tr`:

    $ git log --diff-filter=D --summary | grep 'delete mode' | wc -l | tr -d ' '

    3

This may take some time for larger repositories.
パナソニック　プライベート・ビエラ UN-JL10T3 レビュー　第1回 開封・セットアップ編
Tags: review
Published: 2018-05-16 20:29:06

---
title: パナソニック　プライベート・ビエラ UN-JL10T3 レビュー　第1回 開封・セットアップ編
published: true
tags: review
canonical_url: http://connect.coron.tech/archives/51848837.html
---

[![IMG_1440](http://livedoor.blogimg.jp/cv_k/imgs/5/0/505026b7-s.jpg)](http://livedoor.blogimg.jp/cv_k/imgs/5/0/505026b7.jpg "IMG\_1440")  

好きなところで、気軽に楽しめるテレビ
  
  
訪問者の皆様、約2か月ぶりの更新となってしまいました。管理人はここ最近色々なことを行っておりますが何とか元気です。忙しいとかそういう事関係なしに、ただブログを執筆しようと思わなくなってしまってtwitterや他のSNSで近況をツイートしたりしていました。今回の製品も何だかんだ言って、応募していたことは記憶していたものの、実際に商品が到着するまで当選したことすらまったく知らずに到着しました。(連絡先メールアドレスに普段利用していないメールアドレスを使用していたため)ですが管理人自身としても使ってみたくて応募した商品ですので、精一杯レビュー記事を執筆させていただこうと思います。  
  
続きは以下からどうぞ。  
[続きを読む](http://connect.coron.tech/archives/51848837.html) ![](http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=2732114&name=cv_k&pid=51848837)
Find IP address of Docker container
Tags: docker
Published: 2014-05-28 17:31:00

---
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/y9hxcwi5y92j6zfcxbjx.jpg
title: Find IP address of Docker container
slug: find-ip-address-of-docker-container
date: 2014-05-28 17:31
tags: 
 - docker
---
To get the IP address of a Docker container, use the following command:

```
$ docker inspect --format '{{ .NetworkSettings.IPAddress }}' ${CID}
```

So let's say the ID of the container is `a2150s`, we could get the IP like so:

```
$ docker inspect --format '{{ .NetworkSettings.IPAddress }}' a2150s

172.17.0.2
```

I have written a script for this, `/usr/local/bin/dockerip`:

```
#!/bin/bash

COUNT=`docker ps | grep $1 | wc -l | bc`

if [ $COUNT -gt 0 ]; then
  IP_ADDRESS=`docker inspect --format '{{ .NetworkSettings.IPAddress }}' $1`
  echo "$1: $IP_ADDRESS"
else
  echo "Could not find $1. Check container is running."
fi
```

This will form part of a [repository of useful docker scripts](https://github.com/Imdsm/docker-scripts).
Local DNS resolver found in resolv.conf and containers can't use it
Tags: ubuntu, dhcp, dnsmasq, docker
Published: 2014-05-28 17:20:00

---
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/y9hxcwi5y92j6zfcxbjx.jpg
title: Local DNS resolver found in resolv.conf and containers can't use it
slug: local-dns-resolver-found-in-resolv-conf-and-containers-can-t
date: 2014-05-28 17:20
tags: 
 - ubuntu
 - dhcp
 - dnsmasq
 - docker
---
I've been playing with Docker for part of a project, and came across this annoying but important message:

> WARNING: Local (127.0.0.1) DNS resolver found in resolv.conf and containers can't use it. Using default external servers : [8.8.8.8 8.8.4.4]

The problem? `/etc/resolv.conf` has `nameserver 127.0.0.1` (or `nameserver 127.0.1.1`) in it.

I worked out that Ubuntu 14.04 LTS uses a daemon called `dnsmasq`, which routes DNS traffic through to the DNS servers provided by DHCP.

While this works fine for Docker, that message is quite annoying.

I disabled dnsmasq in `/etc/NetworkManager/NetworkManager.conf`:

    $ sudo nano /etc/NetworkManager/NetworkManager.conf
    
    #dns=dnsmasq

I then added the public Google DNS servers to `/etc/dhcp/dhclient.conf`:

    $ sudo nano /etc/dhcp/dhclient.conf

    prepend domain-name-servers 8.8.8.8,8.8.4.4;

Then you just need to restart NetworkManager: 

    $ sudo restart network-manager

And now you can start Docker containers without that pesky message!
Install Docker on Ubuntu
Tags: linux, docker, ubuntu
Published: 2014-05-28 15:55:00

---
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/y9hxcwi5y92j6zfcxbjx.jpg
title: Install Docker on Ubuntu
slug: install-docker-on-ubuntu
date: 2014-05-28 15:55
tags: 
 - linux
 - docker
 - ubuntu
---
To install Docker on Ubuntu 14.04 LTS, run the following commands:

    $ sudo apt-get install docker.io
    $ sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker

Once that is done, add your user to the docker group:

    $ sudo usermod -a -G docker adam

After this, you may need to logout and login again. I had an issue where I recieved an error like this:

    $ docker ps
    dial unix /var/run/docker.sock permission denied

Once you've logged out and back in again, you can test docker is installed and works like so;

    $ docker version
    Client version: 0.9.1
    Go version (client): go1.2.1
    Git commit (client): 3600720
    Server version: 0.9.1
    Git commit (server): 3600720
    Go version (server): go1.2.1
    Last stable version: 0.11.1

Be sure to read up more at [Getting Started](https://www.docker.io/gettingstarted/)
Install Sublime Text on Ubuntu
Tags: ubuntu, sublime, linux
Published: 2014-05-28 15:40:00

---
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/y9hxcwi5y92j6zfcxbjx.jpg
title: Install Sublime Text on Ubuntu
slug: install-sublime-text-on-ubuntu
date: 2014-05-28 15:40
tags: 
 - ubuntu
 - sublime
 - linux
---
This relates to installing Sublime Text on Ubuntu 14.04 LTS. 

For Sublime Text 2, run the following commands:

    $ sudo add-apt-repository ppa:webupd8team/sublime-text-2
    $ sudo apt-get update
    $ sudo apt-get install sublime-text

For Sublime Text 3, run the following commands:

    $ sudo add-apt-repository ppa:webupd8team/sublime-text-3
    $ sudo apt-get update
    $ sudo apt-get install sublime-text

Notice that it's just a case of changing `sublime-text-2` to `sublime-text-3`.

Don't forget to [Install Emmet (Zen Coding)](http://adamkdean.co.uk/blog/read/85/install-emmet-zen-coding-in-sublime-text) and [LESS highlighting](http://adamkdean.co.uk/blog/read/101/install-less-highlighting-in-sublime-text) too!
Binding event to all elements except specific element and all its contents.
Tags: frontend, javascripteventhan, javascript, web
Published: 2020-05-04 15:37:32

---
title: Binding event to all elements except specific element and all its contents.
published: true
date: 2014-05-28 09:29:23 UTC
tags: frontend,javascript-event-han,javascript,web
canonical_url: 
---

Recently I’ve encountered a challenge to close navigation menu on every touch or click, except clicks and touches in the menu area. I’ve tried many ways to resolve it, and at last, I’ve found the optimal solution for me. The solution is in two steps and relies on event bubbling.

Firstly, I’ve attached a click/touch event on the <body> that on every click/touch closes the menu.

```
function clickOnBody(event){
 // you can close here the menu
 alert(‘clicked everywhere except the menu area’);
}
document.body.addEventListener(‘mousedown’, clickOnBody, false);
document.body.addEventListener(‘touchstart’, clickOnBody, false);
```

Secondly, I’ve attached another click/touch event on a specific element, and inside this event, I’ll prevent event propagation (bubbling), so that every click/touch inside element area will stop on the parent element.

```
function clickOnMenu(event){
 event.stopPropagation();
}
var menu = document.getElementById(‘menu’);
menu.addEventListener(‘mousedown’, clickOnMenu, false);
menu.addEventListener(‘touchstart’, clickOnMenu, false);
```

You can check the solution in [jsFiddle](http://jsfiddle.net/dima_k/d9JRu/1/)

* * *
Kali Linux 1.0.7 Release
Published: 2023-08-21 21:17:05

---
title: Kali Linux 1.0.7 Release
published: true
date: 2014-05-27 00:00:00 UTC
tags: 
canonical_url: https://www.kali.org/blog/kali-linux-1-0-7-release/
---

#### Kernel 3.14, Tool Updates, Package Improvements

Kali Linux 1.0.7 has just been released, complete with a whole bunch of tool updates, a new kernel, and some cool new features. Check out our [changelog](https://bugs.kali.org/changelog_page.php) for a full list of these items. As usual, you don’t need to re-download or re-install Kali to benefit from these updates - you can update to the latest and greatest using these simple commands:

```
apt-get update
apt-get dist-upgrade
# If you've just updated your kernel, then: reboot

```

#### Kali Linux Encrypted USB Persistence

One of the new sought out features introduced (which is also partially responsible for the kernel update) is the ability to create [Kali Linux Live USB with LUKS Encrypted Persistence](https://www.offsec.com/kali-linux/kali-encrypted-usb-persistence/). This feature ushers in a new era of secure Kali Linux USB portability, allowing us to either boot to a “clean” Kali image or alternatively, overlay it with the contents of a persistent encrypted partition, all within the same USB drive.

#### Tool Developers Ahoy!

This release also marks the beginning of some co-ordinated efforts between Kali developers and tool developers to make sure their tools are represented correctly and are fully functional within Kali Linux. We would like to thank the metasploit, w3af, and wpscan dev teams for working with us to perfect their Kali packages and hope that more tool developers join in. Tool developers are welcome to send us an email to:

[![](https://www.kali.org/blog/kali-linux-1-0-7-release/images/info-email-fix.png)](https://www.kali.org/blog/kali-linux-1-0-7-release/images/info-email-fix.png)

and we’ll be happy to work with you to better integrate your tool into Kali.

#### Kali Linux: Greater Than the Sum of its Parts

For quite some time now, we’ve been preaching that Kali Linux is more than a “Linux distribution with a collection of tools in it”. We invest a significant amount of time and resources developing and enabling features in the distribution which we think are useful for penetration testers and other security professionals. These features range from things like “ **live-build** ”, which allows our end users to easily customize their own Kali ISOs, to features like **Live USB persistence encryption** , which provides paranoid users with an extra layer of security. Many of these features are unique to Kali and can be found nowhere else. We’ve started tallying these features and linking them from our [Kali documentation page](https://www.kali.org/docs/) - check it out, it’s growing to be an impressive list!

#### Torrents, Virtual Machine & ARM images

In the next few days, [OffSec](https://www.offsec.com/) will post Virtual Machine and custom ARM images for the 1.0.7 release. We will announce the availability of these images via our [blog](https://www.offsec.com/blog/) and [Twitter](https://twitter.com/offsectraining) feeds, so stay tuned!.
Growing up... or something
Tags: net, career, certification, peregrin
Published: 2018-08-27 20:56:40

---
title: Growing up... or something
published: true
tags: .net,career,certification,Peregrin
canonical_url: https://kritner.blogspot.com/2014/05/growing-up-or-something.html
---

I would like to try to start blogging more, though I'm not sure what about.  Getting closer to 30 years old and Kristen and I have finally had to buy our first washer and dryer - I feel like an adult :P  
  
This week, after 5 years with Peregrin, I have put in my 2 weeks notice while accepting an amazing offer as a Senior Web Developer at another company.  The company sounds like a great opportunity to continue learning, as well as offering my own knowledge and experience to them.  I feel that I needed to leave Peregirn in order to keep relevant, in order to start anew, and to keep growing.  I will miss Peregrin and the employees, but it is simply time to move on.  
  
Up next, I will be concentrating on the furthered development of my front end skills, as well as continue studying for my next certification.  I might attempt to do blog posts about tutorials and/or things I would like to learn about next.  Guess we shall see.
Flickr API Size enum
Tags: flickr, javascript
Published: 2014-05-05 01:25:00

---
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/y9hxcwi5y92j6zfcxbjx.jpg
title: Flickr API Size enum
slug: flickr-api-size-enum
date: 2014-05-05 01:25
tags: 
 - flickr
 - javascript
---
Just for future reference, here is the Flickr API sizes as a JavaScript enum.

    var flickr_sizes = {
        'square':       '_s',
        'large_square': '_q',
        'thumbnail':    '_t',
        'small':        '_m',
        'small_320':    '_n',
        'medium':       '',
        'medium_640':   '_z',
        'medium_800':   '_c',
        'large':        '_b',
        'large_1600':   '_h',
        'large_2048':   '_k',
        'original':     '_o'
    };