« first day (1494 days earlier)      last day (3454 days later) » 

12:12 AM
I just did a JS trick that makes me a JS ninja for the next minutes :)
now I need to document it..
 
@NathanOsman Penguins don't live up North.. (besides you, obviously ;)
 
@Seth wait a second O.o
isn't there where the snow is?
 
@hbdgaf cool, I'll take a look.
@Lucio Penguins only live in the South's snow... Odd right?
Just like Polar Bears aren't found in Antarctica.
 
you know too much about geoetc
 
12:18 AM
:)
 
I have a chicken to eat
it is not the North but I think chicken is everywhere
 
@NathanOsman So, if you have a minute, why should I learn Qt over Gtk?
 
ciao!
and nice weekend
 
OMG RAIN
 
@Lucio Have fun!
@Whaaaaaat You just got rain? o_O
 
12:22 AM
@Seth Sure!
First off, let me say that GTK is still a great windowing toolkit.
I used it for the first few versions of StackApplet and it got the job done.
However, Qt brings in the signal/slot paradigm.
And once you get the hang of this, it becomes tremendously powerful. gobject (GTK is built on gobject) has something like this but far less powerful.
Say you have two controls on a page. A numerical input box (a text entry box that only accepts numbers) and a slider (the widget with the handle that you drag back and forth).
 
@Seth california
 
You can connect the change signal on the slider to the slot on the number entry box that changes the value.
 
so now I can go install OpenELEC
 
Then whenever you drag the slider, the number entry box changes.
You can do the opposite as well, and have the slider jump to a value when the user changes the entry box.
 
hmm, yes, I saw that in a demonstration of Qt designer.
you'd think that would be easy no matter the framework/toolkit, but I guess it isn't?
 
12:26 AM
Qt does a lot of introspection. So it knows a lot about the classes that you are writing.
So if you use the Qt webview component (for displaying HTML), you can expose classes to JavaScript and do really neat things.
(That's how FlackBot worked.)
 
Nice.
 
GTK is technically cross-platform, but it's often difficult to set up on Windows.
Getting projects cross-compiled is nearly impossible.
So if you want to support Windows, Qt is the clear winner.
I almost forgot... the real magic happens when you use signals and slots across threads.
This lets you do things in parallel without worrying about memory leaks and race conditions.
(Well... if you are using CPython, threading may be a problem, simply because of the GIL.)
Another reason - the Qt documentation is spectacular and the GTK documentation is - well, it's good, but not perfect or thorough.
Qt will explain every class in detail with examples. You are almost never guessing.
Hopefully that helps. Let me know if you have any questions.
 
Yes that helps, thank you :)
 
Great :)
Are you thinking of learning Qt in C++ or in Python with PyQt?
 
I didn't understand all of it (my skill level just isn't high enough sadly), but it was still helpful.
@NathanOsman Starting with Python.
 
12:33 AM
Definitely go with PyQt 5 in Python 3 then.
 
I'm hoping to do some C++ eventually, but that isn't terribly high on my list at this instant.
 
Python 2.x is end-of-life and Qt 5 is stable and has been around for a while.
 
Which was one of the pros of Qt, it scales real well.
 
One very minor word of warning - you won't be able to sell a PyQt app without purchasing a license from Riverside (the authors). Open source apps are free to distribute though.
Qt itself is released under the LGPL 3.
 
@NathanOsman Yes, I definitely plan on using Python 3. I was hoping to use Qt 5 but there doesn't seem to be much book/tutorial wise yet (although the API docs seem to be there).
 
12:35 AM
@Seth There aren't a lot of changes. So the majority of the tutorials will still apply. And the documentation should answer your questions.
 
@NathanOsman That is good to know. I definitely don't plan on selling anything right now, that is for sure :)
@NathanOsman Awesome! I'm not adverse to digging into the API docs but I'd rather not have to learn everything from them. Real code examples are so helpful.
 
I can start you off with a super simple example right off the bat. One sec.
It's a single file - it displays the amount of entropy in /proc/sys/kernel/random/poolsize.
 
Awesome, thanks!
 
 
2 hours later…
2:12 AM
0
Q: Strange leading whitespace in OPTARG when using getopts

GJ.I spent quite a while researching the problem I encountered but none of the getopts tutorial say anything about the leading whitespace in OPTARG when using getopts. In bash(on Ubuntu and OSX), executing below commands: OPTIND=1 && getopts ":n:" opt "-n 1" && echo "OPTARG: '$OPTARG'" and it ec...

 
 
2 hours later…
4:18 AM
Guyz, I have a MacBook pro (yikes) and I cannot get nvidia drivers to work on it.
 
 
3 hours later…
8:02 AM
Hi
Can I upload a photo/photos to imgur.com via command-line and get their direct link as result??
 
 
7 hours later…
2:48 PM
Guys, I want to code. But I don't have anything I need to code. Any suggestions?
 
@RPiAwesomeness I don't understand. You want projects to code on?
 
@KasiyA Ask a question on the site :)
 
@jokerdino I want a project to code, yeah :)
Something. Anything!
Well, not anything.
I'd rather not re-write the Linux kernel.
 
lol.
if you are fond of qt5 and javascript, I can put you on my project :P
 
@RPiAwesomeness Go look through the command-line tags here and on U&L. Answering those is always fun and sometimes scripts are acceptable.
Ooh, what is your project @jokerdino?
 
2:58 PM
oh hm, it's kanban app thingy.
haven't done a lot of work on it yet though.
 
@jokerdino Yeeaaah...never used either of those :P
 
Oh, interesting. Is this a touch app?
 
@Seth planning to port it to android
 
@RPiAwesomeness You've never used Javascript? :O
 
It's gonna be linux at first
 
3:01 PM
@Seth Yeah o.o
 
Here's a good one @rpi, see Kasiya's message above? See if you can figure that out in python (or bash if you want)
 
@RPiAwesomeness think of it as your best opportunity to learn JS!
 
@jokerdino Actually, I'm doing just that right now :) Javascript/PHP chat room tutorial
 
nice :D
 
@Seth Definitely Python :) My BASH skills are deplorable.
 
3:08 PM
when you think you wanna help out, ping me.
 
@Seth Oh boy. This looks insanely complicated...
That's supposedly a simple script O.O
 
That takes the screenshot too ;)
 
@Seth Yes, it does
 
And it actually does look kinda simple, from a cursory look.
 
Probably is, just long :P
I'm looking at the documentation now
 
3:13 PM
this seems to limited:
function is_mac() {
uname | grep -q "Darwin"
}
:+)
 
Yes, long.
 
Imgur actually has a Python API
 
and could be me but that function does nothing? :D
 
imgur probably also has a commandline client
 
I was gonna say :)
 
3:14 PM
Bother. I have to contact them for an API key. Not something I want to do for a simple project that I probably won't use :(
 
@RPiAwesomeness in the script there is an "anonymous" key
 
@Rinzwind it is called later on I believe..
 
function notify() {
if is_mac; then

so it acts as a boolean
 
Yeah, guess so.
 
3:16 PM
I spotted a double text:

if ! (eval "$edit_command"); then
echo "Error for image '$img_file': command '$edit_command' failed, not uploading. For more information visit https://github.com/jomo/imgur-screenshot#troubleshooting" >> "$log_file"
echo "Error for image '$img_file': command '$edit_command' failed, not uploading. For more information visit https://github.com/jomo/imgur-screenshot#troubleshooting"
notify error "Something went wrong :(" "Information has been logged"
exit 1
fi
1 to a log and 1 to screen? I bet that can be a 1 liner :P
lol
ah well time for Log Horizon :-) bb
 
@RPiAwesomeness sirupsen.com/a-simple-imgur-bash-screenshot-utility still need an api key though :/
 
@Seth Yeah, I found that. I think I'm gonna do the Javascript/PHP chat room right now :)
It's an easier beginning project, not having to mess with API keys and whatnot :P
 
OK. Talk to you later than :-)
 
Plus, it's all local :)
Oh, I'll stay around, just be busy coding :)
Maybe I can re-create the chat xD
Yeah. No.
I should, after this, write a way to connect to chat via IRC...
That would be interestingly hard
Shouldn't
if(data.text){
    for (var i = 0; i < data.text.length; i++) {
        $('#chat-area').append($("

        "+ data.text[i] +"

        "));
    }
}
be
if(data.text){
    for (var i = 0; i < data.text.length; i++) {
        $('#chat-area').append($(

        "+ data.text[i] +"

        ));
    }
}
?
Or
if(data.text){
   for (var i = 0; i < data.text.length; i++) {
        $('#chat-area').append($("+ data.text[i] +"));
   }
}
@jokerdino ^?
 
3:37 PM
hi?
 
Can you provide insight into the question above?
 
what's the question?
 
Shouldn't that first code be the second or third?
 
@Seth This is my question
1
Q: Upload a file to URL via command line

navazWe can download a file using the following command line in Ubuntu: wget url Can anyone tell me how to upload file to URL? For an example I want to upload some photos on http://imgur.com/ and get their direct link as result in a text file.

 
@RPiAwesomeness lol, whichever one works is the best one
 
3:40 PM
@jokerdino I figured :)
Does anyone here use Brackets?
As in the Web IDE?
 
yeah
the adobe one
 
Yeah, that one. It's pretty good :)
Do you know if people can cooperate on a file?
 
use github?
 
@KasiyA That is a terrible question and not the same thing. You should ask a new one with the right details.
 
4:12 PM
@jokerdino You said I can ask you about Javascript, right?
var name = prompt("Enter your chat handle:", "Guest"); means prompt the user for whatever (chat handle in this case) and store that input in the variable name. Is the "Guest" a default that it reverts to if nothing is input?
 
4:25 PM
:O read only!
 
@Seth Yeah :(
in The Bridge, 11 mins ago, by OKAY, PANIC.
We are about to failover operations to Oregon for read-only mode while we upgrade our core switches in the NY data center.
 
@Seth Ah. Danke!
 
@RPiAwesomeness well at least nothing blew up.
@RPiAwesomeness np.
W3Schools is still a great reference, if you take it with a grain of salt.
 
4:27 PM
MDN is useful, but I've never found it useful as a quick reference.
@RPiAwesomeness yeeeeah.
 
PahPEEWWWYAA!
 
@RPiAwesomeness my JS skills aren't up to scratch. I'm learning it by means of this project too
 
@jokerdino Ah :)
 
 
3 hours later…
7:07 PM
I don't want to wait until the last minute. http://t.co/VbifSKRXym
George Edison is back!
Consequently, I've reclaimed my old Twitter handle for my own use.
 
Love the typography there.
 
7:53 PM
> Pro tip: updating your profile with your name, location, and a profile picture helps other GitHub users get to know you.
Pro tip? Seriously?
I can't even click it away! Goddamn github!
Anyone, help. Please.
 
8:40 PM
0
Q: Tiny tweak to the [livedvd] tag

IQAndreasThis isn't even worth bringing up in Meta, but if I don't point it out it's going to nag at me in the back of my mind. Observe the following set of tags: live-usb live-cd livedvd If some helpful moderator could change the last tag to add a hyphen (live-dvd), it would save some poor perfectioni...

 
@NathanOsman You really want an inbox invite? I can ask around. Some people on my list were offering, but I didn't see any particular need.
@RPiAwesomeness Many people started/tried/sort of did. Check over on stackapps or MSO.
What? I was talking to @Takkat about wanting to build something like this over a year ago: mashable.com/2014/10/30/new-project-ara-prototype-works
 
9:03 PM
@hbdgaf :)
 
I take it that's a yes?
 
Yes please.
If you can, that's awesome.
If not, thanks so much for trying.
 
Do you know how Inbox invites work? Is it just a code to enter to register or is it supposed to map to an email address?
 
9:20 PM
I think it maps to an email address.
 
If I can get an invite, I'll ping you on G+ with the "deaddrop email" address/pass, so you can do this and I can give the present more than once
 
@hbdgaf yeah - I read about that - with magnetic attached modules... geeky :)
probably the specs are a bit disappointing.
 
@Takkat My initial response when I saw the news story was "Well, I guess it was a good idea..."
 
good ideas always feel better than ideas that became reality (from someone else).
But in case you dropped that thing on the floor you could always reattach the fragments.
Do that with an iThing :D
 
user image
3
It looks like they changed from magnetic to slide in during the demo video.
 
9:31 PM
that's a cat's life.
Lego bricks are a boy's best friends... so they will always want their geek stuff to be like it.
<-- has no other reason to always build his boxes himself
 
For me, it was more like: "I don't want to choose a full load-out on a phone/tablet. I want to be able to upgrade my storage space and change the wireless or 3g/4g card"
 
yeah, and I was soooo sad to hear that with nowadays mobiles you cant even change the battery.
 
Yep.
 
My Samsung needs a full battery removal reset occasionally.
 
My nexus used to need a battery reset if it got "too low to realize it was able to charge/charging"
 
9:37 PM
lol
 
I gave my old Samsung to my brother. The battery is removable and wasn't working.
 
Yeah, it wasn't like: click the battery out - on the nexus.
It was like: Break out the tweezers and the teensy weensy screwdrivers.
 
Imagine it wasn't removable and not working... that's todays fate of computers 1000 times more powerful than my first.
Battery broke - Smartness gone.... just a dull black piece of plastic.
 
That's what I don't understand about colleges teaching hardware repair any more. Most of the time the bench fee and an hour or two gets it to "You're entry price point PC costs less than this."
 
He ordered a replacement and it didn't work either :P
(I ducked out of coverage... in case this is sounding disjointed.)
 
9:43 PM
@hbdgaf that entirely virtual costs... 99% of PC issues are bad configuration or cables. Repaired in a second onec you knew which cable, or settings file.
@NathanOsman replacement batteries of eBay sometimes only look like batteries.
 
@Takkat This is true. When I was doing that, I usually did a 5 minute inspection as soon as they brought it in. If I could turn it around in 5 minutes - it was just the bench fee.
 
I once bought 3 different China batteries for my video camera. They all fitted well and looked good. None worked.
Only later I found out, that on this very model of mine some cables were wired differently to take only original batteries.
That's like websites (shops even) refusing to talk with an Ubuntu UA - something I never understood.
 
9:59 PM
What? Doesn't everyone have their UA set to '; DROP TABLE Admins; --
I mean, if it works... they probably deserve it.
 
haha - should be like that :)
 
Personally, I have mine set to look like the google-bot. That way I don't have to log in to view some forums.
 
Finally my desktop became a heart-lung transplant... I am so disappointed again because there were was only one issue ... eth0 became eth1.
Nothing to tweak or fiddle... it's just the same, only a bit faster.
 
I worked an IT shop at one point where one of the bosses asked why the secretary had faster access to quickbooks and his took ages to load. Erm... She's running 100Mb full duplex and you're only running 10Mb half duplex? Seemed obvious to me.
 
Obviously this might be one of the reasons... other reason could be that the secretary only read 10 page books, the boss reads 1000 page books.
 
10:07 PM
Heh, No. In this case, I'm referring to a small business and the software quickbooks. He was trying to sync a 300Mb database across a mapped drive on a Windows box.
 
0
Q: Grub 2 - attempting to boot into "Windows bootloader" boots me back into grub

StelarCFI've managed to dig myself into a bit of a hole. When I boot, I am given the option to boot into Ubuntu or into the Windows bootloader. When I attempt using the windows bootloader, the result is that I am booted back into Grub, at the same menu. Starting about a week ago, I tried installing Ele...

 
@hbdgaf syncing over slow nets is no fun.
 
10:20 PM
In other news, who knew .py was a valid TLD? You'ld think more python projects would use it?
 
Paraguay makes sense but .pizza is weird.
> The server at takkat.bed can't be found, because the DNS lookup failed.
Anyway I am getting there now.
Goof night.
 

« first day (1494 days earlier)      last day (3454 days later) »