« first day (2123 days earlier)      last day (2845 days later) » 

7:00 AM
so either i not have the proper stuff installe (which can be) or something is wrong
this line oesnt give me the unresolved reference
 
@Zanna I am winning 3 to 1 >:-D
 
@Videonauth it should be there by default, you shouldn't need anything extra installed
 
thats weird
 
@Rinzwind well I upvoted you :P
 
lol
9 am and already on 90 rep :P
 
7:05 AM
>>> n = Notify.Notification.new("test", "hello world")
>>> n.show()

(process:26601): libnotify-WARNING **: you must call notify_init() before showing
**
libnotify:ERROR:notification.c:568:notify_notification_show: code should not be reached

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)
 
@Zanna and /var/log/syslog is probably your best bet
oh and you could also have the system show your shutdown messages on screen.
Remove "quiet splash" in /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
 
dont forget to do an sudo update-gub afterwards
 
@Videonauth yes you have to call Notify.init("SomeString")
 
ah allright
i just wonder in python console it only throws me an error about no specified version of gi
 
@Videonauth and that ^ @zanna
 
7:15 AM
i think i broke my notify-osd
it now shows only high level messages
no low ones
 
well i tried it in python console right now and it shows the notification using your code
mhmmmm
well have cut it down to the essential lines
you could add in a test if init was successfull and for the show as well
 
@Videonauth @Zanna can you guys change the notification function to this and try it out ?
def send_notification(title, text):
    Notify.init(sys.argv[0])
    n = Notify.Notification.new( "Notify"  )
    n.update(title,text)
    n.set_urgency(2)
    n.show()
    Notify.uninit()
 
if Notify.init(argv[1]):
 
Thanks for helping me out by the way
 
oh damn. They are going to do a remake on MacGuyver :P
 
7:23 AM
O_o
 
that is a good idea @Rinzwind but the messages go fast... I guess what I really want to know is how to usefully delimit from the log since I don't know what I'm looking for... I can get the end of the day like sed -n '/Jul\ 21/,/Jul\ 22/p' /var/log/syslog.1 but obvs if I knew what the FIRST message would be and the LAST message would be then I could analyse usefully
 
@Zanna you know you can hit the PAUSE button ?
 
@Serg did I screw up? I get:
Traceback (most recent call last):
File "battery", line 120, in <module>
main()
File "battery", line 106, in main
if battery_percentage <= int(sys.argv[1]):
IndexError: list index out of range
 
and I would use vim and go to the date using :/ inside vim
 
@Serg
def send_notification(title, text):
    try:
        if Notify.init(sys.argv[0]):
            n = Notify.Notification.new( "Notify"  )
            n.update(title,text)
            n.set_urgency(2)
            if not n.show():
                raise SyntaxError("this is screwed !")
    except SyntaxError as error:
        print(error)
    else:
        Notify.uninit()
 
7:25 AM
python bat_monitor.py 90
 
@Zanna looks like you need to pass in one command line argument after the script name
 
@Rinzwind haha no I didn't know I could pause it!
 
yeah well when you unpause it flieeeeeeeeeeeeees like crazy ;-)
 
haha thanks for educating as usual
it's so much prettier in vim
 
this is way more complex than i thought :/
 
7:31 AM
indeedy :)
and i missed a line in my example, an else line for the if Notify.init
but it werks
it shows the notification here on my notebook
when i have updated the notebook i reboot and give it a shot if it shuts down as well
 
it is supposed to suspend though
 
well it shows me only the notification but im not at 10% right now i test it at around 90% battery charge
now lets see if it shuts down it just send me the notification frst time
 
OK . . . I'll need to restart my Unity I suppose
brb
@ByteCommander hey, have you checked out the indicator yet ? you can run it with ---amps options for mA
 
no, not yet
I was very busy yesterday
 
def send_notification(title, text):
    try:
        if Notify.init(sys.argv[0]):
            n = Notify.Notification.new( "Notify"  )
            n.update(title,text)
            n.set_urgency(2)
            if not n.show():
                raise SyntaxError("sending notification failed!")
        else:
            raise SyntaxError("can't initialize notification!")
    except SyntaxError as error:
        print(error)
    else:
        Notify.uninit()
at which point the laptop is supposed to shut down
? i got the notification at 88% and now its at 83% and still running
 
7:42 AM
@NathanOsman Checked your 3d George on my notebook now. Its textures look fine here, but his rear side has got some ugly holes...
 
at least when i give an option it should shut down after about 10% less than my notification goal not first at 10%
 
@Videonauth It should suspend, and at 10%
10 % is hard-coded there
 
well it doesnt
im now at 78%
luckily for testing thislaptop is great with its broken battery :)
only lasts for about 1 hour :)
but i get errors
 
@Videonauth no, it should shutdown at 10% , not at 10% less that sys.argv[1] . So you getting notifications all that time is proper
 
every time it sends a notification
 
7:45 AM
yeah, i get warning every time too
 
warnings better to say
well lets see if it suspends then i let it run and give it something to chew at so battery is drained faster
 
@Videonauth just stop the script and run it with lower limit so you're not bombarded with notifications
Also . . .I think I should change it up
 
well i dont mind it is running on the side here
 
not 10 minutes, but every 5%
 
just wanna know if it suspends
you could take a second argument optional
lets say i wanna it to notify at 50% and shutdown at 30% so it would write bat_monitor 50 30
if not given you can default to 10
 
7:50 AM
yeah, i was doing that yesterday, but changed it to what OP wanted hard-coded
 
ah ok
 
aha just got nice notification from battery at 90% as requested
 
i guess the line with Notify.init in main() is now redundant
 
yes, remove it
 
and you use time only for sleep ?
then only import sleep
 
7:58 AM
ok
 
does the ubuntu pastebin not do syntax highlighting?
 
well 9 % and the machine is still running
@edwinksl it does if you paste by hand and choose so
 
ah ok
 
i used cat xx.py | pastebinit
5%
i guess its that sleep 600 what prevents the script from shutting down the machine
better go for time.time() and check from there
 
8:06 AM
it stopped sending notifications again
i can't even use notify-send in shell
 
this didnt happen on my side
 
my notifications just stop working whenever i use this script
 
after or while using the script ?
 
while
oh wait
nope
 
not on my side
 
8:09 AM
now it works . . . .
but notify-send in shell doesn't
low urgency notifications stop working , and i can only send high level ones
 
mhmm it works both on my side
but im on pretty old hardware
well i have an appointment in about 30 minutes but will look at this again when im back
 
@Videonauth thanks for all the debugging :)
 
np yvw
 
Given my answer is about security here, could you please review it and check whether you see any issues? askubuntu.com/a/801578/367990
I don't want to state anything wrong when it's about security.
 
@ByteCommander i dont see anything wrong
@Serg what i see is that it doesn show the battery percentage while charging anymore after your script has run
 
8:17 AM
@Videonauth Great, thanks.
 
but like i saidI will be picked up in a few minutes and will look into this when im back
 
@Videonauth what do you mean it doesn't show O_o ?
 
it only shows that it is charging
 
-1
A: How to download vlc in ubuntu?

Manoj Kumaru can download vlc by app store. its very easy..

 
but my settings where the way that it shows the time untill charging is done as well as the percentage
 
8:17 AM
really o.O?
Such answers make me sad.
 
What's "app store"?
 
meh, who closed it ?
well :) then no long answer to that :))
 
@Zanna that's "Ubuntu Software Center" in apple-language
 
@Zanna "Software Center" probably... Hey, he says "its very easy", so you're supposed to know that, right? ;)
 
@ByteCommander er I know this isn't the help you asked for (I agree with your answer but I'm sure you know a lot better than me) but you want the past participle at the end 'be overridden' not 'be overrode'
 
8:23 AM
hello
 
@Zanna why don't you directly edit the post ;D
 
I feel a bit intrusive editing... would you mind @ByteCommander ?
it's one of my jobs to correct grammar... so sometimes I forget that it's not always needed or wanted!
 
byte doesn't bite
 
:)
For emergencies, there would always be the "rollback" button, so feel free to do whatever you want.
@Zanna Oh, right. Those irregular forms are a pain...
close as unclear maybe? askubuntu.com/q/801551/367990
 
yessir
 
8:30 AM
English must seem an outrageously unruly language to speakers of, say, German or Arabic, and others that behave consistently
 
German is not all that consistent
 
Engfacepalm
 
We have some irregular verbs, and of course, gendered nouns
 
@StefanoPalazzo ... I can boogie
:+)
 
8:34 AM
And good morning to you (:
 
I need to vote on six more questions and i get a gold badge...
 
@StefanoPalazzo it is! at 9am I was on 90 rep already <3
also my last working day. holiday up next.
 
cool
going anywhere exciting?
 
@Rinzwind mine is the reverse D:
 
lol
 
8:37 AM
rofl
i guess it's
 
Thanks a lot ! I am reading a book it says " the LD_LIBRARY_PATH is considered to be a security risk because it might allow unauthorized programs access to system libraries accidentally or otherwise expose system library paths to unauthorized users." what the means? — Sinoosh 7 mins ago
I don't really understand what he's saying... ^ ?
 
finally
 
Where should we see a security risk here?
 
Sounds like a really boring book
 
@ByteCommander what book >:)
 
8:40 AM
As Stefano said, obviously a boring book...
 
sounds like a book that needs to be fried. pass me the oven of doom please.
 
@CodeX powerline?
 
@edwinksl yes
 
@ByteCommander I guess you could inject your own library into the path. But if you can do that, you can do anything.
 
love the look
 
8:41 AM
Those paths are usually the same on Linux systems anyway, aren't they?
 
@ByteCommander by the way ...
"For security reasons, LD_LIBRARY_PATH is ignored at runtime for executables that have their setuid or setgid bit set. This severely limits the usefulness of LD_LIBRARY_PATH."
 
And they should be owned by root and not world-writeable.
 
that link has real life examples ;-)
 
8:45 AM
But it does not list any security problems.
Only problems related to which library gets preferred if there are different versions of the same.
 
some people include breaking the system as a security issue ;-)
 
0
Q: Changing Linux Distro in Dual Boot (Win10, Manjaro(Arch))

FeriFirst of all I'm very new in the linux world so please be as tolerant as you could. I try to be as clear as I could in order to explain my question. My problem: I had 2 OS with dual boot in my laptop, win8 and manjaro. Everything was fine until win8 try to upgrade itself to win10. I have to tel...

 
nah...
 
@ByteCommander I think it's interesting that setuid disables LD_LIBRARY_PATH
 
;-)
@StefanoPalazzo Yeah, going to include that.
 
8:48 AM
i dunno anything about LD libraries but i do know that this power and notification script is driving me nuts
sigh . . . .and why does my notify osd stop working ?
 
ask jacob for help?
 
@ByteCommander Do you know why?
 
@Serg I offer "lack of coding skils?" as a possible answer to that >:)
 
BURN DA BOOK
 
8:51 AM
Good morning, again :)
 
@Serg ubu-nuts?
@StefanoPalazzo why what?
user image
2
Ah, I know that loop soooo well... :D
 
@ByteCommander Why setuid and setgid disable LD_LIBRARY_PATH
 
Yes, ubu-nuts, and ubu-n00b T_T
 
@ByteCommander Thats why i changed the order XD
 
I can't think of a way to use this for evil plans, plz can i have the codes
 
9:05 AM
@StefanoPalazzo See my updated answer. askubuntu.com/a/801578/367990
> There are also executables which have the setuid or setgid flag set, which means they will not run as the user/group of the one who runs them, but of the one who owns them. For example the sudo executable is owned by root and has the setuid flag set, which means it always runs as root when executed.
> For security reasons, the $LD_LIBRARY_PATH variable is ignored by executables with one of the setuid/setgid flags set to make sure that the regular user can not make an executable running with root privileges to load arbitrary libraries.
I don't think the setuid creates a full root environment but keeps using the user's environment, right?
 
@ByteCommander that makes a lot of sense
@ByteCommander yeah it inherits the environment where the executable is started, same as any other.
So the idea is to replace one of the libraries that sudo uses with one that, like, just opens a root shell and then run sudo. Kind of obvious now you tell me. :D
 
Anybody would want workspace indicator ?
 
back in da house
@serg did you figure out why the script is not shutting down the machine ?
 
@Videonauth no , I haven't gotten to that point yet
 
9:16 AM
i figured it out and working on a fix right now
the script is 10 minutes long stuck in one place
 
time.sleep(600) ?
 
yep
at least on my fast dying laptop battery this wont work
im thinking about taking the time t and then increment it by 600 and only print the warning again if it exceeds that time
but dont stop at this point
 
but I added it to keep sending notifications every 10 minutes
@Videonauth that's a good idea
 
yes but the script will stop there for 10 minutes
writing it right now
 
@Videonauth maybe I should abandon time at all
use modulo of percentage
 
9:19 AM
gimme a few minutes and you get this part working
 
ok
 
you can recheck if i made a syntactical error
 
I'm on 31 percent
I guess I'll wait till 10% ?
 
im pushing it now to my laptop and test it
 
I'm still gonna need to figure out why OP's dbus doesn't find proper battery
 
9:33 AM
can you link the question ?
 
Sure
5
A: No low battery popup notification in 16.04

SergAttempt reinstalling indicator-power with this command: sudo apt-get install --reinstall indicator-power If that doesn't solve the issue, consider using the battery monitoring script as provided by one of my previous answers : http://askubuntu.com/a/603322/295286 Below is python script that c...

@Videonauth your edit works well, notification sent exactly after 10 mins. Waiting for 10% so that it suspends
 
> Something like PROCESS=$(pgrep -f 'script' and if it finds something wait a moment and redo it.
@Rinzwind Missing a closing bracket?
 
yeah im at 35% right now and gave my latop something to chew at so it get quicker drained
 
@ByteCommander removed
I fell in the same trap as you .... systemd does it differently
 
I see :D
 
9:39 AM
those dupes you posted ... are init... not systemd
In come the upvotes @ByteCommander :D
 
Remove comment?
 
that's up to you :=)
I shall act accordingly though D:
 
Nah, I'll leave it.
OP did not specify 16.04.
 
Welp, at least that's the only good thing about systemd
 
@serg whats the output of his upoer ?
 
9:46 AM
And one of the linked questions even includes a (more complicated though) way for systemd.
 
@Videonauth he haven't said , i am waiting for him to show up in chat room
 
ah ok
well batery is at 19% here so i will soon know if it shuts down
 
damn
11:49 and am on 200 rep
 
16% here :)
 
I am sooooooooo missing out on rep today :X
 
9:50 AM
@Rinzwind you already have 40 + 15 (from accepted answer ) , just add a few more posts
 
naa the answers I have will fill it up already the next few hours
new answers from me are post-poned till tomorrow D:
 
rip ubunoobs
 
well it gives me the shutdown message
 
@Videonauth you keep saying shutdown, but the code is calling suspend method :D
 
yeah
whatever :p
it did what it was supposed to
now without the problem that the script is stuck
 
9:54 AM
@Videonauth thank you for making the edits :) you're awesome
 
and no error message from dbus as well
so only thing is to wait for the op to provide the outputs and you can fix it completely :)
well i guess my laptop can go into stationary mode again with the power cord plugged in :)
 
OP has been MIA for the last few hours . . . . I guess i can safely go sleep until afternoon
 
well then have a nice sleep :)
 
@Videonauth thank you again for the help :) i owe you one
 
ah not for that :)
 
10:05 AM
I'll still need to have argsparse added to my lock keys indicator. Probably tomorrow.
@terdon thank you
 
np
 
askubuntu.com/q/801621/295286 Not a question, more like rant
sigh . . . . so today I checked my tuition statement . . . .5k USD
i guess i will be taking loan soon
My mother basically said she can't pay anymore and I basically have only 200$ in my bank account
 
wow expensive
 
10:26 AM
@SmokeDetector Yeah, that one ^xD
> "Today - thanks to our amazing community beta testers - we're shipping our biggest expansion to Stack Overflow since it first launched: Documentation." - Stack Overflow Blog, Introducing Stack Overflow Documentation Beta
 
@Serg just got a breadboard from a friend as long with some led and corresponding resistors :) now i can begin my arduino journey
 
@Videonauth that's awesome ! I had arduino for long time but haven't done much with it. Arduino is less of a pain in the butt , than professional microcontrollers.
 
yeah well :) first time i dabble into electronics myself since 30 years
the arduino i got with a magazine about half year back
and now a friend sent me a breadboard
 
10:52 AM
[ SmokeDetector ] Bad keyword in body, bad keyword in title, link at end of body, link following arrow in body, pattern-matching website in body: Enhance the Collagen Level with Bellacelle Eye Cream by harpagwilliam on askubuntu.com
 
@Videonauth i should also work on Arduino more and Raspberry. After all, I am electrical engineering student. This is my profession after all
 
well my first goal is steering some stuff here a home :)
but im actually still drafting that all
 
Documentation is fantastic
I will copy and paste until my mouse is smoldering and my V key is but a spec of melted plastic.
Sorry I mean hone my skills as a software engineer
Typo. The keys are right next to each other.
 
11:33 AM
1
Q: Capturing only a section of terminal output (bash script)

Lucas JohnstonIf I were to type a certain command, it would give me a long output in the terminal. I only need a few characters of this output. How do I, in a bash script, save only certain characters from a terminal output as a variable? For example, if my script is: #!/bin/bash ifconfig I could save the...

can somebody post ip addr version ?
i think it goes like ip -0 -4 addr show wlan0
i need to leave for bed
 
12:10 PM
can somebody please edit this one ? askubuntu.com/q/801641/295286
i left comments explaining what she's asking
Google translate makes it look like mess
 
12:31 PM
@StefanoPalazzo can you delete close votes?
http://askubuntu.com/questions/801335/tgz-extract-error-like-data-format-violated
I removed the ubuntu version since the version does not matter at all here.
 
@Rinzwind I don't think I can. If it get's closed for some reason, we'll just re-open it
 
12:51 PM
@Rinzwind Argh, one of those. No, the only thing we can do is actually close it and then reopen it, AFAIK
Which I have now done.
 
clever :)
 
1:42 PM
0
Q: Linux-PAM can't use custom PAM module - possibly related to multiarch

CamWI've built a simple, custom, PAM module and the module works as expected with pamtester and with some other pam testing code I found online. I've also built a simple dotnet core application which uses pinvoke to authenticate against pam. As mentioned, the custom module works with pamtester and ...

 
sleep is a major freakin pain in the butt. especially when it doesn't come easily
 
@terdon tx
 
2:37 PM
@Serg Opened issue #1 for your power-flow-indicator on GitHub, you have a serious bug in there github.com/SergKolo/power-flow-indicator/issues/1
 
3:09 PM
 
3:32 PM
hi
im going to move from windows to linux
is there anybody
 
hi
 
which linux distribute are suggest
 
ubuntu
 
may be a little bias but Ubuntu
 
you know im new and also long time ago i had bad experience with ubuntu
which ubuntu version is stable
 
3:34 PM
well you came to an ubuntu site and an ubuntu chatroom. What else do you expect us to recommend?
 
16.04
 
@Sandro 14.04 and 16.04
 
you mean ubuntu-16.04.1-desktop-amd63.iso
@Seth
 
yes
 
Lol
 
3:38 PM
@Sandro amd64, I hope. Not 63.
 
what
63 !!!
lol
 
There's no such thing :)
 
yeah
63 cpu bit
 
63 will be cool
 
lol
how about geneymotion is it avaiable free for ubuntu
because i am going to develop android app
 
3:40 PM
I think yes
 
not 69 ?
 
@Sandro which distribution to use is a very personal choice. Different people prefer different ones. Apart from the obvious bias you'll get from most users in this room, we can't suggest anything unless you explain what you want from it.
 
im going to develop android app
only
with android studio and geneymotion
 
However, yes, if you're moving to Linux for the first time, I would recommend either Mint or Ubuntu. They're probably the easiest to start with. Mint is slightly easier than Ubuntu (they will install things like mp3 support and proprietary drivers by default).
 
support is important
 
3:43 PM
@Sandro Any distro will do for that, the question is how easy/advanced you want it. Do you want something that works out of the box or are you willing to spend some time getting it to work so you can get a system that's exactly how you want it?
@Sandro For support, Ubuntu and Mint have very good and active communities. Arch probably has the best documentation but that is most certainly not a beginner-friendly distro.
If you go for Ubuntu, you can get help here, on Ask Ubuntu and if you go for anything else, you can ask on Unix & Linux or Super User.
 
4:18 PM
Starting at $652,138.99
 
o_O
 
that's probably for a crapton of them
 
for that money i would expect a pure gold chassis :p
 
> Available with Windows 10 Home — for a smooth, versatile PC experience.
Yeah
 
@KazWolfe its for one piece, my guess is rather someone screwed up with the pricing tables in their database or screwed up the script
 
4:25 PM
Or missed a period
(as in .)
 
CommitStrip is awesome.
 
any suggestions to kill the boredom of lying in bed?
 
@ByteCommander Read What-If: what-if.xkcd.com/151
 
4:43 PM
@BharadwajRaju I own the book.
 
Is the book self-updating with new articles? /s
Or sleep
 
no, it's not. Jut mentioned that.
btw close as not Ubuntu askubuntu.com/q/801767/367990
 
5:17 PM
whats your idea about manjaro
as an android developer is it suggested to use it
 
5:30 PM
It's Arch Linux with KDE desktop and an installation wizard IIRC.
Did never try it though.
 
0
Q: How to fix that the Mono/.NET 4.5 C# ping constructor throws an type initializer exception on Ubuntu 16.04 using monodevelop 5.10?

Frank We would like to know how to fix the Mono/.NET 4.5 C# ping constructor throws an exception was thrown by the type initializer for System.Net.NetworkInformation.Ping error on Ubuntu 16.04. We using monodevelop 5.10 and mono version 4.4.0. This problem does not occur on Ubuntu command line. T...

 

« first day (2123 days earlier)      last day (2845 days later) »