« first day (375 days earlier)      last day (1081 days later) » 

10:02 AM
I have a variable that holds "256px". How do I get the value of 256? I know I can replace the "px", but is there a better way? I remember a conversation about a +variable, but +"256px" just gives me NaN :(
parseInt and parseFloat, perhaps?
 
 
2 hours later…
11:45 AM
@Scratte parseInt will do nicely :)
 
@OlegValter Thank you :)
 
@Scratte probably crazier than you think
@Scratte still an experience :) After a while, this hobby will stop draining so much time from you
@Scratte hm?
 
@OlegValter You come across as sane.. ;)
@OlegValter Yes, the pastebin I uploaded to get another pair of eyes on it :)
I wanted to see if I could do something inside that method in a smarter way, but it turned into using an svg-item instead. Which I haven't even looked at yet :(
..and I spent over an hour yesterday to get the scrollbar to appear for the body only and in the margin :/
 
12:03 PM
^ but notice the circles are back ;)
 
 
2 hours later…
1:47 PM
The colorPicker doesn't understand "hotpink" :)
I tried to see if there's some standard javaScript that can say what the hex value is, but it seems that everywhere people are saying to create an element, then give it the "hotpink" colour, then get the computedStyle for the element.. and then remove the element.
Is that the only way?
 
 
2 hours later…
3:34 PM
Oh No.. Bot, that's not a bit is gone.. :(
 
4:00 PM
@Scratte the answer or the bot?
@Scratte no, I don't think there is anything built-in
> Note: Setting the value to anything that isn't a valid, fully-opaque, RGB color in hexadecimal notation will result in the value being set to #000000. In particular, you can't use CSS's standardized color names, or any CSS function syntax, to set the value. This makes sense when you keep in mind that HTML and CSS are separate languages and specifications.
> In addition, colors with an alpha channel are not supported; specifying a color in 9-character hexadecimal notation (e.g. #009900aa) will also result in the color being set to #000000.
^ this is basically the explanation why (source)
@Scratte and then you will spend a couple of hours once users complain in their browser it looks different :) Nice touch, though.
@Scratte you need to work on the inline text input, though - currently, it looks messy because of all the different alignments (I suggest tweaking the typography to match labels and remove the left margin to make it appear completely inline)
 
4:21 PM
@OlegValter Wait.. what?
I'm using Stack Overflow :P More specifically "overflow-y-scroll"
There are only a few alignments though. Indentation, text, and inputText.
 
 
2 hours later…
6:25 PM
Do you happen to know what that needle-injection thing on the colourpicker is?
 
 
1 hour later…
7:32 PM
@OlegValter They "fixed" the alignment issue in reviews.. :( See this message of mine
 
8:04 PM
What is the best to license to license Open Source & Free project?
 
Not sure what you mean
 
@Scratte I want to license Open Source & Free project.
A user-script.
 
There are many different types of licenses. MIT, GNU, WTF (can't remember exactly), Apache, ... it all depends on what you want.
If you want it to be Free (as in the 4 freedoms), then I think only GNU uses those terms.
 
@Scratte I will choose MIT.
@Scratte Yay! I published it here.
 
8:20 PM
Where's the toggle button?
 
@Scratte On hover.
 
It's nice with screenshots :) That is missing from a lot of the posts on Stack Apps.
 
@Scratte Thank you. :)
 
@KevinM.Mansour Not sure I understand what you mean.. how do you turn the sidebar on and off?
 
@Scratte Hover on the sidebar and it will show it and it is automatically hidden. Give it a try.
@Scratte I tried a Gif but it didn't work. :)
 
8:23 PM
@KevinM.Mansour I think you need to explain that on your post on Stack Apps :)
@KevinM.Mansour A moving gif? Because Windows Alt+PrintScreen still works for things like this for still images :)
 
@Scratte I have edited it. :)
@Scratte It is more than 2 MB.
 
This is an crop of an image I took with Alt+PrintScreen when I hovered over bad_coder's username
"hover on the sidebar and it will show it and it is automatically hidden.". Can you explain what is automatically hidden? The button or the sidebar?
 
@Scratte Alt+PrintScreen doesn't work on Windows for me. :)
 
@KevinM.Mansour Huh?!?.. It will take the screen shot. Then the hover item will go away.. but when you check the screen dump, it will be there.
 
@Scratte Where is the screen dump
@Scratte I have edited it. :)
 
8:30 PM
@KevinM.Mansour In the clipboard only. You need to paste it into paint and crop it in there.
Let's do one thing at the time. First.. I think this needs an edit "hover on the sidebar and it will show it and the sidebar is automatically hidden". I suggest something like "When hovering the sidebar, a button will appear. Press the button to hide the sidebar". But.. don't add it yet. How can I get the sidebar back after I've hidden it?
 
@Scratte I do not have a button called Print Screen on my keyboard. I click Alt+Insert (Prt sc) Which I think "prt sc" is called Print Screen.
@Scratte Can you try my script? And you will understand what I mean.
 
@KevinM.Mansour No.. because you need to write to other users :) You need to explain how to it works to other users :)
@KevinM.Mansour Yes. "prt sc" is print screen. But if it's on top of insert them maybe it only works with shift.
 
@Scratte Try my script. then you will understand what I mean then give me a description and I will add it to my Post.
 
The thing I'm trying to say here is that people do not download stuff unless they know what it does and how it works. Rarely will people download and install stuff just to try it out.
 
@Scratte Doesn't work too. :(
 
8:38 PM
I'm getting warnings
 
@Scratte I mean try it as a user-script. Copy-paste into the user-script manager. :)
 
@KevinM.Mansour I know how it works.. now all the other scripts will know of this variable, no?
So, this is the description you should put:
Hold.. on. I need to turn it off first. I can't deal with this wide screen :D
 
@Scratte hmm? I will work on that. but actually it doesn't give errors or warnings on production. :)
@Scratte Not funny. :)
 
"The sidebar will be automatically hidden. When you want to see the sidebar, take the mouse to the right edge of the screen and the sidebar will appear. Then as long as you keep the mouse in the sidebar area, the sidebar will stay."
 
@Scratte Nice description. :)
 
8:44 PM
@KevinM.Mansour Well.. it's what it does, no? :)
 
@Scratte it's for the color sampling :) It's a sampler, not a needle :) You can choose an element to apply it on, and it will try to extract the color info
 
@Scratte Thank you. I have edited it. :)
 
@OlegValter But.. as soon as I click outside the colourpicker goes away :(
 
@Scratte ?? I was talking about the inline inputs you used in your modal for the percentage values
 
@OlegValter Ah. I did that on purpose. It looked too cramped up for me with both the colours and the numbers on the left side.
 
8:47 PM
@Scratte dunno, works for me pretty well, maybe it's your browser (the pickers themselves are browser-specific, they are not in the standard)
 
@OlegValter That is not fair! :( I guess it's my browser :(
 
@Scratte I understand the reason :) However, there is some room for improvement to avoid looking messy - see above. I can take a quick shot to show what I mean after you finish updating the modal
 
Awww.. that's back when my toggle was nice and oval ;)
I miss that.. now they're fat and round :P
 
@Scratte ah, I did not recognize it, sorry - I guess that's not your problem then :)
 
@OlegValter There's about 75 more hours of work there.. :(
@OlegValter No worries. Even if I do not agree with you, I still appreciate your input. Especially when I can make a joke out of it :)
@KevinM.Mansour I understand how it doesn't make sense to make a still image to show how it works now :)
 
 
1 hour later…
10:23 PM
@Scratte you know, you could start using the org :) This way, we could collaborate, and you could save yourself these 75 hours
 
@OlegValter Heh.. Right now, I'm trying to split of some of your code, but I'm getting a ton of errors :D
 
@Scratte initially, I thought you went ahead and custom-styled the scrollbars according to the article I linked :)
 
@OlegValter Ahh.. I see. No. I looked at it and then I though that Stack have these special ones, so I went to find them :) And I had a laugh when I noticed they called them "Overflow" :)
"TypeError: Cannot read property 'then' of undefined".. I think I need some coffee.
Just trying to take out "createEditorStatsItem" into it's own method without putting all the functions that it needs into the reach of other methods.
 
10:38 PM
@OlegValter I can't. None of my code will pass the linter test.
 

« first day (375 days earlier)      last day (1081 days later) »