« first day (2135 days earlier)      last day (2832 days later) » 

9:03 PM
@ByteCommander How's this :
>>> x=1
>>> while math.pow(1.5,x) <= 100 :
...      print int(math.pow(1.5,x))
...      x+=1
...
1
2
3
5
7
11
17
25
38
57
86
 
user136984
Right, but anyway, I think I am going to make a doctor's appointment about the possibility of me having worms from kissing too many pugs and being kissed back by too many of them at the same time... :D And now having a very odd increased hunger that doesn't seem to be stopped by actually eating food...
 
nah
@ByteCommander I'm gonna deal with percentages, so lets limit range from 1 to 100
 
@Serg Better, but I'd prefer base 1.35 :)
And max_brightness needs to be parsed from /sys/class...
 
@ByteCommander no need for that, we can use dbus to just deal with percentages
 
We can?
 
9:10 PM
yes
 
but I think operating on direct point values would be better...
 
yup, but it would require root power
and i don't want that
 
:-/
You might have a good argument there.
 
this is interesting but may take time to figure out
 
close as unclear and maybe bash this answer which seems not to fit askubuntu.com/q/806771/367990
So does dbus take integer or float percentages there @Serg?
 
9:17 PM
@ByteCommander integers only. I'll give you a function in a sec
 
Okay.
I wonder if those percentages will give me the precision I want in the lower range of brightness values.
 
@ByteCommander Here ,
@ThatBrazilianGuy yes you can
qdbus org.gnome.SettingsDaemon.Power /org/gnome/SettingsDaemon/Power org.gnome.SettingsDaemon.Power.Screen.SetPercentage $INT
 
thanks, testing
 
@ByteCommander problem with brightness is that a lot of things depend on graphics card. So , AMD for example gives me bigger steps, but intel has smaller steps. It's just really tricky topic
 
user136984
9:35 PM
Seriously, when are they going to make Firefox 48 available? It was released this morning...
 
$ cat bright.sh
#!/bin/bash

i=1
bri=1
while test $bri -lt 100 ; do
   i=$(bc <<< "$i+1")
   bri=$(bc <<< "1.35^$i/1")
   test $bri -gt 100 && bri=100
   qdbus org.gnome.SettingsDaemon.Power /org/gnome/SettingsDaemon/Power org.gnome.SettingsDaemon.Power.Screen.SetPercentage $bri
   sleep 2
done
$ ./bright.sh
1
2
3
4
6
8
11
14
20
27
36
49
66
90
100
@Serg Made this script to see the steps visualized, but they are not optimal yet...
We should design a formula that takes in how many steps we want to have and a value to make the curve more or less steep. But it always should correctly end at 100, rounding down to 100 if the value is bigger makes the last step look odd.
 
>>> x=1
>>> my_list = []
>>> while math.pow(1.25,x) <= 100:
...       val = int(math.pow(1.25,x))
...       if val not in my_list:
...          my_list.append(val)
...       x+=1
...
>>> print my_list
[1, 2, 3, 4, 5, 7, 9, 11, 14, 18, 22, 28, 35, 44, 55, 69, 86]
@ByteCommander look at this
 
what's with the numbers?
 
@Zacharee1 we're science'ing here
 
uh huh
 
9:43 PM
@Zacharee1 rocket launch codes. Don't tell anybody.
 
lol
 
@Serg Why u math.pow(1.25, x) instead of 1.25**x ?
 
@ByteCommander because I come from C background
 
9:45 PM
Stupid C.
 
also because i am no python expert , so shuddup everybody
@ByteCommander you did not just say that
takes out rocket launcher
 
Lol
 
changes launch codes quickly
 
Isn't a lot of Ubuntu written in C++?
 
sure it is.
 
9:46 PM
Yeah, Unity for example is C++ , I has ze sorze codez
 
so when you dis C you dis your favorite OS
 
C language is powerful because it's close to the hardware, but that does not mean it's syntactically beautiful.
 
Arduino is pretty
 
eh, all the languages have issues
 
Serg should make python script to launch brute force attack on this rocket launcher
Assembly language is becoming more popular now
 
9:48 PM
Btw, how many NSA agents are probably monitoring us now that we mentioned rocket launchers etc. 4 times? Any bets?
 
@ByteCommander let's see... 10000000
hai @NSA
 
Hey Uncle NSA officer! Nothing to worry here, we're just kidding :)
 
we ain't hackers at all
 
@ByteCommander many probably . I know people're recording my phone calls back to Ukraine, their recording system failed bunch of times , and played back the things my grandmother said back to me lol many times
 
9:50 PM
kid+ding
 
That can't be NSA though.
 
@Serg that's something called lag
I get that a lot with my phone in low service areas
 
Sounds more like [not sure which third world country to insert here]'s "secret" service...
 
@Zacharee1 It's not lag , when it plays back to me each sentence my grandmother said in the last 1.5 minutes
 
oh
that far back o_O
 
9:51 PM
Lol
 
And we all are on NSA watchlist anyway, because Linux
 
yep
 
so hax0r
 
1337
d0g3
 
gg linux
 
9:52 PM
1337 h4xx0r d0g3
wow
 
@Serg Maybe Ukrainian nuclear physicians have developed a time machine in a bunker below your grandma's house?
 
most definitely
 
why is my browser saying this page is not secure :O
 
@Serg can you help me with the script more (as in write it for me :P)?
@CodeX because it's HTTP
 
Or the Doctor was visiting her and the TARDIS caused some time interferences...
 
9:54 PM
@Zacharee1 no it is HTTPS
 
whoa, HTTPS
 
@ByteCommander Could be. Actually, as far as my hometown is concerned , they used to have lots of Manganese ore and mines there. In 2008 when i came back, i think all the radiation was affecting me so much, that i would get like 2 or 3 deja vu in my mind per day.
I was really WTF'ing for like a week and half there before i got used to it
 
Manganese is radioactive? o.O
 
@CodeX it's because SE hasn't fully moved over to supporting HTTPS. You can connect, but a lot of things are still HTTP
 
@Zacharee1 Sure, I can
 
9:54 PM
checking periodic table again...
 
@ByteCommander lol
 
@ByteCommander I don't know . . . probably not . . . But we also have electro station not too far from my town , it's like a few miles. By Denver's standard, not too far
 
anything can be radioactive...
 
@Zacharee1 yeah it sends mix content .. but still browser never shows website is not secure
 
There are no natural radioactive Mn isotopes.
 
9:56 PM
@CodeX because the connection is secure. There are just elements that aren't. Your browser only yells at you when the certificate is invalid
 
Two purely synthetic isotopes can be radioactive though.
 
@ByteCommander they MADE one
exactly :p
 
I guess the amount of NSA eyes on us just doubled now that we added radioactivity to our topics xD
 
@Zacharee1 nope something is wrong
 
no...
 
9:57 PM
@ByteCommander wait till we tart talking about tor and onion nodes
 
@ByteCommander what about radioactive launch codes? :D
 
*start
 
@Serg can I have those back?
 
THANKS SERG
now nsa is really coming
 
a code can hardly be radioactive as it's just a piece of information and not matter...
 
9:58 PM
@Zacharee1 onion nodes ? or onion rings ?
 
@ByteCommander you don't seem to pick up on sarcasm. Maybe you need a sarcometer
2
@Serg both would be nice
:p
 
@Zacharee1 Sorry, I only have a give-a-fuck-o-meter...
user image
2
 
sigh
@Serg scriptz? I'm going to ask a question about it, in case rep can entice you :p
 
@Zacharee1 give me path to servers folder and plugins folder again
 
Plugins is /home/Servers/PLUGINS/
 
10:01 PM
script ?
 
Servers plugins are under /home/Servers/<Servername>/public/plugins/
 
@Zacharee1 so we want to know which plugins are not there, and what else ?
 
That's it. I just need to know which plugins I have in the PLUGINS folder that aren't anywhere else
But I do have another script need if you want :p
 
Awww, I just got an invitation to the Summerbreeze festival starting at August 17, but I can't go... :´-(
 
what's that?
 
10:08 PM
2-3 more hours...
then I might get ot go home
 
 
@Zacharee1 that aren't anywhere else . . . . In other words, that plugin must be not found in any /home/Servers/<Servername>/public/plugins/ . Correct ?
 
yeah
 
What if /home/Servers/Blah/public/plugins/ has plugin_blah , but /home/Servers/Bleh/public/plugins/ doesn't have it ?
 
Ignore it.
 
10:10 PM
OK . . . so only find those that are missing
 
I do have a few more specific plugins in one server folder, but that's it
 
got it
 
yep
 
working on it
 
@Zacharee1 A German rock/metal festival from 17th-20th August summer-breeze.de/en/bands/index.html
 
10:11 PM
oh hmm
 
can someone fix my pi?
 
@ByteCommander ah
@TheXed get some blueberries
 
I prefer banana creme...or chocolate creme
 
A friend of me goes there with a bunch of others and now they have a ticket left as someone had to decline.
 
@CodeX I understand the logic, but I have never gotten the syntex right.
 
10:12 PM
@ByteCommander :/
 
This would be such a great opportunaty, but I can't...
 
@TheXed maybe because you spelled while wrong..like syntax ? :P
 
@CodeX wouldn't doubt it.
 
@Zacharee1 Why would anybody want more than 60 FPS?
 
@ByteCommander if they have a 144Hz monitor, but then Ubuntu would adjust.
 
10:15 PM
They could not see a difference anyway.
 
exactly
 
The human eye is able to differentiate about 10-20 pictures per second IIRC. Probably it was 12 or 14.
 
24
is what they decided was good enough to not see
 
Sure? Hmm... Close enough.
Maybe you're right.
 
Linux Users Reporting Windows 10 Anniversary Update Hoses Their Dual Boot Partitions hothardware.com/news/…
 
10:16 PM
@ByteCommander it's the original film framerate
 
@CodeX on the star wall already
 
7 hours ago, by Mateo
Haha: http://www.omgubuntu.co.uk/2016/08/windows-10-anniversary-update-delete-partitio‌​n
 
@ByteCommander oh I didn't see that ..mine worked fine
 
I just remembered that I was about to write an epic security answer again...
returning back to that...
 
10:18 PM
@ByteCommander tell when it's done so I can DV
 
Wait until tomorrow, I have all my points for today already collected
 
@ByteCommander exactly, DV
 
But you can remind me in 1h to go and watch Doctor Who.
 
user136984
Love this! :D
 
10:20 PM
@ByteCommander new episodes?!
 
I prefer the Trooper IIRC.
 
@Zacharee1 test me this
find /home/Servers -path "*/public/plugins/*"
 
TV reporter mistake GTA 4 cheat codes for secret military codes thenextweb.com/video/2016/08/03/gta-cheat-military-codes xD
 
dammit
 
@Serg doesn't match anything because it ends with /
 
10:21 PM
No, from 2013
 
@Zacharee1 i edited it
 
@Serg shall I pastebin?
 
Doctor Who 2005, Season 7, Episode 7: "The rings of Akathen" tv.com/shows/doctor-who-2005/the-rings-of-akhaten-2640436
 
@ByteCommander aww
 
@Zacharee1 yeah
 
10:22 PM
kk
 
I started with the new season 5 with Matt Smith as 11th Doctor.
 
Mr Robot 2016 Season 2 Episode 4 http:// no links . com
 
@Serg how do I save output to a file? >> file.txt?
 
@Zacharee1 single >
 
10:27 PM
Back to the future...
 
@Serg had a little trouble copying from PuTTY pastebin.com/aAW7RebX
@ByteCommander lol
 
Or the Doctor visited again.
 
hohoho
 
No, that was Santa.
 
sigh
bowties are cool
 
user136984
10:29 PM
This is a fun song:
 
@Zacharee1 so each folder is a plugin ?
 
no
some plugins create folders for config and such
only the .jar files are plugins
 
ah . . . sense makes it
 
user136984
Anyway, goodnight! :)
 
@ParanoidPanda that's how you say goodnight?
 
Hmm... The more I think about it, the more this answer is going to be a lazy one instead of an epic one... :-/
 
@ByteCommander that'll get the most points and you know it
 
shrug
 
10:43 PM
Czech it out
 
@Zacharee1 Speaking of bowties... askubuntu.com/q/806811/367990
 
@Serg I think it's missing something. All plugins came back not found
Except the ones that don't exist anywhere
so it's like it's reversed
yeah it looks like you made it return ones that are on the ACTIVE list
 
@Zacharee1 Oo, wait.....i know .....it needs basename
it is searching for full path
duuuuh
 
ah
:p
 
try now
 
10:55 PM
evening!
 
> Error 404: /home/Servers/PLUGINS/Advanded_Portals.jar was not found anywhere !
Error 404: /home/Servers/PLUGINS/CompassNavigator.jar was not found anywhere !
Error 404: /home/Servers/PLUGINS/CustomJoinItems.jar was not found anywhere !
Error 404: /home/Servers/PLUGINS/DoubleJumps.jar was not found anywhere !
Error 404: /home/Servers/PLUGINS/ForceSpawn.jar was not found anywhere !
Error 404: /home/Servers/PLUGINS/LightAPI.jar was not found anywhere !
Error 404: /home/Servers/PLUGINS/LightSource.jar was not found anywhere !
yay!
hmm
Advanced_Portals exists though
 
@Zacharee1 exists where ? which server ?
 
Main
 
hmmm, true
what about others ?
 
they don't seem to
Does it have something to do with the underscore maybe?
 
11:02 PM
@Zacharee1 are both plugin and the symlink spelled properly ?
( no offence )
 
aha
 
do I need to set up "make" to recognize .c files and compile them with gcc?
 
The original is Advanded lol
that was it :p
 
Well, there you go, Zach ! In addition to help you figure out your plugins thingy, i also fixed spelling . . . .that was a good day
 
I mean, I'm following a tutorial @Serg recommended, and he uses 'make' to compile, but running make with a ex1.c file returns
*make: *** No rule to make target 'ex1'. Stop.*
 
11:04 PM
@Serg lol
 
oh, I think I found a question here
 
@IanC I think make wants makefile script to exist in same folder
 
@Serg zach is annoying amirite
 
Well it seems to work now. Should I ask a question on SO?
@edwinksl oi m8
 
:)
 
11:04 PM
@Serg it's because in the tutorial it works without a makefile, thought it would work here too
 
@Zacharee1 no need to ask the question , consider it my way of repaying you for making all those icons for me in the past :)
 
:D
would another script be in for future icons? :p
 
Since I've learned to make app indicators, probably in the future there will be more icon requests, so that's a yes
 
yay
this idea is a bit more complex though
since some of these plugins have version numbers in the name (and I keep forgetting to take them out), it causes an issue when I update them
I usually end up renaming them to the old version, but that's not a very good method
 
@Serg My bad! I just made a typo, 'make' recognized the c file and compiled it
 
11:09 PM
Is it possible to, when I copy plugin_x.x.jar into the PLUGINS folder then run the script, have it see if there are matching names, then delete the older file and symlinks and symlink the newer file to where the deleted symlinks were?
For instance Viaversion
the file names are always Viaversion_x.y.z.jar
x.y.x being the version
 
Um . . . .probably possible . . . .
 
So a script that checks to see if there's, say, a Viaversion_0.9.4.jar and a Viaversion 0.9.5.jar, then delete the file that was created earlier (0.9.4), search for its symlinks (they'll have the same name), delete them, then symlink the newer file (0.9.5) to where the 0.9.4 symlinks were.
Pretty complex, at least to me :p
If you don't want to do it, I can keep renaming and stuff
 
@Zacharee1 i would do it like this : save the new file in some other folder first. Then run script that will delete old plugin in /home/Servers/PLUGINS . . . . , once that done - shove the new plugin into that directory. As for symlinks , it's probably a simple for loop over each script directory
over each *server directory
 
OK
 
my brain goes derp
 
11:14 PM
lol
That makes more sense :p
 
/home/Servers/BungeeCord/public/plugins/SpongePls/config.yml/home/Servers/Main/public/plugins/Original-Double-Jump.jar
 
This one could be an issuse . . .it' in subdirectories, not in /public/plugins/ folder
 
the config?
That's not one path there
yml is YAML, a file format
 
Okay, Doctor Who time. Then completing the answer, then going to bed.
BBL
 
11:30 PM
@Zacharee1 so is it OK , if I only deal with /public/plugins/ folder on all servers ?
Also . . . is OP here stooped ? stackoverflow.com/q/12897374/3701431
He says his code didn't work, but exactly the same syntax works for me
 
@Serg the only plugins I care about are the ones under /public/plugins
Like I said before, that path you have above is glitched or something
because config.yml is a file not a folder
 
@Serg, you know why sometimes the last decimal of a float can be unnacurate on C? Like, I multiplied an 'int' (100) with a 'double' (1.2) and my result, stored on a 'double' was (120.000008)
 
@Zacharee1 nvm, i copy pasted your pastebin twice, last and first line got joined
@IanC that's not inaccurate, that's the small problems with how computers work
If you know how IEEE 754 floating point standard works, you know that not all values are properly represented
 
I'll look the standard up, but just so I sort something out, will the representation be the same on 2 different computers?
because in the example output, it seems to be all 0's, guess it would be mentioned if it showed an different last digit
 
Hmmm , likely yes. All Arithmetic-Logic units on CPUs must conform to that standard . . . or at least that's what i know . . . maybe in reality different computer companies do it differently
@IanC basically IEEE-745 stores everything in 32 or 16 bit long registers. First bit is sign bit, next 8 bits are power, and the rest is fraction , like 0.1234 . Computer always adds 1 to that fraction. So it really is 1.1234 * 2^power
Play with this guy
Oh, and the power thingy is really weird
so , if you have 0000 0010 , it is 2^(-125) . . . why? because we have in binary 0000 00010 is 2 , and that's 2-127 I think . . .
 
11:49 PM
@Serg That's from 2012 though. Maybe something changed?
 
@Serg Nice! That's definitely not how I imagined floats were stored
 
@Zacharee1 Like what ?
@IanC if you play enough with that thing, you can see that some values are reported different from what calculation should be. Especially for small values . So yeah, floats are a peculiar subject
 

« first day (2135 days earlier)      last day (2832 days later) »