code logs -> 2015 -> Thu, 02 Apr 2015< code.20150401.log - code.20150403.log >
--- Log opened Thu Apr 02 00:00:17 2015
00:04
<@Thalass>
heh
00:08 Meatyhandbag_ [sebastianfe@Nightstar-dk0.5eb.224.136.IP] has joined #code
00:09 Meatyhandbag [sebastianfe@Nightstar-6n6.si4.224.136.IP] has quit [Ping timeout: 121 seconds]
00:09 Meatyhandbag_ is now known as Meatyhandbag
00:20 Derakon[AFK] is now known as Derakon
00:36 himi [fow035@Nightstar-dm0.2ni.203.150.IP] has joined #code
00:36 mode/#code [+o himi] by ChanServ
01:02 Reiver is now known as Orth
02:34 Reiv_ [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has joined #code
02:35 Reiv [NSwebIRC@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
02:47 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
03:12 Thalass [thalass@Nightstar-h1qmno.eastlink.ca] has quit [Ping timeout: 121 seconds]
03:20 Orthia [orthianz@Nightstar-sp6dv5.callplus.net.nz] has quit [Ping timeout: 121 seconds]
03:27 Orthia [orthianz@Nightstar-ea5.84h.224.119.IP] has joined #code
03:27 mode/#code [+o Orthia] by ChanServ
03:35 Thalass [thalass@Nightstar-h1qmno.eastlink.ca] has joined #code
03:35 mode/#code [+o Thalass] by ChanServ
03:39 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
03:39 mode/#code [+qo Vornicus Vornicus] by ChanServ
03:40 Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has joined #code
03:40 mode/#code [+o Vash] by ChanServ
03:49 Thalass [thalass@Nightstar-h1qmno.eastlink.ca] has quit [[NS] Quit: Leaving]
03:50 thalass [thalass@Nightstar-h1qmno.eastlink.ca] has joined #code
03:50 mode/#code [+o thalass] by ChanServ
04:01 thalass [thalass@Nightstar-h1qmno.eastlink.ca] has quit [[NS] Quit: brb]
04:42 Meatyhandbag [sebastianfe@Nightstar-dk0.5eb.224.136.IP] has quit [Client exited]
05:05 Derakon is now known as Derakon[AFK]
05:43 Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has quit [[NS] Quit: Quit]
05:43 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
06:17 Kindamoody[zZz] is now known as Kindamoody
06:27 celticminstrel [celticminst@Nightstar-orch4o.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
07:11 himi [fow035@Nightstar-dm0.2ni.203.150.IP] has quit [Ping timeout: 121 seconds]
07:12 macdjord|wurk [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
07:14 macdjord|wurk [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has joined #code
07:14 mode/#code [+o macdjord|wurk] by ChanServ
07:56 Kindamoody is now known as Kindamoody|afk
08:02 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
08:03 mode/#code [+o Checkmate] by ChanServ
08:27 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
08:35
<@Wizard>
My favourite part of the gentoo.org April Fools was the "© 1970â1981 Gentoo Foundation, Inc."
08:35
<@Wizard>
All about the details
09:54 Tarinaky [tarinaky@Nightstar-e99cts.net] has quit [Ping timeout: 121 seconds]
--- Log closed Thu Apr 02 09:54:44 2015
--- Log opened Thu Apr 02 10:08:49 2015
10:08 TheWatcher [chris@Nightstar-ksqup0.co.uk] has joined #code
10:08 Irssi: #code: Total of 36 nicks [17 ops, 0 halfops, 0 voices, 19 normal]
10:08 mode/#code [+o TheWatcher] by ChanServ
10:09 Irssi: Join to #code was synced in 36 secs
11:13 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
11:13 mode/#code [+o himi] by ChanServ
11:52
< abudhabi>
Hmm.
11:53
< abudhabi>
How do I draw a text string in graphics2D, but make it ignore scaling?
11:53
< abudhabi>
I mean, I still want it to scale its coordinates, but not its size.
11:53
< abudhabi>
So when I zoom in/out, the text stays the same size, but changes place according to the scaled coordinates of the things it labels.
11:53
< abudhabi>
(Java.)
12:20 Netsplit *.net <-> *.split quits: @iospace, abudhabi, @Shiz, tripflag, @Syloq, @Attilla, Derakon[AFK], @Xires, @froztbyte, Reiver, (+24 more, use /NETSPLIT to show all of them)
12:21 Netsplit over, joins: &Reiver, @PinkFreud, &ToxicFrog, &jeroud, &jerith, @Tamber, VirusJTG, @Alek, @iospace, &Derakon[AFK] (+24 more)
14:13 Meatyhandbag [sebastianfe@Nightstar-dk0.5eb.224.136.IP] has joined #code
--- Log closed Thu Apr 02 16:02:55 2015
--- Log opened Thu Apr 02 16:11:02 2015
16:11 TheWatcher [chris@Nightstar-ksqup0.co.uk] has joined #code
16:11 Irssi: #code: Total of 38 nicks [18 ops, 0 halfops, 0 voices, 20 normal]
16:11 mode/#code [+o TheWatcher] by ChanServ
16:11 Irssi: Join to #code was synced in 39 secs
17:12
< abudhabi>
Y'all ever notice that in large programming channels, the ones with hundreds of users, the active regulars tend to be very impatient with newbies?
17:17 celticminstrel [celticminst@Nightstar-orch4o.dsl.bell.ca] has joined #code
17:17 mode/#code [+o celticminstrel] by ChanServ
17:25
<&ToxicFrog>
abudhabi: yes, and furthermore, I can tell you exactly why
17:26 macdjord|wurk [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has quit [[NS] Quit: Tekeli-li! Tekeli-li!]
17:26
< abudhabi>
Is it because they have to deal with a never-ending queue of morons, and thereby assume that everyone is a moron?
17:29
<@Shiz>
it's because they're on freenode
17:30
< abudhabi>
Explain?
17:36
<&ToxicFrog>
abudhabi: yes.
17:36
<&ToxicFrog>
More specifically, they've seen a shitload of newbies, and 90% of them are either (a) not actually interested in learning, they just want someone else to write the code for them or (b) woefully unprepared for what they're trying to do and refuse any attempt to get them to learn the fundamentals first
17:37
<&ToxicFrog>
It gets wearing after a while.
17:40
< abudhabi>
Mhm. I had this situation in ##java just now. I begin sketching out my problem, which results in a couple of them going "gib code nao" and using one of the many standardized bot functions in order not to actually type out the request, then get mildly insulting when I proceed to continue to sketch out my problem.
17:41
< abudhabi>
I was actually trying to decide which bits of code were actually relevant, since the issue seems broad, and I don't want to just paste them the entire project.
17:43
< abudhabi>
After I told them that I realize where their impatience is coming from, they become insulted.
17:49 thalass [thalass@Nightstar-h1qmno.eastlink.ca] has joined #code
17:49 mode/#code [+o thalass] by ChanServ
18:17 gnolam_ [lenin@Nightstar-oru2ae.priv.bahnhof.se] has joined #code
18:43 * TheWatcher readsup, changes ToxicFrog's (a) to be "not actually interested in learning, they just want someone to do their homework for them"
18:44
<&ToxicFrog>
TheWatcher: sometimes it's not even homework!
18:54 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
18:54 mode/#code [+o Checkmate] by ChanServ
19:12 thalass [thalass@Nightstar-h1qmno.eastlink.ca] has quit [Connection closed]
19:17 Turaiel[Offline] is now known as Turaiel
19:41 thalass [thalass@Nightstar-h1qmno.eastlink.ca] has joined #code
19:41 mode/#code [+o thalass] by ChanServ
20:36 kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has joined #code
20:38 Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has joined #code
20:38 mode/#code [+o Vash] by ChanServ
20:42
<@Ogredude>
what ToxicFrog said about helping the n00bs
20:42
<@Ogredude>
definitely the case
20:43
<@Ogredude>
So I started playing with Arduino yesterday
20:43
<@Ogredude>
looks like I need to brush up on my C
20:43
<@Ogredude>
is there a way of including C libraries inline, or do the .h files have to go through a separate part of the compiler/linker?
20:44
<@Ogredude>
I ask because I've found 123D Circuits, a circuit and arduino simulator, but it doesn't allow me to use external libraries, and I need the Time library and another one that lets me calculate sunrise/sunset
20:47
<&ToxicFrog>
So, #include basically just copy-pastes the included file into the one containing the #include.
20:48
<&ToxicFrog>
The .h typically just contains type information that the compiler can use to check your usage of the corresponding library without actually having to have the code for that library at hand.
20:49
<&ToxicFrog>
The linker then handles wiring up the actual code behind those declarations.
20:49
<&ToxicFrog>
You can #include the .c instead to get the actual code spliced into your file; this is extremely filthy but is, very rarely, the right choice
20:49
<&ToxicFrog>
That said, I thought that Arduino programs were statically linked anyways. What does 123D Circuits actually mean by "external libraries"?
20:54
<&McMartin>
"Static linking" is when external libraries are in .a or .lib format (depending on platform/toolchain) and then up being spliced in at linktime.
20:54
<&ToxicFrog>
Yeah, sorry, guess I should clarify some things
20:55
<&ToxicFrog>
With static linking, the linker (part of the toolchain that turns source code into executable programs) combines the libraries with the rest of the program up front. What you feed to the simulator is a single program file.
20:55
<&ToxicFrog>
With dynamic linking, the libraries are separate files that are loaded at program run time.
20:56
<&ToxicFrog>
AIUI, the heart of the Arduino is a microcontroller that doesn't really have a filesystem or an OS, so everything is statically linked, and that's up to your build tools; the simulator has no say in it.
21:06 Kindamoody|afk is now known as Kindamoody
21:10
< gnolam_>
Yeah. It's an ordinary AVR.
21:19
< abudhabi>
Hmm.
21:20
< abudhabi>
Apparently, running repaint() on the JFrame that holds the JTabbedPane that holds my custom JPanel yields a different rendering of the former than running its own repaint() method.
21:25
< abudhabi>
Oh, wait, no. It's JFrame -> JTabbedPane -> JScrollPane -> custom JPanel.
21:28
<&McMartin>
Those are lines of containment, not inheritance, so it's not hugely surprising that repaint is broader in those cases
21:28
< abudhabi>
Broader isn't the issue.
21:29
< abudhabi>
http://i.imgur.com/Hi7AvnF.png http://i.imgur.com/PVRAsc6.png
21:29
< abudhabi>
Note the position of the cursor.
21:29
< abudhabi>
RMB is supposed to center the star on the cursor.
21:29
< abudhabi>
The former image is window.repaint(), the latter is panel.repaint().
21:31 kourbou is now known as kourbou|zzz
21:39 kourbou|zzz [kourbou@Nightstar-deqg8j.fbx.proxad.net] has quit [Connection closed]
21:50
<@Ogredude>
ToxicFrog: well, in the Arduino environment, you check the libraries you want included, and it'll put in your sketch for example #include <Time.h>;
21:51
<@Ogredude>
I may actually be better of with an RTC module on the Arduino
21:51
<@Ogredude>
doing some research, the internal clock of the thing will run out after 70 days of uptime
21:51
<@Ogredude>
and I don't really see a feasible way to set the time when you start it up
21:52
<@Ogredude>
with the Time library it could easily handle "18 hours from now" but not so easily "18 hours starting an hour after sunrise"
21:52
<@Ogredude>
mostly because it'd have no idea what the date is
21:52
<@Ogredude>
to calculate the sunrise from
21:53
<@Ogredude>
(which I found out is basically plotting a value on a sine graph)
21:55
<@Ogredude>
so technically if I wanted the Time library in the simulator, I could just copy-paste time.c into there
21:55
<@Ogredude>
ugly but feasible
21:58
<@Ogredude>
I'm building a greenhouse lighting controller.
21:59
<@Ogredude>
I need to be able to set a lighting cycle (18 hours of light for vegetating, 12 hours for flowering), and the system will start the daytime cycle a half hour after sunrise and kick on the electric lights if the light level is too low. It'll avoid turning on the lights if they've been off less than 15 minutes (HID bulbs die quicker if you don't let them cool fully before turning them back on), and it'll be able to run motorized
21:59
<@Ogredude>
blackout curtains when the darkness cycle comes along
21:59
<@Ogredude>
planning on having it also tied in with motion detectors that will flip on green safelights during the dark cycle
22:00
<@Ogredude>
there's enough I/O pins on the thing, I should be able to run 4 lighting zones
22:00
<@Tamber>
Wow, that's nice and serious. :D
22:00
<@Ogredude>
yeah this is my first ever arduino project too :)
22:02
< gnolam_>
Ogredude: Not to be That Guy, but the main part sounds more like a job for ordinary outlet timers.
22:02
<@Ogredude>
gnolam_: well, except for the distinction that we don't want the lights to come back on if they've been off less than 15 minutes... And the ability to key the daylight cycle to sunrise
22:03
<@Ogredude>
a plain old outlet timer is perfect for an indoor grow room
22:03
<@Ogredude>
but we're using a big ole fusion reactor for our main lights
22:03 Turaiel is now known as Turaiel[Offline]
22:03
<@Ogredude>
gnolam_: also a regular outlet timer can't control blackout curtains
22:05 thalass [thalass@Nightstar-h1qmno.eastlink.ca] has quit [[NS] Quit: wheee]
22:05
<@Ogredude>
I've got the light sensing part already prototyped in the simulator, no problems there http://123d.circuits.io/circuits/698012-greenhouse-brain-smart-lighting
22:06 * abudhabi solves his issue by invoking super.paint(g) in his custom paint() routine.
22:08
<&McMartin>
Oh!
22:08
<&McMartin>
I think that's standard, yeah
22:08
<&McMartin>
Man, it's been a long time since I've done custom widgets
22:08
< abudhabi>
Sort of.
22:08
< abudhabi>
I sort of solved it, because there are edge cases where the problems persist.
22:09
< abudhabi>
Calling window.repaint() still gives the wrong result.
22:09
< abudhabi>
When the custom widget is repainted automatically, such as when I switch tabs in the tabbed pane, it still gets painted wrong.
23:06 Kindamoody is now known as Kindamoody[zZz]
23:16 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
23:16 mode/#code [+qo Vornicus Vornicus] by ChanServ
23:41 Turaiel[Offline] is now known as Turaiel
23:48 thalass [thalass@Nightstar-inc.0nd.223.216.IP] has joined #code
23:48 mode/#code [+o thalass] by ChanServ
--- Log closed Fri Apr 03 00:00:59 2015
code logs -> 2015 -> Thu, 02 Apr 2015< code.20150401.log - code.20150403.log >

[ Latest log file ]