« first day (2295 days earlier)      last day (2676 days later) » 

9:18 AM
@Zanna can sed reverse words in lines ? unix.stackexchange.com/q/336149/85039
 
no ruby, -1
 
@edwinksl i read your mind, because i just added it bro
^_0
 
:P
but no c...
 
I request a Lisp solution, @Serg!
:P
 
@edwinksl ^
 
9:24 AM
lol jk don't waste your time
 
@ByteCommander but. . . but . .. i don't speak Lisp yet . . .
 
Is that my problem?
Oh, and brainfuck please, while you're at it.
 
/facedesk
 
I don't dare you to write it in duck duck goose though, that language is a bit too verbose...
 
I'll just go write Turbo Pascal or BASIC
 
9:28 AM
@Serg I still use BASIC <3
 
@Rinzwind which version ?
 
Thoroughbred BASIC 8.8
 
In case anyone in the sort of depressive mode , youtube.com/watch?v=QfpY2bpEw4M
 
@Serg Nice one!
 
^_^ Thanks
 
9:36 AM
You could further golf the perl one to perl -plae '$_=join" ",reverse(@F);' input.txt but I'm impressed! Serg posting a perl approach, whohooo!
The -a already does the split for you, by the way. In your original approach, the -a was not making any difference since you weren't using the @F array and were instead splitting manually.
 
Lately, I've been playing with Perl more and more, because sometimes python is already taken , lol. Is @F array built-in variable, like $_ ?
 
@Serg Yes, when used with -a. That's what -a does.
       -a   turns on autosplit mode when used with a -n or -p.  An implicit split command to the @F array
            is done as the first thing inside the implicit while loop produced by the -n or -p.
        An alternate delimiter may be specified using -F.
 
Neat. Gotta remember that
 
@Serg While I have grudgingly come to respect and am even starting to like python, there is no question that perl is better for text parsing one liners.
 
"even starting to like python"
2017 already has surprises
 
9:40 AM
:P
 
Yeah, as far as one-liners go , Perl definitely is shorter and more succinct
@terdon Question , can Perl access C-level functions, such as seek() ?
 
@terdon perl was intended for that so no suprise :P
I like python more though :D
 
I like Python for the variety of modules and allows low-level access to data, closer to C
 
with less than 10 hours of experience in python I made a SQL to XML export
(25 years of coding experience though ;-))
BLUE FLAGS and then they are all in RUSSIAN
 
woah woah woah, 11 chat flags ?
 
9:49 AM
yeah 11 now
 
I can't load them
 
12!
16
19 :D
@terdon FIX THAT >:)
 
O_O
 
lol
7
6
0!
 
got to 19
 
9:50 AM
good job @terdon >:)
 
Some of those were sort of offensive, but I didn't get to read the rest
Ok, there's that room ?
 
0
Q: Accidentally uninstalled dnsmasq-base on Ubuntu 15.04

theliberalsurferRan sudo apt-get remove -y dnsmasq-base dnsmasq-base on my Ubuntu 15.04 machine. Now I can't connect to the internet (Etherenet or Wifi). I have manually installed dnsmasq-base version 2.72 from a tar.gz and have run "sudo service network-manager restart" but nothing. When I go into System Settin...

"accidentally"?
 
@Serg Yes. Check out perldoc -f seek
 
Sweet, i can byte-wise reads in perl
 
10:07 AM
quietly prints that link to pdf
 
Hello guys i know there is someone who uses or has used supervisor on ubuntu...i just started to learn this and i don't know how to make supervisor work at reboot... i have created my .conf file where i have set the process which i want to run and when i start supervisor with service supervisor start all is fine till server reboots...then i need to start supervisor again
 
You can add that command to /etc/rc.local , like service supervisor start &
I'd check logs through, because it sounds like your service is failing to start for whatever reason
 
in which log may that be
where is the log file for startup
OS start up
i get an error permission denied
maybe because the supervisor conf is made as a root
for my process i mean
 
10:24 AM
use journalctl command or sudo cat /var/log/syslog
 
yes i have found it, but there is nothing about mine process
 
10:40 AM
well, i don't know then. Just use /etc/rc.local like i showed before. That's a workaround. Not ideal, but at least you don't have to type that command each time
 
i had to run systemctl enable supervisor and now it works
 
 
3 hours later…
1:28 PM
77
Q: How can I stop Alexa from ordering things if it hears a voice on TV?

Aurora0001According to The Register, lots of Amazon Echo devices were accidentally triggered by a presenter saying 'Alexa ordered me a dollhouse'. Telly station CW-6 said the blunder happened during a Thursday morning news package about a Texan six-year-old who racked up big charges while talking to an...

I mean, seriously, who the hell buys these things?
"Yes, please, I'd love to have a device that records my speech and sends it to one of the largest corporations on the planet and even buys stuff I have to pay for. No, I'm not brain dead, why do you ask?"
 
-5
A: How can I stop Alexa from ordering things if it hears a voice on TV?

Jake WitmerIf you hit the Alexa input devices with a 3-round burst from an AR-15 or similar device, that ought to disable it.

that answer is gold
I wonder if it has any upvotes.
 
s/AR-15/hammer/ and I'd agree.
@ByteCommander Yes, +2
Don't you see them?
 
Don't have the userscript for showing up/down on my study computer.
 
Ah, right
 
Ask Ubuntu came through, when Forums and IRC failed me...
 
2:02 PM
0
Q: What ever happend to clean up week?

Mark KirbyGoing off Elder Geeks post here where clean up was discussed, what happened to clean up week? It seems to of only run for one week, years ago. What happened to it and could we bring it back? The user base is bigger now and I think many would take part. Opinions?

 
2:13 PM
@terdon, i have here something really weird i not know what to make of --> meta.askubuntu.com/questions/16571/… just go into editing the question and you will see what i mean
 
You mean the HTML comments?
 
yeah lol
 
<!-- Do not remove or edit -->
<!-- Note: Questions not about your post will be deleted -->

I have a question about my Ask Ubuntu post: [ping socket: Permission denied](askubuntu.com/questions/868590/ping-socket-permission-denied)

<!-- Your question below: -->
...
no idea.
just DVed and voted to delete the meta post
 
i was going to edit it to make the code visible but not sure what to make of this
well ok then no need to spend time on it
 
@ByteCommander Yeah, no idea. Looks like they copied from somewhere.
 
2:48 PM
@George - answers go in the answers. — Aaron Hall 59 secs ago
@terdon I had an edit on this question - was I right here? ^^^
 
@AaronHall In that answers should be answers? Yes, of course.
Note that George didn't add the answer, he just changed Upd to Update. He's a new user who's been very active lately (and very helpful) but is still learning the ropes.
And, as you just saw, he learns fast and is open to suggestions :)
Be like George!
:P
 
3:06 PM
ok, lots of obsolete comments there. :)
 
@terdon and I will hug him and squeeze him and I will call him George
welp
 
@AaronHall Where, where?
All gone
 
When did you become a mod? @AaronHall
or am I doing the alternate universe memory thing again?
 
3:12 PM
@Zacharee1 Last SO elections. He's not a mod, he's a mmod (masochistic moderator)
 
orly
 
As anyone who would choose to moderate SO would be :P
 
lol
when were they
 
Not too long ago
 
@terdon to SO veterans who might still call the whole network SO, aren't you an SO mod too?
 
ah
so I am doing the alternate universe thingy again
ugh
 
:)
 
I swear I remember [wiki:Something] working
"Excessive boot time" is 30 seconds, everyone askubuntu.com/review/close/663622
do we support installations of remastered Ubuntu images? askubuntu.com/review/close/663649
 
I don't see why not
Would you say it's off topic?
 
Something may refer to: == Philosophy and language == Something (concept) Something, an English indefinite pronoun == Music == === Albums === Something (Chairlift album), 2012 Something (Shirley Bassey album), 1970 Something (Shirley Scott album), 1970 Some Things, the debut album by Lasgo === Songs === "Something" (Andrius Pojavis song), 2012 "Something" (Beatles song), 1969 "Something" (Girl's Day song), 2014 "Something" (TVXQ song), 2014 "Something" (Lasgo song), 2001 "Something", by Aerosmith from Music From Another Dimension "Something", by Dark Lotus from Tales from the Lotus ...
 
3:28 PM
Something:wiki
D'oh!
 
@Seth oh my god it isn't in brackets...............
Derpderpderp
Derp may refer to: Mr. Derp, a minor character in South Park, a show that popularized the Internet slang word derp. Egmond aan Zee, a village in the Netherlands commonly referred to as Derp by locals. Drug Effectiveness Review Project D.E.R.P., a robot character seen in the Fresh Beat Band of Spies episode "Dance Bots" == See also == Darp, a town in the Netherlands Derpy, a background character in My Little Pony: Friendship Is Magic...
Christ
 
Hello everybody ! :)
 
hey guys, I was facing a really weird problem while using Ubuntu today
 
@AshishAhuja And ... ? which one ? :)
 
the problem was that I'm not able to apt-get install any packages
Apparently, it says me to do apt-get -f install
 
3:31 PM
@terdon well when someone makes an Ubuntu distribution and the only difference is a DE, it's off topic until it becomes official, like budgie. IMO, remastering is like making your own distribution
 
I've tried that, but it basically says tar does not exist
I checked, and /bin/tar does not actually exist
I can't even do sudo apt-get install tar because it is not installing any packages right now.
Any ideas?
 
$ apt policy tar
tar:
Installed: 1.29b-1ubuntu0.1
Candidate: 1.29b-1ubuntu0.1
Version table:
*** 1.29b-1ubuntu0.1 500
500 http://archive.ubuntu.com/ubuntu yakkety-updates/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu yakkety-security/main amd64 Packages
100 /var/lib/dpkg/status
1.29b-1 500
500 http://archive.ubuntu.com/ubuntu yakkety/main amd64 Packages
@AshishAhuja It does ! ^^^
 
@Zacharee1 OK, first off I'm the wrong mod for this discussion. I've never understood why such things are off topic. But never mind that, remastering is different largely because it's something you did from an installed Ubuntu as opposed to starting off from installing a "different OS" which is what non-official flavors are.
 
@cl-netbox not in my computer
 
It's more of a figurehead role.
 
3:34 PM
@AshishAhuja Which ubuntu edition do you have installed ?
 
14.04
it used to have it, but apparently its not there anymore
 
Hey! I just had a failure building a Debian package, but I'm pretty sure checkinstall actually installed.
 
@AshishAhuja It is available in trusty-updates -> packages.ubuntu.com/trusty-updates/tar ! :)
 
thoughts?
If I wanted to create my own PPA, is there a how-to on that?
Google doesn't fail on Ubuntu questions... but try building emacs...
 
@AaronHall Ah, well, most of the poor ignorant souls who hang out here use vim, believe it or not.
 
3:43 PM
@AaronHall sorta. The docs are fairly spread around. But if you can build a .deb file you're more than halfway there.
 
Well, building a deb was where I failed. :D lol
 
@terdon HaHaHa ... so that means that I'm not one of them as I am still using nano - right ? Good afternoon terdon ! :)
 
but it did manage to install
 
@cl-netbox :)
 
@AaronHall well the ubuntu packaging guide is a decent start: packaging.ubuntu.com/html, as well as the debian new maintainers manual: debian.org/doc/manuals/maint-guide
 
3:46 PM
@cl-netbox when I try to install the .deb file using dpkg, it just says tar is not found
 
Hi @Seth ! :) Happy New Year ! :) I think we didn't see each other since last year ... :)
 
hi!
 
@AshishAhuja Then your repositories seem to be corrupted (I guess) ... revert them to default ! :)
 
@cl-netbox they aren't corrupted AFAIK, the problem from the start is that tar is not there, and now I'm not able to install tar
 
@AshishAhuja When the repositories are not configured correctly, such errors may occur ... :)
 
3:51 PM
@Seth Thanks, I'll look at them.
 
@terdon remastersys is something that lets you build your own distribution from the source, not necessarily from what's installed on your computer. They're having trouble installing an OS they made using it.
 
@Zacharee1 Yeah, but they made it from their installed Ubuntu OS, didn't they? Or that's what I understood, anyway.
Yeah:
> Im trying to create a installable ISO of an existing Ubuntu Server 14.04.
 
@AshishAhuja Most problems of this kind arise from misconfigured software sources ... check the /etc/apt/sources.list file and the /etc/apt/sources.list.d folder for wrong entries ! :)
 
ok, thanks!
 
4:14 PM
@terdon Do you have an idea how to solve this problem -> askubuntu.com/questions/870297/… from @AshishAhuja ? :)
 
I have to go to sleep now.
Goodnight
 
You might be able to pull this one out of the fire using busybox - I think I'd try something like sudo ln -s /bin/busybox /usr/local/bin/tar and then try running sudo apt-get install --reinstall tarsteeldriver 3 mins ago
that might work
 
@terdon Thank you terdon ! :)
 
good afternoon
 
Hey @IanC ! :) Nice to see you ... is the flat you checked yesterday a good option for you ? :)
 
4:30 PM
@cl-netbox apparently yes, good neighborhood, flat is a bit bigger than the one I was looking before, there are supermarkets, pharmacies, and lots of commerce around, price is reasonable, and apparently negotiable
after last time close call I'm trying not to get over excited about any place and playing safer than before, but looks good so far
 
@IanC Nice ... sounds good ... and what is your decision ? :)
 
I'm taking a look at the place at night, and trying to figure if it floods when it rains, while I try to get the price down a little
if all turns out good, I think I'll go for it, more than one person told me the neighborhood is good
 
@IanC good ... but in the end you have to decide ... as I said yesterday : There is no 100 % solution where everything fits ... :)
 
@cl-netbox sure, just getting everything figured out before taking a decision, but looks promising
 
@IanC Great :) Hope it works out fine for you ! :)
 
4:39 PM
thanks man! :)
 
@IanC You're welcome ! :) I keep my fingers crossed for you, because I know how much you really do want to have your own flat ! :)
 
@cl-netbox would be nice, a better use for the money I waste with rent at the moment :)
and I'm losing motivation to do anything in the house, because people don't seem to care as much as me to keep the house clean and fit
like, the sink is clogged for like 3 or 4 days (because someone throws plates with lots of food on it, probably too hard to throw it in the garbage..), nobody went out to buy some caustic soda
there is a big puddle of coffee in the kitchen floor, I'm almost sure I know who did it (only 1 person who I've seem drinking coffee here), but it's still there. I'll probably have to clean it so no cockroaches show up, but I'll not do it quiet, I'm seeing soon I'll start losing patience here
I'm not a fan of doing house cleaning really often, but I'm also a person that cleans things as I dirty them, doesn't seem to be what other people do here
alright, enough unburden for today haha
 
4:56 PM
@IanC All that is a really good attitude ... and you are right when you are annoyed about others who don't behave accordingly ! :)
 
5:13 PM
man, it's been a while I didn't answer a question on SE that wasn't asked by myself haha
usually the questions I can help with have answers already
found one that seemed quite simple, weird it had no answers or comments
 
@IanC which one ?
 
0
Q: Execute sh script and send informations

NicMaxFenI want to execute a .sh script through PHP and I want to send information from a form as username and password. The shell script gets executed with the ./name.sh and then it asks for an input from the user as the following: Enter your Username: xxxxxxxxx //<-- The Input you normally type in the...

editing the answer to include a disclaimer
 
@IanC upvoted ! :) You're lucky, because the only accounts I have on SE are AU and UL ! :D
 
I just realized there's a serious problem with what the OP wants to do
@cl-netbox added the disclaimer, my conscience is clean now
 
5:30 PM
@IanC Have you seen this -> "and a other question: can this be done for a coffee script also?" ... ? This would be something for @ThomasWard : sudo apt install coffee ! right ? ... hahaha :D :D :D
 
shame it kind of invalidated my own answer, it's like "LOOK, THIS IS REALLY STUPID, but here's how you do it" :D
 
@IanC no, I don't think so ... anyway ... now (with my UV) you overtook me by 1 point on U&L ... Congrats ! :D :D :D
 
@cl-netbox thanks! :) I'm finding questions I'm useful for there more often than here
 
@IanC You're welcome ! :) I couldn't have answered it ... my strengths are on different fields (as you can see from my profile) ... :)
 
@cl-netbox I'm thinking there's probably a much better way to do what he's asking, on MySQL there is parametrization. Maybe there's something for shell scripts too? I'd probably do a really thorough and intolerant pre-processing of the string
no special characters allowed
 
5:41 PM
*was summoned, and is launched from his orbital observation station down towards the earth, and lands right in the room with an extremely powerful thud on the ground, creating a small crater as he lands*
 
or all of them escaped
 
I AM SUMMONED! WHAT HAST THOU REQUESTED MY ATTENTION FOR?
other than my amazing presence :)
 
@Serg Exactly
@ThomasWard One Double-Double, mustard-fried, medium-rare, extra spread, and well-done fries, please.
 
@ThomasWard actually you showed up in a good time!!
1
A: Execute sh script and send informations

IanCIMPORTANT DISCLAIMER Just realized after writing the answer: Asking for user input and including it on shell scripts without pre-processing is really dangerous, as a malicious user could inject code. On the example below, if the user typed whateverusername and password" ; rm -rf --no-protect-roo...

can you think of a better way to do this then pre-processing the input on the POST variables?
 
@KazWolfe throws the requested item at you, after pureeing it, and then shoving it into a balloon
 
5:44 PM
@ThomasWard Hey, this isn't mustard-fried! I want my money back!
 
@KazWolfe you never paid me.
 
Goodbye everyone ... see you ! :)
 
see you @cl-netbox
 
I'm the customer. I'm always right. I want my money back, or to speak to a manager.
 
see you later @cl-netbox!
 
5:45 PM
@ThomasWard Goodbye Thomas ! :)
@IanC See you later Ian ! :)
 
@IanC They'd need to preprocess the data first, before passing it on. The other solution is to not permit the prompting that they're suggesting.
esp. if it's a shell script
if it were a python script you can split the input up, and do better sanitization.
 
@ThomasWard cool! I was wondering if there was something similar to SQL parametrization for shell calls, like "consider everything here a string"
 
if ' ' in username:
    raise RuntimeError("Usernames don't contain spaces!")
...
as an example
 
think my disclaimer is good enough? I felt kind of bad about giving a solution before telling the OP about how unsafe it was
 
and then the failure code would be interpreted by the server hopefully and then spawn a "500" error
 
5:49 PM
@ThomasWard 500?
That's a user's fault, so it would be 4xx
 
internal error, because it triggered an exception
 
@KazWolfe if you don't configure the server to handle the error code failure in my script example, the default is to error out while running a server side process, which would 500
 
on the server-side script
 
right
 
yeah, but you want to actually make it handle it as a 4xx for the UX
 
5:51 PM
@KazWolfe or, on an error, start over and display the error.
You're not wrong, but the point was that you want it to fail somehow
 
true.
 
@IanC you have a revision request on your answer
go lookit
 
still, if you can choose what error you want, use 400 or similar.
 
@ThomasWard I was just going to ask about it: Pre-processing before the POST request would be something like client -> POST to preprocessor -> POST to the PHP script?
because pre-processing on client-side would also be vulnerable, as he could just send the raw POST request
 
@IanC pretty much, yes, but then we also have to make sure that usernames are very specific - alphanumerics
@IanC well, you can do preprocessing at both sides.
@IanC this sounds a lot like the HNQ that I just saw...
 
5:54 PM
oh, i know which one. let me go get it
89
Q: Hacker used picture upload to get PHP code into my site

Williamz902I'm working on a website — right now it's in early stages of testing, not yet launched and just has test data - thank goodness. First of all, a hacker figured out the password to log onto the websites 'administration' pages*. I think they used a key logger on a friend's computer who logged into ...

 
yep
@IanC doing sanitization/checks on client side is ineffective
doing them server side is only as good as those checks
do it both sides, the server acts as the failover
 
exactly!
 
so client -> preprocess(JS) -> POST to preprocessor -> POST to PHP
 
I think I'll add it to the answer to make sure the OP understands it must be done both-sides
 
where the preprocessor then can act as failover should someone circumvent the JS
@IanC that said, they should be specific about what's allowed in username, password
such as, usernames can only contain ASCII upper and lower case letters and numbers.
password is a bit harder to sanitize
 
5:57 PM
escaping special characters probably
 
but if you cap the length at, say, 20, you can't really fit a "nuke it all" string
@IanC yes, that's doable, but not in pure Shell
that'd need something more powerful
a perl or Python backend to handle escaping
 
yeah, doing it in shell would be a major PITA :p
 
well, the customer support people downstairs had poptarts.
and i did not even know
issue has since been resolved, engineers are now in control of the poptarts.
 
0
Q: Toast notifications overlap the Ubuntu top bar

ArtOfCodePart of the Stack Exchange JS library includes functionality to create notification messages - the most common perhaps being "Thanks, we'll take a look at it" after casting a flag. These notifications also come in "toast" style, which is a notification not fixed to a particular element on the pa...

 
6:12 PM
um... did this guy just suggest an edit as per his fedora system?
 
not anymore he didn't.
watches the ashes drift in from the firestorm on the other side of the wall
 
I brought up 12 poptarts from the customer support people downstairs.
8 of them were eaten by the engineers (5 are here), and 3 were stolen back by CSM.
 
6:33 PM
-2
Q: What to do after installing ubuntu?

PrzhevalskoyeJust installed Ubuntu 16.04 LTS, installed my school programs.. What now? (interesting programs and such)

Too Broad / POB
 
Just got a "Notable Question" silver badge for 2.5k views, but it only has 4 upvotes... People are too lazy to vote :-/
 
have a goat.
0
Q: Chrubuntu Tegra question

Keith ShekrotaHello This is the first time posting so my apologies if incorrectly done... Ive been around deb and gnu linux flavors a long time but still consider myself a newbie, ok to the matter at hand... I took my HP Chromebook 14 G3 Tegra K1 ( ARM/ Nyan_Blaze) and installed chrubuntu (14.04 ubunt...

what
 
Meh, this NAA just got posted the second before I could apply the last close vote to the question: askubuntu.com/a/870345/367990
nvm, owner removed it after my comment
 
...
and owner should have VTC'd instead of answered.
he has 2k rep. come on now.
 
/shrug
 
6:42 PM
oh, cv is 3k. nevermind.
still, flag.
 
@KazWolfe Wall of text, and the only formatting is making the "Hello" in the beginning bold? People are weird...
 
apparently you can run ubuntu alone on a chromebook. TIL.
we really do get some weird users on this site, not sure why.
 
@KazWolfe Edited, but I'd say it needs a second pass by somebody who knows what that guy's talking about. I personally never touched a Chromebook. askubuntu.com/posts/870344/revisions
 
ah, the annoyances of "I know how to answer this question (roughly) but can't help exactly without having the device in front of me to test"
 

« first day (2295 days earlier)      last day (2676 days later) »