« first day (2118 days earlier)      last day (2850 days later) » 

12:01 AM
 
yuck
 
I'm back again
 
lervleh
@Seth did you see my message?
 
@Zacharee1 not sure I'd pay money for one with that problem, but I will think about it.
 
I'm trying to fix it, but I can understand that :p
 
12:02 AM
I am definitely at least interested.
@Zacharee1 no luck finding the other one, eh?
 
nope :/
 
hi @Seth how much do you know about app indicators ?
@ByteCommander would it be acceptable to keep the text label but have red and green icon ( for when any key is locked and none locked )?
 
@Serg some, why?
 
@Seth I made Lock keys indicator for ByteCommander, and I am trying to figure out a way how to make it nicer as per his requests
 
Do you have specifics?
 
12:12 AM
So I have 3 keys , Caps-Num-Scroll. I need to figure out how to make indicator icon reflect their state change. Right now I am just using label change. But indicator only uses one icon, right ? I need to find a way to somehow have 3 icons (each reflecting 2 different states)
On/ off state , obviously
4
A: Keyboard LED panel indicator for Unity Desktop

SergIntroduction The python application bellow parses output of xset q to get status of Caps , Num ,and Scroll Lock keys ( in that specific order ). Usage is fairly simple: python lock_keys_status.py To make it start on every login into Unity , please consult this post: How do I start applic...

That's what i have right now, by the way
 
12:32 AM
@ByteCommander would this be good ? ^
I can also make only those keys that are locked appear as label
 
40% restored
so slow
 
Text appears and displays only when specific keys are set
 
so what am I meant to make?
 
@Zacharee1 I wanted you to make red and green circles , two for each letter C , N, and S
 
I don't understand
 
12:40 AM
problem is that i don't know how to make them into one and display all 3 on indicator
 
ohh
I see
So you need 6 separate images
or whatever the combo is
 
Yeah. Kind of like traffic light
 
8?
idk. I'll make some circles and count ;P
 
well . . .issue is that i can only manipulate one icon at a time
 
Well I can make images of the three side by side with different combos
or layers of that works for you
 
12:42 AM
3 side by side would be great
 
What ratio should I aim for?
 
Dev
Sup
 
That would be 8 images by the way
 
21:9? 27:9?
 
2^3
 
12:43 AM
yeah
I figured
whoops
 
1:09 AM
OK @Serg I have a GIMP project file I can send you. Or I could send you separate images
 
separate would be better
 
kk
lemme just merge these layers
Should I just upload these to an Imgur album?
wow the Imgur beta looks great
 
i guess that will do for now
 
well then
I could make a GIF. Can't you specify which frame to use with those?
 
1:28 AM
frick frack
 
wut
yes
oops
 
turning simple script into an app is pain in tha a$$
ok , it wasn't that simple actually
@Zacharee1 I'm gonna keep it simple for now. Once I know if Byte likes what I have right now, I'll let you know
 
kk
 
DICH !!!
how do I tell python to use icons from curent working dir ?
 
./?
or nothing at all?
 
1:37 AM
@Serg os.getcwd()?
 
Yup, exactly right @Seth Thank you
 
np
 
label_text = self.key_status() How is this invalid syntax ?
$ python __init__.py
Traceback (most recent call last):
  File "__init__.py", line 29, in <module>
    import lock_keys_status
  File "/home/xieerqi/GIT_REPOS/lks-indicator/lock_keys_status.py", line 90
    label_text = self.key_status()
             ^
SyntaxError: invalid syntax
 
are you sure self is actually an object here?
 
Wow, this new build of CM sure is fast so far
 
1:42 AM
also check a few lines before line 29
 
well, that function is defined within the class . . .
 
maybe you missed a paren
 
tsk tsk
 
i don't see any missed parenthesis
 
what if you missed them all and that's the problem?
ooooh
 
1:44 AM
    def key_status(self):
        label = ""
        status = []
        keys = { '3':'C', '7':'N', '11':'S' }

        for line in self.run_cmd( ['xset','q'] ).split("\n") :
            if "Caps Lock:" in line:
                status = line.split()

        for index in 3,7,11:
            if status[index] == "on" :
               label = label + " [" +  keys[ str(index)  ] + "] "
            #else:
            #   label = label + keys[ str(index) ]

        return label
nothing missed there ?
 
they all look matching
 
is that all directly before line 29?
 
That's nowhere close to line 29 , def key_status starts on line 68
29 is import
import appindicator
oops
 
sorry, misread the error.
I guess line 90 is the important one.
What is right before that?
 
nope, it is import lock_keys_status
yup
missed paren
OK, time to git-pushit
 
1:49 AM
;)
 
TADA !!!
My lock-keys-status indicator now has official github repo
 
yayz
 
and "professionally" done , with __init__.py and stuff
 
lol
 
So , who'se idea was to make _ _ markup for bold ???
 
1:52 AM
markdown's
 
Mark Down ? OK , I'm gonna find him and punch his card 10 times !
 
-_-
 
O_O
 
._.
 
#_#
 
1:56 AM
I wonder if i can submit it into Ubantu Software centor
 
no pls
 
why ?
 
too much power
serginess is over 9000
 
with much power comes great current squared times resistance
 
agh
 
1:58 AM
LMFAO
 
@Serg is channeling @KazWolfe
 
serg plz
 
welcome
 
serg zacharee and kazwolfe should do a talk show
i will pay to watch
 
we would be banned
tv stations can't handle us
@ByteCommander my indicator has been moved to its own repo github.com/SergKolo/lks-indicator Now it does the same thing I showed in earlier images. Green icon when nothing is on, Red when something is on , and label appended indicating what keys are on
Answer updated , too
Yey
 
2:16 AM
What do you want from me?
 
yOUr sOuL
 
If you can find it, you can have it.
 
noice
 
@KazWolfe may I interezt you in my brand new caps-num-scroll lock indicator for unity ?
( pushing my mixtapes , ye know)
 
2:18 AM
@Serg what, why, and is is available on windows?
 
now he's just going to be using capslock all the time
 
And why can't i just look at my keyboard
 
@KazWolfe there's only Ubutuna , no Windoz
because . . . that way your eyes can always be glued to your screen
 
@KazWolfe a lot of keyboards don't have indicators. My laptop doesn't have one for scroll lock for some reason
 
^ that
 
2:20 AM
what is scroll lock actually used for...?
i mean, really
 
Can't remember
 
em . . . page scrolling ?
 
> When the Scroll Lock mode was on, the arrow keys would scroll the contents of a text window instead of moving the cursor. In this usage, Scroll Lock is a toggling lock key like Num Lock or Caps Lock, which have a state that persists after the key is released.
 
i have never seen it work
INTERNET WAI U DIE
 
cause you turned off scroll lock
 
 
2 hours later…
3:53 AM
slept..for 6 hours...
feel...drowsy
 
Earned bronze unity tag badge
2
 
4:10 AM
@Serg got mate?
superuser.com/questions/1101747/… might be a bit of easy SU rep
 
no mate, but i can install it in vm if necessary
 
4:36 AM
@Rinzwind have a minute for python question ?
 
4:47 AM
helo
 
NVM , I fixed it
 
yay a gameboy emulator works!
dammit game over
@Serg what did you fix?
 
@Edity My program had quit button broken :p So it wouldn't quit
 
:P
if that was public. it would be like a trolling app.
 
It is public actually
 
4:57 AM
:O
 
An app that lets you know if you have Caps lock, Num lock, or Scroll lock on
 
can i edit your readme.text
 
@Edity what would you like to add there ?
 
some instructions
 
O_o
OK
Just don't troll me ;p
 
4:58 AM
:p i wont
let boomytechy commit
@Serg ^
 
@Edity have you submitted your commit yet ?
 
you’re editing a file in a project you don’t have write access to. We’ve created a fork of this project for you to commit your proposed changes to. Submitting a change to this file will write it to a new branch in your fork, so you can send a pull request.
 
@Edity just send a pull request to me
 
k
this might take a while
 
OK, just lemme know once you're done
 
5:08 AM
k
@Serg doneeee
instructions might not be 100% correct
 
+Displays a light indicator if you have the SHIFT, CAPS lock on.
lol, nope. Only works for Caps, Num, or Scroll lock
 
oh
can you accept then edit?
 
Sure
 
and gimme write permission!?!
ah github desktop
 
Hold on
 
5:24 AM
ok
 
@Edity what is linguist ?
 
oh
just remove linguist
:P
imma try it in ubuntu
 
5:41 AM
horrible mistake @Serg
its qt!
E: Unsupported file /home/boomytechy/lks-indicator given on commandline
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
???
 
O_o what did you do ?
 
i tried to use apt-get
im such a noob Xd
 
Geez, I edited my README.md and then messed it up again. I need to redo stuff
 
@Serg sorry for causing havoc.
 
5:59 AM
Nah, you're ok. I just messed up by using mv instead of co command
 
oh
 
6:13 AM
OK, pushed edited README.md to git
 
nice
 
@Serg so professional xD
 
Yesh , trying to hide the fact that I haz no idea what i am doing
 
6:38 AM
I am on page 10 out of my 36 pages of all the answers, and like 2-upvote posts are going forever and ever and ever. Horrible ! I need more highly-upgoated answers. Needz more qualitaz
 
:P
 
@BharadwajRaju just a question, why did you delete __init__.py ?
 
KERNEL PANIC^
 
@Serg Because just running lock_keys_status.py runs the indicator just fine.
 
@BharadwajRaju That's true, though I was following example from classic menu indicator , which did have the init file. OK , I'm gonna merge your pull request, but I will need to ask around whether or not that file is needed. Also , the copyright symbol probably was unnecessary , but it's a nice touch - i like it ;)
@BharadwajRaju also , why delete readme.md stuff ? I thought it's purpose is exactly for providing all the info
 
6:55 AM
I didn't delete README.md
If you're talking about the information, that was simply added after I forked :)
 
Oh, makes sense. I'll need to edit it then
 
I could probably edit it myself.
 
:P
 
@BharadwajRaju thumbs-up to your PR
 
Well, I'm working on it already
 
6:58 AM
@Serg i feel bad for you
 
:D No need to, it's fun !
DAMN YOU GIT
$ git checkout master
README.md: needs merge
error: you need to resolve your current index first
 
Try git mergetool
Or even git gui
 
funniest thing is that the instructions that are given on github dont work
 
git gud
 
$ git gud
git: 'gud' is not a git command. See 'git --help'.
i should alias it...
 
YAY, conflicts resolved
 
@BharadwajRaju i never knew i needed it until i saw it
 
@BharadwajRaju had to lol at that, very star-worthy.
@BharadwajRaju check out the page github.com/SergKolo/lks-indicator Added you on the list
 
that 8-space indentation...
 
7:18 AM
... is GitHub viewer's default
I prefer 4-width hard tabs
 
-___- well then . . . I could have left if off probably
I'm doing 4 space indent in python. Just my preference
Trying to fit code within 80 char standard
 
For Python it's 79 (i.e. last character should be at 79 rather than 80)
 
pep 8 says 4 spaces
anything not 4 = treason against bdfl
 
The spaces vs. tabs argument of PEP 8 is rather silly
Tabs adapt to each dev's environment
 
how many people use spaces vs tabs?
i am firmly in the spaces camp but i am curious about the dark side
 
7:21 AM
Spaces here , but I used to use tabs when i just started
Welp , I'm gonna add that project to my LinkedIn and call it a day
 
I use tabs because:
1. They reduce file size
2. They can be set to preference
3. I can jump tabs as a single character in my editor (i.e. Arrow 4 times vs. 1 time)
@Serg Why not just link to the GitHub profile?
 
Makes me look like I do more stuff than I actually do XD
 
Your sergrep alone could be split into 20 different projects
 
for the lock-keys... would you like to steal the MATE icons rather than making new icons?
 
Actually, I was thinking of that @BharadwajRaju I consider taking some of my scripits there and putting them all into one project
@Zanna I . . . made two icons . . . green and red . . . For now I'll just keep it like that.
 
7:25 AM
nice :)
 
Because I am not smart enough to make dynamic icons for 3 different things, which comes down to like 8 combos
 
burp
dinner went down my penummy. :)
 
@Zanna by the way, the project is on its own git repo now github.com/SergKolo/lks-indicator
3
With BharadwajRaju's contribution, it's now PEP 8 compliant AND has nice gif demo
 
@Serg Did you try looking in /usr/share/icons?
 
@Serg next step: ubuntu software!
 
7:28 AM
I can make a deb if you like
 
@Serg cool, I'll watch :) when I found the icons i thought there will be a lot of if and then and else with all these...
 
I'll avoid /usr/share/icons/ and just provide user with those two. I mean, it's not like i am supplying them gigabytes of data, right ?
 
woah woah we going all the way to PPA?
 
Or maybe even universe
 
I already have Launchpad account, so I totally could go all the way into Ubuntu Software
 
7:29 AM
apt install serg-bharadwaj-dope-software
 
@Serg can you make it debian compatable?
@edwinksl its more like sudo apt install serg's-awesome-randomness-lol
 
@Edity Error: Unmatched quote
 
Em . . . it's not Debian vs Ubuntu issue , I think ....Gnome just doesn't display labels, so in Gnome people can't see text
 
apt-get????? we 16.04 bruh
 
oh
 
7:31 AM
apt for the win
 
em . . . docker for the win ?
 
Snaps
 
i wonder if my indicator package could work with snaps
 
The script works for me now :)
 
yaaay
 
7:34 AM
and I like it better than the native indicator
because i have no num lock or scroll lock keys, so the other two icons are redundant
 
^_^ success !
 
DEBIANNNNNNNN
 
maybe you should add it as an answer to my question too askubuntu.com/questions/799437/… ?
 
I have lubuntu on my vbox i could test it there tomorrow
@Zanna i ... could ... but haven't you provided a link to ByteCommander's post already ?
 
0
Q: Why doesn't the chat doesn't have easter eggs?

EdityIv'e seen Root Access'es Clippy egg... I have seen Arquade minigame egg... I have also seen rm -rf / on Serverfault chat... BUT WHAT I HAVENT SEEN IS... ASKUBUNTU EGGS. Why can't we have a unique egg implented into our chat that (i know this is abusive) can be funny, or pranky....

 
7:37 AM
ah, what the heck. sure. I'll add
 
I did link, but I can change it if you think it would be better. I'll definitely accept if you put it there because it's a better solution for me
 
No need to accept, native solutions are always preferred
 
but it's my question and I prefer your solution :P
 
Meanwhile, I'm downloading Ubuntu Mate 16.04 iso
Gonna need another VM for testing
 
lol the askubuntu meta bot
@Serg goodluck
 
7:48 AM
@Serg I'm trying to add notification support
 
@BharadwajRaju the notify send ?
I've a method for that
def send_notification(title, text):
    Notify.init(sys.argv[0])
    n = Notify.Notification.new(title, text)
    n.show()
Don't forget to add : from gi.repository import Notify
Actually no
 
I've worked that out, except it fills the screen with messages.
I need to find a way to get it to show notification for a key only once.
 
Yeah, notification system on Ubuntu isn't the best
Let's just leave it out
@BharadwajRaju the indicator itself changes instanteniously , notifications will only be redundant
@Zanna what is your Ubuntu Mate version ?
 
16.04 @Serg
MATE people will need to apt install python-appindicator I think - we don't have that module for some reason?
 
7:59 AM
@Serg This is why I think we should make a deb package (I can make one)
 
@BharadwajRaju alright , lets do it
 

« first day (2118 days earlier)      last day (2850 days later) »