« first day (2086 days earlier)      last day (3098 days later) » 

13:00
and then call those with if else?
you want to set the alert anyways so no if needed :-)
I'm trying to display this in an HTML div, not in a JS alert
I'd use a tenary
13:01
?
html = (status == 0 ) ? "<img alertred.png>" : "<img alertgreen.png>";
Do I replace html with my div id?
you change the innerHTML of the div id yes
or add to it.
13:03
But right now I'm still having issues with the numplayers thing
I have this:
                                            var d = JSON.stringify(data);
                                            var t = JSON.parse(d);
                                            document.getElementById('data1').innerHTML = t[numplayers];
but it shows nothing on the page
(in the data1 div)
maybe wrap numplayers in "quotes"?
undefined o_O
like t['numplayers'];?
Then maybe try console.log(t) and show us the output
13:05
hang on
console.log works fine
chances are, there's no numplayers key
I used backticks
there is
scroll up a bit
@Zacharee1 NO single quotes!
@Rinzwind I did it by accident :p
or doubles
13:06
Try t[0]["numplayers"]
@Zacharee1 they one I used worked for me ;-)
@grooveplex blank
blegh
Anonymous
@Mateo is that media converter site legit?
@Rinzwind I have to parse dynamically though, because that output will change
Do I need to stringify data, then parse it then display it I think?
I would do l['query']['numplayers'] if l held the output of json.loads(t)
in Python
13:10
lson.loads now?
Maybe that helps
this is JS
I know
idk how to convert :p
But maybe, try t["query"]["numplayers"]
Maybe it works?
13:11
I could try
This is it
hey hey hey
I got 0
It's working for me
woohooo
I got to go now
If there's something you want me to see, pleae @mention me
13:12
kk
I shall
now I just need to make sure that 0 can change :p
@onebree who knows, was the first result...
Just don't do the ones that request email or any info
it changes!
@Rinzwind is there a way I can make this script refresh itself every few seconds?
@Zacharee1 Sure. easiest is to reload the page(?)
I mean automatically
I suppose it could still inject somecode int the mp3 ;p
13:14
otherwise you need to crate a "timeout"
hao
put setTimeout() around the function?
Yes
Well
Doesn't like it
Putting it around this:
                                        jQuery.ajax({
                                            url: "https://xpw1.no-ip.org:8443/server",
                                            type: "GET",
                                            headers: {
                                            "X-Access-Server": "ab0a58a5-0be6-4501-9596-c1c9784a356f",
                                            "X-Access-Token": "8f22b1f6-d197-4fc1-8e60-decd6c89c74a",
                                            },
oh no wait
SetInterval is what you need
@Zacharee1
yeah
OK so I need to wrap that in another function
13:20
yep
then make setInterval run that
I like the way you're thinking
Maybe like this
ugh
I did it ! :D
oh
I think you might also like jsonprettyprint.com
heheh
I put the code in a function and then referred to the function with setInterval
I might
13:23
That's a way to do it
Now I need to get the rest of the data to display as well
well the data that I want
Then I need to format it :p
I can help you
uh oh
the players elements looks like another array
eh, I'll get to it eventually
Here's the JSON you sent us, pretty printed: gist.github.com/anonymous/51071a558cb773d908277b0f8426c71a
13:28
That's way easier ^^
What kind of data will the players key hold?
Names
so strings
Are you sure you want that to display on your site?
But okay
I think a for loop could help you with that one
well it's in with the setInterval stuff
hang on though
What about we move to our own room>
13:29
Does anybody know why Microsoft SNDS blocks every new IP adres I buy?
@blade19899 they hate you
@Zacharee1 I already know that; still, how can I keep myself from SNDS?
@Zacharee1 be careful with those :)
@Rinzwind well we're doing setInterval now
13:48
> Why is my IP blocked or mail not delivered?
That ^ section
@BharadwajRaju Thanks, reading through everything!
14:04
0
Q: Login Error Phpvirtualbox

Felipe ValimGood morning people. When trying to login in phpvirtualbox returns me the message below. Could not connect to host (http://127.0.0.1:18083/) When I click on details appears as follows: Exception Object ( [message:protected] => Could not connect to host (http://127.0.0.1:18083/) [string:Except...

@ThomasW. I think I need your help with security now
newbie detected
I really should print this out and pin it on my wall:
user image
2
@Rinzwind me?
@Zacharee1 He means that meta question, probably
14:18
ohhh
because I am too ;p
22 hours ago, by Serg
@Zacharee1 roses are red, violets are blue, i am a n00b, but so are you
@Zacharee1 how so?
@ThomasW. I now have an API key on my website
it gives access to file deletion
dunno how to hide it or anything
Well I need to go for maybe 20 mins
14:34
@Zacharee1 Nothing I can really suggest on improvement
the question is whether the requestor reaching in has to provide said API key
and if so, then you're limited on options
short of just shutting the port to only IPs you trust
Close/delete this Q, OP asked the same 3 hours earlier and does not really react on the comments requesting information. askubuntu.com/q/787316/367990
Done
That OP... Reverted Arronical's edits and replaces ' (quote) with ` (backtick), resulting in a hideous appearance
Why would anyone actively revert a good edit?
Maybe he can't accept critic and perceives this edit as that?
sigh
When asked for info:
> Is that all I can get from you???
Too many people seem to think we read minds
14:48
One little error message from the software centre and this guy is already opening terminals and ttys and running commands.
2016 will not be the year of the linux desktop :\
We need to abstract away
In every case where a GUI error needs Terminal info, apps should have some sort of 'More details' button that basically shows the output of commands that provide said info
Basically the same thing happens, except users don't need to see the Terminal or enter any command
Update manager does this
@BharadwajRaju no
@Zacharee1 no
Gives you the whole terminal if you want to
@Zacharee1 this one
3
A: help understanding sudo -s

Rinzwind What does the root and # mean in the second command line tag? It means you edit the system as "root". That is 1 more level up than from "sudo" and 1 more up from your normal users activities ... what does this mode allow you to do ... and (almost) all permissions checks are neglected...

14:52
Yes, something like that
@Rinzwind why no?
Expecting to run a full Linux system without ever seeing a terminal seems impossible to me. I think you will need to sacrifice some features and customizability as OSX does and as Ubuntu seems to be going for. At what point down that rabbit hole does it stop being Linux though?
@BharadwajRaju no as in the "newbie detected" see the link ;-)
@StefanoPalazzo Me?
@terdon not true
@ByteCommander yes :)
well no, the guy you responded to
14:53
What would you advise instead?
This might be a good thing and is probably necessary if Linux is to become the default Desktop OS, but I've never understood why that is even a target.
You can run terminals and stuff. That's fine.
@terdon mu mother users Ubuntu and does not need a terminal ;-)
@Rinzwind I said full, as in taking full advantage of what the system offers.
@terdon and here i disagree
14:54
@ByteCommander don't know. It was just frustration talking I guess.
@Rinzwind Sure. And I convinced my ex to as well. I still had to tweak it for her every now and then.
the terminal is NOT a problem. It is the biggest asset we have
@terdon The terminal is never going away. But we can minimize it's need for beginners, still keeping it's power for advanced users
@Rinzwind Exactly.
we need a big ass company
14:54
Why?
commericials on TV and radio
Why should Linux aim to become the standard Desktop OS?
@Rinzwind yeah, with a super rich sponsor, and the cream of the open source community working for them
maybe an astronaut.
14:55
when there is an MS or apple advert on tv instantly have one following with Linux
Not to forget, it's the first African in space.
@ByteCommander Who?
Mark Shuttleworth
good q. I don't think we should or have to ;-)
all we need is a sane model. not even needs to be about money
14:56
The super rich sponsor astronaut behind Ubuntu.
-- Ubuntu founder
@ThomasW. The key needs to be provided, but it's on the site in plain text as part of a JQuery function.
@StefanoPalazzo he aint rich enough
@BharadwajRaju Oh. Hadn't realized he'd been to space.
14:56
Well maybe a company then
Like IBM
redhat and suse are also not big enough
@Rinzwind Yup. It just doesn't make sense to aim for desktop dominance. Frankly, I think it would be a bad idea to achieve it anyway.
Oracle, amirite? :D
and IBM is just a patent troll :X
@Rinzwind No? So you suggest selling it to Bill <Billyboy> Gates? I guess there's more money... :-/
14:57
@ByteCommander there are more
Elon Musk
Never heard.
Elon Musk might be a great sponsor
@ByteCommander space-x? Tesla?
14:58
Linux and GNU are absolutely wonderful, cutting edge, polished, and just work.
Jack Ma?
alibaba?
It's just that silly desktop thing that's broken
GNOME's desktop is simple and polished
@jokerdino he spent gazillions helping others :X
14:59
Though they seem too fond of feature removal
But... but this is the year of the Linux desktop.
As was 2015, 2014, 2013...
well
I like it how it is now
I like how it is.
15:01
Me too
Let's all switch to BSD.
Only (usable) OS that allows such freedom
@StefanoPalazzo Exactly!
BBL
operation dustcloud starts NOW
Case cleaning day?
15:03
:D
Years ago I turned up to the Ubuntu Developer Summit with a MacBook :)
Getting kinda dated, but still worth a read:
You either are very fastidious concerning the hygiene inside your machines, or you produce significantly above-average amounts of dust...
First because my employer gave it to me, but also to make them think :P
@terdon That is a great book.
15:05
@BharadwajRaju Yup. Well, hardly a book, it's an essay.
> "Can't you see that everyone is buying station wagons?"
This describes us:
> Bullhorn: "But if you accept one of our free tanks we will send volunteers to your house to fix it for free while you sleep!"
> Imagine a crossroads where four competing auto dealerships are situated. One of them (Microsoft) is much, much bigger than the others. It started out years ago selling three-speed bicycles (MS-DOS); these were not perfect, but they worked, and when they broke you could easily fix them.

There was a competing bicycle dealership next door (Apple) that one day began selling motorized vehicles--expensive but attractively styled cars with their innards hermetically sealed, so that how they worked was something of a mystery.
That's the best bit :)
Agreed.
> volunteers to your house
That's the AU community
@Zacharee1 And that's visible on the source of the page?
yeah
I don't have it uploaded yet, so it isn't public, but it will be once I do (of course :p)
15:11
Hello and good afternoon ! :)
@cl-netbox morning for 49 more mins here ;p
@Zacharee1 so : good morning to you ! :)
And it's night here (8:41 PM)
@BharadwajRaju so : good evening (night) to you ! :)
15:12
What we need to wish is "Good time" instead of "Good <morning|afternoon|evening|night>"
@BharadwajRaju we could make an if statement with a prompt
@BharadwajRaju In UGT (Universal Greeting Time), it's always morning when you enter and evening/night when you leave.
From one of my projects
15:15
@ThomasW. annoying ping
@Zacharee1 why?
user139252
@Zacharee1 Alright, what do I need to do to my MC server before using curl on your script?
@TheBrownOne you need to do the curl first, then move your server
@jokerdino wasn't sure if he got my reply to him since I didn't use a ping
I see.
@TheBrownOne I'll tell you what to do. Are you ready to run the script?
@jokerdino not the best choice of words, sorry
15:21
@Zacharee1 Then you need a different way to do it
or lock out access to the page entirely
is there?
i'm not a web developer
go ask one
user139252
@Zacharee1 Wait, move it? Move it where?
@TheBrownOne When I create a server from the panel on the node (Scales instance) you set up with the script, it'll create a pp-serverna-randomchars folder under /home/. You need to put the server stuff under /home/pp-*-*/public/
user139252
Or, y'know, make a symlink
user139252
15:23
Save my SSD some write cycles.
@TheBrownOne that too
You'll have to symlink the public folder though, not the pp- one
unless you mirror the structure
@TheBrownOne run this:
sudo bash -c 'source <(curl -sSLk x-p-w.tk/auth/remote/deploy/…;
Hi @jokerdino ! :)
it doesn't matter if people see it; they don't have your hostname ;p
@jokerdino Can you please delete askubuntu.com/questions/719901/… ? :)
user139252
15:26
/dev/fd/63: line 1: !DOCTYPE: No such file or directory
: No such file or directory
/dev/fd/63: line 3: Phantom: command not found
/dev/fd/63: line 4: html5up.net: command not found
/dev/fd/63: line 4: $'@ajlkn\r': command not found
/dev/fd/63: line 5: syntax error near unexpected token `('
/dev/fd/63: line 5: `   Free for personal and commercial use under the CCA 3.0 l'cense (html5up.net/license)
@cl-netbox done
user139252
I think something is a little broken.
@jokerdino Thank you very much ! :)
The curl returns the x-p-w.tk homepage in html
I know because I tried it :) (Curiosity)
15:28
@TheBrownOne uhhh
oh
sudo bash -c 'source <(curl -sSLk pp.x-p-w.tk/auth/remote/deploy/…;
Try that @TheBrownOne
you'll have to edit the config
Yeah that gives a bash script
user139252
What are you installing on my precious little Lubuntu box? D=
a nodejs instance with npm
it's the server control backend
Just to be safe run curl -sSLk http://pp.x-p-w.tk/auth/remote/deploy/c4e93a6b-6dfd-4d8e-93ca-b7d170461887 and inspect output
Ubuntu is officially pasing out the old comercial store (paid deb's)
15:33
In favor of paid snaps? :P
user139252
@Zacharee1 Alright, ran the script, says scales has started
OK
cd /srv/scales
and sudo ./scales stop
user139252
Changed the ports in the config
@BharadwajRaju yep :)
OK. You also need to change the URL to pp.x-p-w.tk @TheBrownOne
As in, put pp. before it
user139252
15:35
done
I guess anyone that tried the store will see an email
user139252
Both URLs, right?
@TheBrownOne yep
don't see a site post yet
now, ./scales start
user139252
15:36
scales has started
I sees it
Now I'm going to make a new server
How much RAM should I allow?
user139252
This box has 4GB, but my start.sh for spigot is only configured to use 1
> In order to make it a good and consistent experience for users
and developers, we will be phasing out the existing commercial
Ubuntu Software Center store (which uses debs). The main Ubuntu
archives will of course continue to work, but commercial apps
should all be delivered as snaps.
@TheBrownOne I'll do 1GB for now then
Spigot 1.9.4? @TheBrownOne
user139252
Yessir.
15:38
kk
@TheBrownOne OK, look for a pp-stem-* folder under /home
look at the directory structure and then do your symlinking
user139252
It's there
Server files need to be under public/
user139252
Alright, do I need to rename my .jar file to server.jar?
no
I made the exec spigot-1.9.4.jar
user139252
Alright
user139252
15:42
Link is made, then
starting
Lots of errors. Do you have perms set?
user139252
Sorry, link was owned by root
user139252
Should be good now
target files need to have access too
OK it looks like it's working
user139252
Should all be owned the right user, now.
user139252
15:47
So, now what?
it started
Can't seem to connect
you have 25565 forwarded?
user139252
I should...
user139252
Oh wait, do I need to start my server?
no I did
Minecraft?
15:48
you manage it from the server manager now
@jokerdino yesh
user139252
What hostname are you connecting with?
@TheBrownOne the node one: mc.browntech.space
user139252
Let me switch from my AWS tunnel to my home tunnel
user139252
Yeah, it's forwarded...
0
Q: Force login through ssh only

frarugi87I have a small problem. I have two accounts on a PC. One is used for "normal" operations, usually through the graphical interface, the other is only used for remote management (upload files through sftp, execute through ssh) Now, I'd like to disable the local login for the second account and all...

user139252
15:50
Let me see if it's an iptables issue
user139252
@Zacharee1 try again?
still refusing
user139252
I just did the worst thing ever and iptables -I INPUT -j ACCEPT
user139252
Should work.
nein
might be something here
oh
what's the local IP?
user139252
15:54
For my MC server?
user139252
192.168.2.99
user139252
Did that work?
There's something wrong with the panel or Scales
can you restart Scales?
user139252
Done.
15:58
Something's screwed up
user139252
I'll change things around with my ports, make it match what your config said

« first day (2086 days earlier)      last day (3098 days later) »