« first day (2035 days earlier)      last day (2798 days later) » 

6:00 PM
is it possible to make a check if you are elevated without attempting to elevate yourself?
 
@NathanMerrill Yes, one sec.
(btw, just launching ConEmu gives you a non-elevated shell)
 
I changed that fast :)
I pretty much run everything from Git Bash, but I have a hotkey for elevated cmd
 
@NathanMerrill But anyway. In any windows shell, you can run fsutil dirty query %systemdrive%. If it prints "access denied", you're non-admin.
If you are elevated, it'll say " NOT Dirty"
I'll add a warning to alwsl if it is being run as admin.
@Poke I just posted that.
 
oh
my bad
 
Tracking here for 0.06.
 
6:08 PM
hey, I get emails when a project updates!
anyways, got another error on reinstall:
-- Beta feature --
This will install Ubuntu on Windows, distributed by Canonical
and licensed under its terms available here:
aka.ms/uowterms

Downloading from the Windows Store... 100%
Extracting filesystem, this will take a few minutes...
Installation successful!
bash: apt-get: command not found
bash: apt-get: command not found
alwsl (info): Downloading alwsl rootfs (this might take a while)...
alwsl (info): Downloading checksum for this image.
alwsl (info): Checksums match :-)
alwsl (info): Copying rootfs to temporary extraction destination.
 
I need the text before that.
Installation successful!
bash: apt-get: command not found
wat
That doesn't make any sense. Try running alwsl remove a few times.
 
2
Q: King Of the Hill playing a Copyrighted game

Rohan JhunjhunwalaCopyrighted King of The Hill Games Some Game X is created and copyrighted by corporation Y. Can I post a king of the hill challenge about Game X, or some derivitave of X? This issue came up here as well as my related post. Does this relevant copyright info apply? Some Relevant Questions If it...

 
I can't believe the first few issues are all caused by MS's inability to write compliant command line utilities.
 
by the way, what does "311ba2 5453bf" mean?
I'm still getting the "bash: apt-get: command not found"
I'll see if the installation finishes though
as its still continuing
 
@NathanMerrill Please go to \user\AppData\Local\ and delete the "lxss" folder if there is any. Reboot, then try again.
@NathanMerrill It's a cryptographic pseudonym. Basically a hash of my real name. So commits are quasi-anonymous, but I can claim them retrospectively.
 
6:18 PM
so I made my poll, hope it's not duplicate
 
@aditsu Mainly LXDE, but an i3 option would be nice.
 
@mınxomaτ lets hope you don't write a complete failure of a program, and then a great one
 
I wouldn't call that "weird" :P
 
I feel like new users keep posting this exact challenge about compacting numbers and I don't know why. Is it a FizzBuzz of sorts, i.e. a classic question that's asked in many places?
 
because you'd have to claim both of them
 
6:20 PM
Lol
 
...there were files in /tmp/etilqs area
 
@NathanMerrill What is that?
 
no idea, but its relevant, because the script tries to remove them
rm: cannot remove ‘*.sfs’: No such file or directory
rm: cannot remove ‘tmp/etilqs_Hs9xuSxm3SYiK0V’: Device or resource busy
rm: cannot remove ‘tmp/etilqs_wMvCGtQppzIwoHD’: Device or resource busy
but there's no /lxss folder
 
@NathanMerrill That's not the first error you should run into. What's the whole log.
 
same as last time
 
6:23 PM
Did you try a reboot? It seems to me you have some program trying to access these files.
 
nope. I was just informing you that /lxss folder doesn't exist but those files do :)
 
@xnor Might have something to do with math homework assignments often being given in compacted form?
 
@NathanMerrill Did you actually try to access the lxss folder directly?
I.e. run explorer %localappdata%\lxss from a shell.
 
@El'endiaStarman maybe, i guess you'd be reminded a lot of it in schools
 
@mınxomaτ I have hidden folders turned on, so I think I'd see it from my explorer
 
6:25 PM
@NathanMerrill Try the command anyway.
 
yeah, it opens my default folder
/Documents
ooooh...I think I figured it out
 
@NathanMerrill Well, if it tries to access "etilqs_wMvCGtQppzIwoHD", this file definitively exist.
So there must be an lxss folder.
 
explorer from within git bash doesn't work. it does work from cmd
 
Don't use git bash as your windows shell. git bash uses powershell, not cmd.
 
ah, then that may be the cause of all of the problems :)
 
6:27 PM
have we had a US election poll?
 
Argh, don't tell me you tried to run alwsl from git bash >.>
 
of course I did
 
OK then. Back to square one. Spawn a new cmd console in ConEmu (non-Admin) and run alwsl remove & alwsl remove & alwsl install.
 
I didn't run the extra alwsl removes, but already on it :)
 
> alwsl remove & alwsl remove & ...
 
6:30 PM
@NathanMerrill Check if the lxss folder disappeared / contains less files during the install (before the Windows store thing finishes).
 
For when you really need to be sure that alwsl is gone.
 
@El'endiaStarman Yeah. Because the first time, Windows might report it's gone, but it isn't. A good way to check is to run it again and see if it finishes instantly (nothing to remove).
 
@mınxomaτ windows store has already finished, but I checked the modified date in explorer, and it shows 2 minutes ago
 
So far, so good.
 
6:31 PM
@mınxomaτ Oooh, clever.
 
@aditsu What about Dennis?
 
I'm not sure if I want Martin as president. He's great and all...but he isn't exactly an american
 
@aditsu Well, I only use Linux via SSH, so I guess I should put text-only?
 
@BusinessCat ¯\_(o_º)_/¯
@El'endiaStarman or the last option :p
 
@NathanMerrill He'd probably still be a better President anyway. He'd confuse our enemies (and allies) with Hexagony programs for everything.
 
6:33 PM
@El'endiaStarman Well, SSH can still carry X.
 
@aditsu I refuse to call Windows "inferior"!
 
let me make a new election poll..
 
Well, Strawpoll's own "featured poll" is kind of election related.
Lol, the results though: strawpoll.me/11061514/r
 
@mınxomaτ Well, that's mildly terrifying.
 
@NathanMerrill Neither's Obama! badum-tsh ;-)
 
6:38 PM
@mınxomaτ mother of God..
 
Honestly anyone from ppcg (with the possible exception of ColdGolf) would make a better president than trump,
 
can we please not get back into politics here
 
this has got to be the 80th time we've talked about it
 
It's a really good way to wind up with a frozen room :P
 
6:40 PM
Toss up between Bernie and deez nuts
 
Yeah, but it isn't.
 
effective, maybe. good, no way.
@mınxomaτ well, I'm definitely further than last time. Currently unsquashing
 
@NathanMerrill Also, by the way: If you want to run X apps, you need to install XMing.
 
Oh, I was going to ask about that
:)
oooh, I totally want to try and setup battle for wesnoth on both machines, but use the same save files
 
@mınxomaτ they also misspelled Hillary
 
6:45 PM
Should run out of the box. I recommend to start X apps using whatever & to un-block the bash instance.
 
what's Xming vs Xlaunch?
 
@NathanMerrill Just go with the defaults.
(and select "Don't install SSH client")
That'd be a bit redundant.
 
its asking me about desktop shortcuts. I actually want a shortcut, but I have no idea the difference
 
@NathanMerrill Use Xming for the shortcut.
 
hmm, I wonder whether localhost is a public or private network according to windows
 
6:49 PM
@NathanMerrill Yeah, thanks for reminding me. I'll add that to the install routine.
@NathanMerrill Check both boxes for Xming.
 
oh I do
but I'm just curious
 
@NathanMerrill That depends solely on the setting you've set in the Network & Sharing center for your current main network. It doesn't affect localhost at all if the ports aren't forwarded (which XMing doesn't).
 
wow, Deez Nuts turns out to be a really strong contender
 
@mınxomaτ I'm struggling to add a user to the sudoers. My ~ is actually located at /root, which is what I think is the root of my problems
did you run into this?
 
@NathanMerrill That's not a problem.
Just nano /etc/sudoers
After doing this:
username=myusername # change this
useradd -m -g users $username
usermod -aG bin,daemon,adm,tty,disk,kmem,wheel,ftp,rfkill,http,network,video,audio,storage,scanner,power,dbus $username
passwd $username
 
7:03 PM
already added my userr
 
@NathanMerrill So what's the problem?
 
oh, I figured it out
 
After adding the user, exit bash. Run alwsl user default username. Post what it says.
 
I ran useradd initially
but then I ran sudo adduser
-.-
 
I see that I'll have to create a really comprehensive documentation :D
 
7:05 PM
nah, its not your fault
I know how to add a user
but forgot what the command was to add them to sudoers
which, of course, had the wrong command :)
 
@NathanMerrill More details on this. The root user has it's home in %localappdata\lxss\root. Yet, every added user get's a new home in %localappdata%\lxss\home\username.
 
huh, ok
yet another reason to use a standard user
 
And actually the reason the alwsl distribution contains custom builds of pacman, libalpm, yaourt, fakeroot, makepkg and chroot. I had to modify them to work in WSL.
 
going back to your instructions, what does "alwsl user default USERNAME" do? Do I really need to still be using "alwsl" to launch bash?
 
No
@NathanMerrill It sets the user that bash is run as.
You can launch your final bash using (WIN+R, bash), clicking the "archlinux" shortcut, or by selecting "bash" from ConEmu's shell dropdown.
In fact, you never use alwsl to launch bash. It's just a maintenance utility.
 
@mınxomaτ can I get a path to bash?
is it in system32?
 
@NathanMerrill Of course.
 
I'm trying to add it to ConEmu
 
@NathanMerrill ConEmu has it by default.
 
7:13 PM
for a second there, things was weird
 
But really, you can just type "bash" from any shell (except of course git bash), and it'll launch alwsl.
 
I did use that option
but when I tried "pacman" it couldn't find it
I reopened it, and its fine now
 
@NathanMerrill Use yaourt as the pacman wrapper, I made some important mods to it. Even if you don't use AUR packages.
 
I've never used yaourt...but I'll look into it, thanks
 
@NathanMerrill If in doubt just replace "pacman" with "yaourt". For a start, run "yaourt -Syu".
There'll probably be some updates to do.
 
7:16 PM
...its just a GUI?
 
What?
 
yaourt
 
No.
It's a package manager with support for AUR packages.
Anyhow, I appreciate the test and I see I've got some work to do to make the installation process more robust. Thank you.
 
yep!
how do I log in as root again?
I somehow managed to mistype my password when setting it
 
@NathanMerrill Just su, or run alwsl user default root.
 
7:23 PM
I can't sudo because its giving me "sudo: no tty present and no askpass program specified"
but I can't fix that without being root :)
 
Exit bash, run alwsl user default root, rerun bash.
 
yep :)
 
Though I actually meant "su" and not "sudo". The former doesn't care about any configs.
You can ofc use alwsl user remove username to delete a borked user and return to root.
 
I find that su doesn't care about a lot of stuff. Willy-nilly deleting files, changing configs with no checks-and-balances. The jerk.
 
don't you need to prepend su with sudo?
hmmm...I'm still unable to authenticate
 
7:27 PM
@NathanMerrill Um no, "su" just kicks the active terminal into root mode.
 
su changes your overall user context (like opening a command prompt with "Run as Administrator" in Windows), while sudo changes your context for just that one command (like using the runas command in Windows)
 
And I just created a new user w/o any issues. I recommend you nuke that user and create a new one.
 
ah, I figured it out
the password is my root password
 
root shouldn't need any password (unless you set one, which you don't need to). A password is only necessary for sudo. And that password is just the user password.
 
when I type su, it asked for a password
which didn't work until I set the root password
 
7:30 PM
@NathanMerrill But you wouldn't need su, if you have a working sudo ;-)
Because if sudo is setup correctly, sudo -i replaces su.
 
@mınxomaτ is there a test I can run for the X server?
 
@NathanMerrill Install some GUI app. firefox or whatever.
 
g++ -fno-exceptions: there is no try.
 
there isn't one by default?
 
(yaourt -Sy firefox)
 
7:47 PM
ok
 
@NathanMerrill No, I want to keep the distro size down for people who don't care about X.
 
that's fine
its really cool to see "pacman" in the task manager
 
BTW, you don't need to run yaourt with sudo, if you've been doing that.
 
it worked!
 
Ooof, my RAM ... :-/ Running a message trace against the past 14 days worth of emails when we process around 2m emails per day is causing PowerShell to struggle.
 
7:56 PM
@NathanMerrill What exactly now?
 
firefox
 
@TimmyD PowerShell is a struggle in and of itself :P
@NathanMerrill Nice.
@NathanMerrill Probably best to launch it like this to avoid all the Gtk warnings: firefox 2>/dev/null &
I think a smaller program like pcmanfm would have been easier to test :D
 
I'm only getting one warning: Sandbox: unexpected multithreading found; this prevents using namespace sandboxing.
 
Any warning is annoying. There shouldn't be any errors though.
I'm currently trying to install a compositor so that X apps with transparency run (like a widget or dock etc.)
 
@mınxomaτ You're not wrong, but I think any scripting language would have problems trawling through 20+ GB worth of text logs. Especially if you're stupid like me and just decide to accumulate interesting results in a variable rather than re-writing them to a separate log file as they're read. :D
 
8:03 PM
Throw more RAM at it.
 
@flawr I'm definitely looking forward to cross products.
But I still got a better understanding of dot products from that video.
 
We're programmers. Any CPU or memory shortage is obviously a hardware issue.
 
Heck, just the simple idea that the first column of a 2x2 matrix is where \hat{i} goes and likewise for the second column and \hat{j} pretty much revolutionized my understanding of transformations.
 
=)
I know what I do when I'm tutoring the next LA class=)
 
8:17 PM
i wish i'd learned linear algebra like this
 
Me too. Would've made so much more sense immediately.
 
So what is your favourite number?
 
In general?
 
self reviews for work are no fun
 
@TimmyD No, in particular.
 
8:25 PM
@flawr Hah. Sorry, no, I meant were we discussing a particular subject, like your favorite Fibonacci, or your favorite prime, or just "What's your overall favorite number?"
 
Your top favourite number :) (Because favourite alone is not enough.)
 
@TimmyD so I assume you are a big fan of sleep sort? It works just fine provided you have unlimited threads and cores. THe nonexistence of infinite core computers is clearly a hardware issue, and thus no need for a more efficient sorting algorithm
 
@flawr 163 is pretty cool, but it's hard to really pick a favourite :P
 
oooh, 163 is a strong prime
 
<self-promotion type="shameless">
0
A: Exploded view of a string

Rohan JhunjhunwalaS.I.L.O.S 265 The (non competing) code better input format is at the bottom, feel free to try it online! def : lbl loadLine : a = 256 :a :s x = get a z = x z - 32 z | if z u a + 1 GOTO s :u if x c GOTO e :c b = x b + 512 c = get b c + 1 set b c a + 1 if x a :e a = 512 b = 768 l = 10 :Z j = a j...

</self-promotion>
 
8:29 PM
I've always rather liked 17. It's got a good sound in English, even though it's confused with 70, has a lot of cool prime properties, and is also the least random number.
 
@NathanMerrill is my XML better?
43 is a top notch prime
its only one away from 42
 
much better
 
Hm let's ask the other way aroudn: What is your least favourite number?
 
Here's the source code for that. When compiled an run as a local user, the executable calls itself. Each call elevates it one level higher, until SYSTEM privileges are granted with the TrustedInstaller token from the "new & improved" winlogon.exe in Windows 10.
For educational purposes only.
 
8:35 PM
For the educations of future criminals
 
@flawr 4.
 
@TimmyD But 4 is so cute!
Why 4?
It's the smallest even square!
 
@mınxomaτ and that's why you don't use windows
 
It's so ... boring. The only thing it really has going for it is its the smallest X for a large variety of X.
 
@uoɥʇʎPʎzɐɹC UAC is not a security feature. Running a local split-token admin is the user's own fault.
 
8:40 PM
It's also ridiculously common. Four directions on a plane. Four seasons in weather. And on and on.
 
The detection rate for this exploit is slightly worrying though.
 
@mınxomaτ ???
local split token?
 
@TimmyD these are all man made.
 
A local user account that can elevate only by the means of UAC with no admin credentials required.
You are supposed to have a separate admin account for that. This is when UAC will ask for credentials. A bit like linux. But no one does that, because Windows users are lazy.
 
What about global users?
 
8:43 PM
local split token?
 
@flawr Just because they're man-made doesn't mean they're not common.
 
@uoɥʇʎPʎzɐɹC amen brother
 
@mınxomaτ I see. But like everybody uses admin accounts
 
> because Windows users are lazy.
 
8:45 PM
TL;DR: it's a token that allows your session to "split" with the new one having elevated privs
 
@uoɥʇʎPʎzɐɹC A dedicated admin account would protect you from the 20 or so UAC exploits out there. But yeah, laziness strikes.
 
@TimmyD no, because windows users are tech illiterate and Microsoft tells nobody that you aren't suposed to use admin accounts on default
 
For a single-user computer, it seems fairly pointless to separate the admin account.
 
@feersum security exploits, that's why!!
 
@feersum Or because you don't trust yourself=)
 
8:47 PM
@uoɥʇʎPʎzɐɹC What does that protect you against?
 
@feersum the exploit that was JUST MENTIONED, a few messages ago
 
@feersum Unattended elevation of any process to admin privileges without the user noticing.
 
If you have malware already running on your machine, then it can already take all of your data and do most anything it wants.
 
@feersum then why do we have rootkits?
 
8:49 PM
@feersum Well, except not a single privileged process can be executed without actual authentication (akin to sudo). Local split token admins have 0 protection. It's like running a root-only linux system and relying on application to be nice and let you know if they are about to do something destructive.
 
What's a specific scenario where you would end up better off by using separate admin on a single-user machine?
 
@feersum then why do we have rootkits?
 
@feersum Running any downloaded software or otherwise third-party executable.
Local admin = it can do whatever it wants, separate admin = auth everytime it tries to enter high privilege modes
You don't actually switch accounts. You just have to enter your password.
 
@feersum then why do we have rootkits?
 
Yeah but can't it read your files, encrypt them, and hide itself in various programs without needing elevation?
 
8:53 PM
@feersum No.
 
Which ones can it not do?
 
0
Q: Non-palindromic numbers

Nathan MerrillA strictly non-palindromic number is a number that isn't a palindrome in any base (in bases 2 to N-2). These numbers are listed on OEIS For example, the number 19 in base 2,3,4,5,6,...17 is: 10011,201,103,34,31,...12. None of these representations is palindromic, so the number is strictly non-...

 
can't read restricted files
can't encrrpyt other user's files
 
The premise is a single-user machine.
 
@uoɥʇʎPʎzɐɹC Really? Because Microsoft has been saying, literally for years that you shouldn't logon to your computer as an administrator.
 
8:55 PM
@feersum Everything except read you files. Program data and files are high priority access. Look, I already said it's the exact same thing as running a root-only linux system. Your system files have no protection whatsoever.
 
@TimmyD nobody listens to that
 
@uoɥʇʎPʎzɐɹC That's not what you said. You said Microsoft didn't tell people.
 
@mınxomaτ That doesn't seem right, surely there are many programs that can write files without elevation?
 
@feersum Sure, but not to the SYSTEM files.
Is that so hard to understand?
 
With files I'm thinking e.g. encrypt all the files in the "Documents" folder for example.
 
8:58 PM
@feersum So? That's the users area. The system remains unaffected. A piece of malicious code can also encrypt all files in your linux /home. But it can't touch the rootfs.
E.g. delete your AV scanner, modify kernel drivers, brick your BIOS, whatever.
 
Microsoft, Apple, Symantec, RedHat, IT admins ... practically everyone knowledgeable about computer security says you shouldn't login with an administrative account. Yet people still do, primarily because they're lazy and they think "nothing bad will happen to me".
 
^
Exactly. And Windows is just about the only operating system doing this by default.
 
I think "If I run malware on my system, very bad things will happens to me whether or not I do the right admin thing."
And I'll want to reinstall the OS either way.
 
Good for you. But if you don't understand why Admin accounts are even a thing, I can't really explain the issue to you.
 
If I shared the computer with other users I would definitely find value in it.
 
9:01 PM
Configure your system correctly, and chaos will always be restrained to any single user. The system will remain unaffected.
 
@mınxomaτ Yes. I get why Microsoft does it. Still makes me sad.
 
@TimmyD Well, they could have communicated the UAC topic a bit better when it was first introduced tbh.
 
a major problem I find with admin accounts is knowing whether an app requiring elevation is even a valid request.
 
Well, that's what signing is for.
Checking the signing company, another thing no user does. That recently caused some big problems.
 
right, but there are lots of valid apps that don't sign
 
9:05 PM
@NathanMerrill same goes with *nix, just with sudo
 
@uoɥʇʎPʎzɐɹC yep
 
@uoɥʇʎPʎzɐɹC Except there are nifty tools to pre-screen a process. maybe for example. Also, unix apps usually comes as source.
 
unless you know the details of why an app needs administrative access, you either choose to not use it, or you allow access (which is no better than simply running administrator account)
 
@aditsu Did you leave off Unity on purpose? I mean, I get the hate for it somewhat, but it is the default on (one of?) the most popular home distro.
 
@Geobits haven't heard of it much :p
 
9:16 PM
o_O
 
thought it's some version of GNOME, maybe..
ah, a graphical shell for GNOME
 
do you people prefer multiple if statements or switch-case statement?
 
@aditsu Don't tell the gnome people that. It'll get them frothing at the mouth to think their beloved DE has been tainted this way :P
 
@drobilc dictionary<int, func>
 
@drobilc It depends
 
9:21 PM
@Geobits I was just quoting wikipedia
 
Ah, the scholarly route. Got it ;)
I generally prefer switch/case if there are more than a couple cases, but like Rainbolt said, it all depends.
 
Usually what happens is I will have an enum that I am switching on, and then I'll get another switch statement, and a third switch statement, and then I'll finally break down and swap it all out for polymorphism.
I don't think I ever switch on anything but enums
 
Of course, if you find yourself asking this on a golfing challenge, you should probably rethink the whole thing :P
 
if I'm parsing input, I'll do a String,Function dictionary
 
I found a switch statement that has strings, and I wish it used enums
 
9:27 PM
Yeah, I'm not big on string switches in general.
 
All the cat does is recognize unprotected networks...
 
And a dog would still be better at it.
Just like everything else.
 
I wouldn't really even call it hacking if the network had no password to begin with
 
I haven't had an answer to a challenge I posted and since I'm new to this I was hoping I could get some feedback here. The challenge was: codegolf.stackexchange.com/questions/90700/…. Is the spec to long/unclear? Is it too hard? or is it just not interesting? Thanks in advance.
 
9:35 PM
CMC: Write in this room a CMC which is not equivalent to this one.
 
Well the very first thing I noticed is that it's a whoooole lot of scrolling to take it all in.
Maybe if you shrunk the images down and had 2/3 next to each other it would look better in general?
 
@Geobits haha bad joke
 
CMC: Modify the BF self-interpreter to run Self-Modifying Brainfuck
 
@EᴀsᴛᴇʀʟʏIʀᴋ Uh.... yeah... that's it...
 
@ΛεγίωνΜάμμαλϠΨΠʹ CMC: Solve a random CMC that is this one.
 
9:41 PM
I guess if you count wanting to eat their owners' faces, then yeah, cats are better at that.
Or being surly and unresponsive.
Or not listening at all.
Ok, so I guess they are better at some things :P
 
@EᴀsᴛᴇʀʟʏIʀᴋ If I was given that CMC, then I would answer with this response.
 
@StevenH. that is a not so mini challenge
 
@RohanJhunjhunwala Consider it a Chat Mega Challenge
 
@StevenH. simple. add a self-interpret builtin
 
@ConorO'Brien the self-interpreter (aka the one written in BF to begin with), not any external interpreter
 
9:46 PM
@StevenH. Ah.
 
9:59 PM
@Dennis is there any plans for graphical output support on TIO (I only ask, because I am planning to add a few features for producing a graphical output, (perhaps a simple bitmap encoding output on stdout)?
 

« first day (2035 days earlier)      last day (2798 days later) »