« first day (2128 days earlier)      last day (2843 days later) » 

10:00 AM
Interesting that the Linux groups help like that. It'd be nice if these things in the UK were less centralised to London. That said, I've not searched for any local ones. That's tonight's project sorted then.
 
changing topic... one of the speakers mentioned systemd and she said love it or hate it at least now we have a reliable suspend function... and on the screen was the command to suspend using systemd sudo systemctl suspend - I have never been able to successfully suspend and resume and there are at least 100 posts on ubuntu forums about getting suspend to work on my device. But I tried that command and it worked perfectly!
I'm embarrassed I didn't know... need to learn about systemd
 
pm-suspend has been working alright for me way back since 13.10
 
doesn't work for me
 
@Zanna systemd is fantastic. I can finally write services that work properly without copying 500 line systemV init scripts from some other project hand have it break in ways I don't understand
services in systemd are the coolest thing to happen to linux for year (at least for me) <3
 
well @StefanoPalazzo I am a systemd convert as of last night ^_^
 
10:07 AM
Learn about it and become a devops hero :)
 
>> todo
 
I haven't played enough with systemd , and too used to the upstart style of things, but that's just me. i might change my mind eventually . Not yet though
I got 99 rep points, but a bounty ain't one :D
 
@terdon But the script language must still support it in the way that it is treated as comment or otherwise ignored by the script interpreter. Otherwise you would get syntax errors. — Byte Commander 7 mins ago
@ByteCommander that's an interesting point. I've been trying to think of an interpreted language that doesn't take # as a comment to test
 
I used to do huge deployments in puppet and with a custom paas stack, and this was just before systemd was ready to rock. Upstart was the bane of my existence.
 
I haven't really touched anything pre-systemd as my first Ubuntu release was 14.10 and back then I didn't dive that deep yet, but so far I had no problems with it.
 
10:11 AM
I'm pretty sure that the program loader strips this before the scripting language ever sees it though.
 
I am pretty sure it does not.
 
@ByteCommander Why?
 
Why should it?
It would have to create a temporary file that contains the stripped script.
 
@terdon wikipedia agrees with Byte
The shebang line is usually ignored by the interpreter because the "#" character is a comment marker in many scripting languages;
In computing, a shebang is the character sequence consisting of the characters number sign and exclamation mark (#!) at the beginning of a script. It is also called sha-bang, hashbang, pound-bang, or hash-pling. Under Unix-like operating systems, when a script with a shebang is run as a program, the program loader parses the rest of the script's initial line as an interpreter directive; the specified interpreter program is run instead, passing to it as an argument the path that was initially used when attempting to run the script. For example, if a script is named with the path path/to/script,...
 
Here's a lovely hack:

//usr/bin/clang "$0" && exec ./a.out
int main(){
return 0;
}
 
10:14 AM
What does that do?
 
@StefanoPalazzo can you explain
 
@Serg Yeah, but the scripting language doesn't do anything with the shgebang. it doesn't need to "support" it. It's the loader that parses it.
 
This has no shebang line by the way. If you run it as a shell script, the first line works properly because //usr/bin/clang is the same as /usr/bin/clang
 
$ cat test.py
#!/usr/bin/env python3
import sys
print(sys.argv)

$ ./test.py
['./test.py']
 
@terdon that is true
 
10:15 AM
So OK, it's not stripped, so perhaps you need a language that supports # comments to sue shebangs, but it isn't the scripting language that supports it.
 
This suggests that there is obviously no temporary file involved
 
55
Q: Shebang starting with `//`?

kawtyI'm confused about following script (hello.go). //usr/bin/env go run $0 $@ ; exit package main import "fmt" func main() { fmt.Printf("hello, world\n") } It can execute. (on MacOS X 10.9.5) $ chmod +x hello.go $ ./hello.go hello, world I haven't heard about shebang starting with //. And...

 
Yes there is no temporary file and it's not stripped.
 
@ByteCommander Yes, yes, agreed.
 
Yup, what I said.
 
10:16 AM
I was objecting to this sentence in BC's answer:
> Most scripting languages like Bash, Python, Perl, AWK, etc. support the use of a shebang like #!/bin/bash as first line which tells the system how the script may get interpreted.
 
Yup, that's wrong ^
 
That's wrong. It isn't the languages that support the shebang, all they do is allow # for comments.
 
The script interpreter must be able to ignore the shebang either because # starts a comment or because it ignores the first line or however.
 
@ByteCommander It must treat # as a comment, yes.
 
But ok, I think I can reword it a little :)
 
10:18 AM
yes, you may want to rephrase that
 
On most systems, there is /usr/bin/env, which will give you the first executable on the path. So you can write #!/usr/bin/env ruby, which is like "#!ruby" (but that doesn't work). It gets the first "ruby" on your path
/usr/bin/ruby wouldn't work on some systems (I have it installed at /usr/local/bin for example)
 
Are there even systems that don't have env? Some embedded devices perhaps, I guess.
I think there was a question on U&L about that.
 
env is part of the SUS I think
 
> There are two programs whose location you can rely on on almost every unix variant: /bin/sh and /usr/bin/env. Some obscure and mostly retired Unix variants had /bin/env without having /usr/bin/env, but you're unlikely to encounter them. Modern systems have /usr/bin/env precisely because of its widespread use in shebangs. /usr/bin/env is something you can count on.
21
A: Why is it better to use "#!/usr/bin/env NAME" instead of "#!/path/to/NAME" as my shebang?

GillesSpecifying the absolute path is more precise on a given system. The downside is that it's too precise. Suppose you realize that the system installation of Perl is too old for your scripts and you want to use your own instead: then you have to edit the scripts and change #!/usr/bin/perl to #!/home...

 
so if a system doesn't have it I would consider that a bug
 
10:20 AM
Yep, looks that way
 
> Scripts in most scripting languages like Bash, Python, Perl, AWK, etc. (basically everything that treats lines starting with # as comment) may contain a shebang like #!/bin/bash as first line. This special comment tells the system with which application to open the file.
Ok now?
 
Much better, thanks
 
Have an upvote!
 
10:22 AM
Um. No, I had already upvoted.
 
/o\
Still, outscoring @Rinzwind (only by 2 votes yet though) is always a pleasure. ;-)
 
now by one :p
 
off-topic (programming) and also unclear IMO askubuntu.com/q/803510/367990
 
got blue notification from Russian stack chat
 
you mean chat flag?
 
10:26 AM
yes
 
@Serg Yeah, was that offensive? Google translate found the word troll, anything else?
 
@terdon Nope , the guy was just saying something like "The gods were too benevolent to the troll" or something . Nothing offensive though
 
OK
 
Anyway, i'm at a point where i think it's good to pass out. \o Bye guys
 
@ByteCommander I think your answer to that question is the most useful one, though I upvoted all of them
 
10:29 AM
me too :)
 
sleep well :)
 
(upvoted all of them ;D)
 
user136984
11:06 AM
Does anyone know anything about getting a content management system set up?
 
user136984
For a website that is.
 
Yay, got 200 points already today from only two answers at 11AM UTC. \o/
 
nice work :)
 
user136984
Oh good! Just figured out my Java problem with that Properties class! Still got to get it working but at least I now know how to set and retrieve data from it! :)
 
& nice work to you too :)
 
user136984
11:13 AM
:)
 
user136984
And now I'm eating a bagel! Again! :D
 
user136984
VTC this EOL question.
 
11:28 AM
panda why are you always eating
 
user136984
@edwinksl: So that I can eat more tomorrow of course! Expanding my big Panda belly! ;D
 
More to the point, why do you always feel compelled to tell us that, and what, you are eating?
3
 
user136984
@terdon: My food is very social, but it can't talk.
 
user136984
Who'd want anti-social food?
 
And if it could talk, it would go around informing us that it's being eaten by a paranoid panda? I would have expected it to say something like "AAAAAAAAAAAaaaaaaaaaaaaaaaa"
 
user136984
11:35 AM
You're not going to be much help to it if you don't know who's eating it now are you?
 
user136984
It is also very polite food, it doesn't shout.
 
user136984
From what I can tell it sounds as though your food is not very intelligent and actually rather rude. But I assure you that mine is not.
 
user136984
@Arronical: An example of shouting food.
 
Quick... eat him
 
user136984
11:39 AM
It's shouting right out of his stomach, that's why you can hear it! Or maybe it's so rude it's already shouting on the plate!
 
user136984
:D
 
user136984
And now that I've weirded everyone out with food... I think I shall go and eat some more! ;D
 
Anyone got a good dupe for this question? Essentially he's asking how to add a new HDD. I can't seem to find one while searching. askubuntu.com/questions/803545/…
 
11:55 AM
@ParanoidPanda That's odd coming from a vegetarian. Eating intelligent and polite food seems barbaric to say the least.
 
user136984
@terdon: Who says broccoli isn't intelligent and polite?
 
@ParanoidPanda Nobody. What I'm saying is that if it is, eating it is barbaric, criminal and sadistic. Much more so than any animal.
 
user136984
@terdon: It is like the cow in The Restaurant at the End of the Universe, it wants to be eaten.
 
Yep. And that is absolutely barbaric.
And really not what I'd have expected from a good vegetarian.
 
user136984
12:10 PM
*Vegan
 
user136984
I guess even more so then...
 
hey @ParanoidPanda I didn't know you were vegan too High Five
 
@ParanoidPanda vegan? Is the cake a lie?
 
user136984
@terdon The broccoli disagrees with you.
 
user136984
@Zanna: :)
 
user136984
12:13 PM
@Zacharee1: In fact, I am baking a Vegan cake right now! :D
 
@Zacharee1 vegan cake is what made me finally go vegan - it's the best!
 
I've had it
I just don't really like cake in the first place :p
unless it has tons of frosting
 
my favourite is raw cake
 
user136984
@Zanna: This is my conversion cake, it's a Carob cake and really nice! You wouldn’t believe how many people I've converted with it! ;D
 
what, are you building an army? :p
 
12:17 PM
Carob is so underrated. I made a raw cheesecake for my family with millet amazake and melted carob and they were like 'you could sell this and become a milllionnaire'
 
user136984
I've had several people actually come up to me and tell me that I could make a lot of money selling the cake to cake shops! :D
 
user136984
It's a great cake, really good for you too. Or at least it really cleans out the body, it's a rather heavy cake.
 
0
Q: vmlinuz <-> uImage

ranshI would like to ask if I can make a regular kernel build with cross compiler (make uImage), and then move it into ubuntu machine (replacing vmlinuz in some way). This is can save me a lot of time, becuase building for ubuntu with fakeroot, and .bld , takes a lot of time (in my computer almost 2 ...

 
@ParanoidPanda fiber?
 
user136984
Yeah, I use 100% wholemeal flour in it.
 
user136984
12:23 PM
It only takes about a week for your body to get used to it, but the first time I ate it it hit me real hard! :D
 
what's that mean
 
1 cake please
 
no
 
user136984
Uhm... I don't know how to put it, but the cake has so much fibre in it that let's just say the next morning (at first) it feels as though chilli rockets are exploding out of you (or at least, that's how I felt, it was like a chilli had gone through my entire body, whole)... I shall say no more though, if you still can't get the picture. I'll give you some to try! ;D
 
no cake for u
 
12:26 PM
yes please
 
@ParanoidPanda o_O. Sounds fun
 
user136984
I don't want to put people off the cake, but let's just say that when you eat it for the first few times, your body doesn't know what hit it.
 
user136984
It only happened to me though for the first like 4 days of eating that cake...
 
is it take cake mixed with Vodka
 
user136984
No, just carob! ;)
 
user136984
12:28 PM
But Vodka might have an interesting effect on that cake... :D
 
tonic water has phosphors
that means it'll glow under a UV light
o_O
 
user136984
Hmm... Curious...
 
phosphorus
your glow
 
SEIZURE TIME
:p
 
user136984
I normally only tell people about the effects of my cake though after they have eating a lot of it (as people normally do go back for more)... :D
 
12:34 PM
that's quite evil
how British
 
@Zacharee1 Nope, tonic water is fluorescing under UV light because of the quinine.
 
user136984
Well, I don't think they'd eat the cake otherwise... And anyway, it doesn't have the same effect on all people so there's no point in worrying them about it, they'll find out and most of them whom I have never told have kept on coming back for more even after weeks of eating it...
 
@ByteCommander I don't see how that goes against what I said
 
quinine has nothing to do with phosphor and phosphor is not responsible for the fluorescence here.
 
user136984
I mean, the cake doesn't do anything bad to you, in fact quite the opposite, it's just that the first few times you eat it you won't be used to such a clear out of your system so it will hit you quite hard... But it tastes very nice and does a good job so really the positives greatly outweigh the possibility of a surprise the next day... :D
 
user136984
12:37 PM
So you guys think I should make a glowing cake then? :P
 
Why not? :D
But there are other substances which glow stronger than quinine, like uranine for example.
 
@ByteCommander I'm looking this up and it seems like quinine has phosphors
 
Yeah only a Panda can make the best cake .. I trust you on that
 
user136984
@ByteCommander: Yeah, I'm not sure how people will feel about eating a radioactive cake... :P
 
user136984
That cake is real addictive though! :D
 
user136984
12:40 PM
It tastes really nice and actually cleans out your body making you feel quite a lot better. I should really eat more of it... :D
 
user136984
I ran out of ingredients though and only just restocked.
 
Quinine doesn't contain phosphorus... it's just carbon, hydrogen, nitrogen & oxygen
 
G
e
t
t
h
a
t
a
w
f
u
l
l
t
h
i
n
g
o
f
f
m
y
s
c
r
e
e
n
 
0
Q: Which questions can I flag?

NuwanI want to clarify this. I flagged this question as I felt it is not about Ubuntu. Am I wrong?

 
@Zanna not phosphorus, phosphors
A phosphor, most generally, is a substance that exhibits the phenomenon of luminescence. Somewhat confusingly, this includes both phosphorescent materials, which show a slow decay in brightness (> 1 ms), and fluorescent materials, where the emission decay takes place over tens of nanoseconds. Phosphorescent materials are known for their use in radar screens and glow-in-the-dark materials, whereas fluorescent materials are common in cathode ray tube (CRT) and plasma video display screens, sensors, and white LEDs. Phosphors are often transition metal compounds or rare earth compounds of various types...
> A phosphor, most generally, is a substance that exhibits the phenomenon of luminescence. Somewhat confusingly, this includes both phosphorescent materials, which show a slow decay in brightness (> 1 ms), and fluorescent materials, where the emission decay takes place over tens of nanoseconds.
Phosphors are both
 
12:43 PM
There's also phosphorous though.
 
yeah
 
0
Q: How to convert MBR partition table to GPT?

R SI need to install Windows 10 alongside of Ubuntu, but partition table type is MBR, I tried to turn off UEFI mode, use legacy-mode but Windows still don't wont to be installed. (I heard of gdisk utility but didn't understood how to use it) And how to restore grub after this ?

Why MS?
WHY?
 
lol
 
@ParanoidPanda Uranine is not radioactive.
Oh, typo. It's Uranin without e --> en.wikipedia.org/wiki/Uranin
And got to go. Bye
 
ciao :)
 
12:48 PM
-1
Q: Amd overheating problem

Janne KunnariWhat can i doi have cleaned my laptop and changed thermalpaste nothin seems to work? overheating

 
@AndroidDev heating issues are not off topic here.
 
user136984
@ByteCommander: Oh, whoops! Miss read that!
 
Linux machines often have temperature control problems since the hardware vendors don't bother writing good drivers for them.
 
@terdon But it's a hardware problem.
 
Not necessarily, that's my point.
1
Q: How to troubleshoot overheating problems?

hg8I have a 4 years old computer. An Acer Aspire 5742G with Intel i5 and 6GB of RAM. Recently the laptop overheat very frequently. On Ubuntu it overheat to the point it shut itself down. Under Windows the computer overheat too but never to the point of shutting down. I have no idea where to begin ...

 
12:50 PM
@terdon He's also running Windows 7.
 
For example
@AndroidDev Oh yeah, the question is crap, no argument there. I was just explaining why I deleted this comment:
Furthermore, hardware problems are Ubuntu-independent, and are off-topic here. — Android Dev 2 mins ago
 
@terdon Would you mind explaining why you think it might not be a hardware problem?
 
We have a lot of questions about overheating since it does happen relatively often on laptops running Linux
 
@terdon if it's happening in Windows, it's probably hardware
 
@Zacharee1 Sure. But your comment suggests that overheating questions are off topic and they aren't
 
12:52 PM
my comment?
k
 
@Zacharee1 Uh, Android Dev's comment, sorry
We have a gazillion questions along the lines of "Waaaah, my laptop is overheating under Linux and was fine with Windows"
 
@terdon Right. However,
 
Those are almost always problems with the discrete graphics card being in continuous use, bad fan control software and things like that
 
@terdon Notice from his screenshot it's the GPU that's overheating.
 
AMD GPUs have a reputation for overheating after a few years' use I think
 
12:54 PM
@AndroidDev I've already closed the question. It's off topic, unclear, too broad. Take your pick. I just didn't want to leave a comment suggesting that questions about overheating systems are not welcome, that's all.
 
@AndroidDev for your answer here, I was thinking OP was getting the "unable to lock" error (13 or 11), not that apt-get was hanging
 
@terdon Yes, i'll drop it. But hardware probs are OT, right?
 
yes
we just have to make sure that it's actually hardware
 
That ^^
 
Oh I think I see the cause of that guy's overheating
 

« first day (2128 days earlier)      last day (2843 days later) »