« first day (1583 days earlier)      last day (3366 days later) » 
01:00 - 15:0015:00 - 23:00

3:00 PM
at 174 :P
If I'm lucky, tomorrow get >15k
 
Protect my question first
 
tomorrow i will get 60k
 
@AvinashRaj tough one, need to get at least 4 accepted on top of repcap if you hit the cap already
 
3:13 PM
I need a new linux distro, this one runs poorly
 
@corvid Arch? :)
 
@PeterVaro actually that's what I was considering, Arch xfce
 
+ compton
(for compositing under X)
+ infinality
(for nice font rendering)
==> super nice desktop experience
 
Arch is for more advanced users, as I was reading... does that mean any programmer should feel pretty comfortable with it?
 
I think so
 
3:16 PM
yay 189
I think no one will be comfortable with arch
 
if you are familiar with the command-line and not afraid of editing config files, then sure, you will be pretty comfortable with Arch
 
Ubuntu or Debian
I am not comfortable
and I have been linux user for almost 20 years
 
well, I'm coming from a decade of Macintosh background
 
arch is an idea that you always want to install bleeding edge of everything
 
and I'm using Arch for 10-14 hours a day for the last 5 months
and I'm pretty comfortable with it
 
3:18 PM
and that if you drop out of the bleeding edge for a month, you'll have a mess
 
seems like the package manager is pretty good
 
actually I think it is the most advanced and fun system I've ever had
also I'm using it on ARM based systems as well (RPi)
 
omg
don't get started ...
 
@AnttiHaapala that is the idea, yes => for a server, I would never recommend Arch
I will stick with Debian
 
arch on rpi was even greater mistake, again we had the embedded device with arch
it wasnt updated for half a year
 
3:19 PM
(cause you don't want the bleeding edge all the time)
but for a desktop, I think you will love it
 
then it took forever to update because did need to find the old packages to do the rolling update
I recommend Ubuntu or debian
easy to get software
 
well, I update my desktop daily, and update the rpi every week
 
and rpi2 will get debian from me
 
I will never buy the rpi2
 
the main complaint I have with linux is just getting compatibility with software. Like I use wine a lot, and it seems like Arch is better at supporting it
 
3:20 PM
it is just a waste of money => look at bananapi or orangepi
for the same price you get way more power and access
 
could be
I am not paying
@corvid Ubuntu is debian based
 
@corvid it depends: what softwares are you using which are only available under Windows?
 
everything will first and foremost support debian
 
@PeterVaro mostly video games
 
on arch what can be is that by default they push more bleeding edge
but ubuntu has the PPAs that I use to install all kinds of software
actually my colleague was complaining that Arch for example didn't have new postgresql
 
3:22 PM
PPA is so old and complicated
 
i recommend debian ..
 
if one thing, you have to admit
that pacman and its package-managing logic/strategy
is way more advanced and easier to use
 
well, but they have a deb repo that gets updated right away
nope
(and it is slow)
 
if you need the bleeding edge then upgrade to sid..
 
yeah, the main things are just silverlight, DRMs for amazon instant video, and video games. Linux mint is okay at supporting them but my games keep getting unnecessarily glitchy
 
3:23 PM
Mint is a Ubuntu derivative FYI
so you won't get any better by switching to Ubuntu
IMHO Mint for desktop is better than Ubuntu
 
or debian because ubuntu is based off of debian
 
if you really want the easiest system you can get => use Elementary OS
 
also, it's annoying how most software tends to work for firefox when my preferred browser is chromium...
 
it is beautiful, fast, lightweight and also based on Ubuntu
 
everything uses debian..in some way, why not use debian. : )
 
3:24 PM
:P
 
debian is a universal OS.. works on almost all architectures..
even the ISS use debian ! : )
 
well, I'm not saying Debian is bad, but for me, Arch is the absolute winner
I tried several distros over the last few years
and Arch was the first one, I could get used to in fact I get in loved with :)
 
arch to me is like gentoo reborn :d
for the ricers
 
@AnttiHaapala I have to say no
 
3:27 PM
I like how Arch claims to be minimalist, that sounds nice
 
gentoo is really just a pain in the arse
with the constant compiling and everything
while arch is extremely easy to maintain
 
I know, I had gentoo on 200mhz pentium
 
orly?
 
yes
like 12 yrs ago
 
that's nice :)
 
3:28 PM
then I decided I will go for the most usability path and switched to ubuntu.
 
@corvid sure, because it is basically a "meta-distro"
 
and never changed away yet
 
I see.. stock Ubuntu or Xubuntu? Kubuntu?
 
I don't get what the deal is. I had dual boot but never booted into windows so decided to install just linux mint and overwrite everything, but now it runs terribly
 
will you use the new Ubuntu Phone as well (formerly Ubuntu Touch) ?
@corvid well, that's one thing you will learn while installing Arch => what exactly is happening under the hood: where is the init system, the bootloader, the main system, how to make it dual-boot, etc.
 
3:32 PM
does it have an auto-installer? I have arch on my raspberry pi, it seemed to install with no effort
 
anyway, I recommend at least installing Arch just the sake of the lesson you can learn from it, how a UNIX-like system works
 
i installed 4 os's on my laptop.
 
@corvid yeah, because it is (almost) the same hardware for everyone
you can grab the preinstalled version as a diskimage
although there is Manjaro linux which is Arch based
and it has the things you call "auto-installer" (if I'm not mistaken)
 
ubuntu 14.04, 12.04,windows 7, windows 8
 
or more close to the parent-os, there is also Antergos
 
3:34 PM
@AvinashRaj ever since I got World of Warcraft and Starcraft to run smoothly on linux, Windows just seemed kinda meh
 
 
1 hour later…
4:56 PM
cbg~
 
5:31 PM
how do I override == in the class defintion
 
5:51 PM
You mean __eq__?
 
6:33 PM
@Ffisegydd ah
I wrote __equal__ omg lost 20 minutes of my life
how should I indent/whitespace rawdata[self.i : self.i+2] ?
 
30
Q: How to correctly display csv files within excel 2013

divadIt seems Excel 2013 doesn't read CSV files correctly (Excel 2010 does). Every time I open csv files, all my data are displayed in the first column. How can I set Excel 2013, once and for all, to display CSV files (comma separated) prettily. I know I can go to DATA, Convert, and then choose com...

I spent 20 minutes trying to open a csv file on excel 2013???!?!?!
and it seems one just cannot.
now that everything and their mother writes csv files with "excel" format then their crappy excel can't even open them?
 
7:29 PM
199 :D
 
help
please
@AnttiHaapala
 
I have a question here:
In aiships you're always setting hitboard[1] or hitboard[7] no matter the spot_hit -- I have no idea why. In playerships you're still ignoring the spot_hit argument now so carefully constructed -- again, no idea why. — Alex Martelli 15 hours ago
tf
In aiships you're always setting hitboard[1] or hitboard[7] no matter the spot_hit -- I have no idea why. In playerships you're still ignoring the spot_hit argument now so carefully constructed -- again, no idea why. — Alex Martelli 15 hours ago
0
Q: B-ship game follow up 2: AI and User IDK how to do alternating turns

interwebzFrom this I have been making a b-ship game but I have run into a problem. It is 3x3, so it's a scaled down version of the actual game. We're using one ship for now. I currently have the user hitting the AI section done, but how can i make it switch to the Ai's turn after one hit? The AI, whe...

there we go
@AnttiHaapala
hello?
@AnttiHaapala
Can you help me?
 
your question has 2 close votes, 1 being too broad, the other being offtopic:
"Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example."
 
I don't see the close votes....
but can you help me solve the problem?
 
7:36 PM
you got 1 answer already, then you changed the question
sorry but I get headache when I read your description. It is nowhere clear to me.
 
have you played battleship before?
 
ok so
i am making a 3x3 version
and we're using one ship only
um
oh the AI got a hit on [4]
the AI has to guess if the other part is in 1,7, or 5
 
I think it is a bit premature for you to be designing AI when it is clear to me that there is no proper logic for even functional two-user-play yet.
 
the problem with that is that I currently am not sure how to make the AI choose the spot
Um for now we're not doing 2 players yet
it's only AI hitting the user
thats it
 
7:40 PM
maybe you should
 
I coded the part where the AI asks the user where his hit is for no reason basically
                                .
The user's ship has 4 possible locations
[4,1]
[4,5]
[4,7]
sorry 3 possible
and the AI KNOWS FOR SURE that part of the location is [4, something]
so
i need to make the AI
guess
Like what would it do next to sink the ship
?/ what do you think?
 
I'd choose the 4,5
 
Yeah so how do i put that into the ai
how can i program that
the user's ship's location si chosen randomly every time you run the program
??????
please help!
 
@AvinashRaj I saw you :D
was about to answer there
 
7:59 PM
Phew. Finally an accept
Accept after 3 days of only upvotes
 
@BhargavRao you sohuld help @interwebz :P
@BhargavRao you should teach the with clause
such a stupid tutorial because it does not teach with, probably for python 1.5.2
 
Lolz. The answer for his question is by Alex
He has asked the question on the main site. So no probs now
Woahtwo upvotes for two lines
 
and bad spacing, space after comma but not between kwarg=value
 
@AnttiHaapala You reached the zenith today?
Lol
used to press space bar after = sign
 
yeah
got to the zenith with better google fu than 1 asker
 
8:12 PM
4 upvotes. Seriously? — Ashwini Chaudhary 6 mins ago
 
14957, tomorrow will get 15k privileges
 
You are going to protect my question first
Nope, not the right dupe
 
@BhargavRao yeah, flatter, but there is lambda too
 
No .... :( :(
 
you got points already :D
 
8:14 PM
That has only one level of nesting
 
so how about we make a new question for 3 levels of nesting :D
 
Yeah. And get 4 upvotes on that question too
He better accept it asap
Else I'll jump into his comp and accept it
:( You have your way...
 
229 today
don't want any more
 
155 today, want more ... But won't get :(
 
tomorrow ppl can give me a headstart
 
8:21 PM
By negative votes?
Bye all. Rbrb
 
should unittest be in the file or in a separate file ?
 
Separate file.
 
but
is that pythonic ?
 
Yes.
 
why
 
8:35 PM
Because I said so.
:P
 
how can I launch all tests at once ?
 
I have never, ever, ever seen someone put their unittests in the same file.
It makes no sense whatsoever.
Say I'm a user, I want to use your package, awesome! I install it. I import it. What? What the hell? What are all these test classes? Why do I have to waste time importing them!?
 
it makes sense with if __name__=='__main__':
 
Put them in a separate file.
 
haha but everything under if __name__=='__main__': is not impôrted, did you know ?
 
8:38 PM
Yes, yes I did know.
Did you know that you can mark bits of code as code using backticks (`) rather than making the whole line code?
 
what does it mean ?
mark bits
 
It means I can write normal text, then do something like print(x), without the entire line being code.
Using `print(x)`
 
you write where ?
 
Never mind.
 
I try to understand ?
 
8:41 PM
It's not important.
 
so bad at linux am I
 
Anyway, back to the original question, you wanted to know whether putting them in the same file is Pythonic? Yes it is.
In ~7 years of using Python I have never seen someone put their unittests in the same file as the actual code.
 
8:58 PM
doctests are different though
there is a good reason why the unittests are not in the same file,
they usually are more code than the actual stuff, you pay the price in .pyc etc.
the code still has to be there, even if behind if __name__ == '__main__'
 
9:32 PM
if he have a lot of memories the price in pyc is not important right, because those instructions are not run ?
 
@WalleCyril honestly, do whatever you want. But people will be confused when they see your Python files, and you asked earlier "What is pythonic?". Well, this isn't imo.
 
I will include for now in the file . it is more easy for me, perhaps later I will run a script to automagically strip them out in a different file for production
I am doing a desktop programm not a library
so it can take 10% more space it s not a problem
 
@corvid what are you having problems with?
 
9:59 PM
how do I import a file that is in another directory ?
if I have to support Python 2 and 3 how can I import in the same way a python file that is in a upper directory
should I make a so question
 
10:28 PM
No. It's a well known issue if you Google it.
Solutions are well documented
 
that is why I do want to limit the number of files
and to do that
I pack stuff + its test into 1 file
because I have to support python 2 and 3 and do not want more than 30 files
 
10:48 PM
-
 
01:00 - 15:0015:00 - 23:00

« first day (1583 days earlier)      last day (3366 days later) »