« first day (2299 days earlier)      last day (2665 days later) » 

7:01 AM
meanwhile, Kaz the stateside sysadmin.
At least I know all of Serg's tricks.
 
@KazWolfe I stay away from politics so don't intervene in any parties , but as for the Great Firewall, I know plenty of people who bypass the wall, and don't have any consequences or anything like that. Frankly speaking, it's pretty arbitrary thing
@KazWolfe oh ? I have tricks ? wasn't aware of that
 
@KazWolfe so EFI not working on the other machines too, no matter how i try. but tired Ubuntu again, and it works just fine. Doesn't Arch use sylinux as the default boorloader? maybe that is the problem
 
@Serg until it does and you bypass the entire network for a large company.
@RonnieDroid Ubuntu's installer is syslinux too, iirc.
 
Lol, now why would i do that ?
 
accident.
like the poor fallen comrade in north korea who accidentally leaked the entire country's DNS.
 
7:03 AM
One does not simply disable the Great Firewall by accident
 
@KazWolfe Oh Oh, and since 2011 i thought it was Grub
 
"oh crap, i just deployed my staging bypass to prod... oh no oh no oh no"
@RonnieDroid i'm not sure actually, it might be syslinux for legacy, grub for EFI.
actually, that sounds right.
 
@Serg China is great, but you will have to pay a lot money not only for the government but for the Kurdish and Arab gangs there.
 
Eh, true, to some extent
 
7:05 AM
@Serg My uncle is a Merchent there, a lot of $hit happens there (But it happnes everywhere anyway)
@KazWolfe Hmmmm so can i change the boot-loader from syslinux to grub on my Arch installation media??
 
$h!7 happens anywhere
 
still, when i'm a stateside sysadmin... i better not see any more entries in my log.
 
@Serg Until some recent years here in Iraq, It was illegal to drink in Ramadan, but it was totally legal to kill your (daughter, sister, mother, wife) other dignity issues. so yeah, we have enough $hit of our own.
 
(you can curse in this chat)
 
@RonnieDroid By the way, is Arash still performing ?
 
7:10 AM
@Serg Arash? what is that.
 
He's a singer
Anyway . . . he's been sort of famous like 10-20 years ago.
 
Oh i think Arash is iranian. right?
 
Oh . . . maybe. I thought he was from Iraq . . . but then again, I'm not the most attentive to details . . . You're probably right
 
Yeah. our most famous singer is Kadim Al-Sahr
 
Handsome
 
7:16 AM
coffee.
coffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffee
 
@KazWolfe Turkish?
 
@RonnieDroid depends.
 
@KazWolfe be efficient , print("coffee"*10,end="")
>>> print("coffee"*10,end="")
coffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffeecoffee>>>
 
while (true):
    print("coffee")
 
@Serg Well as a new learner, i would appreciate if you explain to me what you did there.
 
7:19 AM
@RonnieDroid print the word "coffee" 10 times, ending with emptystring (so no newline).
 
@RonnieDroid So, in python3 they made print into a proper function, with a few extra arguments. By default, print inserts a trailing newline. With print("some text", end="") , there will be no trailing newline. Kinda line printf("%s", "Hello World"); in C
As for "coffee"*10 , it just makes the string repeat x number of times
 
to further clarify, python allows you to multiply a string by a number to repeat the string.
damnit serg
 
git gud, Kaz, git fast
 
gud, yes. fast, not yet.
i'm on a crappy laptop keyboard
 
aha, that is beautiful. but what is an empty string. to be honest. i still don't know what a string is. i started learning yesterday hahah
 
7:21 AM
emptystring is a string with nothing in it
 
String is text
 
so, literally "" (everything inside the quotes, aka nothing)
 
aha. cool
 
@KazWolfe not really, there's the null terminator character there \0
 
@Serg but that's only implicit.
 
7:22 AM
$ printf "\0" | wc -c
1
 
wait . . .
$ printf $'\0' | wc -c
0
Oh, that's interesting, so it doesn't take a byte !
 
Print ('i want coffee' *10, end='''')
is correct?
 
>>> print("This is a string")
This is a string
>>>
>>> print("This is a string", end=" with an end")
This is a string with an end>>>
 
good, thank you guys
 
7:24 AM
(note where the next prompt is)
 
I am going to make my fist app now, that will ask my girlfriend to make me coffee 100 times :-P
 
i'd say use a for loop.
 
You can use for loop, but why do that, if there's shorter statement, which is more efficient ?
and does the same
 
>>> print("This is a string\n"*10, end="")
This is a string
This is a string
This is a string
This is a string
This is a string
This is a string
This is a string
This is a string
This is a string
This is a string
>>>
 
So, wc -c excludes null characters . . . that's interesting
 
7:27 AM
yeah, that works...
 
Btw, unlike C, Python doesn't use a null character to mark the end of a string.
>>> ""[0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: string index out of range
>>> len("")
0
>>> "\0"[0]
'\x00'
>>> len("\0\0\0\0\0\0\0\0\0\0")
10
 
cc @Serg --^
 
and the \n means?? :-D
 
@RonnieDroid newline
>>> print("one\ntwo")
one
two
 
@RonnieDroid \n is a special representation of a newline character, or the thing that starts a new line.
see serg's example
 
7:29 AM
aha
i think i should be in this room more and annoy you a lot, you guys are informative
 
you can, we're usually nice.
 
:-)
 
@Serg is obviously the resident python expert, but i might be able to offer the occasional help.
 
@EliahKagan that's interesting . . . Isn't python implemented in C though ?
well . . .that's a non sequitor but still . . .
 
Cpython is implemented in C. from my yesterdays lesson
 
7:32 AM
┌─[23:31:51]─[kazwolfe@WOLFSTORM]
└──> kazwolfe $ file /usr/bin/python2.7
/usr/bin/python2.7: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=2cf5aa8226693db55bc32e020514ebe65498e276, stripped
 
>>> ord("")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: ord() expected a character, but string of length 0 found
Well, well . . . OK
 
3
Q: Do Python strings end in a terminating NULL?

ayushgpIs there a special character on the end of Python strings? Like it is \0 in C or C++. I want to count length of string in python without using the builtin len function.

so there isn't even an implicit null
>>> print("He\0llo\0 Wo\0rld!")
He llo  Wo rld!
there, no null terminators, else the string would die prematurely, no?
 
I am getting this :-D
 
and i'm off
 
File "<stdin>", line 1
print ("A kiss emoje\n*10, end="" )
^
 
7:35 AM
about to crash, and i still have some of the flu.
 
This stackoverflow.com/a/35906868/3701431 guy's answer is most interesting . Null string and empty string evaluate to same object
 
@Serg Yeah -- as RonnieDroid says, CPython (the implementation we're probably all using most) is implemented in C. But it doesn't represent strings in the traditional C way that the C standard library functions use (and that C's string literal syntax for char arrays implicitly inserts).
 
@RonnieDroid no space between print and (
>>> "\0" == ""
False
 
still the same
 
@RonnieDroid Are you using Python 2 or Python 3?
 
7:36 AM
3
 
@RonnieDroid also you need to terminate the string, your " are imbalanced.
 
TIL :)
 
@Serg also, of course emptystring is inside null
emptystring is inside everything!
>>> "" in "hello world"
True
so of course that answer makes sense.
 
aha i hadn't put the " after \n
 
$ printf $'Hello\0World'
Hello
That works in shell though :D
 
7:40 AM
still, python doesn't use null for termination
 
Oh,well. I should be doing something more productive
 
so yeah. to sleep!
and i'm going to be dreaming in python, thanks a lot.
 
@KazWolfe you're welcome, and yes - that's a good idea
I should start sleeping earlier too
 
dream in pygame so you can have some fun
 
I remember how I was working my butt off in electronics class. I spend so much time and effort on two stage BJT amplifier design, that I was doing calculations in sleep
No joke, I was literally was dreaming of writing calculations on engineering paper
 
7:43 AM
@Serg so true, i would dream everything i wrote of my novel that day if i was writing too much.
 
 
1 hour later…
8:46 AM
So, I hereby propose a new greeting to all *nix users: may the shell be with you ( wink wink, star wars reference ?)
5
 
9:21 AM
May all shells be with you Serg :D
 
^_^ /
 
@George: Can we talk about askubuntu.com/review/suggested-edits/665697, please? Do I misunderstand the intention of the edit or did you accept it mistakenly?
 
9:36 AM
[ SmokeDetector | MS ] Link at end of body, link following arrow in body, pattern-matching website in body: Watching the desired videos in Youtube by lynekyoung on askubuntu.com
 
@Serg broaden it to may the script be with you. i've thought about replacing my shell with an interactive python prompt
 
How about, "May the REPL be with you."
 
Nice one @EliahKagan . How you been? Haven't talked to you in a while
 
Not too bad. You?
 
Well enough that complaining about it wouldn't be a rational decision.
 
9:52 AM
:)
 
@RobotHumans You know about Ipython, right ?
it's sort of like shell, but with python
 
@Serg yes, i know about ipython
 
Cool thing
 
good morning
 
Good morning.
 
9:57 AM
how are you all doing?
 
Hi there, Ian
I'm kinda alright. Considering what to do about my schedule
I'm pretty much gonna be busy every day of the week.
Some people suggest i drop Friday work so that i have time to study and for emergency things, but I kinda want money at the same time
 
@Serg more classes this semester to keep track of?
 
Well, 3 classes. Actually, let me show you the schedule
Green is classes, yellow is work
 
@Serg I think you're good! some days will be a bit heavier (wed, fri and sat) but you'll have some relief on other days. It might be annoying to work on all weekends, but at least you have the nights free and don't need to get up so early on the sundays
 
Yeah, I've been thinking that same thing too. Plus if there's something I need to handle, like car repair or go do my taxes - I've monday afternoon until pretty much 4 pm
It's gonna be a lot of driving , too. It takes me like 1 hour to go to college. So 2 hours for commuting every day
 
10:05 AM
damn, how many km from your house to college?
 
Ugh , I don't even know
Google maps to the rescue !
 
@Serg well, it will be a busy semester, but I think you can handle it! I had some that looked like that or even a bit more filled
 
So , google tells me it's about 19.3 miles from home to campus, which is 31.1 km
 
too much traffic?
 
Yeah, after like 6 am traffic gets crazy, and starts to clear up around 9 am
Same story at night - traffic from like 4 pm till 7 - 8 pm
 
10:29 AM
is there a list of what the number means for I/O errors?
 
@Rinzwind is this what you want ? thegeekstuff.com/2010/10/linux-error-codes
 
10:49 AM
hmm
well the number was 5 :-P I thought that would indicate a type of IO error but it is actually io error :D
 
@Rinzwind were you looking at that Errno 13 question ?
@muru the 1337 hax00r is back : askubuntu.com/q/871807/295286
 
@Serg heh, maybe @EliahKagan can talk some sense into him
 
11:05 AM
@Serg talking about Star Wars, my folks are visiting me today, guess we are watching the new Star Wars movie :)
Rogue One
 
Oh, I still haven't seen that one, and I really want to, because Donnie Yen is there !
 
I guess I didn't have to mention the episode name since I already said it is the new Star Wars movie haha
if the movie session hours don't match, I'll probably suggest we watch Assassins Creed, though I've seem some comments not to get expectations high on it
I usually don't on movies about games
except for Silent Hill, SILENT HILL RULEZ
 
@Serg and that's deleted now. How long until his downvoted and deleted posts get him a question ban, I wonder
 
but "Silent Hill Revelations" sucked
 
@muru well, that's his problem. Hopefully my comment made him re-evaluate a few things
 
11:09 AM
Let's hope
 
I've VTC'd. I don't know I have anything else to comment. ...This time it's "my email addresses," and (in comments) "my own social profile links," perhaps to downplay how it seems (judging by the first question) about trying to automatically gather other people's personal info. As written, I don't know if the current posts violates the SE ToS, but either way, it's off-topic, too broad, and unclear, and I think the likelihood that it will ever turn into anything anyone would reopen is nil.
 
@IanC Silent Hill Revelations was alright. It's mostly for the fans, and if you've played the games it's quite enjoyable, but it slightly deviates from canon
 
@Serg I don't know, maybe I put the standards a bit high after the first movie
for me "Silent Hill 1" is the best video game movie I've ever watched (so far)
 
@EliahKagan well, I could have provided the link to specific SE ToS part, if necessary. At least, it's not entirely unsubstantial claim that i'm making
@IanC Any sequel has to overcome the bar that the first movie has set. It's always the case
 
Oh, I'm not objecting to your comment about that. Taken in context with his first post, I think you are right. I just think we have so many reasons to close and burninate these questions, we don't really have to reach for the big guns unless we feel like it. :)
 
11:16 AM
True enough. I just felt like it was necessary to point it out to the OP himself. You know how little kids sometimes go "But i wanna . . ." and they keep going till you bark at them ?
Oh, jeez . . . I am not old enough to talk like that . . .
Since I'm on the Star Wars theme lately, I probably should have pinged muru with message like " Episode Vii : return of the h4x00r"
Next we'll have Episode III : revenge of script kiddies
Episode II : Attack of the Spam Clones
 
man, I feel like reading "Roadside Picnic" again
small book, but it was a fun read
 
12:15 PM
5:15 am
 
You're not allowed to ask about deprecated versions of Ubuntu right?
@KazWolfe with that message, everyone is awesome
 
@MarkYisri is a problem is specific to deprecated version, then it's off-topic
 
Hello everybody ! :)
 
Hi, netbox
 
@cl-netbox Hello!
 
12:27 PM
@MarkYisri When it covers a general problem, then yes, you can ask, although it might be a good idea to change the ubuntu version in the question ... :)
 
hey @cl-netbox!
 
@Serg Hello my friend ! How are you ? :)
@MarkYisri Hi Mark ! :) Everything alrighty ? :)
@IanC Hey Ian ! :) Something new ? :)
 
@cl-netbox alright, school starts soon, freaking out about my new schedule
how about you ?
 
@Serg Fine - thanks ! :)
@Serg Did something change ? Did you quit engineering ?
 
@cl-netbox not much, got a negative answer from the broker (which I think didn't even forward my offer to the flat owner), so I didn't go further with it yet. Not going to pay for the flat and get a $0 bank account balance, I'll either wait a month or two to get a little bit of "safety" money to spare, or wait for her to change her mind on the offers :p
whichever comes first
it's a shame, because the flat seems like a good deal, but I can't risk my chances on getting broke on the first few months. The deal ends for the broker and the owner once I pay for the flat, but it only ends for me once I establish myself there
 
12:31 PM
@cl-netbox no, i haven't quit yet, taking 2 classes in engineering and 1 history, and going to continue working at university in computer labs
 
@IanC sounds a bit complicated ... though you are doing it right ... better wait until everything fits your needs ! :)
@Serg Hope that you don't get too annoyed with the engineering classes ... but everything has an end point ... and 2 classes pass fast - right ? :)
 
@cl-netbox only if I had a bit more money to spend, but asking my folks is out of the question, and taking a borrow from the bank seems like a bad move, just going to have a bit more patience
 
@Serg no other one about log files filling
11
Q: Very large log files, what should I do?

Masroor(This question deals with a similar issue, but it talks about a rotated log file.) Today I got a system message regarding very low /var space. As usual I executed the commands in the line of sudo apt-get clean which improved the scenario only slightly. Then I deleted the rotated log files whic...

 
@IanC this sounds very good to me ... as I once told you : I did exactly this - waited until I had sufficient financial resources ! :)
@Rinzwind Hi Rinzy ! :) Good afternoon ! :)
 
\o
binge watching westworld :=)
 
12:36 PM
have fun :p
great show
 
@Rinzwind logrotate has setting for rotation based on size, you might wanna include that
       "/var/log/httpd/access.log" /var/log/httpd/error.log {
           rotate 5
           mail www@my.org
           size 100k
           sharedscripts
           postrotate
               /usr/bin/killall -HUP httpd
           endscript
       }
 
naaa
 
that's example from man logrotate
 
read the topic @Serg that is a log for ONE DAY
he has logrotate working
 
@Rinzwind : Does this (your answer) really re-create empty log files ? -> askubuntu.com/questions/515146/… In case it does, I learned something new ... thanks ! :) upvoted ! :)
 
12:41 PM
@Rinzwind I looked briefly though it. He approached searching through logs in kind of poor fashion. His issue isn't logs though, but something is messing with his hard drive. Anyway, old topic and i probably should get sleep . . .
 
I know :=)
probably faulty cable or bad hard disk :D
 
I'm no hard drive expert, but i think when it comes to hard drives failing, it's probably time to board "nope" train to "screw this" town
 
yeah old but user commented on my answer D:
if he has been getting these logs for all that time ... I would have bought a new disk D:::
ah well :D
I tried
 
@Rinzwind Did you see my question -> chat.stackexchange.com/transcript/message/34771783#34771783 ? :)
 
@cl-netbox the > ? Yes it does.
it is the most short method to empty a file :D
 
12:46 PM
@Rinzwind Thank you very much ! :) Very useful information ! :)
 
:D
I do it all for the upvote >:)
 
@Rinzwind hahaha ... yes I know ! :D :D :D
 
@Serg where the hell did that 7stud guy come from!? Great suggestions!
Your perl one liners are not obscure enough! Here’s a version where there’s no code for the -e switch to execute because the other switches handle everything: perl -0x3a -l012 -pe '' <<<$PATH. Explanation: -0 sets the input record separator (specified in hex/octal notation, x3A is a colon), -l does two things: 1) it chomps the input record separator, 2) it sets the output record separator if one is specified (in octal notation, 012 is a newline). A -p loop prints out the value of $_ , which will be each line read in. — 7stud 8 hours ago
 
@terdon I have no idea, but he blew my ruby out of the water as well :D
I checked his profile, he has like 20k on SO
 
Yeah, I saw. And basically nowhere else. Shame!
I like the way he works :)
 
12:49 PM
I know, right ? He'd be great over at Programming Puzzles & Code Golf
@Rinzwind I found something peculiar, all writes are attempted to same inode. I left a comment, maybe if he finds out what file belongs to that inode, it might give a clue on what's going on
 
saw it :)
could also be a bad sector
a fschk might be worth it
 
Good afternoon @terdon ! :) I did a research why this mistake in the command occurred yesterday ... the space was included in a .txt file template I created years ago as an addition to the original one ... a copy and paste error ... thank you once again for your assistance and support ! :)
 
copy/paste errors are the worst. . .
 
dont tell me
so many hours lost losing a space when copy/pasting :P
 
Ironically, all errors on AU are copy/paste ( see what I did there ?)
 
12:58 PM
@terdon Yes ... hahaha ... one thing : please tell me if you always write all your commands from scratch ? There is such a big possibility to write a wrong character ... how do you avoid this ? :)
 

« first day (2299 days earlier)      last day (2665 days later) »