« first day (2615 days earlier)      last day (2355 days later) » 

12:16 AM
"Remind me in 3 days" means "remind me in 18 hours" in Windows
 
what did you expect :P ?
 
 
1 hour later…
1:21 AM
guys I'm so done
I just spent 5 hours trying to figure out a FieldNotFoundException with Android and resource IDs
all the time thinking there was no way I had duplicate resources causing conflicts
and it turns out two layout files snuck in
 
2:00 AM
1
Q: Kernel panic: unable to mount root fs on an unknown block

sachin I had upgraded Ubuntu 16.04 to 17.04 .after a while I had restarted my laptop and when it was about to restart my battery was dead and I plugged in th charger and power on my laptop and it shows a command as above picture

 
 
4 hours later…
5:40 AM
Hi! I want to install woeusb.
 
@Pandya ppa:nilarimogard/webupd8
 
> $ sudo add-apt-repository ppa:nilarimogard/webupd8
The main Web Upd8 PPA maintained by: http://www.webupd8.org/

To add this PPA, simply paste this in a terminal:
sudo add-apt-repository ppa:nilarimogard/webupd8

Packages in this PPA: audacious, ap-hotspot, awn-applet-radio, awn-applet-wm, calise, cmus, dockbarx, dockbarx-themes-extra, dropbox-share, emerald, exaile, fbmessenger, gnome-subtitles, gnome-window-applets, grsync, grive, gthumb, launchpad-getkeys, mc, mdm (Mint Display Manager), minitunes, minitube, musique, notifyosdconfig, nautilus-columns, powertop, ppa-purge, rosa-media-pl
 
sudo apt update; sudo apt install woeusb
 
@Seth I suspect whether it is going to be added properly since...
> Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
woeusb : Depends: grub-pc-bin
E: Unable to correct problems, you have held broken packages.
let me check whether grub-pc-bin available on main and universe or I've to enable multiverse
 
What version of Ubuntu?
@Pandya No it's in main.
I have it installed too o_O
 
5:48 AM
@Seth xenial (Ubuntu GNOME 16.04 LTS)
 
huh, same.
Try installing it?
 
> $ apt-cache policy grub-pc-bin
grub-pc-bin:
Installed: (none)
Candidate: 2.02~beta2-36ubuntu3
Version table:
2.02~beta2-36ubuntu3 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
 
oh, you don't have xential-updates enabled
is that intentional?
 
> $ sudo apt-get install grub-pc-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
grub-pc-bin : Depends: grub-common (= 2.02~beta2-36ubuntu3)
@Seth yes
@Seth yes
 
@Pandya install aptitude and run aptitude why-not grub-pc-bin.
Odd situation though.
 
5:51 AM
> grub-common:
Installed: 2.02~beta2-36ubuntu3.7
Candidate: 2.02~beta2-36ubuntu3.7
Version table:
*** 2.02~beta2-36ubuntu3.7 100
100 /var/lib/dpkg/status
2.02~beta2-36ubuntu3 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
 
Looks like you have a newer version than it wants
 
let me enable xenial-updates in hope it may work...
Yeah, worked, installing now....
 
awesome!
 
> woeusb -V
@@WOEUSB_VERSION@@
:)
Btw, it is sometimes difficult to avoid updates :P
lol
@Seth Thanks!
bye!
 
np
 
6:16 AM
Next Unit of Computing (NUC) is a small-form-factor personal computer designed by Intel. Its first generation is based on the Sandy Bridge Celeron CPU. Its second-generation central processing unit (CPU) is based on the Ivy Bridge Core i3 and Core i5 processors. Its third generation is based on the Haswell architecture. Its motherboard measures 4 × 4 inches (10.16 × 10.16 cm). The barebone kits consist of the board, in a plastic case with a fan, an external power supply and VESA mounting plate. Intel does offer for sale just the NUC motherboards, which have a built-in CPU, although (as of 2013...
 
6:35 AM
lol
someone trying to be smart and failing.
NUCs are pretty cool
 
 
1 hour later…
7:42 AM
good morning
 
8:16 AM
@TheWanderer I found a perfect distro for you : wattOS
 
ah @SergiyKolodyazhnyy i have a question here in unanswered where i am sure you know the solution to
 
@Videonauth Heh, that's the Moby Dick or The Great Unicorn of indicator questions.I've known about it for a while already, tried to find solution, too, but no luck.
This is one of those things that are possible, but no-one knows how to do it
 
yes me too, but well i by far know less than you in terms of python
 
Thing is, it's not even Python problem. If I remember correctly it's the way indicators work that make it difficult to answer.
I have been trying and trying, and then given up on that one. Maybe I'll try to pick it up once again some time, but not any time soon. Thing is - being able to make a system indicator ( as opposed to usual app indicator ) allows one to make use of buttons and images, sliders.
That's why it's such a highly voted question. App Indicators are limited. Even in my udisks indicator I had to make use of text for simulating bar graph of disk usage
 
8:37 AM
Ah ok
well im going through the unanswered without answers right now and i came across it.
 
On another note, I have been considering switching distros for some time. Move into the great unknown, learn something new. It's a bit hard to find something suitable, though.
Although I might stay with Ubuntu if Unity Remix becomes a thing. Or just switch over to Budgie.
 
@SergiyKolodyazhnyy if youre in for the great inknown go for gentoo
:)
 
Why bother about mentioning sources? toontricks.com/2017/06/…
 
@Videonauth heh, that's on the list already ^_0 Or Arch. I once installed that in VM, was quite involved process.
 
@SergiyKolodyazhnyy arch is easy :) even i have an arch VM which runs even more performant than my 17.10 host lol
 
8:45 AM
@JacobVlijm I think you found one of the AskUbuntu scraper sites. There's plenty of those around. They completely copy questions/answers. You could report them to stackoverflow. Did that once, but considering the amount of those sites, it's not worth the time
 
@SergiyKolodyazhnyy Yeah, you know it happens, but seeing them is always odd.
 
True, always odd.
In other good news, ( technically ) yesterday I figured out that my Raspberry Pi with Ubuntu Mate on it can actually play youtube videos without lagging. Although that had to be done via ethernet connection. It lags badly via WiFi
 
Please help me with this one: Is
public String toString() {
return "{ " + "port=" + port + ",id=" + id "}";
}
really valid or should it rather be
public String toString() {
return "{ " + "port=" + port + ",id=" + id + "}";
}
 
Ah, You have Raspberry pi! Thinking of buying one of those to play around. Which version do you have?
@dessert I never wear strings in public
 
@JacobVlijm Pi 2. Go for Pi 3, it has more RAM.
 
8:53 AM
@SergiyKolodyazhnyy Cool!!
 
@dessert Let's avoid the problem altogether: use join method: javatpoint.com/java-string-join
 
@JacobVlijm I'm extending my answer on the question you fought for yesterday: askubuntu.com/questions/980212/… ;)
Just wondering whether I should do it the way OP asks or how I suppose it's valid code…
 
I' d say the latter. Never did any Java...
well, I did, 15 minutes haha
 
I have love-hate relationship with Java. It started out well because it's C-like language and I did C for my engineering courses, then I hated it because Data Structures class with Java was a torture ( mostly because of professor ).
 
9:19 AM
@SergiyKolodyazhnyy yes the wifi on the PIs is somehow not very performant, didnt find a solution to this yet
even on my PI 3+
 
Well, the fact that raspberry is pretty much only USB wifi dongles also doesn't help. I'd say if there was GPIO hat for WiFi modules, that'd be great
 
@SergiyKolodyazhnyy the pi 3 has build in wifi but still suffers badly in performance
 
oh, really ???
Now that's an improvement !
 
yep 1 GB ram, wifi/bluetooth
    Quad Core 1.2GHz Broadcom BCM2837 64bit CPU
    1GB RAM
    BCM43438 wireless LAN and Bluetooth Low Energy (BLE) on board
    40-pin extended GPIO
    4 USB 2 ports
    4 Pole stereo output and composite video port
    Full size HDMI
    CSI camera port for connecting a Raspberry Pi camera
    DSI display port for connecting a Raspberry Pi touchscreen display
    Micro SD port for loading your operating system and storing data
    Upgraded switched Micro USB power source up to 2.5A
 
Isn't an old thinkpad essentially the same as a pi? i have a bunch of them lying around…
also usb 2.0 ;P
shipped including attached screen!
 
9:27 AM
@dessert yes but you pay in best cases about 30 euros for a PI and about 50 euros with case and power suppliy
 
@dessert Essentially, yes, if you want to use that as a desktop PC. Very low grade desktop PC. But Raspberry pi has GPIO pins, which makes it very cool thing for developing stuff like control systems for robots, drones, communication device with small microcontrollers, etc.
Nathan Osman, for example, made a christmas lights controller by raspberry pi
 
and its easier to program as an arduino
getting an arduino to play nice can be a pain sometimes
 
What I did for my microcontrollers class final project is a very simple communication device between PIC18 microcontroller board and Raspberry via UART serial bus. Silly thing, just one way communication ( because I couldn't get two way communication done due to time constrains )
There's lots of things that can be done with Raspberry, so long as you know a bit of Python, a bit of electronics, and have a few parts available
 
@Videonauth ebay.com/sch/… ;)
 
$9.99
1 bid
+$62.65 shipping
LOL
$24.04
0 bids
+$283.95 shipping
OMG LOL
 
9:36 AM
I wish someone made a web browser with vi controls
my backspace key is broken and I can't get used to shift+del shortcut that I assigned
 
how about getting a new keyboard?
 
I could, but there's two problems.1. I'm saving money. 2. I don't think I've seen a new replacement keyboard anywhere. Although I might have been looking in wrong places.
I can get around with wireless keyboard, but it makes no sense to have wireless keyboard in bed . . . with laptop 30 cm away
 
ah ok, im burning through one keyboard per year, and since i mostly buy the same keyboard again and again i have plenty spare parts meanwhile
but then again not a laptop
 
seriously, though. A web browser with vi keybindings. That'd be awesome. vi-fox. If only I knew anything about web browsers, that'd be already on github , full steam committing ahead
 
hehehe you might maybe convert lynx ot links2 for that
but they are only CLI solutions
 
9:47 AM
Actually, I've been using elinks quite often when I just started with Ubuntu
Also very nice command-line browser
 
yeah and wuite usefull, most pages even ar not that bad to lok at in cli browsers
and it saves you from all those flash/picture ad's
 
10:04 AM
@SergiyKolodyazhnyy btw if your interested in arch, here are the steps it took me to install arch with gnome desktop on a legacy boot system, but EFI installation should not be very much diferent --> gist.github.com/Videonauth/5a31eb0a13f7e864312617d2d2351ebd
 
once you figured out the steps for yourself it takes you less and less time to install it :) my first install took me about 3 days because i had not so much time in one go to spend, then afte r that i got the time down to about 45 minutes and now being at about 20-30 minutes for a fresh install
 
Eh, might as well consider messing around with it when I wake up. It's sunday already and I've given up on being productive
 
sunday is half way done here :) 11:09 am
measn when i calculate it right youre night should be over soon too 4 am or so
:)
 
3:16 am here
Close
btw, did you know that original bourne shell was pretty much written in obfuscated C code, which looked like ALGOL ?
 
10:27 AM
no :) did not know that
ah i have a link for you if youre interested, this was a very good talk i saw lately
very interesting, even so much that i downloaded it from youtube to be sure i have it in my collection
a lot of of history of *nix from someone who experienced it first hand
 
Will put that on my watchlist
 
it even explains why it is mv and not move and so on :P
 
It'd be fun to mess around with some of the original Unixes
 
there is one mainframe still in working condition in holland
maybe the only one worldwide which is in running condition
 
Holly transistors, really?
that's impressive
 
10:35 AM
yeah its hosted by a small museum
the guy in the video talks about that too
 
0
Q: Ubuntu 17.10: External monitor screen is randomly reset to low screen resolution

protokenI've hooked my Ubuntu 17.10 EliteBook laptop up with an external (MultiSync EA221WM) 22 inch monitor using VGA. Most of the time it works just fine, my monitor is correctly detected and the screen resolution is correct. But seemingly randomly it stops working. Both the Wayland server and X.org ...

 
Definitely gonna watch that.
 
btw, question, can you omit importing sys in a python program when you for example use sys.exit()?
 
apparently yes
python -c 'exit()
 
came across two answers done in python askubuntu.com/a/366440/522934 and askubuntu.com/a/2414/522934 which made me wonder about that
 
10:42 AM
$ python -c 'exit(1)'

[7666][DEV:/dev/sda1][WD:xieerqi][03:42]:
$ echo $?
1
 
ok cool good to know
 
10:53 AM
alright, i'm gonna go get some sleep
See everybody some time later
 
@SergiyKolodyazhnyy sleep tight!
 
take care and sleep well
this one qualifies for the gems i guess --> askubuntu.com/q/980374/522934
ohhh a 777 occurred in the wild:
 
 
3 hours later…
2:11 PM
good afternoon!
@Videonauth there should be a badge for that haha
 
hehehe
well im one privilege richer on Ask Ubuntu
only 5000 more reputation to go
@SergiyKolodyazhnyy yep tested that but try to use python -c 'sys.exit(1)' this is what those scripts do, and this line fails for me if I'm not importing sys before
 
anyone here familiar with the grsecurity patches?
 
not really
o/ charles
 
well one of the security patches, is that the kernel kill a program that tries to jump execution to code in the wrong part of memory. This breaks many programs that do this normally, such as Java and other JIT compile languages.
 
Morning @Videonauth
 
2:20 PM
it also affects web browsers and WINE
Now binaries can be flagged to be allowed to do this memory jump with PAX .... So my question is ....
if I flag these programs to be allowed to do the memory jump. is it still work having the grsec kernels and spend all the time flagging binaries?
**worth having
 
no clue, i never used a hardened kernel myself so never encountered this problem
 
yes, I'm thinking it is a bit of overkill for a home computer
 
 
1 hour later…
3:49 PM
as predicted, The Star is not going down well with either highly religious reviewers or highly secular reviewers
 
@TheWanderer ?
 
which star?
 
movie about the birth of Jesus
the 2017 one
 
ah, I haven't seen it
 
neither have I
but I read the reviews on IMDb and people aren't happy about the plot
 
3:58 PM
@TheWanderer mhmmm, i have seen many movies where i was happy with and enjoyed them, still they god bad reviews all around
 
4:20 PM
@Videonauth -- agreed, there was one critic that if he gave a thumbs down to a movie, I had to go see it because it was usually excellent.
 
@ravery In situations like that, I really appreciate the "people that liked this also liked that" filters
@ravery I love that the functionality is available as a kernel built-in. I talked about an approach similar to that at DC once, but mine just removed the X permission from all RWX pages that looked like a dll.
 
@RobotHumans -- are you speaking of the grsecurity patches? In this case it kills running programs that do things that look like virus activities. I installed the kernel for a quick test. firefox, WINE (who nows about the actual windows programs) and a virtual web cam get shut down as soon as they start. Chrome starts but I suspect flash will get shut down. as well all java programs. I've read some documentation that say it breaks everything.
 
@ravery Yes. It does break things you shouldn't be doing anyway, but even IE on windows has the ability to turn off all plugins. Firefox just dies b/c of something with one of the libraries it uses. Chrome would keep working without bombing out as long as you didn't use flash or java.
 
Mostly what I am wondering is say I flag firefox and extensions as allowed, and a hack comes from a web page, would it still be caught or allowed because it comes from firefox
 
It would be allowed afaik, because you whitelisted that instead of saying "fix how it works"
 
4:39 PM
@RobotHumans -- it also breaks things that should be, such as WINE, java, and any JIT language, which I assume means python, ruby and any other runtime compiled language.
 
I'm not sure it would break python or ruby if it weren't embedded in a browser. Being a JIT language doesn't mean you need to be RWX and X in that page. It means you need your static interpreter to read intermediate language.
That said, I didn't read the implementation.
 
I made a quick browse here micahflee.com/2016/01/debian-grsecurity. the first part ia about patching the kernel. the second half is about PAX flagging. Apparently, it breaks python also
 
Looks like. I would be much less concerned about disabling it on something I have to launch manually than something browses the internet and supports a ton of weird third party formats willy nilly though (see web browsers)
Still a concern honestly, but much much smaller.
 
guys, is google chrome and chromium-browser known to have issues with CSS transitions?
 
4:55 PM
It's better than the alternative in a general sense. Check all the web testing frameworks bugtrackers. Every time you hear "This isn't working" you also hear "Have you tried it in chrome?"
 
@RobotHumans It's weird, because I added all the proprietary css properties for the transition, and using "Inspect Element" on chromium-browser I can see he recognizes the property (all proprietary have a dash on them, except for the regular "transition: ..." which seems to be recognized)
but it doesn't play the transition
 
what framework are you using? if it uses a shadow dom at all, it can throw a serious monkey-wrench in to testing. like, if you asked me to write nightwatchjs tests for something that uses a shadow dom, i'l just tell you to forget it.
 
I'm only using HTML/CSS (SASS pre-processor), JS and jQuery
 
Not sure then. I walked in to a trainwreck and got it mostly fixed, but I'm still fighting some things.
 
@RobotHumans server-side scripts issues?
 
5:10 PM
A backend dev that likes to hotpush API changes for no reason, non-dom-evident changes, poor API documentation, counterintuitive and broken API behavior (returns 200s on fails where it should return 500s), etc etc etc. So, they locked me to a toolset then gave me a problem unsolveable with that toolset.
Oh, and CORS issues that nobody else wanted to fix.
 
damn, sounds like some trouble
 
And a botched .htaccess file that the devops manager swore wasn't a configuration issue. It keeps going...
I'll take a minute, because thinking back to all the trainwrecks spun me up a little.
 
alright, my CSS transition issue sounds minor now lol
 
Yeah. And I'm the most "junior" on the team so squealing about how bad things are generally doesn't turn out well.
 
5:27 PM
unfortunately hierarchy in a company is not based in competence as frequently as it should be
7
 
^^ that's gold right there.
 
5:40 PM
No. The GPS is getting lock.
Not for me.
No, it works here.
*crickets*
Maybe it is getting the GPS from the phone app. Here's a hardware rework to break that off of a muxed pin to make it easier.
*Does hardware rework, still doesn't work*
Maybe your image is corrupted.
We don't have a base image to flash?
That's going in to the next sprint.
 
6:05 PM
Please help me testing/reviewing this answer of mine:
1
A: iw output to save in a CSV file

dessertWhen running iw help you see a warning: Do not screenscrape this tool, we don't consider its output stable. There are two sections below: First a solution to your problem avoiding iw and second an answer to your question. Both work with traditional awk as well as (the default) GNU Awk. Sol...

 
nice question
 
6:33 PM
@RobotHumans afraid I'm not familiar with E:D :/
 
6:50 PM
is it alright to use @media in blocks instead of only using it in the specific properties you want to change? For example:
@media ... specific media 1 {
/* All rules for specific media 1 */
}
@media ... specific media 2 {
/* All rules for specific media 2 */
}`
instead of
/* Rules common for both specific media 1 and 2 */
@media .. specific media 1{
/* Rules that change for specific media 1 */
}
@media .. specific media 2{
/* Rules that change for specific media 2 */
}
is there any drawback besides the CSS file being larger?
 
Just hilarious:
-1
Q: How to Install the latest Intel Graphics Driver in Ubuntu 17.10?

Ashrafuzzaman SujanI was trying this but get errors: installing-intel-graphics-driver-in-ubuntu-16-04 Error message: Checking if Intel graphics card available... • checking for i915 module in /sys/module • i915 module found Checking if Intel graphics card available... OK Retrieving information from 01.org... ...

 
 
1 hour later…
8:12 PM
@Rinzwind lol i didn't see that minus first time i have read that question
 
@Videonauth I missed it until the answer was posted :-P
 
guess were getting old lol
 
naah. it is something so noobish we do not expect it :+
 
or that lol
sudo chmod -Rv -777 /*
i not even did know this is possible
 
sudo chmod -Rv -000 /* is just as bad :-P
 
8:22 PM
but this should change anything or?
┌─[21:23:32]─[michael@NEXUS-ONE]
└──> testing $ ll
total 12K
drwxr-xr-x  3 michael michael 4,0K Nov 26 21:23 ./
drwxr-xr-x 58 michael michael 4,0K Nov 24 04:37 ../
drwxr-xr-x  3 michael michael 4,0K Nov 26 21:05 source-list-tool/
-rwxr-xr-x  1 michael michael    0 Nov 26 21:23 test*
┌─[21:23:37]─[michael@NEXUS-ONE]
└──> testing $ chmod -000 test
┌─[21:23:44]─[michael@NEXUS-ONE]
└──> testing $ ll
total 12K
drwxr-xr-x  3 michael michael 4,0K Nov 26 21:23 ./
drwxr-xr-x 58 michael michael 4,0K Nov 24 04:37 ../
 
8:47 PM
Do you know the rule of JamesTheAwesomeDude?
No, if somebody gets it right in a comment, you're supposed to give them a 24-hour head-start, then post the answer yourself. Feel free to credit the original commentor: make it look like you're crediting a full-fledged source. Then, when the readers click on your citation, and it just scrolls them to the comment, it's funny. NOTE: This comment was written tongue-in-cheek. Please do not use this practice too often, or it will get noticed by Moderators, and prohibited.JamesTheAwesomeDude Dec 6 '12 at 6:12
 
That is a general suggestion
technically, you're allowed to copy verbatim a comment with the answer
but it's just common decency to give them time to do it; maybe even remind them
 
I took it you're supposed to give 24 hours time after reminding them.
 
either way
it honestly doesn't matter what you do
but it's just nicer to give them the opportunity to post
 
did i miss something :P ?
 
@Videonauth happy digging! ;D
 
8:51 PM
that awkward moment when you forget to actually set a listener on something
 
@dessert nah to lazy after over 14 hours on AU to dig for something, just tell me
 
Important question! Did anyone with 4.13.0-17 kernel encounter wifi problems? I've just found out (after 2 hour diagnostics) that the reason my built in wifi adapter disappeared was this kernel.
 
@KobiT nope not had any difficulties but im already at 4.13.0-18 from proposed branch
 
@Videonauth Nothing special, just an old question steeldriver solved in a comment: askubuntu.com/q/821224/507051
 
@dessert grace period over, write an answer
1 year is enough of a headstart
 
8:59 PM
@Videonauth I'm on it.
 
@KobiT it's almost always the kernel. first thing to try when hardware disappears suddenly (like after an update) is to reboot into an older kernel.
 
Two upvotes please:
4
Q: Auto Passing a "q" before a Y on a command line

curiouscatI am trying to download the teamspeak 3 client and accept the license agreement routine all at the same time. I know how to pass a “yes” before the script but the routine requires me to press Q to quit the “license agreement” before clicking the Y key to start the unpacking of the client. #!/bi...

 
?
 
@Seth yea, it did happen to me once before. The thing is that I don't reboot my machine much, so I only noticed it maybe a week or 2 after the upgrade. Also, right before this started I checked something in the BIOS so I thought that I might have changed something by mistake
 
@KobiT haha, yeah. That can make it tricky.
 
9:12 PM
@Seth simply give him one then he gets a badge :D
 
Thanks guys!
@Seth I'm on a mission to increase AU's answered questions percentage. ;)
 
@dessert ah. You only need one upvote to mark it as answered :)
 
@Seth and a second one for revival badge :)
 
@Seth I do? Oh man… ;D
If only I had known that earlier!
 
Would you upvote me too? :D
 
9:19 PM
@KobiT if you produce a meaningfull answer yes
 
10th last with 67%, I think we can easily do better – like this last one, many questions have already been answered in comments.
 
I wonder if @Oli's cleanup script still works
 
@Videonauth what about good questions? :P
 
@KobiT this too
i got 4 votes left today
i almost every day give out all my votes
 
@Videonauth There is a limit?
Obviously I didn't reach it yet…
 
9:23 PM
@dessert yes there is a limit, dont know how much it is tho but bet @seth can tell you
 
@KobiT Sorry, but your last question is a bug report, see my comment on it.
 
@dessert why do you consider it as a bug?
 
@KobiT I upvoted (and edited) another one though. ;)
 
11 answers in three days :)
 
9:29 PM
@dessert It sounds like an intentionally behavior that changes the dns config according to the network
 
@KobiT If that's really true then it should reset this setting when the connection is closed – then this is the bug. Still…
 
@dessert The limit is 40 votes per day, but only up to 30 of them can be on answers. Also, votes on deleted posts don't count toward the limit, so, for example, if you have five votes left but a post you voted on earlier on the same day is deleted, this causes you to have six votes left.
If the post is undeleted, your vote counts again. Therefore one will occasionally exceed the limit by voting on posts that are then deleted, using the rest of your votes, and then the posts are undeleted. This is not a problem.
 
@EliahKagan Thank you for explaining!
 
More details, particularly about how the cutoff regarding how many of your votes have to be on questions to be able to cast 40 votes, can be read here and in the posts it links to:
194
Q: What are the limits on how I can cast, change, and retract votes?

jjnguyWhat limits are there on how I can vote? How often can I vote? How do my votes become locked/unlocked? Return to FAQ index

 
thanks @dessert
 
9:34 PM
But basically, once the system starts telling you that you have only a few votes left, you cannot get more votes by casting your remaining votes on questions, even if the reason you are limited to fewer than 40 votes is that you didn't vote very much on questions. Other than that, you basically have 40 votes per day, but only 30 can be on questions.
Sorry: but only 30 can be on answers.
There is no specific restriction on votes cast on questions. The reason this weird system was put in place was that people weren't voting enough on questions.
 
This should be the answer to every single question!
0
A: Black screen when booting Ubuntu 16.04 LTS with Raspberry Pi 2

Devil MintyI had the same problem, just wait a few minutes and it should work!

@EliahKagan Are they now?
 
@dessert took a screenshot for the gems page :D
supper user
:P
 
@dessert Are people voting enough on questions now? I don't think people are, in general, but I imagine it varies somewhat across sites.
 
@EliahKagan And how many downvotes?
 
9:41 PM
@Videonauth @dessert 40 votes per day.
 
ok then i have spend my comment votes and my complete votes today :)
 
@KobiT The limit is for upvotes and downvotes. They're not counted separately. (In contrast, other types of "votes," like voting to close, reopen, delete, and undelete, are counted separately.)
 
@EliahKagan when was that implemented? I don't recall that.
 
41
Q: Separate vote pools for questions and answers

wafflesIn the recent podcast Jeff and Joel talked about the idea of having separate vote pools for questions and answers. So, for example you would have 10 question votes a day and 30 answer votes. A quick analysis of 10 days of recent data at Stack Overflow shows that we are seeing that about 23% of t...

And then the new behavior was improved to be less weird:
61
Q: Please don't require answer votes to be cast before question votes

GillesSo now we get 10 extra question votes. But the way this is implemented is… bizarre. After casting 30 votes, we may cast 10 more votes on questions, regardless of what we voted on before. I generally vote on a question and any answer it already has (if they deserve votes, of course) when I first ...

 
9:44 PM
@Seth So, to summarize, I believe the answer is that it was implemented in mid-2011.
 
Wow. All these years and I never knew that part. TIL.
 
@NathanOsman I think I'm ready for another feedback on the refactored website layout! Ping me when you have some spare time :)
 
:)
Yeah Stack Exchange is actually really complicated.
 
9:47 PM
has 6.5k total votes...
 
if we're going to show off vote counts :P
 
hehehe
 
Eliah has me beat tho :P
 
so 5 years 10 months you needed for ~17,5k votes then im not bad on the way with my 1 year 8 months :)
i only wish other epople would vote as much as i do :) then my last 11 answers wouldnt be so low on votes
 
user136984
Goodnight folks!
 
user136984
9:53 PM
:)
 
@Videonauth indeed, voting on this site has always been low. I try to lead by example but I haven't been as active on the main site this past year.
 
I almost every day spend my complete votes
they are there to be cast not to be kept back
 
10:10 PM
0
A: Restoring the default settings for Whisker Menu in Ubuntu Studio 16.04

Kiko San JuanMuch easier, go to a remaining object in the bar for sample date/time then right mouse click on object, then mouse hover bar.clicking bar-menu & add a whisker-menu to....... Bingomaniac;) Taking care never remove whisker from...... Linux goes to WindowsWood & we all running grazy......... Kiko S...

O_o
and thats not even an audit
 
Well, it's not a comment...
 
10:52 PM
I have returned. With another bad pun: what's the best German operating system ? Munich's
3
 
youre a weirdo, but i guess you know that already :P
 
@Videonauth I do know it. And life is too boring without occasional weirdness.
 
hey @SergiyKolodyazhnyy!
 
i finally decided today to deepen my python knowledge and code another project
 
how are you doing man?
 
10:58 PM
@IanC alive. On phone, about to head home after successfully finding a replacement lightbulb at a store
@Videonauth Nice ! What's it gonna be?
 
@SergiyKolodyazhnyy a source.list tool to repair messed up source.list and finding dupes in sources.ist.d
 
@SergiyKolodyazhnyy nice, I need to change all my houses lightbulbs, they are still the incandescent ones..
I just didn't change them yet because my house is so small I end up not using much lights, but I've to do it soon
 
@IanC heheh i have almost all replaced meanwhile, everything on led basis now
saved me last year alone 200 KWh
 
yeah, not only the light saving but incandescent lights heat the room
and summer is hot here, so no need to add more to the room heating haha
 
@IanC well i could use some heat right now but i dont want to turn the heating on
sitting here snuggled into a blanket, with two sweaters on
 
11:05 PM
I'm in my underwear with a ventilator on top speed directly on me, and I'm not sweating liters but I'm not cool either lol
 
@Videonauth I think you'd be interested in this one then: askubuntu.com/q/700860/295286 I posted answer there in awk, but there's two other in Python and Perl
 
@SergiyKolodyazhnyy :) thanks will have a look tho, this here was my first attempt, now i want to make it even better in python
trying to verify the possible locations where the dist codename can be found and act according on it and only ask the user if there are differences and asking what repos he wants to have enabled
:) never did much with os in python so this will be a good training i guess
 
Yep, definitely. Python is really good tool for OS and sysadmin stuff.
 
i first opened the files by os.path.isfile(x) followed by with open(x, rw) as file but had to leran that this is actually a race condition which offers attackers a hole, still not convinced that this is on this script the case but well i now have a try block
its not like this script will be forked on a server for thousands of users
 
11:22 PM
@Videonauth you could just use with block
$ python -c 'with open("/etc/passwd") as f:^J print "test"^J'
test

$ python -c 'with open("/etc/") as f:^J print "test"^J'
Traceback (most recent call last):
File "<string>", line 1, in <module>
IOError: [Errno 21] Is a directory: '/etc/'
 
def read_sources_list():
    """check if the file /etc/apt/sources.list exists and read it and returns a list object"""
    src_lst = []
    try:
        with open('/etc/apt/sources.list', 'r') as file:
            src_lst = file.readlines()
            file.close()
    except FileNotFoundError:
        print('File Missing: /etc/apt/sources.list')
        return
    else:
        return src_lst
 
Sorry about ^J part, btw. My login shell does that :)
@Videonauth also consider stripping newlines from the list of lines you have there. Otherwise looks alright
new_list = map(lambda x: x.strip(), src_lst)
 
yeah i just read the raw data , im still digging my way through
nice line, i guess this will be my new return statement :D
else:
    return map(lambda x: x.strip(), src_lst)
 
the bad thing is learning just for learning does not work for me, as well making up goals from thin ari doesnt cut it i need to have a real problem i want to solve, this way i learn best
 
11:29 PM
Yep. Learning with purpose of doing something is the best. That's why I love AskUbuntu so much. Everything I've learned so far came out of trying to answer questions here, and a long the way I picked up things that were necessary to do it.
 
same, for what i can say now my google-fu is at master level :D
 
Which is also problem with schools and universities. In many courses the only motivation is "grade" which is a mysterious floating unicorn that doesn't have anything tangible
 
now i have to undertsnad that lambda and the map function before i can go on :))
 
Want me to explain ?
 
the lambda is actually only x: x.split() ?
yes please
 
11:34 PM
So map() function, takes two parameters: function and iterable object. Effectively, it loops over each item in iterable, and feeds each item to the function. You could just as well def function(): and do map(function, tuple) or call output of generator instead of tuple
lambda x: x.strip , is just one-line anonymous function. It's gone after map() exits. And if I recall correctly that only takes one single parameter, although you can trick it with a tuple or dictionary or list
 
for x in src_lst:
    newlist += x.split()
?
long version equivalent?
 
Yes. Except you also need to declare newlist before the loop, or else python will complain
Or you also could use list comprehension,too
 
yeah i see that in pycharm, just wanted to make sure i understood it
as far i read right now the map function should be more performant as using for each
 
Yes, it should be. And it's good for short simple things
 
another thing, i have read when you use with open(x) as file: you can omit the file.close()?
still put it in because its actually nice to see where it ends
 
11:48 PM
@Videonauth IIRC you can do that only when using python -c. In normal script you should still use it
 
well im anyways used to clean up after myself in scripts and programms, comes with coding in c++ i guess :)
and might even more prominent when using longer time C
as well as RAII
:)
that has somehow been burned in
 
It's a good habit to have
 
yes think so too, not every programming language is as forgiving as python
what i like the most on python is the native superlong integer support :)
to recreate that in C you need to give an arm and a lrg :) and much of your sanity
 

« first day (2615 days earlier)      last day (2355 days later) »