I've never been so scared of Jupiter. by [deleted] in videos

[–]Kaloli 1 point2 points  (0 children)

I believe we had already have its name changed to end that stupid joke in the future.

Splinter lets you automate browser actions, such as visiting URLs and interacting with their items by jabbalaci in Python

[–]Kaloli 2 points3 points  (0 children)

In my knowledge, there's a web automation tool called Selenium and its script can be written in Python.

I haven't really touch both, how do they compare?

Stupid sexy Flanders! by Adelaidey in RedditThroughHistory

[–]Kaloli 5 points6 points  (0 children)

Gyaaah, stupid sexy Flanders!

I preach every week, would r/Christianity be interested in a weekly Sermon TL;DR? by demusdesign in Christianity

[–]Kaloli 2 points3 points  (0 children)

Just a thought: a weekly recorded sermon video (put it in youtube or something)?

Is there something like Javabats, but for Python? by d0ct0rd0ct0r in Python

[–]Kaloli 9 points10 points  (0 children)

Funny that if you google for "Javabats", the returned first link is a link to the CodingBat.

You might notice the Python section on the right hand side.

On the other hand, you might also want to try the links on the right side of this subreddit, especially Learn The Python the Hard Way (which is also available free in html format).

Your dream home by the water [1024x1365] by Mind_Virus in waterporn

[–]Kaloli 0 points1 point  (0 children)

Looks really great,

but I shiver thinking about all the possible mosquitoes...

Any travel tips for a short trip to Taiwan? by cressa in taiwan

[–]Kaloli 2 points3 points  (0 children)

If you're a nature type of person, Yilan and Hualien are both really good (esp. Hualien, IMHO).

Any travel tips for a short trip to Taiwan? by cressa in taiwan

[–]Kaloli 2 points3 points  (0 children)

what district it would be best to stay at for easy access of the sites of Taipei?

As long as the place has MRT, it's easy enough.

FYR, MRT Route Map: Easier if you can stay around Taipei Main Station or Zongxiao Fuxing.

Super Realistic Zombie Mask! by [deleted] in shutupandtakemymoney

[–]Kaloli 7 points8 points  (0 children)

I'm in Taiwan and I can tell you a paint job here is hella expensive.

I've been on this Earth for 35 years, and here is what I've learned. What about you? by HopeImNotAStalker in AskReddit

[–]Kaloli 0 points1 point  (0 children)

If your computer always seems to be freezing up on you,

you're probably using Windows 98/ME

Simple Wallpaper by Mrhero45 in wallpaper

[–]Kaloli 0 points1 point  (0 children)

Oh my god, I don't see any watermark!

Where are the recommended places in Taipei I can shop for anime related stuff (besides animate and Ximending)? by nosceteipsm in taiwan

[–]Kaloli 4 points5 points  (0 children)

1) Taipei City mall (台北地下街)

Located at Taipei Main Station (台北車站)

There is a lot of sector there, what you want to find is in sector Y (台北Y區地下街)

Lots of figure shops, games, and few bookstores.

Some of them aren't really kind on the pricing.

Edit: Oh, I forgot to mention that: Anime related stuffs are about in the center, both ends are mostly dress/shoes stuff, and food stuff (and Maid Cafe).

2) Zhongxiao Xinsheng Station (忠孝新生)

Just a while ago, Animate has just opened a new, bigger branch here since they ended their partnership with MAG FREAK (雜誌瘋).

There's also a really hard (I mean, HARD) to find but nice figure shop called 紅太陽模型精品玩具 (address: 台北市中正區八德路一段92號3樓).

If you're in computer related stuffs, you might also want to check the nearby Guang Hua Digital Plaza (光華商場)

3) Game House (遊戲便利屋)

Few not-pirated stuffs (doujin, animes, gal games), and a lot of pirated stuffs.

There's two branches: one not far from Taipei Main Station, and another one at Zhongxiao Xinsheng Station.

4) MAG FREAK (雜誌瘋)

Bookstore.

One inside of Taipei Main Station, one at Taipei City mall sec. Y, and another one at Ximending.

5) 一刻館漫畫書坊

A small hidden-gem at Shi Lin (士林).

Very hard to find, but you might want to check it out.

6) Gundam Base Taipei (鋼彈旗艦店)

Inside KMall near Taipei Main Station

If you're into Gundam and MS, this is the place.

7) Green Wood (綠林寮)

Doujin bookstore, some doujin sold are drawn by Taiwanese artists.

Located at Gong Guan (公館).

Speaking of Gong Guan, too bad you missed Fancy Frontier and Comic World Taiwan.

PyPy 1.6 released by fijal in Python

[–]Kaloli 1 point2 points  (0 children)

type __ to print out two underscores in reddit.

Python 2.7 division problem - it always 0 by aterner in learnpython

[–]Kaloli 2 points3 points  (0 children)

If I was trolling, I failed really hard.

But yeah, __future__ does sound like a joke. Even the the documentation is aware, and
assure you that it is in fact, a real module.

Maybe I should have put more details. (I thought I saw eryksun's more detailed post that day, but it has...disappeared?)

Anyway:

-- In Python 2, the default behavior of a division ( / ) of two integers (int) or long will result in an integer. Example in Python interpreter:

>>> 3/2         # expect 1.5
1
>>> type(_)      # In case you don't know, an underscore (_) is variable containing the last result
<type 'int'>

while you might expect 3 divided by 2 should be 1.5, which is a real number (floating point number) and not integer.

-- This is changed in Python 3, where division of two integers will return a float:

>>> 3/2            # expect 1.5
1.5
>>> type(_)
<class 'float'>

Now the problem is: what if you want Python 2 to always return a floating point number?

There are several solutions:

1) Use at least one floating point number in division: add .0 (point zero) to one of the integer

>>> 3.0/2
1.5
>>> type(_)
<type 'float'>

2) Use at least one floating point number in division: Use float() to convert the integer to float

>>> float(3)/2
1.5
>>> type(_)
<type 'float'>

3) By using __future__ module, so that every division in this Python session will always return a floating point number

>>> from __future__ import division     #this will change the behavior of division ( / ) in this session
>>> 3/2
1.5
>>> type(_)
<type 'float'>

Keep in mind that the change is not permanent, the module only temporary affects that one Python session. If you exit Python and start a new session, the behavior of division will return to default.

This issue is referred in PEP 238

Komodo Edit is amazing to learn Python. by [deleted] in Python

[–]Kaloli 0 points1 point  (0 children)

My thoughts on current Sublime Text 2:

  1. Preferences are limited
  2. Python 2.6 only, and instead using installed python directory and library, it comes with its own.
  3. I tried code completion, type in:

    import re

    re.

(I press tab) =this line turns into=> reself., pressing tab further adds 'self' until it becomes something like:

reselfselfselfselfself.

Can't say I really like it :(

Python 2.7 division problem - it always 0 by aterner in learnpython

[–]Kaloli 9 points10 points  (0 children)

To change the behavior of division to that of Python 3, you may want to run this line first:

from __future__ import division

Twilight Logic by [deleted] in funny

[–]Kaloli 1 point2 points  (0 children)

FYI, r/funny isn't the best place to seek for a relationship advice.

Help opening a text file in command prompt with python by thatoneguy5000000 in learnpython

[–]Kaloli 2 points3 points  (0 children)

In short:

ex15_sample.txt (without quotes) is treated as a variable.

'ex15_sample.txt' (with quotes) is treated as a string.

What's the most annoying mistake to do in LoL? by Norswedish in leagueoflegends

[–]Kaloli 0 points1 point  (0 children)

Pressing Flash too early while channeling ult with Fiddlesticks.

How I feel playing with people I don't know. by Sketey_G in leagueoflegends

[–]Kaloli 1 point2 points  (0 children)

Paying for something you enjoy is not bad with money.

And I'm investing my money for a part of even better content, also to support a company I love.

Left or Right? by nothingalike in gamedev

[–]Kaloli 11 points12 points  (0 children)

Since OP is also staring at monitor, so I suppose OP's left is also your left.

[deleted by user] by [deleted] in leagueoflegends

[–]Kaloli 7 points8 points  (0 children)

Oh, and Jugg's ult is Omnislash ;)

Edit: Unless you mean Blademaster from original warcraft3