| 00:35.46 | *** join/#brlcad maccam912 (n=maccam91@71-10-127-82.dhcp.stpt.wi.charter.com) | |
| 00:36.13 | maccam912 | hello? |
| 00:37.01 | maccam912 | stilll waiting for links to .exe or .rpm compiled versions of BRLCAD. email links to maccam912@gmail.com please. |
| 00:43.22 | *** join/#brlcad polyspin (n=polyspin@pcp0011463358pcs.chrchv01.md.comcast.net) | |
| 00:44.19 | polyspin | anyone remember how to duplicate a boot disk on a Mac? |
| 01:03.40 | *** join/#brlcad archivist_ (n=archivis@host217-35-76-52.in-addr.btopenworld.com) | |
| 01:24.16 | brlcad | DiskCopy? |
| 01:26.37 | brlcad | if you mean duplicate the contents of your bootable drive contents, something like Carbon Copy Cloner does the trick |
| 01:26.51 | brlcad | if you mean duplicate a bootable CD, should just be a matter of copying the CD |
| 01:27.05 | brlcad | http://www.bombich.com/mactips/image.html |
| 01:28.50 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/include/config_win.h: sourceforge finally removed the stale cvs lock, update version to 7.6.6 |
| 01:30.32 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/misc/macosx/Resources/ (ReadMe.rtfd/TXT.rtf Welcome.rtfd/TXT.rtf): update to 7.6.6 |
| 01:32.30 | pra5ad | Twingy, |
| 01:32.48 | pra5ad | is the endian flag set for all models in the db? |
| 01:33.15 | pra5ad | if so, which value for big endian |
| 01:36.07 | polyspin | I've got a second drive with a partition I'd like to make 1) bootable and 2) an exact duplicate of my main drive. |
| 01:36.31 | brlcad | ahh, then that link is more in line with what you need |
| 01:36.55 | polyspin | thx |
| 01:48.58 | pra5ad | brlcad, |
| 01:49.06 | brlcad | pra5ad, |
| 01:49.12 | pra5ad | does bzflag have endian swap/check code ? |
| 01:49.25 | brlcad | of course |
| 01:49.42 | pra5ad | got a url? |
| 01:50.47 | brlcad | well, what do you mean first |
| 01:51.03 | brlcad | the protocol code does what bz does, calls htons htonl, etc |
| 01:51.13 | brlcad | network representation is the "standard" |
| 01:51.31 | pra5ad | http://www.codeguru.com/forum/showthread.php?t=292902 |
| 01:51.38 | brlcad | you could/should just use those routines |
| 01:51.39 | pra5ad | this guy is clueless then? |
| 01:51.51 | pra5ad | Q: Why didn't you just use 'ntohl()' and 'htonl()'? |
| 01:51.51 | pra5ad | A: These functions |
| 01:51.51 | pra5ad | <PROTECTED> |
| 01:51.51 | pra5ad | <PROTECTED> |
| 01:52.14 | brlcad | heh |
| 01:52.38 | brlcad | neither does that code necessarily |
| 01:52.50 | brlcad | you see, you have objects that are maybe 4 bytes long |
| 01:52.58 | brlcad | they can be 4321 or 1234 |
| 01:53.08 | brlcad | or 4312 4123 etc |
| 01:53.22 | brlcad | depends if you want to support that |
| 01:54.09 | brlcad | htonl and family take care of that and are about as portable as fork() |
| 01:54.11 | pra5ad | and what endian are those? |
| 01:54.20 | brlcad | "middle endian" |
| 01:54.30 | brlcad | pretty rare these days |
| 01:54.49 | brlcad | but about as lame as his reason for not using htonl |
| 01:55.51 | brlcad | they aren't part of C but so is a ton of other stuff everyone uses, they are however a part of POSIX |
| 01:56.10 | brlcad | and posix is the best golden ruler to follow if your gonna follow any of them |
| 01:56.25 | pra5ad | what additional dependancy does htonl need |
| 01:56.34 | brlcad | dependency? |
| 01:56.52 | pra5ad | yes |
| 01:57.29 | brlcad | your question makes no sense |
| 01:57.40 | pra5ad | arpa/inet.h |
| 01:57.51 | pra5ad | what lib is that part of? |
| 01:59.00 | brlcad | it's not an external library |
| 01:59.08 | brlcad | you're still dealing with the C library |
| 01:59.25 | brlcad | it's just not part of the early C standards, heck might have even been added to the latter C standard |
| 01:59.43 | brlcad | doesn't matter, it's been a part of systems for about two decades |
| 01:59.54 | brlcad | was part of the bsd standard |
| 02:00.01 | brlcad | became part of posix |
| 02:00.07 | pra5ad | netinet/in.h |
| 02:00.43 | brlcad | are you asking what headers do you need to include to use htonl? |
| 02:00.57 | brlcad | that's not an "additional dependency" :P |
| 02:01.14 | brlcad | that's just how you use functions, man byteorder |
| 02:01.23 | pra5ad | no, lib |
| 02:01.38 | pra5ad | thought it was a seperate net lib |
| 02:01.56 | brlcad | should just need to include arpa/inet.h and maybe add -lc |
| 02:04.28 | brlcad | by the way, you will need to check whether you are the same or different as the network format |
| 02:04.48 | brlcad | if you are the same, ntoh is going to be a pass-through |
| 02:06.40 | brlcad | so given you know it's already one way or the other, you might just want to write a simple swap define |
| 02:08.15 | brlcad | e.g. #define swap16(x) ((((uint16)(x) & 0xff00) >> 8) | (((uint16)(x) & 0x00ff) << 8)) |
| 02:08.47 | brlcad | then you can detect his big/little endian flag, and compare to you and if they are different, swap bytes |
| 02:08.56 | brlcad | define something similar for swap32 and so on |
| 02:11.40 | pra5ad | hmm |
| 02:12.08 | pra5ad | how bout a generic swap( byte* , sizeof ) |
| 02:15.54 | *** join/#brlcad DarkMaster (n=Apathy@pcp0011645240pcs.aberdn01.md.comcast.net) | |
| 03:19.34 | *** join/#brlcad DTRemenak (n=DTRemena@DHCP-170-143.caltech.edu) | |
| 04:13.56 | brlcad | macro version is considerably faster |
| 04:40.37 | pra5ad | force inline |
| 04:46.18 | learner | even inlined |
| 04:46.56 | learner | not that it matters a whole lot, you only need to swap once on read |
| 04:51.43 | pra5ad | yes |
| 05:37.42 | *** join/#brlcad PKMOBILE (n=Apathy@pcp0011645240pcs.aberdn01.md.comcast.net) | |
| 08:52.29 | *** join/#brlcad Maloeran (n=alexis@modemcable065.3-83-70.mc.videotron.ca) | |
| 09:59.37 | *** join/#brlcad d_rossberg (n=rossberg@bz.bzflag.bz) | |
| 11:23.30 | *** join/#brlcad AchiestDragon (n=dave@whipy.demon.co.uk) | |
| 13:13.10 | *** join/#brlcad cad416 (n=3e5ebb57@bz.bzflag.bz) | |
| 14:12.26 | learner | /away i'm not really here |
| 14:12.40 | brlcad | that's not very useful now is it |
| 15:23.53 | *** join/#brlcad cad969 (n=803f2049@bz.bzflag.bz) | |
| 18:53.43 | brlcad | http://beta.bzflag.bz/side_small.png |
| 18:54.21 | brlcad | cool tankie :) |
| 18:55.33 | joevalleyfield | looks a little like the batmobile from last summer's movie |
| 20:46.30 | *** join/#brlcad pier (n=pier@151.56.213.59) | |
| 20:56.47 | CIA-5 | BRL-CAD: 03bob1961 07bobWinPort * 10brlcad/src/tclscripts/archer/Archer.tcl: Add the following methods: decimate, decimate2, decimateAttr and decimateAttr2. Mods to import a single STL file or a directory of STL files. |
| 21:04.55 | *** join/#brlcad Maloeran (n=alexis@70.83.3.65) | |
| 21:13.59 | *** join/#brlcad Maloeran_ (n=alexis@70.83.3.65) | |
| 21:17.35 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/src/librt/shoot.c: these comparisons are order invariant so change from a >= b to !(a < b) for better performance on G5 processors |
| 21:57.48 | *** part/#brlcad pier (n=pier@151.56.213.59) | |
| 22:01.52 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/ (configure.ac README include/config_win.h): bump the revision number to 7.6.7 post release, next version is trepidly going to be 7.6.8, maybe 7.8.0 if windows work begins merging in time (which isn't likely given there's only two weeks). |
| 22:05.47 | CIA-5 | BRL-CAD: 03brlcad * 10brlcad/NEWS: add a section for 7.6.7, make initial note that this is our one year anniversary |
| 22:55.42 | *** join/#brlcad Maloeran_ (n=alexis@70.83.3.65) | |