IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.48 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-08-01
[16:53]<pzynsv-jp-psy>damieng_ I am just thinking of other crap like buttons being out of place etc....
[16:53]<drdyrrr_>http://www.gimp.org/~tml/gimp/win32/
[16:53]<pzynsv-jp-psy>I know c++ and gtk wount be a issue
[16:53]<fdd>I just use mfc
[16:53]<drdyrrr_>that'll be entirely down to gtk
[16:54]<pzynsv-jp-psy>mfc?
[16:54]<drdyrrr_>microsofts C++ ui library
[16:54]<drdyrrr_>totally useless for your scenario.
[16:54]<pzynsv-jp-psy>yeah
[16:54]<pzynsv-jp-psy>but whats that got to do with linux?
[16:54]<fdd>ms foundation class
[16:54]<pzynsv-jp-psy>ok I am a noob
[16:54]<pzynsv-jp-psy>:)
[16:55]<fdd>we all are
[16:55]<pzynsv-jp-psy>Linux has very bad design tools tho
[16:55]<drdyrrr_>you'd be best off asking in python/gtk/pygtk channels/groups/lists
[16:55]<pzynsv-jp-psy>it will take me 6 months to do a app in linux that I can do in windows + .net
[16:55]<fdd>Priest-of-Psi: qt is getting there
[16:55]<fdd>Priest-of-Psi: what kind of app?
[16:57]<fdd>damn i gotta get a better job
[16:57]<fdd>my supervisor just flat out quit because the product is so crappily maintained
[17:03]<rwyfcygs>It's dried strips of five-spice pork
[17:04]<rwyfcygs>It's scary enough that I don't want to eat it. But it counts as a snack for the purposes of counting
[17:04]<rwyfcygs>So it's perfect ; it has no calories (because I'm not eating it)
[17:05]<pzynsv-jp-psy>I like have to clean my room and shit
[17:06]<cjmgrug>poll : is it a good idea to make a TicTacToe game UI from 9 buttons arranged in a TableLayoutPanel ?
[17:07]<rwyfcygs>CodeRun: Don't see why not
[17:07]<rwyfcygs>I was in the process of making a Thud board from an array of buttons once
[17:07]<cjmgrug>heh.. at designtime or runtime?
[17:08]<rwyfcygs>Runtime
[17:08]<rwyfcygs>I was trying to apply bitboard logic to the Thud board, which was tricksy
[17:08]<rwyfcygs>Seeing as you can't fit an entire Thud bitboard in a 64-bit intger like you can for chess
[17:09]<cjmgrug>i see
[17:09]<cjmgrug>arg... i had a lot of difficulty doing it at runtime.. since i didnt know how to add buttons within the cells of the tablelayoutpanel.. :o
[17:10]<rwyfcygs>I didn't bother with the layout panel
[17:10]<rwyfcygs>Fixed-size form ; simple for loop
[17:10]<cjmgrug>ah
[17:11]<rwyfcygs>I presume you just use .Controls.Add though
[17:12]<cjmgrug><what goes here?>.Controls.Add
[17:13]<drdyrrr_>this
[17:13]<rwyfcygs>myTableLayoutPanel
[17:13]<drdyrrr_>if done within the page... or whatever other control/page/subcontrol you want to add to....
[17:14]<svzz[wjzc]>retrying here : This is how i populate my combobox, and whatever i try it's not going to a "null" value state... here the exception gets raised... how could that be ? http://rafb.net/paste/results/jSDkPB21.html
[17:15]<sdnffdxdlld>damieng_: do you use a built in formatter for code on your blog or a utility?
[17:15]<cjmgrug>ok.. wait.. lets start again.. there is a form. it has a Panel. In this panel there is a tableLayoutpanel. I made it 3 rows and 3 columns. And now its all ready to programmatically add buttons. But how do i reference the individual cells of the tablelayoutpanel?
[17:15]<svzz[wjzc]>MyPanel.Rows[1].Cells[1]
[17:15]<svzz[wjzc]>?
[17:16]<drdyrrr_>smellyhippy I use <code> and then bold stuff by hand :D
[17:16]<svzz[wjzc]>there are plenty of code formatter on the web
[17:16]<drdyrrr_>yeah but not callable from in the middle of a subtext blog entry
[17:16]<svzz[wjzc]>smellyhippy hey did you aw my message yesterday, my routine that was taking above 30 seconds, now takes 2 seconds with Dictionaries
[17:17]<svzz[wjzc]>damieng_ i'm sure i aldready saw a server-side one, must've been in php i think
[17:17]<cjmgrug>StaZ[work]: i was talking about TableLayoutPanel. "MyPanel.Rows[1].Cells[1]" is not valid for that
[17:17]<rwyfcygs>StaZ[work]: myTablePanel.SetRow(myButton,0);
[17:18]<svzz[wjzc]>MyTableLayoutPanel.Rows[1].Cells[1]
[17:18]<svzz[wjzc]>awilkins that's for CodeRun
[17:18]<svzz[wjzc]>awilkins my problem is the stupid combobox that won'T clear it's selected value
[17:18]<rwyfcygs>Sorry StaZ[work]
[17:18]<svzz[wjzc]>np
[17:19]<rwyfcygs>CodeRun: Or SetCellPosition
[17:23]<sdnffdxdlld>ahhh sweet staz :)
[17:24]<sdnffdxdlld>hehe it is a big performance boast for large collections ;)
[17:24]<drdyrrr_>Staz, there are server side ones such as wilco's .net one
[17:24]<drdyrrr_>but again, NOT callable from in the middle of subtext.
[17:24]<sdnffdxdlld>damieng_: damn hehe I want full colour and crap
[17:24]<cjmgrug>thanks awilkins, StaZ[home].. i'll try it
[17:24]<sdnffdxdlld>but I'm too lazy to do it myself
[17:24]<drdyrrr_>smellyhippy use wilcos
[17:25]<drdyrrr_>http://www.wilcob.com/Wilco/Toolbox/SyntaxHighlighter.aspx
[17:31]<sdnffdxdlld>damn it doesnt colour classes like vs 2005 :(
[17:31]<sdnffdxdlld>i think I'm gonna have to go the ms word route and make a lil html tidy util
[17:31]<svzz[wjzc]>http://rafb.net/paste/results/jSDkPB21.html <- the exception is thrown... yes!, wtf!?... here's everything you need to know about my combobox -> http://rafb.net/paste/results/VMYkeo30.html
[17:34]<gjrvcxnne>anyone have any ideas for getting byte data from an "object"? I have an "object" object, and I can get it's type, but I also want a mechanism to persist that object to a file, and to be able to retrieve it back from that file with very little if anything changine (obviously, the memory space taken would change, and maybe some ids, but I'd like the data to stay the same)
[17:34]<drdyrrr_>smellyhippy, want to be a bit more specific?
[17:34]<svzz[wjzc]>GoatCheez ain't that called serialization?
[17:35]<gjrvcxnne>yeah
[17:35]<gjrvcxnne>some of the objects i'm using might not implement ISerializable tho
[17:36]<drdyrrr_>like which ones?
[17:37]<gjrvcxnne>like tons of custom objects used all over
[17:37]<gjrvcxnne>i use small little classes to encapsulate data
[17:37]<drdyrrr_>structs ?
[17:37]<gjrvcxnne>i've been using classes intead of structs
[17:37]<drdyrrr_>it'll be easier to add serialisation support to your own objects than trying to write your own binary serialization system
[17:37]<drdyrrr_>by a long shot
[17:38]<gjrvcxnne>even if i have more than 100 different objects?
[17:38]<gjrvcxnne>(types)
[17:38]<gjrvcxnne>i'm thinking it might be really easy by using marshalling...
[17:38]<drdyrrr_>if it was easy to store a class to disk in binary form with no changes to the class don't you think .net would do that instead of serialization?
[17:39]<rwyfcygs>GoatCheez: The way I did this in VB6 was to have an interface, IPersistable, inside which you called a generic routine with a paramarray that serialized the passed parameters to a byte []
[17:39]<gjrvcxnne>not necessarily..
[17:39]<gjrvcxnne>bah, i just had a brilliant idea, i'll post the code after i'm done...
[17:40]<rwyfcygs>Just implemented IPersistible on everything ; originally it was for XML, but I worked out you could attach multiple serialization engines to it
[17:40]<rwyfcygs>Once you made "IPersistenceEngine" abstract
[17:40]<gjrvcxnne>i'm NOT going to implement a damn method in over 100 classes
[17:41]<gjrvcxnne>it's just too late for that now
[17:41]<rwyfcygs>'twas easy with metadata about the classes and a code generator
[17:42]<rwyfcygs>THe call is only "engine.Persist(this,params); or something
[17:42]<rwyfcygs>You could make them partial classes, and write a reflection based code-gennie in no time
[17:43]<rwyfcygs>THen spew an extra file for each class with the persistence method in it
[17:43]<rwyfcygs>And having looked at the .NET serialization innards, it's a lot simpler







