[00:02:44] *** EmmanuelOga has quit IRC [00:04:51] *** blue112 has quit IRC [00:08:08] *** Caribou| has quit IRC [00:10:31] *** tametick has quit IRC [00:28:41] <Rc43> Any idea how to get hash from any object? [00:29:32] <Rc43> Suppose, I have two sprites and whant log info about them. I want to distinct them by object hash or reference or something else. Can I do it? [00:33:24] <tLt> toString() will give you a unique id in debugger flash players [00:37:00] <ousado> Rc43: you're on flash, right? [00:37:14] <Rc43> I get only [object Sprite]. It doesn't work with trace? [00:37:17] <Rc43> ousado, yes [00:37:47] <tLt> use debugger player [00:44:26] *** daurnima1or has joined #haxe [00:45:07] *** daurnimator has quit IRC [00:48:22] <ousado> you can use flash.utils.Dictionary to get an object id [00:49:32] <ousado> or, depending on what you want to do, use Dictionary directly [00:56:15] *** Rc43 has quit IRC [00:58:05] <Jan_Flanders> or just give it a name :) [01:21:50] *** bluezenix has quit IRC [01:37:02] <mi6_x3m> tLt: I spawn you [01:37:20] <mi6_x3m> or Jan_Flanders if you are good with MySQL [01:38:46] <Jan_Flanders> maybe good enough but I doubt it :) [01:39:33] <mi6_x3m> Jan_Flanders: I need to make a query [01:39:33] <mi6_x3m> and based on the outcome (at least one row) return 'Y' otherwise 'N' [01:39:33] <mi6_x3m> what function / operator would you recommend [01:40:46] <Jan_Flanders> i usually solve that with haxe(script) rather than with mysql [01:41:07] <tLt> SELECT 'Y' FROM query [01:41:08] <Jan_Flanders> count() ? [01:41:24] <EzeQL> select if(cond,true,false) ? [01:41:28] <Jan_Flanders> the question is not clear for me. :) [01:41:46] <mi6_x3m> EzeQL: yes but its' the condition thats the question here [01:41:54] <mi6_x3m> count is implemented to wait for all results of the query [01:41:55] <Jan_Flanders> what does 'based on the outcome' mean [01:41:58] <mi6_x3m> while I need only 1 to test [01:42:03] <mi6_x3m> so perhaps limit [01:42:08] <tLt> ya [01:42:08] <EzeQL> limit 1 ? [01:42:24] <mi6_x3m> yes, limit 1 [01:42:32] <mi6_x3m> but is that the best possible way [01:42:38] <mi6_x3m> I dont know ImmoDB that well [01:42:47] <mi6_x3m> always worked with postgre [01:42:49] <tLt> btw mysql does suppot some constucts like CASE in queries also but in that case i'd rather define a real stored proc or view [01:42:51] <mi6_x3m> where count is smart [01:43:02] <mi6_x3m> tLt: its a view [01:46:36] <mi6_x3m> EzeQL: tLt here is how I solved it [01:46:37] <mi6_x3m> http://pastebin.com/aMzW7ic1 [01:46:42] <mi6_x3m> might not be an optimal join though [01:49:38] *** niko has quit IRC [01:49:38] *** niko has joined #haxe [01:50:11] *** niko has quit IRC [01:50:11] *** niko has joined #haxe [01:59:30] *** notostraca has quit IRC [02:26:28] *** notostraca has joined #haxe [02:35:23] *** notostraca has quit IRC [02:48:25] *** EzeQL has quit IRC [02:59:47] *** mi6_x3m has quit IRC [03:17:49] *** flashmafia has joined #haxe [03:23:02] *** flashmafia has quit IRC [03:27:10] *** flashmafia has joined #haxe [03:27:17] *** flashmafia has left #haxe [03:48:40] *** flashmafia has joined #haxe [03:48:44] *** flashmafia has left #haxe [03:51:10] *** poot has joined #haxe [03:55:27] *** BernardV has quit IRC [04:03:43] *** BernardV has joined #haxe [04:08:43] *** icebirds has quit IRC [04:16:42] *** ivan\ has quit IRC [04:19:54] *** ivan\ has joined #haxe [04:28:30] *** Aduros has quit IRC [04:44:06] *** Aduros has joined #haxe [04:47:59] *** flashmafia has joined #haxe [04:48:39] *** flashmafia has left #haxe [04:53:25] *** EvRide has quit IRC [04:57:09] *** Aduros has quit IRC [04:57:18] *** sluther has joined #haxe [05:15:02] *** Aduros has joined #haxe [05:20:51] *** flashmafia has joined #haxe [05:25:17] *** flashmafia has left #haxe [05:30:13] *** BernardV has quit IRC [05:30:35] *** BernardV has joined #haxe [05:39:34] *** BernardV has quit IRC [05:45:07] *** BernardV has joined #haxe [05:52:49] *** Aduros has quit IRC [05:57:49] *** flashmafia has joined #haxe [05:57:52] *** flashmafia has left #haxe [06:18:49] *** Aduros has joined #haxe [06:23:52] *** Jan_Flanders has quit IRC [06:32:09] *** flashmafia has joined #haxe [06:47:43] *** flashmafia has left #haxe [07:03:49] *** basro_ has quit IRC [07:05:08] *** basro has joined #haxe [07:07:56] *** basro has quit IRC [07:25:07] *** sluther has quit IRC [07:26:50] *** icebirds has joined #haxe [07:32:23] *** Madrok has quit IRC [07:45:56] *** Madrok has joined #haxe [08:00:00] *** notostraca has joined #haxe [08:04:22] *** flashmafia has joined #haxe [08:04:27] *** flashmafia has left #haxe [08:25:33] *** flashmafia has joined #haxe [08:28:16] *** ousado has quit IRC [08:28:33] *** ousado has joined #haxe [08:32:51] *** pixels4nickels has quit IRC [08:34:08] *** flashmafia has left #haxe [08:45:20] *** tametick has joined #haxe [09:02:08] *** poot has quit IRC [09:08:13] *** Lapin_ has joined #haxe [09:09:41] *** flashmafia has joined #haxe [09:12:29] *** flashmafia has left #haxe [09:28:43] *** blue112 has joined #haxe [09:28:43] *** blue112 has joined #haxe [09:37:31] *** Lapin_ has quit IRC [10:32:17] *** tametick has quit IRC [10:49:32] *** Caribou| has joined #haxe [10:51:14] *** flashmafia has joined #haxe [10:52:49] *** flashmafia has left #haxe [11:07:27] *** djinni has quit IRC [11:20:37] *** djinni has joined #haxe [11:23:19] *** mi6_x3m has joined #haxe [11:33:00] *** Aduros has quit IRC [11:37:06] *** Rc43 has joined #haxe [11:37:10] <Rc43> Hi, guys. [11:38:30] <Rc43> Are there unmodifiable collections in haxe? [11:39:00] <Rc43> Oh. [11:39:06] <Rc43> I hav forgot about iterators. [11:44:06] <mi6_x3m> Rc43: who exactly needs such a thing [11:44:39] <Rc43> mi6_x3m, useful [11:45:24] <Rc43> mi4_x3m, you can wrap into it your items when anything read them [11:45:38] <mi6_x3m> Rc43: when? [11:46:40] <Rc43> mi6_x3m, suppose A has a private collection `xs` and B wants to read it. If A just returns `xs` then B can modify it, so it is good wrap `xs` with unmodifiable. [11:47:07] <mi6_x3m> Rc43: I dont think so [11:47:11] <mi6_x3m> this is just a contract detail [11:47:21] <mi6_x3m> if you are not allowed to modify, then dont [11:48:40] <Rc43> mi6_x3m, so you can use dynamic types only, it is contract detail too [11:49:02] <Rc43> it's just a strictness which helps to avoid mistakes [11:49:04] <mi6_x3m> Rc43: well, yeah, you are right [11:49:11] <mi6_x3m> yes I admin [11:49:13] <mi6_x3m> admit * [11:51:25] <Rc43> Something about half-year ago I lost my mind with Iterables in java. I have tried to implement every thing like an iterable. Happily, it is in the past :) [11:52:51] *** flashmafia has joined #haxe [11:53:20] <mi6_x3m> Rc43: my favorite language in the world is because of that IO [11:53:23] <mi6_x3m> followed by haXe [11:53:27] <mi6_x3m> but IO is ultimate power [11:54:34] <Rc43> Never used. It is smalltalk-influenced? [11:55:06] *** flashmafia has left #haxe [11:55:08] <Rc43> Haven't tried erlang? [11:55:22] <mi6_x3m> Rc43: yes [12:04:19] *** notostraca has quit IRC [12:06:07] *** tametick has joined #haxe [12:06:39] *** icebirds has quit IRC [12:08:07] *** icebirds has joined #haxe [12:18:54] *** flashmafia1 has joined #haxe [12:21:12] *** flashmafia1 has quit IRC [12:30:38] *** Triplefox has quit IRC [12:34:13] *** flashmafia has joined #haxe [12:34:17] *** flashmafia has left #haxe [12:40:28] *** djinni has quit IRC [12:49:08] *** EvRide has joined #haxe [12:51:32] *** djinni has joined #haxe [13:01:00] *** tLt- has joined #haxe [13:02:44] *** tLt has quit IRC [13:05:00] *** BjornW has joined #haxe [13:09:49] *** MuffinT has joined #haxe [13:13:30] *** Jan_Flanders has joined #haxe [13:13:30] *** ChanServ sets mode: +o Jan_Flanders [13:14:40] *** mi6_x3m has quit IRC [13:19:32] *** bluezenix has joined #haxe [13:19:43] *** mi6_x3m has joined #haxe [13:44:12] *** asdfhjkl has joined #haxe [14:13:41] *** Rc43 has quit IRC [14:23:04] *** dwz has joined #haxe [14:26:01] *** johnyBe has joined #haxe [14:26:11] <johnyBe> hey haxers [14:27:33] <Jan_Flanders> hey :) [14:27:54] <Jan_Flanders> are you good? :p [14:28:13] <johnyBe> fine! [14:28:19] <johnyBe> one problem though :p [14:28:25] <johnyBe> must be easy for you [14:28:48] <johnyBe> I need to create a socket IO server using NodeJS and my cool HaxE [14:28:58] <johnyBe> http://socket.io/#how-to-use [14:29:12] <johnyBe> here is the socket IO exaples written is javascript [14:29:29] <johnyBe> I am using -lib nodejs [14:29:38] <johnyBe> the problem is [14:29:47] <johnyBe> http://pastebin.com/bZNdZLnM [14:29:57] <johnyBe> when I write this [14:30:07] <johnyBe> I get the following compiler errors [14:30:23] <johnyBe> src/NodeSocketIO.hx:12: characters 4-10 : Missing ; [14:30:23] <johnyBe> src/NodeSocketIO.hx:12: characters 10-11 : Unexpected : [14:30:23] <johnyBe> src/NodeSocketIO.hx:12: characters 10-11 : Unexpected : [14:30:52] <johnyBe> I dont really understand the missing ones.. [14:31:12] <johnyBe> i cant pass an anonymous object like this one? [14:31:43] <Jan_Flanders> keys need to be without quotes [14:31:59] <johnyBe> you mean that and /chat? [14:32:03] <johnyBe> hmm [14:32:14] <Jan_Flanders> yes [14:32:41] <johnyBe> i did that and now i have [14:32:44] <Jan_Flanders> do you want to send a string or an object ? [14:32:49] <johnyBe> src/NodeSocketIO.hx:13: characters 4-11 : Unexpected "/chat" [14:32:49] <johnyBe> src/NodeSocketIO.hx:13: characters 4-11 : Missing ; [14:32:50] <johnyBe> src/NodeSocketIO.hx:13: characters 12-13 : Unexpected : [14:33:05] <johnyBe> i just want to port the EXACT same code [14:33:09] <johnyBe> using haxe [14:33:11] <johnyBe> nothing more [14:33:19] <johnyBe> just a 1-1 match [14:33:37] <Jan_Flanders> {that: 'only', chat : 'will get'} [14:33:59] <Jan_Flanders> '/' is not a valid character for a variable/key name [14:35:13] <johnyBe> src/NodeSocketIO.hx:15: characters 3-12 : Unknown identifier : chat [14:35:31] <johnyBe> :( [14:35:38] <johnyBe> let me paste the full code [14:36:02] <johnyBe> http://pastebin.com/VAMcXx61 [14:38:41] <johnyBe> the emit function needs an object in the second parameter as Socket IO says but I cant figure out whats the proper way to create it using haxe [14:38:55] <Jan_Flanders> it expect 'var char' inside that function [14:38:59] <Jan_Flanders> *expects [14:42:01] <Jan_Flanders> you'll have to rewrite it a little to make it work in haxe [14:42:46] <johnyBe> maybe the examples are misleading [14:44:34] <Jan_Flanders> http://pastebin.com/kb0tn3AM [14:45:12] <Jan_Flanders> the main difference/problem is that you cannot use quotes around keys for objects in haXe, while you can in javascript or Actionscript3 [14:45:31] <Jan_Flanders> var obj = { "key": 10};// js, as3 [14:45:42] <Jan_Flanders> var obj = { key:10};// haXe [14:45:57] *** basro has joined #haxe [14:47:21] <johnyBe> coool ! [14:47:29] <johnyBe> thank you :) [14:48:24] <Jan_Flanders> it works? [14:49:09] <Jan_Flanders> you may need to change io.of('/chat') to io.of('chat') as well, since we changed it in the object as well [14:49:41] <Jan_Flanders> if it really needs to start with / then your only option is using Reflect I think [14:49:58] <johnyBe> src/NodeSocketIO.hx:15: characters 55-64 : socket : { emit : String -> { news : String } -> Unknown<0> } -> Void should be socket : { emit : String -> { that : Stri [14:50:20] <johnyBe> i get this error must be the return type of the function [14:51:22] <Jan_Flanders> I'm missing the end (and most important part) of the error ;) [14:51:37] <johnyBe> should be socket : { emit : String -> { that : String, chat : String } -> Unknown<0> } -> Void [14:51:39] <johnyBe> hehe [14:52:56] *** basro_ has joined #haxe [14:54:48] <johnyBe> http://pastebin.com/49baa8dB [14:54:59] <johnyBe> here i pasted the compiler errors [14:56:25] *** basro has quit IRC [14:59:32] <Jan_Flanders> johnyBe: try typing the socket parameter as Dynamic as well [14:59:44] <Jan_Flanders> function sendFunc1(socket:Dynamic) [14:59:47] <johnyBe> ok [14:59:52] <Jan_Flanders> and same for sendFunc2 [15:00:21] <johnyBe> cool thanks that fixed it [15:00:23] <johnyBe> :) [15:01:54] <Jan_Flanders> k :) [15:02:37] <Jan_Flanders> because of the type inference the compiler typed it from the first time you used it [15:02:59] <Jan_Flanders> and then you didn't use in exactly the same way the next time, which is why you got the error [15:03:07] <Jan_Flanders> *it [15:03:39] <johnyBe> ok cool I got it thank you! [15:04:12] <Jan_Flanders> function f( posx ) {...} [15:04:14] <Jan_Flanders> f(134); [15:04:15] <Jan_Flanders> f(12.2); // Error : Float should be Int [15:04:39] <Jan_Flanders> http://haxe.org/ref/type_infer?lang=en [15:07:18] <johnyBe> Dynamic is like * in AS3 right? [15:07:29] <johnyBe> var foo:* [15:07:37] <johnyBe> haha [15:07:50] <johnyBe> not the emoticon thing [15:07:52] <Jan_Flanders> very similar to anytype (*) yes [15:08:17] <johnyBe> oook nice! [15:09:09] <johnyBe> thanks for your precious help, bye! [15:09:12] *** johnyBe has left #haxe [15:13:08] *** tLt- has quit IRC [15:18:13] *** flashmafia has joined #haxe [15:18:59] *** flashmafia has left #haxe [15:34:59] *** Lapin_ has joined #haxe [16:00:56] *** bluezenix has quit IRC [16:35:54] *** Prof_BiG_BanG has joined #haxe [16:35:54] *** Prof_BiG_BanG has joined #haxe [16:40:48] *** Prof_BiG_BanG has quit IRC [16:54:26] *** amitp has joined #haxe [17:03:45] *** Prof_BiG_BanG has joined #haxe [17:03:45] *** Prof_BiG_BanG has joined #haxe [17:33:21] *** pixels4nickels has joined #haxe [17:45:27] *** Yrgkala has quit IRC [17:59:30] *** Lapin_ has quit IRC [18:47:03] *** cousteau has joined #haxe [19:03:39] *** notostraca has joined #haxe [19:04:22] *** Prof_BiG_BanG has quit IRC [19:05:02] *** cousteau has left #haxe [19:31:16] *** staven has joined #haxe [19:38:48] *** tametick has quit IRC [19:41:20] *** MissileMike1 has quit IRC [19:54:09] *** MissileMike has joined #haxe [20:16:57] *** Yrgkala has joined #haxe [20:53:20] *** icebirds has quit IRC [20:53:31] *** icebirds has joined #haxe