« first day (1988 days earlier)      last day (2980 days later) » 

2:00 PM
@muru dd can't be used to rescue/copy folders, right?
0
A: can the dd command be used to copy clone only certain folders?

Byte CommanderYou can use dd (or better ddrescue which tries to read data several times before it fails) only on files or similar file-like objects. On UNIX systems, a file-like object can be for example a partition (e.g. /dev/sda1), an entire disk (e.g. /dev/sda), a virtual character device (e.g. /dev/zero or...

@Fabby This guy needs to get convinced that his USB drive is not repairable: askubuntu.com/q/742028/367990
 
kos
@muru Still getting errors? Cause I still don't see you.
@ByteCommander In which language?
 
In Bash. (related to the answer @Serg posted above)
 
@ByteCommander hash map is kind of different . It can be implemented as array of linked lists
 
@Serg *e**e***
 
@blade19899 next letter: t
Bash kind of has associative arrays, but not really
 
kos
2:05 PM
@ByteCommander Hash maps can be multidimensional? If yes, they're different from both, as they can't be multidimensional.
 
@kos finally got it to work on Firefox
 
kos
@muru Yay! -52.
 
There , hash map aka hash table
Uses has function to store values. Location for each key-value pair is computed
For example, key 1 , 11 , 21 usign hash function key%10 would all hash to location 1
 
kos
What's the difference with a hash table? Are they the same thing?
 
2:11 PM
@kos yup, wording used interchangeably
 
kos
@Serg Looks good but I think they want to store multiple pairs:
Forget it.
> The exercise however is to build a array from a multiple name/value pair string.
 
@kos Well . . . I guess we'll have to address that . . . OP were sort of misleading there with his example though
 
@Serg Nothing!
 
kos
@Serg That's how I read it at least. However you should be able to fix that just with a loop.
 
[ SmokeDetector ] Link at end of body: Rancid on Ubuntu 15.10 by Normad on askubuntu.com
 
Is that a video of a TV?
 
@Zacharee1 no of a dude that saved a pengiun years ago and that pengiun now comes back to him for 1/2 a year to visit.
Probably for leeching sardines :P
 
@kos I've edited my answer , now parsing multiple items in array
 
:p
 
@SmokeDetector No spam in my opinion. Just a bad question. Probably to be closed as unclear or too broad?
 
2:52 PM
wtf
why dutch and 2 dutch dialects? :D
 
What dialects?
 
I only see my language :P
 
@jokerdino click the view all link
 
I know
 
@Zacharee1 I see dutch limburgian and frisian D:
 
2:54 PM
Aaand carp ! heemayls answer is pretty much the same
 
Why is that bad? It's also being translated to UK, Australian, and Canadian English :p
 
@Zacharee1 those 2 are not languages :P
now where would I need to go for translating kerberos?
launchpad? :D
 
sigh
Uh oh
 
>Languages in Germany
Lower Sorbian
German
Upper Sorbian
Limburgian
Low German
Romany
German (Germany)
Zazaki
Colognian
 
lol
 
2:56 PM
Not even ever heard most of those.
 
@ByteCommander oh man
 
Someone, 12 hours ago, downvoted 2 of my old questions
same time
 
not me
 
@ByteCommander I know Low German
 
@Zacharee1 I know all but Zazaki
 
2:56 PM
@Zacharee1 you've earned a hater by now ?
 
@Rinzwind :p
@Serg it seems
 
daym, making progress son
 
One who knows Serial DVing too
 
@Zacharee1 not me either :=D
 
I miss Swabian, Saxon and Bavarian.
Those would be fun!
 
2:57 PM
@ByteCommander ?
@Rinzwind I'm suspicious now... :p
Maybe it was Panda :O
Any reason for those downvotes?
 
Oli
@Zacharee1 Two downvotes is hardly serial :)
 
@Oli For my measly <3k it is :p
 
Oli
More of a mini-spree.
 
@Oli They were both at the same time, which makes me think it was deliberate
 
https://translations.launchpad.net/+languages/ru
Russian has 3 plural forms:

Form 0 for 1, 21, 31, 41, 51, 61...

Form 1 for 2, 3, 4, 22, 23, 24...

Form 2 for 0, 5, 6, 7, 8, 9...
 
2:59 PM
maybe those questions were bad?
 
what does that ^^ mean :D
 
@jokerdino Tell me what you think :p
@Rinzwind was wondering the same
They might be referring to something
 
@Zacharee1 on that one, have you tried using xinerama instead of more normal multihead configs? iirc, xinerama presents both monitors as one screen to X, and some things that don't work multihead suddenly start working.
 
Oli
@Zacharee1 If they carry on, they'll eventually trigger the serial voting mechanisms and then we'll have a chat with them.
 
3:00 PM
@Rinzwind russian is a messed up language, that's what it means
 
@hbdgaf I gave up on that a while back, but put that as a comment. I'll look it up some time
 
Oli
Until then we have no idea who is voting against you.
 
@Oli OK :)
@Serg Do you know anything about Polish?
@Rinzwind WNRGRUGNRJ VNIOGFW
My reaction ^
 
@Zacharee1 nope. I've only been to Czech republic when i was 9 or so , so i used to speak some Czech back then
 
Oli
@Zacharee1 Wax on, wipe off?
 
3:02 PM
@Oli ------------------_________________---------------------
 
kos
@Serg Hmmm. This is how I read it: they say they're parsing a GET string, so there might be multiple &-separated key/value pairs. For example foo=bar&baz=1&yes=maybe.
 
@Serg aw, OK. I want to learn Polish, after I refresh on German
Wondering if it's worth it
 
kos
All in a single string.
 
No idea. But where on earth do you speak Polish?
 
3:03 PM
@kos maybe we need to actually ask OP
 
@ByteCommander Poland I think
 
(except Poland, of course)
 
@ByteCommander the US, in polish communities
 
@ByteCommander It's Slavic and I'm of Polish descent, so I figured it'd be fun to learn
 
That is (in my humble opinion!!!) a rather small and unimportant language though, isn't it?
 
3:04 PM
I'm familiar with Romance and Germanic, so Slavic is the next thing
@ByteCommander I could curse people out without knowing it
 
Why not going for Spanish or Portuguese instead? You can communicate with far more people in far more locations using that.
 
@ByteCommander and fewer people know less-spoken languages, so higher job opportunities if I go that route
 
So, you have only one hard drive? It looks like you installed Ubuntu on it. And you CAN access it. – Pilot6 1 hour ago



Yes. But i can't access it. – Vaibhav Chawla 1 hour ago
 
@ByteCommander I'm already learning Spanish, and Portuguese is so similar, I don't want to bother. If I have to speak it, it won't be hard to pick up
 
one of those users with whom you cannot argue
 
3:06 PM
@Serg clientsfromhell.net
 
user136984
Firefox 45 has just gone into the Wily repositories! :D
 
@ParanoidPanda Thanks for the information ! :)
Hi @ByteCommander ! :)
 
@Zacharee1 good answer but i would include more info, like how does Ubuntu actually label the drives/partitions
 
@Serg OK. I tried to do it quickly since it seemed like it was going to be closed soon ;p
 
kos
@Serg Well judging from their original script, that's what they're doing: they're replacing & with newlines using sed (so that the while processes each &-separated field as a record) and then split on = to assign to the index $name the value $value.
 
3:11 PM
I just installed SNMP on CentOS7. Now what?
 
@blade19899 send spam messages to @ParanoidPanda with pandap0rn ? :p
 
@Serg added
 
kos
@cl-netbox By the way this is what I have currently (I picked -vga cirrus because I'm installing a very basic and libre distro, don't know if other harware would be supported): qemu-system-x86_64 -hda /media/user/DATA/vdisks/Parabola.img -cdrom /media/user/DATA/ISOs/parabola-mate-2016.01.11-dual.iso -boot d -m 768 -cpu host -vga cirrus -soundhw ac97 -localtime -enable-kvm. But it's still slower than VirtualBox despite the -cpu host. I'll try also with another -vga setting.
 
@Serg And starred
 
kos
(I mean to give you an idea: the mouse slightly stutters)
 
3:20 PM
@kos looks reasonable ... hmmm ... yes try another vga ... but generally it should be faster then vbox anyway :)
 
@Serg ... I will! Just not at work. Something tells me looking up panda pr0n at work, is not a good idea!~
 
@kos I don't know . . . we'd need to ask OP then . . .
 
@Zacharee1 Actually although Spanish and Portuguese are written nearly equally, they're spoken in an entirely different way. You won't understand a talking Portuguese only because you know Spanish.
 
Not even bark control can help my cough T_T
 
@ByteCommander Pronunciation is easy for me
 
3:21 PM
bark control!? O.o
 
@ByteCommander correct ! :)
 
I WILL NOT BE SILENCED!
 
@Zacharee1 It might be easy, but it's totally different for those two languages.
 
@JourneymanGeek Kick their asses!
 
@JourneymanGeek dont let Oli see that post :=)
 
kos
3:24 PM
@cl-netbox I would have expected it to be faster either. :(
 
Small question though, you said multiple name/value pair string. The example shows two pairs, but could this also be name=myName&age=myAge&married=true ? If that's the case, the you need something other than associative array. Likey a linked list would be better. And probably a different language - bash isn't the right tool for this — Serg 33 secs ago
@kos ^
 
@Serg I'd suggest a hot bowl of soup, with extra tabasco
 
@kos It is, look at this -> phoronix.com/… maybe some install configurations went wrong ?
 
@JourneymanGeek sounds nice. CAnnot make too much noise, because mom sleep right now. Once she wakes up, im gonna have some egg-drop soup with sriracha
 
we tend to do it with ramen
well instant noodles anyway
 
kos
3:27 PM
@Serg Cool. Again, it's what they're doing, so unless they got it totally wrong...
@cl-netbox Yeah, I know it's supposed to. No clue.
@cl-netbox Install configuration of the host?
 
@kos yes when qemu was installed ...
 
kos
@cl-netbox I meant guest. -.- Ok but what was I supposed to configure? I just did sudo apt-get install qemu qemu-kvm.
 
kos
@Rinzwind Out of delete votes.
 
downgoats !
 
3:31 PM
@Rinzwind since you are in the mood to beat me in rep ... please answer my chrome/chromium Q!
 
@kos not you ... the install command is correct ... the automatic install config I mean ... please check if everything is installed ...
 
@fossfreedom linky?
 
@kos cl@cl-UD-1:~$ dpkg --get-selections | grep "qemu"
ipxe-qemu install
qemu install
qemu-block-extra:amd64 install
qemu-kvm install
qemu-slof install
qemu-system install
qemu-system-arm install
qemu-system-common install
qemu-system-mips install
qemu-system-misc install
qemu-system-ppc install
qemu-system-sparc install
qemu-system-x86 install
qemu-user install
qemu-user-binfmt install
qemu-utils install
 
kos
@cl-netbox I have all of them. Guess they were installed as dependencies.
 
3:35 PM
@kos yes they were ... please try with -vga qxl ... otherwise I have no good idea ... it should be fast
 
@fossfreedom there is /etc/chromium-browser/customizations , not sure if that applies to chrome though
 
kos
@cl-netbox Ok I'll try to do that as well, thanks. I have to wait because I'm a noob and failed to install it the first time, so it's installing now.
 
@kos you a noob ? no way ! what failed to install ?
 
@Serg that's useful info - I'll add this to the Q
 
kos
@cl-netbox Either I'm a noob or there's a problem with the install script, it was supposed to install and configure MATE, but as soon as I rebooted and logged in I was greeted with bash: xinit: not found (i.e.: MATE installed but no Xorg nor Xinit).
 
3:42 PM
@kos but that does not have anything to do with virtualization - this has to do with the guest mate ... and again : you are not a noob
 
@fossfreedom ~.config/google-chrome/Default/ or ~.config/chromium/Default/ probably
 
thanks
 
I dont have ubuntu here atm. :D
 
@Rinzwind yeah, but that is per user $HOME directory. One could script a way to edit config in each users dir, but there should be something global
And why is your message starred ?
 
kos
@cl-netbox Ah yes, I meant that I can't test -vga qxl right now because the VM is running
 
3:44 PM
@kos okay :)
 
@Serg yes but a theme is a user config. There is no "apply to all" option when you install a theme :P so likely it is stored under the user.
@fossfreedom and use FF to search. When I google search chromium it refuses to show results other then chrome :X
 
use bing :P
 
no thanks
 
@fossfreedom I prefer DDG :)
 
0
Q: Macbook pro sd card reader doesn't work on Ubuntu 14.01

user160327I have a macbook pro retina, the newest model. I used rEFind to dual-boot Ubuntu 14.01, but the sd card reader doesn't recognize the card. Is there a fix for that? Thanks.

 
3:48 PM
quack
 
@UbuntuQuestionsonU&L that's cuz 14.01 does not exist
 
kos
Hey, Enlightened badge on Meta. \o/
 
@fossfreedom :D :D :D
 
user136984
I need to test something... @cl-netbox: You around? :)
 
@ParanoidPanda What do you wanna test ?
 
3:54 PM
hmm - similar theming Q for firefox just raised.
 
user136984
@cl-netbox: Could you just post a link and then in about 5 seconds after posting it, delete it. :)
 
user136984
I'm just testing something with my browser and the thing which shows me the link...
 
@ParanoidPanda ready ?
 
user136984
Yep
 
user136984
@cl-netbox: Ah, thanks! The bug is still present! :D
 
3:56 PM
@ParanoidPanda done ! :)
 
@cl-netbox duck duck goose?
 
@ByteCommander hahaha ... yes :)
 
No, really. That's actually a programming language!
:D
This is a simple "Hello World" in "duck duck goose":
duck duck duck duck duck duck duck duck goose

duck duck

duck

duck duck duck duck duck duck duck duck duck duck duck goose

duck

duck duck duck duck duck duck duck duck duck duck

duck duck duck duck duck duck duck duck duck duck duck goose

duck duck duck duck duck duck duck duck

duck

duck duck duck duck duck duck duck duck duck goose

duck

duck duck duck

duck duck duck duck duck duck duck duck duck duck duck goose

duck

duck duck duck duck duck duck duck

duck duck duck duck duck duck duck duck duck duck duck goose
 
@ByteCommander this is even worse than brainf*ck language
 
Yes. Probably you become mad from anatidaephobia after the 20th line of code you write. Approximately.
 
3:59 PM
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
 
kos
@ByteCommander +1 for readability
 
user136984
@Serg Now we all know what you are thinking about... :P
 
kos
@Serg This is actually more readable than the Duck Duck Goose version.
 
@ParanoidPanda oh, no, not even close. What I am really thinking about is this: "I hate my lab partners soooooo much"
 
user136984
:D
 
user136984
4:03 PM
By the way, I can only see images uploaded through i.stack.imgur.com.
 
@kos The advantage of "duck duck goose" is that you only have to memorize two keywords, no more.No operators, no comparators, no brackets, ... Easy to learn, right? ;D
 
@ParanoidPanda ... went to see kung-fu panda 3 last night ... looked very closely ... didnt see you - which one were you in the panda village?
5
 
Bye, I'm off.
 
The Imgur Android app finally works!
 
user136984
@fossfreedom: Oh, I was in the Bamboo Forest, eating as usual... :P
 
user136984
4:11 PM
@ByteCommander: Bye! :)
 
user136984
Is there anyone here with free time and knowledge of JavaScript? :)
 
user136984
Because I would like to ask a few questions about something from someone more experienced than me...
 
hi, what do you want to ask?
 
@ParanoidPanda @deltab asks you what you want to know ... :) or are you still eating in the bamboo forest ??? :D
 
user136984
@deltab: In the gnome-shell file sessionMode.js there seem to be many objects being created there:
 
user136984
4:16 PM
    'gdm': {
        hasNotifications: true,
        isGreeter: true,
        isPrimary: true,
        unlockDialog: imports.gdm.loginDialog.LoginDialog,
        components: ['polkitAgent'],
        panel: {
            left: [],
            center: ['dateMenu'],
            right: ['a11yGreeter', 'keyboard', 'aggregateMenu'],
        },
        panelStyle: 'login-screen'
    },

    'lock-screen': {
        isLocked: true,
        isGreeter: undefined,
        unlockDialog: undefined,
        components: ['polkitAgent', 'telepathyClient'],
 
user136984
So would this mean that this is how some sort of structure or framework is being created in order to created those screens or...?
 
user136984
Sorry, I'm trying to find a bug and it has lead me to that file so I am now trying to understand exactly what those objects in there do...
 
user136984
So I was wondering if someone with more experience than me of JS would have a better idea? :)
 
user136984
By the way, that's not the whole file, just part of it.
 
not really a js question: it's just a data structure
 
4:18 PM
Hi @Seth ! :)
 
hi
 
@ParanoidPanda: looks like it defines the possible session types
 
user136984
And then what happens with those objects?
 
the gdm login screen, the lock screen, and the unlock screen
the objects are used by some other code :-)
 
user136984
Right, how do you think I could find that other code?
 
4:21 PM
I'd start by looking in sessionMode.js
 
user136984
I mean, I've been running searches with those names, but it's not coming up with anything...
 
@fossfreedom he was the one hiding behind the kitchen hut because he was too paranoid to pop up in the film
 
LOL
 
user139252
I think my power went out at home again... Darn these spring rain storms...
 
user136984
@Seth: May I have a private word with you?
 
4:26 PM
Nope
 
I just made my Windows 10 look like Win 8 RP :p
 
user136984
Ah, I think he's gone...
 
@fossfreedom The big fat crazy one ! Maybe he was too fat, so that he covered the whole screen ... and that might be the reason why you didn't recognize him - right @ParanoidPanda ? :D
 
user136984
@cl-netbox: Yeah, maybe I was the planet! ;D
 
@ParanoidPanda most probably yes ... hahaha ! :D
 
user136984
4:40 PM
:D
 
user136984
@deltab: I found it by the way! :)
 
user139252
I'm going to have to run home on my lunch... The power shouldn't be out this long... My home internet isn't running
 
uh oh
 
user139252
If it is, then the IP has changed... I'll know that in 7 minutes when my cron job runs
 
user139252
5:01 PM
Nope, it's not up.
 
:/
 
5:25 PM
Yo! Hello all! =)
 
5:39 PM
@Terrance wassup !
 
@Serg Hey Serg!
 
How it going ? Servers up and running ? @Terrance
 
@Serg Good here. Yep, in the process of fixing more servers (comes with my job :) ). How are you doing?
 
@Terrance sick, coughing like a 40 year old sailor :) staying home these couple days. Also pissed off at my lab partners , because nobody saved modified source code for our microcontroller, and it's my turn to write lab report
 
@Serg Well, get well soon! And sorry about your code loss! That absolutely sucks!
Sometimes I post stuff on here so I can come back later and look at what I did so I don't have to remember. :P
 
5:49 PM
Thing is , I've introduced them to slack . . . at first they liked it, but then didnt even use it
 
When I worked at the game studio, we had fun always finding people that would forget or not want to use SVN for the code that they wrote.
Then they would get mad at us when they lost all the updates they did.
 
The first rule of working with computers is save your work, always
 
Oh yes!
Also, don't use WACOM tablets as mice. I cannot believe the amount of artists there that accidentally "spaz clicked" and moved a folder into another one, then couldn't find their work.
 
someone explain this to me: askubuntu.com/questions/743917/… >:-D
@Terrance that's not true ;-) they are used in browsers >:)
 
6:04 PM
@Rinzwind You are correct. Comment obliterated! =)
 
@Rinzwind so coming back to solaris . . . i remember asking you whether or not its worth learning, and you said it's not . . .why though ?
 
@Rinzwind It only impacts IE 10 anyway. web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-3120
 
user139252
Financial aid forms are a butt
 
user136984
On Ubuntu GNOME is there a command I can run in one TTY which will suspend the specified TTY in which x is running?
 
@Serg learning what specific? Is is basically -a- Unix.
 
user139252
6:18 PM
@paranoidpanda Look into skill
 
@Rinzwind Sorry, corrected one. It attacks IE 11 web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-0108
My bad
 
user139252
skill -STOP -t ttyX
 
user139252
or skill -STOP -t pts/X
 
user139252
To resume, just replace -STOP with -RESUME
 
user139252
@ParanoidPanda did that answer your question?
 
user136984
6:21 PM
@TheBrownOne: When I say 'suspend' I mean just the standard thing that locks the screen not to actually suspend processes etc...
 
user136984
I should probably clarify 'suspend' more because you're the second person I've confused with it lately... :P
 
user139252
Oh
 
@ParanoidPanda I propose you change your name to Confusing Panda
 
user139252
Not sure, then :P. I thought you mean x as a variable, meaning you have a program, x running in a TTY. And you wanted to know how to suspend that TTY :P
 
user136984
@TheBrownOne: No, I mean like Xorg.
 
user139252
6:23 PM
Not x, the x server, launched with startx :P
 
user136984
I should have clarified that better...
 
user139252
I think my modem/router need restarting... sites will be down until I get home from work today :/
 
@Rinzwind well, it's supposed to be one of the big players in the server world and stuff . . . .just currious . . . .
 
user139252
So, I'm going to start my Master's program next month...
 
1
Q: WindowManager: who is creating Documents/Video/Pictures/etc. in home directory

MarkI had Ubuntu-14.04 installed in a minimum configuration, i.e. with no X Windows support. Later I added x-server packages for my card, and a lightweight WindowManager (I don't want KDE or GNOME), so I normally launch X with startx, however someone keeps on creating Documents, Desktop, Download, Vi...

 
user139252
6:34 PM
12 months to get the degree... $25K D=
 
user139252
I have to get student loans :(
 
user136984
How do I connect to irc.gnome.org using XChat?
 
user136984
I have tried adding it as a server but it's not working... It just connects me to the GIMPNET one...
 
@TheBrownOne time to start eating bread and water only
or rice and water
 
@Serg solaris does not have gnu tools, has a specific filesystem (that is superior to any other) called ZFS. But solaris is seriously slow due to their backwards compatibility. Oh did you know Linus used Solaris when he made Linux and wanted it to look like Solaris?
for all other things: it is just a Unix version :D nothing to learn there :P
 
6:38 PM
Hmmm, OK :3 I am just constantly trying to think what else can I pick up to make my odds better when i start looking for a "real" job. Thanks though @Rinzwind
 
@Serg dont focus on systems. focus on tools. SQL is always good to know. Universal and used a lot.
also: get the hang for installing apache and nginx.
 
6:55 PM
Say hello to Firefox 45.0!
 
@ByteCommander having it for hours already ... :D
 
> - This server is also part of the GIMPNet network, also
* - known as irc.gnome.org. As such you should respect the
* - GNOME's Code of Conduct while participating in discussions
* - on any of the GNOME-related channels:
did you read it?
 
user136984
@Seth: No, but I just found that out...
 
Hi multitude.
Opening chat, I got a reminder to be nice to people here... Is this a general reminder, or is it especially for me?
 
it's a general thing.
 
user136984
7:08 PM
@JacobVlijm: It's just for you. :P
 
New feature, everyone gets to see it once.
@ParanoidPanda :P
 
user136984
@JacobVlijm: No, it's just you, and @Seth is trying to be nice by covering it up. :P
 
@Seth, @ParanoidPanda, I thought so :)
 
user136984
yesterday, by Fabby
@ParanoidPanda I think only foul mouths get it! ;-)
 
Ah, so at least, I am not totally the only one :) pfiuuu..
 
user136984
7:10 PM
:D
 
user139252
 
@TheBrownOne a bird, looking at his feet.
 
user136984
@Seth: Could I ask you another JS gnome-shell question (I've got much further with it by the way)? :)
 
doesn't mean I can answer ;)
 
@TheBrownOne One second after the photo was shot, it ended up crashing into a pine tree...
 
7:15 PM
> Apple co-founder Steve Wozniak also spoke out against the FBI on the Conan O’Brien show on Monday, saying: “I side with Apple on this one. [The FBI] picked the lamest case you ever could.”

Wozniak added: “Verizon turned over all the phone records and SMS messages. So they want to take this other phone that the two didn’t destroy, which was a work phone. It’s so lame and worthless to expect there’s something on it and to get Apple to expose it.”
BINGO
The FBI is seeking power through precedent. It's not about "terrorism". That's a cover.
So what's the question @ParanoidPanda?
 
user136984
_updatePowerOff: function() {
    let disabled = Main.sessionMode.isLocked ||
                   (Main.sessionMode.isGreeter &&
                    this._loginScreenSettings.get_boolean(DISABLE_RESTART_KEY));
    this._powerOffAction.visible = this._haveShutdown && !disabled;
    this._updateActionsVisibility();
},
 
user136984
@Seth: That is the function where the problem is, well, sort of, I believe it's got to do with one of those functions in there that do the disabled variable...
 
o..kay?
 
Doctor Who time!
 
Doctor Who is back?
 
7:19 PM
Today's episode is about when he finds the "Pandorica"
(Currently on TV on the German channel "EinsFestival" which is part of the ARD).
 
oh, so not season 10?
 
user136984
So the first one means that the Shutdown button is not showing on the locked screen, and then the other one is saying that it won't show it if we are on the login screen (which I'm pretty sure is what the "Greeter" means) and the DISABLE_RESTART_KEY (which a user can configure) option is enabled.
 
The episodes from 2010 I think... Not sure which season that is.
 
user139252
I love Doctor Who!
 
Hey, another fan? @Rinzwind will be excited. It's his favourite series as well.
 
user136984
7:22 PM
@Seth: But the problem is is that if I am on the login screen and nobody is logged in (the DISABLE_RESTART_KEY option also isn't enabled), and I suspend by closing my laptop lid, when I open the laptop lid again, there will be no shutdown button. But there should be...
 
I just started watching it about two weeks ago.
 
user136984
@Seth: This is the bug I am trying to fix, so it must be something in one of those functions being called...
 
user136984
So I was wondering if you could make a guess of which one? Because I've been looking but...
 
user136984
Wait, no that's really obvious, it must be the first, or there needs to be a new one which further clarifies it...
 
user136984
@Seth: What do you think? :)
 
7:25 PM
this._powerOffAction.visible = this._haveShutdown && !disabled;
That's the only bit that seems relevant from what you've shown me. The rest is only about the restart button, not the shutdown button.
 
user136984
@Seth: Yeah, but the disabled variable above decides part of this, no?
 
So what is _haveShutdown? A boolean?
 
user136984
I'll have a look...
 
user136984
It's always confused me why it says "DISABLE_RESTART_KEY"...
 
@ParanoidPanda ah true, disabled isn't a literal. Let me look again.
This is why code needs comments.
 
user136984
7:28 PM
That's what I've been thinking this whole time... Or at least some standard function documentation within GNOME...
 
user136984
They seem to know what it all is, but I don't know how newcomers are meant to know...
 
Code comments are relatively easy to add while you're writing it..
 
user136984
@Seth: By the way, unless you have done so already, it might be a good idea to download the whole gnome-shell source code...
 
haha nope.
I'm not going that far.
 
user136984
Ok, it's not actually that big, but ok. :D
 
user136984
7:30 PM
Just so that you would be able to look other stuff up without asking me.
 
It's your task, I'm just helping ;)
(or at least trying to)
 
user136984
I know...
 
user136984
And I obviously don't want you to do it for me just I thought it might be easier, but it's fine, anyway, _haveShutdown is equal to true. That is done in the _init function at the top.
 
wait, it's a constant?
 
user136984
I'll just check that, but also at the top (further up, not in that function) there is a line which reads: const DISABLE_RESTART_KEY = 'disable-restart-buttons';
 
user136984
7:34 PM
@Seth: If you mean _haveShutdown, it's not declared as a constant.
 
user136984
But I'm not sure if it changes...
 
user136984
@Seth: Oh, and there is another function which calls the one I showed you above:
 
user136984
    _updateHaveShutdown: function() {
        this._session.CanShutdownRemote(Lang.bind(this, function(result, error) {
            if (error)
                return;

            this._haveShutdown = result[0];
            this._updatePowerOff();
        }));
    },
 
well I have to go do other stuff now. Write a quick flowchart for the first snippet and then you should be able to easily see if it is causing the problem.
 
user136984
@Seth: Ok, thanks! :)
 
7:39 PM
@TheBrownOne <3 I saw all the episodes ever :D Blink is my favourite
 
user139252
I'm going to play Windwaker on my lunch.
 
goodbye :)
 
user136984
@cl-netbox: Bye! :)
 
@ParanoidPanda see you tomorrow :)
 
user136984
:)
 
7:55 PM
@ByteCommander grr :=)
 
he should have made backups if it was that important :+)
 
^ exactly. That's what I also tell everybody.
A typical case of "Do as I say, not as I do."
 

« first day (1988 days earlier)      last day (2980 days later) »