Log for #openttd on 6th October 2017:
Times are UTC Toggle Colours
00:06:39  *** Wolf01 has quit IRC
00:33:59  *** glx has quit IRC
02:03:41  *** debdog has quit IRC
02:06:29  *** Webster has joined #openttd
02:09:49  *** Guest6100 has quit IRC
02:12:30  *** debdog has joined #openttd
02:31:13  *** murr4y has quit IRC
02:31:13  *** tneo has quit IRC
02:33:12  *** tneo has joined #openttd
02:38:03  *** murr4y has joined #openttd
03:18:59  *** sim-al2 is now known as Guest6113
03:19:00  *** sim-al2 has joined #openttd
03:24:02  *** Guest6113 has quit IRC
05:33:21  *** Cubey has quit IRC
06:18:32  *** andythenorth has joined #openttd
06:23:04  *** sim-al2 has quit IRC
06:33:17  *** andythenorth has quit IRC
06:55:51  *** andythenorth has joined #openttd
07:01:06  *** andythenorth has quit IRC
07:11:10  *** andythenorth has joined #openttd
07:20:44  *** andythenorth has quit IRC
07:22:42  *** andythenorth has joined #openttd
07:27:32  *** andythenorth has quit IRC
07:45:56  *** ToffeeYogurtPots has quit IRC
07:59:40  *** andythenorth has joined #openttd
08:16:15  *** ToffeeYogurtPots has joined #openttd
08:17:14  *** andythenorth has quit IRC
08:18:20  *** ToffeeYogurtPots has quit IRC
08:24:01  *** andythenorth has joined #openttd
08:24:10  *** andythenorth has left #openttd
08:25:05  *** ToffeeYogurtPots has joined #openttd
08:27:03  *** Lightning has joined #openttd
08:27:50  *** Lightning has quit IRC
09:30:03  *** debdog has quit IRC
09:31:34  *** Montana has quit IRC
09:34:55  *** debdog has joined #openttd
09:45:17  *** Biolunar has joined #openttd
09:57:52  *** debdog has quit IRC
10:03:15  *** debdog has joined #openttd
10:23:33  *** debdog has quit IRC
10:29:15  *** debdog has joined #openttd
11:10:35  *** Gja has joined #openttd
11:18:53  *** debdog has quit IRC
11:23:40  *** debdog has joined #openttd
11:44:17  *** debdog has quit IRC
11:50:27  *** debdog has joined #openttd
12:45:59  *** sim-al2 has joined #openttd
12:46:02  <yorick>
12:50:07  *** roidal has joined #openttd
13:08:42  <peter1138> ok
13:22:36  *** orudge` has quit IRC
13:22:41  *** orudge` has joined #openttd
13:22:41  *** ChanServ sets mode: +o orudge`
13:52:02  *** sim-al2 has quit IRC
14:14:39  <crem1>
14:20:44  *** Flygon has quit IRC
14:22:41  <supermop> yo
14:24:11  <peter1138> Never seen that link before!
14:24:36  <crem1> Will be in early access for two years?... Huh, I'd hope it won't be the same story as with prison architect.
14:34:11  <crem1> Hopefully it will only get better like factorio.
14:58:59  *** sla_ro|master has joined #openttd
15:01:08  *** Wolf01 has joined #openttd
15:02:35  <Wolf01> Moin
15:13:23  <supermop> hi Wolf01
15:16:59  <Wolf01> Mmmh, I need to reverse the logic of my app
15:17:31  *** Alberth has joined #openttd
15:17:32  *** ChanServ sets mode: +o Alberth
15:17:43  <Wolf01> o/
15:17:54  <Alberth> o/
15:18:26  <Wolf01> I wanted to show in the home the N most recent feeds for each site, where N is a value the user can chose, but to do so I need to load every subscription, order by date, take N
15:19:06  <Alberth> likely, or you keep track of the last N entries
15:19:36  <Wolf01> I have the cache to load the same stuff from file, but not the new stuff :P
15:19:42  <Alberth> but you don't need to load the file anyway to display the newest?
15:19:49  <Wolf01> And that means the kickstart of the app is really slow
15:20:00  *** Wormnest has joined #openttd
15:20:01  <Alberth> not really 'kick' :p
15:21:26  <Alberth> some form of incremental loading/display might be useful?
15:21:27  <Wolf01> After it loads from the web the new stuff then it's really fast, because now there is the cache, and it updates every 30 minutes (I need to make it a setting)
15:23:08  <Wolf01> Yes, I was thinking to not focus on strict order by date, since it loads the feeds for every subscription as a task, I can append the items while it loads, too bad I can't start directly with the cache because I don't know how many feeds I might get
15:23:12  *** tokai|noir has joined #openttd
15:23:12  *** ChanServ sets mode: +v tokai|noir
15:24:40  <Alberth> could work, as long as you keep the displayed items ordered on date, I think
15:25:59  *** Maraxus has joined #openttd
15:28:10  <Wolf01> Yes, but only for each subscription, or I'll need to reorder the same collection at every addition, and it's not a simple collection.orderby() thing because it returns a copy of the collection, I could try with insertat(), but it might be a computational waste, since I will need to find the exact point (binary tree?)
15:30:13  *** tokai has quit IRC
15:33:31  <Alberth> bisection method,
15:33:45  <Wolf01> Yes that
15:33:50  <Alberth> searching is as fast as binary tree
15:34:37  <Alberth> slightly faster if you count cpu cache locality (if that applies in your case)
15:37:55  <Alberth> heap is perhaps better as it is quite good at insertion
15:40:56  *** Progman has joined #openttd
15:44:24  <Alberth> hmm, no in-order traversal for free
15:46:50  <Alberth> perhaps the relation was the other way around, ie a sorted array is a heap, but not every heap is a sorted array
15:48:01  <Wolf01> I use this one, because of the UI:
15:50:21  <Alberth> ha, I can read some class and function names, and that's it :)
15:50:33  <Alberth> but yeah, seems like the right solution
15:50:57  <Alberth> not like you have a zillion entries anyway
15:51:17  *** roidal_ has joined #openttd
15:51:39  <Alberth> so anything will basically work :)
15:51:55  <Wolf01> No, maybe 20-30, so I don't think it blocks the execution for too much
15:52:13  <Wolf01> And if I do it async it doesn't even block it
15:54:08  <Wolf01> Now I have one of the most common problems of the developers: think about the right name of the variables and what to write on the label text...
15:54:32  <Alberth> :O
15:55:37  <Alberth> would be really nice if I  has that sort of problems as the most difficult ones :)
15:56:12  <Alberth> or even common ones :)
15:56:50  <Wolf01> I have to make the control group for the timer value... "Set the auto refresh of feeds delay to"/n [combobox] "minutes" could be easy to understand?
15:57:31  <Wolf01> Or minutes into the combobox item, it seem microsoft does this
15:57:33  <Alberth> s/delay// ?
15:58:02  <Alberth> minutes already implies waiting :)
15:58:12  *** roidal has quit IRC
15:58:21  <Alberth> s/auto// ?
15:58:44  <Alberth> Update feeds every XX minutes
15:59:08  <Wolf01> Also
16:02:48  <Wolf01> Meh, I have to make the combobox a Frankenstein's monster to allow to translate the " minutes" string for items
16:08:45  <Alberth> :(
16:11:06  *** HerzogDeXtEr has joined #openttd
16:11:09  <Wolf01>
16:12:32  <Wolf01> (I don't know why he uses TextBlock instead of ComboBoxItem)
16:13:59  *** Maraxus has quit IRC
16:15:16  <Alberth> it was simpler?
16:15:38  <Alberth> examples are hardly ever complete
16:16:04  <Alberth> reference manuals are more appropriate for that kind of questions
16:16:04  <Wolf01> Nah, you can fit even checkboxes in comboboxes
16:16:23  <Alberth> combo checking :)
16:16:40  <Wolf01> Usually people do a lot of strange things because want to add icons and stuff
16:19:51  <Alberth> yeah, although it doesn't sound like a good idea, imho
16:20:21  <Alberth> but many people are scared shit of plain text
16:21:09  *** Arveen2 has joined #openttd
16:22:27  *** frosch123 has joined #openttd
16:22:43  <Wolf01> Quak
16:22:59  <Alberth> hola
16:23:02  <frosch123> moo
16:26:30  <frosch123> looks like V has no issues with earbuds
16:26:41  <Alberth>   wide enough for a double track over the water, right :)
16:27:18  <Wolf01> Right
16:27:32  *** Arveen has quit IRC
16:28:57  <Wolf01> <- look at the part with "custom content"
16:31:31  <Alberth> that example makes sense
16:32:35  <supermop> frosch123: ha
16:32:38  <Alberth> hmm, somewhat lacking money
16:33:03  <Wolf01> Building foundations on water is expensive
16:35:58  <Alberth> yep
16:40:44  <Alberth> and they built the power plant in the middle of farm fields as well
16:43:30  <Eddi|zuHause> Alberth: maybe it was the place with the fewest NIMBYs
16:45:37  *** Cubey has joined #openttd
16:46:27  <Wolf01> I tried 3 times to create an array of integers to pass as a function argument and all 3 times gave error... it was right the first time... :|
16:49:17  <Alberth> fold a class around it?
16:49:57  <Wolf01> Just new int[] { 1, 2, ...}
16:50:17  <Wolf01> But it was underlined in red, maybe I'm too fast for the intellisense
16:50:28  <Alberth> :)
16:50:35  <Alberth> type slower :p
16:50:48  <Alberth> Eddi: it was narrow enough for that :)
16:52:49  <Alberth> Oh right, java-ish
16:53:10  *** glx has joined #openttd
16:53:10  *** ChanServ sets mode: +v glx
16:53:19  <Alberth> can you have unreachable code in C# ?
16:53:51  <Wolf01> Yes just put something after a return
16:55:08  <Alberth> nice, it's a fatal error in Java
16:55:21  <frosch123> does it have "goto"?
16:55:21  <Alberth> which is just plain stupid
16:55:42  <Wolf01> I need a way to sync the resources between languages without the translator tool (which now requires a free azure services subscriptions, which requires a credit card) :(
16:56:10  <Alberth> hmm, max speed of coal train 47km/h :p
16:56:14  <Eddi|zuHause> Alberth: so if i add a return for debugging purposes, i have to comment out all the code?
16:56:37  <Alberth> nah, "if (true) return;"  works
16:56:54  <Alberth> ie "if" is an exception
16:57:15  <Wolf01> In java yes, here the intellisense just tells you are stupid
16:57:39  <Alberth> reasoning is that you may have debug code  if (DEBUG) { ... }
16:57:49  <Alberth> with DEBUG defined at the top of the file
16:58:21  <Alberth> so in all, it's a silly useless attempt to control program code
16:58:32  <Wolf01> With the constant it just greyes out the part of the code which won't be executed
16:58:46  <glx> it's stupid to have unreachable code, but it's more stupid to consider it a fatal error
16:59:19  <Eddi|zuHause> warning is a sane level
16:59:29  <glx> a warning or a notice during the compilation is enough yes
17:00:33  <Alberth> it gives an extra challenge if you generate Java code :p
17:01:20  <Alberth> so indeed, I generate "if (true) return" statements, and "while(...) { if (false) break; ... }"
17:01:27  <Eddi|zuHause> Alberth: but the solution there is the same as above debug thing
17:01:40  <Alberth> it is
17:01:50  <Alberth> modulo the 64K limit crap
17:02:11  <Eddi|zuHause> what 64k limit?
17:02:21  <Alberth> everything 64K limits
17:02:28  <Alberth> 64K byte code in a method
17:02:32  <Alberth> 64K methods
17:02:34  <glx> JVM limitation I guess
17:02:45  <Alberth> yes
17:02:54  <Eddi|zuHause> what happened to 32bit?
17:02:58  <Alberth> invented in the 90s and still applied
17:03:48  <Eddi|zuHause> the time when .com files were max 64k
17:03:48  <Alberth> compiler isn't even smart enough to handle it
17:04:29  <Alberth> probably they are afraid some system from the 90s is still running java
17:04:31  <frosch123> haha, if you didn't mention code generation earlier, i would have wondered how you got to those limits :)
17:05:00  <Eddi|zuHause> ... until some dos versions where even wasn't actually a .com file anymore, but an .exe file which just was renamed .com
17:05:17  <Alberth> sure manual code is quite alright, even unreachable code never happens there, other than by accident
17:05:29  <Alberth> but it's clearly designed for that one usecase
17:05:54  <Eddi|zuHause> frosch123: like that one nml or grfcodec bug at 64k sprites that i found?
17:05:56  <glx> JVM runs on a lot of silly systems
17:06:48  <Alberth> I have no problem with that, but my code isn't intended for such systems, as it doesn't have the processing power anyway
17:07:27  <Eddi|zuHause> glx: quite worrying if you think about how many java programs your average car runs nowadays...
17:07:36  <glx> yup
17:08:00  <glx> and IoT things
17:09:40  <Wolf01> I would be more worried to have a PHP powered car
17:13:43  <glx> now you have to plug the car to enable the AUX port on the radio
17:13:46  <glx> that's crazy
17:16:22  <Wolf01> Pizza time
17:16:46  *** Gja has joined #openttd
17:17:06  *** andythenorth has joined #openttd
17:25:25  <andythenorth> o/
17:26:12  <frosch123> hoi
17:26:50  <Alberth> o/
17:34:33  <V453000> iz huminz, iz friday
17:34:37  <V453000> iz photoshop, iz solution
17:38:39  <andythenorth> photostrop
17:44:55  *** ToBeFree has joined #openttd
17:55:02  *** gelignite has joined #openttd
18:04:37  *** Biolunar has quit IRC
18:05:39  <andythenorth> iz friday
18:05:41  *** andythenorth has quit IRC
18:07:50  *** Defaultti has joined #openttd
18:53:06  *** Alberth has left #openttd
19:01:02  *** debdog has quit IRC
19:06:11  *** Arveen has joined #openttd
19:06:39  *** debdog has joined #openttd
19:11:02  *** Arveen2 has quit IRC
19:11:02  *** loeky has joined #openttd
19:11:08  <loeky> !date
19:11:22  <Wolf01> 06/10/2017
19:12:23  <supermop> ha
19:12:24  <loeky> (-: thanks but needed openttdcoop
19:12:42  <V453000> yo
19:12:46  <loeky> hello
19:13:23  <Wolf01> Mmmh, andythenothere... :(
19:14:17  <V453000> :D :D gray landscape makes ISR stations basically invisible
19:14:18  <V453000> :D:D:D
19:14:27  <Wolf01> :D
19:14:29  <V453000> it's almost exactly the same
19:14:36  <Wolf01> Nice
19:15:41  <V453000> "it's a feature"
19:15:46  <V453000> too much work to change
19:16:16  <Wolf01> I've got a bonus fidget spinner from samsung today, because I attended at an explanation of the new galaxy note 8 features
19:18:13  <V453000> wtf
19:19:11  <Wolf01> I was like "what this thing could be? It's heavy, a samsung magnet?"... opened the box: fidget spinner
19:19:52  *** andythenorth has joined #openttd
19:19:56  <Wolf01> o/
19:20:12  <andythenorth> hi
19:20:21  <Wolf01> Figured out what to do with the intermodal containers?
19:20:33  <andythenorth> nope
19:20:54  <andythenorth> legacy from Squid is that intermodal is express-only
19:20:56  <andythenorth> like mail cars
19:22:00  <Wolf01> Change squid too?
19:24:09  <andythenorth> squid is dead anyway
19:24:15  <andythenorth> and Hog doesn’t have intermodal yet
19:24:24  <andythenorth> good time to reset
19:24:32  <andythenorth> Wolf01: these what you saw?
19:25:14  <Wolf01> Nope, they were 3 hoppers in the same flat wagon
19:26:00  *** debdog has quit IRC
19:27:04  <Wolf01> more like this
19:27:15  <Wolf01> But they were open on top
19:29:27  <andythenorth> containers for all things
19:30:13  <V453000> XD
19:30:17  <V453000> iz cheat
19:30:18  <Wolf01> Yes, something like a short version of the rocktainer
19:31:27  <andythenorth> V453000: is NUTS 2 surely :P
19:31:32  <andythenorth> all realism, all the time
19:31:36  <Wolf01> Or the woodtainer, I don't really remember if they had slanted edges
19:33:19  <andythenorth> so all cargos?
19:33:23  <andythenorth> all except bulk?
19:34:10  *** debdog has joined #openttd
19:37:55  <Wolf01> In shipping, break bulk cargo or general cargo are goods that must be loaded individually, and not in intermodal containers nor in bulk as with oil or grain. <- I think it speaks for itself
19:43:44  <Wolf01> For example you could keep steel and log wagons, but introduce also intermodal ones for steel products, and sawdust for logs (still listed as logs if you don't have a second product from the sawmill), just to make some variation on trains
19:46:02  <V453000> andythenorth: how do I open a photo on a macbook and be able to use some kind of arrows for next/previous?
19:46:16  <V453000> it keeps opening it in some previewer and it seems to be just that one
19:46:28  <V453000> or iz some application which works easy and with this?
19:47:04  <andythenorth> no
19:47:06  <andythenorth> is all shit
19:47:09  <Wolf01> :D
19:47:13  <andythenorth> try hitting space
19:47:16  <andythenorth> in Finder
19:47:31  <andythenorth> gets you Quick Look, which would be awesome, but is always wrong size
19:53:05  <andythenorth> logtainer
19:53:10  *** debdog has quit IRC
19:53:12  *** debdog has joined #openttd
19:53:30  *** sla_ro|master has quit IRC
19:54:28  *** ToBeFree has quit IRC
19:56:18  <loeky> it was apple cake
19:56:53  <andythenorth>
19:57:05  <V453000> andythenorth: space seems to do the job
19:57:06  <V453000> thanks
19:57:23  <andythenorth> np
19:57:35  <loeky> oops wrong chat )-:
19:57:39  *** loeky has left #openttd
20:05:47  <andythenorth> what about refrigerated containers? :P
20:06:58  <Wolf01> And a container for containers?
20:07:02  <frosch123> you should have fish livestock containers
20:07:21  <frosch123> possibly with glass walls
20:07:38  <andythenorth> containers could be a whole grf :P
20:07:56  <frosch123> hmm, i wonder whether i ever transported fish with nuts
20:13:44  <andythenorth> bed
20:13:45  *** andythenorth has quit IRC
20:16:15  *** roidal_ has quit IRC
20:22:36  *** sim-al2 has joined #openttd
20:29:06  <supermop> industry: container terminal
20:29:33  <supermop> cargo+empty container = full container
20:51:40  <Wolf01> Make a grf for containers and call it Docker
20:52:06  <Wolf01> So we can say we support Docker in OTTD running in a Docker container
20:55:24  *** dpdp has joined #openttd
21:12:15  *** frosch123 has quit IRC
21:32:43  *** Progman has quit IRC
21:39:10  *** gelignite has quit IRC
21:56:34  <supermop> later
21:56:37  <supermop> beer time
21:56:46  *** supermop has quit IRC
22:09:04  *** dpdp has quit IRC
22:22:58  *** Wormnest has quit IRC
22:44:44  *** Gja has quit IRC
23:01:49  *** HerzogDeXtEr has quit IRC
23:10:57  *** Wolf01 has quit IRC
23:15:34  *** ToffeeYogurtPots has quit IRC
23:15:47  *** ToffeeYogurtPots has joined #openttd

Powered by YARRSTE version: svn-trunk