IRC logs for #openttd on OFTC at 2017-10-06
            
00:18:51 <Wolf01> Everything but change idea tomorrow
00:36:59 *** HerzogDeXtEr has quit IRC
01:15:46 *** chomwitt has quit IRC
01:19:16 *** orudge` has quit IRC
01:19:20 *** orudge` has joined #openttd
01:19:20 *** ChanServ sets mode: +o orudge`
01:21:48 *** mindlesstux has quit IRC
01:22:18 *** mindlesstux has joined #openttd
01:27:50 *** debdog has quit IRC
01:32:57 *** debdog has joined #openttd
01:33:56 *** Flygon has joined #openttd
01:41:26 *** Laedek has quit IRC
01:44:15 *** Laedek has joined #openttd
01:47:33 *** Laedek has quit IRC
01:51:40 *** Montana has joined #openttd
01:53:20 *** debdog has quit IRC
01:55:03 *** Laedek has joined #openttd
01:57:26 *** orudge` has quit IRC
01:57:30 *** orudge` has joined #openttd
01:57:30 *** ChanServ sets mode: +o orudge`
01:58:47 *** debdog has joined #openttd
02:06:39 *** Wolf01 has quit IRC
02:33:59 *** glx has quit IRC
04:03:41 *** debdog has quit IRC
04:06:17 *** Webster is now known as Guest6100
04:06:29 *** Webster has joined #openttd
04:09:49 *** Guest6100 has quit IRC
04:12:30 *** debdog has joined #openttd
04:31:13 *** murr4y has quit IRC
04:31:13 *** tneo has quit IRC
04:33:12 *** tneo has joined #openttd
04:38:03 *** murr4y has joined #openttd
05:18:59 *** sim-al2 is now known as Guest6113
05:19:00 *** sim-al2 has joined #openttd
05:24:02 *** Guest6113 has quit IRC
07:33:21 *** Cubey has quit IRC
08:18:32 *** andythenorth has joined #openttd
08:23:04 *** sim-al2 has quit IRC
08:33:17 *** andythenorth has quit IRC
08:55:51 *** andythenorth has joined #openttd
09:01:06 *** andythenorth has quit IRC
09:11:10 *** andythenorth has joined #openttd
09:20:44 *** andythenorth has quit IRC
09:22:42 *** andythenorth has joined #openttd
09:27:32 *** andythenorth has quit IRC
09:45:56 *** ToffeeYogurtPots has quit IRC
09:59:40 *** andythenorth has joined #openttd
10:16:15 *** ToffeeYogurtPots has joined #openttd
10:17:14 *** andythenorth has quit IRC
10:18:20 *** ToffeeYogurtPots has quit IRC
10:24:01 *** andythenorth has joined #openttd
10:24:10 *** andythenorth has left #openttd
10:25:05 *** ToffeeYogurtPots has joined #openttd
10:27:03 *** Lightning has joined #openttd
11:30:03 *** debdog has quit IRC
11:31:34 *** Montana has quit IRC
11:34:55 *** debdog has joined #openttd
11:45:17 *** Biolunar has joined #openttd
11:57:52 *** debdog has quit IRC
12:03:15 *** debdog has joined #openttd
12:23:33 *** debdog has quit IRC
12:29:15 *** debdog has joined #openttd
13:10:35 *** Gja has joined #openttd
13:18:53 *** debdog has quit IRC
13:23:40 *** debdog has joined #openttd
13:44:17 *** debdog has quit IRC
13:50:27 *** debdog has joined #openttd
14:45:59 *** sim-al2 has joined #openttd
14:46:02 <yorick> https://www.reactos.org/project-news/reactos-repository-migrated-github
14:50:07 *** roidal has joined #openttd
15:08:42 <peter1138> ok
15:22:36 *** orudge` has quit IRC
15:22:41 *** orudge` has joined #openttd
15:22:41 *** ChanServ sets mode: +o orudge`
15:52:02 *** sim-al2 has quit IRC
16:14:39 <crem1> http://store.steampowered.com/app/598960/Mashinky/
16:20:44 *** Flygon has quit IRC
16:22:41 <supermop> yo
16:24:11 <peter1138> Never seen that link before!
16: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.
16:34:11 <crem1> Hopefully it will only get better like factorio.
16:58:59 *** sla_ro|master has joined #openttd
17:01:08 *** Wolf01 has joined #openttd
17:02:35 <Wolf01> Moin
17:13:23 <supermop> hi Wolf01
17:16:59 <Wolf01> Mmmh, I need to reverse the logic of my app
17:17:31 *** Alberth has joined #openttd
17:17:32 *** ChanServ sets mode: +o Alberth
17:17:43 <Wolf01> o/
17:17:54 <Alberth> o/
17: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
17:19:06 <Alberth> likely, or you keep track of the last N entries
17:19:36 <Wolf01> I have the cache to load the same stuff from file, but not the new stuff :P
17:19:42 <Alberth> but you don't need to load the file anyway to display the newest?
17:19:49 <Wolf01> And that means the kickstart of the app is really slow
17:20:00 *** Wormnest has joined #openttd
17:20:01 <Alberth> not really 'kick' :p
17:21:26 <Alberth> some form of incremental loading/display might be useful?
17: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)
17: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
17:23:11 *** tokai|noir has joined #openttd
17:23:12 *** ChanServ sets mode: +v tokai|noir
17:24:40 <Alberth> could work, as long as you keep the displayed items ordered on date, I think
17:25:59 *** Maraxus has joined #openttd
17: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?)
17:30:13 *** tokai has quit IRC
17:33:31 <Alberth> bisection method, https://en.wikipedia.org/wiki/Binary_search_algorithm
17:33:44 <Wolf01> Yes that
17:33:50 <Alberth> searching is as fast as binary tree
17:34:37 <Alberth> slightly faster if you count cpu cache locality (if that applies in your case)
17:37:55 <Alberth> heap is perhaps better https://en.wikipedia.org/wiki/Binary_heap as it is quite good at insertion
17:40:56 *** Progman has joined #openttd
17:44:24 <Alberth> hmm, no in-order traversal for free
17: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
17:48:01 <Wolf01> I use this one, because of the UI: https://msdn.microsoft.com/it-it/library/ms668604%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
17:50:21 <Alberth> ha, I can read some class and function names, and that's it :)
17:50:33 <Alberth> but yeah, seems like the right solution
17:50:57 <Alberth> not like you have a zillion entries anyway
17:51:17 *** roidal_ has joined #openttd
17:51:39 <Alberth> so anything will basically work :)
17:51:55 <Wolf01> No, maybe 20-30, so I don't think it blocks the execution for too much
17:52:13 <Wolf01> And if I do it async it doesn't even block it
17: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...
17:54:32 <Alberth> :O
17:55:37 <Alberth> would be really nice if I has that sort of problems as the most difficult ones :)
17:56:12 <Alberth> or even common ones :)
17: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?
17:57:31 <Wolf01> Or minutes into the combobox item, it seem microsoft does this
17:57:33 <Alberth> s/delay// ?
17:58:02 <Alberth> minutes already implies waiting :)
17:58:12 *** roidal has quit IRC
17:58:21 <Alberth> s/auto// ?
17:58:44 <Alberth> Update feeds every XX minutes
17:59:08 <Wolf01> Also
18:02:48 <Wolf01> Meh, I have to make the combobox a Frankenstein's monster to allow to translate the " minutes" string for items
18:08:45 <Alberth> :(
18:11:06 *** HerzogDeXtEr has joined #openttd
18:11:09 <Wolf01> https://daxsnippets.wordpress.com/2015/06/12/win10-localised-text/
18:12:32 <Wolf01> (I don't know why he uses TextBlock instead of ComboBoxItem)
18:13:59 *** Maraxus has quit IRC
18:15:16 <Alberth> it was simpler?
18:15:38 <Alberth> examples are hardly ever complete
18:16:04 <Alberth> reference manuals are more appropriate for that kind of questions
18:16:04 <Wolf01> Nah, you can fit even checkboxes in comboboxes
18:16:23 <Alberth> combo checking :)
18:16:40 <Wolf01> Usually people do a lot of strange things because want to add icons and stuff
18:19:51 <Alberth> yeah, although it doesn't sound like a good idea, imho
18:20:21 <Alberth> but many people are scared shit of plain text
18:21:09 *** Arveen2 has joined #openttd
18:22:27 *** frosch123 has joined #openttd
18:22:43 <Wolf01> Quak
18:22:59 <Alberth> hola
18:23:02 <frosch123> moo
18:26:30 <frosch123> looks like V has no issues with earbuds
18:26:41 <Alberth> http://devs.openttd.org/~alberth/wide_enough.png wide enough for a double track over the water, right :)
18:27:18 <Wolf01> Right
18:27:32 *** Arveen has quit IRC
18:28:57 <Wolf01> http://www.wpf-tutorial.com/list-controls/combobox-control/ <- look at the part with "custom content"
18:31:31 <Alberth> that example makes sense
18:32:35 <supermop> frosch123: ha
18:32:38 <Alberth> hmm, somewhat lacking money
18:33:03 <Wolf01> Building foundations on water is expensive
18:35:58 <Alberth> yep
18:40:44 <Alberth> and they built the power plant in the middle of farm fields as well
18:43:30 <Eddi|zuHause> Alberth: maybe it was the place with the fewest NIMBYs
18:45:37 *** Cubey has joined #openttd
18: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... :|
18:49:17 <Alberth> fold a class around it?
18:49:57 <Wolf01> Just new int[] { 1, 2, ...}
18:50:17 <Wolf01> But it was underlined in red, maybe I'm too fast for the intellisense
18:50:28 <Alberth> :)
18:50:35 <Alberth> type slower :p
18:50:48 <Alberth> Eddi: it was narrow enough for that :)
18:52:49 <Alberth> Oh right, java-ish
18:53:10 *** glx has joined #openttd
18:53:10 *** ChanServ sets mode: +v glx
18:53:19 <Alberth> can you have unreachable code in C# ?
18:53:51 <Wolf01> Yes just put something after a return
18:55:08 <Alberth> nice, it's a fatal error in Java
18:55:21 <frosch123> does it have "goto"?
18:55:21 <Alberth> which is just plain stupid
18: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) :(
18:56:10 <Alberth> hmm, max speed of coal train 47km/h :p
18:56:13 <Eddi|zuHause> Alberth: so if i add a return for debugging purposes, i have to comment out all the code?
18:56:37 <Alberth> nah, "if (true) return;" works
18:56:54 <Alberth> ie "if" is an exception
18:57:15 <Wolf01> In java yes, here the intellisense just tells you are stupid
18:57:39 <Alberth> reasoning is that you may have debug code if (DEBUG) { ... }
18:57:49 <Alberth> with DEBUG defined at the top of the file
18:58:21 <Alberth> so in all, it's a silly useless attempt to control program code
18:58:32 <Wolf01> With the constant it just greyes out the part of the code which won't be executed
18:58:46 <glx> it's stupid to have unreachable code, but it's more stupid to consider it a fatal error
18:59:19 <Eddi|zuHause> warning is a sane level
18:59:29 <glx> a warning or a notice during the compilation is enough yes
19:00:33 <Alberth> it gives an extra challenge if you generate Java code :p
19:01:20 <Alberth> so indeed, I generate "if (true) return" statements, and "while(...) { if (false) break; ... }"
19:01:27 <Eddi|zuHause> Alberth: but the solution there is the same as above debug thing
19:01:40 <Alberth> it is
19:01:50 <Alberth> modulo the 64K limit crap
19:02:11 <Eddi|zuHause> what 64k limit?
19:02:21 <Alberth> everything 64K limits
19:02:28 <Alberth> 64K byte code in a method
19:02:32 <Alberth> 64K methods
19:02:34 <glx> JVM limitation I guess
19:02:45 <Alberth> yes
19:02:54 <Eddi|zuHause> what happened to 32bit?
19:02:58 <Alberth> invented in the 90s and still applied
19:03:48 <Eddi|zuHause> the time when .com files were max 64k
19:03:48 <Alberth> compiler isn't even smart enough to handle it
19:04:29 <Alberth> probably they are afraid some system from the 90s is still running java
19:04:31 <frosch123> haha, if you didn't mention code generation earlier, i would have wondered how you got to those limits :)
19:04:59 <Eddi|zuHause> ... until some dos versions where even command.com wasn't actually a .com file anymore, but an .exe file which just was renamed .com
19:05:17 <Alberth> sure manual code is quite alright, even unreachable code never happens there, other than by accident
19:05:29 <Alberth> but it's clearly designed for that one usecase
19:05:54 <Eddi|zuHause> frosch123: like that one nml or grfcodec bug at 64k sprites that i found?
19:05:56 <glx> JVM runs on a lot of silly systems
19: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
19:07:27 <Eddi|zuHause> glx: quite worrying if you think about how many java programs your average car runs nowadays...
19:07:36 <glx> yup
19:08:00 <glx> and IoT things
19:09:40 <Wolf01> I would be more worried to have a PHP powered car
19:13:43 <glx> now you have to plug the car to enable the AUX port on the radio
19:13:46 <glx> that's crazy
19:16:22 <Wolf01> Pizza time
19:16:46 *** Gja has joined #openttd
19:17:06 *** andythenorth has joined #openttd
19:25:25 <andythenorth> o/
19:26:12 <frosch123> hoi
19:26:50 <Alberth> o/
19:34:33 <V453000> iz huminz, iz friday
19:34:37 <V453000> iz photoshop, iz solution
19:38:39 <andythenorth> photostrop
19:44:55 *** ToBeFree has joined #openttd
19:55:02 *** gelignite has joined #openttd
20:04:37 *** Biolunar has quit IRC
20:05:39 <andythenorth> iz friday
20:05:41 *** andythenorth has quit IRC
20:07:50 *** Defaultti has joined #openttd
20:53:06 *** Alberth has left #openttd
21:01:02 *** debdog has quit IRC
21:06:11 *** Arveen has joined #openttd
21:06:39 *** debdog has joined #openttd
21:11:02 *** Arveen2 has quit IRC
21:11:02 *** loeky has joined #openttd
21:11:08 <loeky> !date
21:11:22 <Wolf01> 06/10/2017
21:12:23 <supermop> ha
21:12:24 <loeky> (-: thanks but needed openttdcoop
21:12:42 <V453000> yo
21:12:46 <loeky> hello
21:13:23 <Wolf01> Mmmh, andythenothere... :(
21:14:17 <V453000> :D :D gray landscape makes ISR stations basically invisible
21:14:18 <V453000> :D:D:D
21:14:27 <Wolf01> :D
21:14:29 <V453000> it's almost exactly the same
21:14:36 <Wolf01> Nice
21:15:41 <V453000> "it's a feature"
21:15:46 <V453000> too much work to change
21:16:17 <Wolf01> I've got a bonus fidget spinner from samsung today, because I attended at an explanation of the new galaxy note 8 features
21:18:13 <V453000> wtf
21:19:11 <Wolf01> I was like "what this thing could be? It's heavy, a samsung magnet?"... opened the box: fidget spinner
21:19:52 *** andythenorth has joined #openttd
21:19:56 <Wolf01> o/
21:20:12 <andythenorth> hi
21:20:21 <Wolf01> Figured out what to do with the intermodal containers?
21:20:33 <andythenorth> nope
21:20:54 <andythenorth> legacy from Squid is that intermodal is express-only
21:20:56 <andythenorth> like mail cars
21:22:00 <Wolf01> Change squid too?
21:24:09 <andythenorth> squid is dead anyway
21:24:15 <andythenorth> and Hog doesn’t have intermodal yet
21:24:24 <andythenorth> good time to reset
21:24:32 <andythenorth> Wolf01: these what you saw? https://www.flickr.com/photos/8293801@N07/15538895460/in/photolist-UMEknS-SzsRy2-VPSLkD-pXAbof-rG8H5y-rpFhVh-qKsbAv-pXhoSt-pF7UfG-pF2zM8-pXAcqq-H5buwm-Rp9EoS-H5buw1-H5buww-Uivvse-H5bux3-EvE6iq-QiAVwA-QQ57AM
21:25:14 <Wolf01> Nope, they were 3 hoppers in the same flat wagon
21:26:00 *** debdog has quit IRC
21:27:04 <Wolf01> https://www.vtg.com/fileadmin/_processed_/2/a/csm_I44.060D_354ee1a842.jpg more like this
21:27:15 <Wolf01> But they were open on top
21:29:27 <andythenorth> containers for all things http://www.innofreight.com/en/logistic-solutions/logisticsolutions.php
21:30:13 <V453000> XD
21:30:17 <V453000> iz cheat
21:30:18 <Wolf01> Yes, something like a short version of the rocktainer
21:31:27 <andythenorth> V453000: is NUTS 2 surely :P
21:31:32 <andythenorth> all realism, all the time
21:31:36 <Wolf01> Or the woodtainer, I don't really remember if they had slanted edges
21:33:19 <andythenorth> so all cargos?
21:33:23 <andythenorth> all except bulk?
21:34:10 *** debdog has joined #openttd
21: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
21: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
21: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?
21:46:16 <V453000> it keeps opening it in some previewer and it seems to be just that one
21:46:28 <V453000> or iz some application which works easy and with this?
21:47:04 <andythenorth> no
21:47:06 <andythenorth> is all shit
21:47:09 <Wolf01> :D
21:47:13 <andythenorth> try hitting space
21:47:16 <andythenorth> in Finder
21:47:31 <andythenorth> gets you Quick Look, which would be awesome, but is always wrong size
21:53:05 <andythenorth> logtainer https://www.youtube.com/watch?v=sC6yCJiUSvQ
21:53:10 *** debdog has quit IRC
21:53:12 *** debdog has joined #openttd
21:53:30 *** sla_ro|master has quit IRC
21:54:28 *** ToBeFree has quit IRC
21:56:18 <loeky> it was apple cake
21:56:53 <andythenorth> http://seabox.com/products/detail/SB47174-40ft-type-17
21:57:05 <V453000> andythenorth: space seems to do the job
21:57:06 <V453000> thanks
21:57:23 <andythenorth> np
21:57:35 <loeky> oops wrong chat )-:
21:57:39 *** loeky has left #openttd
22:05:47 <andythenorth> what about refrigerated containers? :P
22:06:58 <Wolf01> And a container for containers?
22:07:02 <frosch123> you should have fish livestock containers
22:07:21 <frosch123> possibly with glass walls
22:07:38 <andythenorth> containers could be a whole grf :P
22:07:56 <frosch123> hmm, i wonder whether i ever transported fish with nuts
22:13:44 <andythenorth> bed
22:13:45 *** andythenorth has quit IRC
22:16:15 *** roidal_ has quit IRC
22:22:36 *** sim-al2 has joined #openttd
22:29:06 <supermop> industry: container terminal
22:29:33 <supermop> cargo+empty container = full container
22:51:40 <Wolf01> Make a grf for containers and call it Docker
22:52:06 <Wolf01> So we can say we support Docker in OTTD running in a Docker container
22:55:24 *** dpdp has joined #openttd
23:12:15 *** frosch123 has quit IRC
23:32:43 *** Progman has quit IRC
23:39:10 *** gelignite has quit IRC
23:56:34 <supermop> later
23:56:37 <supermop> beer time
23:56:46 *** supermop has quit IRC