02:25 <+SirCmpwn> especially related to crypto 02:25 <+sadimusi> yes, some of them are even linked in the wiki 02:25 <+sadimusi> so borrowing code is pretty much encouraged 02:26 <+SirCmpwn> I should update the links to Craft.Net on the wiki, looks like they 404 02:27 <+ammar2> sadimusi: hmm, apparently my terribad code (tm) actually inspired his project https://github.com/nickelpro/spock/blob/master/legal.md#pycraft 02:27 <+ammar2> knew I should have nuked it before it infected other things 02:27 < shoghicp> I'm in the middle of the MCPE update xD 02:28 < moejoe> can't find craft.net either in your wiki or anywhere else O.o 02:28 <+SirCmpwn> https://github.com/SirCmpwn/Craft.Net/tree/refactoring 02:28 <+SirCmpwn> it's C#, though, probably not relevant to you 02:28 < moejoe> thx 02:30 < moejoe> which one would you consider to be the main python client? 02:30 < moejoe> if not pycraft 02:30 <+SirCmpwn> it's not really about clients or servers, it's about projects 02:30 <+SirCmpwn> I'd say mc3p is the main python project 02:31 < moejoe> i see 02:32 <+ammar2> moejoe: I'd advise not using that old piece of junk (pyCraft), looks like the spock author improved on my stuff quite a bit and if you're gonna choose between them, spock is probably the better choice 02:32 <+ammar2> moejoe: what error were you getting with crypto? 02:33 <+SirCmpwn> oh no, SMProxy is outdated 02:33 <+SirCmpwn> let's fix that 02:36 < moejoe> ammar2: i'm trying to unsinstall and install it again via pip but i messed stuff up with the permissions 02:37 < moejoe> ammar2: OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/crypto-1.1.0-py2.7.egg-info/dependency_links.txt' 02:38 -!- TomyLobo_j [~TomyLobo@91-66-112-147-dynip.superkabel.de] has quit [Quit: Standby mode...] 02:48 <+SirCmpwn> is Notifico down? 02:52 <+ammar2> SirCmpwn: I think so, someone else was saying that in #notifico and the bot hasn't come back since dav.1d upset it 02:53 <+SirCmpwn> well, in any case, I added binaries for SMProxy 1.5.2 to the site: http://sircmpwn.github.io/SMProxy/ 02:57 < superjoe> SirCmpwn, yes 02:57 < superjoe> not under active development, but basic maintenance, yes 03:10 -!- ranie [~rramiso@124.6.182.55] has joined #mcdevs 03:14 -!- dexter0 [~dexter0@c-24-23-138-192.hsd1.ca.comcast.net] has quit [Quit: exit(0);] 03:16 -!- redu [~redu@unaffiliated/redu] has quit [Ping timeout: 264 seconds] 03:27 -!- cathode|alt [~cathode@c-76-105-184-52.hsd1.or.comcast.net] has quit [Quit: Leaving] 03:27 -!- cathode [~cathode@c-76-105-184-52.hsd1.or.comcast.net] has joined #mcdevs 03:43 -!- SpaceManiac [~SpaceMani@r74-192-152-131.gtwncmta01.grtntx.tl.dh.suddenlink.net] has quit [Ping timeout: 264 seconds] 03:46 -!- Sabriel [~sharvey@pdpc/supporter/student/sabriel] has quit [Ping timeout: 245 seconds] 03:52 -!- Sabriel [~sharvey@scspc337.cs.uwaterloo.ca] has joined #mcdevs 03:52 -!- Sabriel [~sharvey@scspc337.cs.uwaterloo.ca] has quit [Changing host] 03:52 -!- Sabriel [~sharvey@pdpc/supporter/student/sabriel] has joined #mcdevs 03:55 -!- dexter0 [~dexter0@c-24-23-138-192.hsd1.ca.comcast.net] has joined #mcdevs 04:24 -!- Zaneo [~Zaneo@70.52.147.134] has quit [Read error: Connection reset by peer] 04:27 -!- superjoe30 [~superjoe@cpe-24-193-23-236.nyc.res.rr.com] has joined #mcdevs 04:27 -!- superjoe30 [~superjoe@cpe-24-193-23-236.nyc.res.rr.com] has left #mcdevs [] 04:35 -!- Zaneo [~Zaneo@70.52.147.134] has joined #mcdevs 04:35 -!- mode/#mcdevs [+v Zaneo] by ChanServ 04:47 -!- XAMPP__ [~XAMPP@199.254.116.102] has left #mcdevs ["My code has no bugs, just random features "] 04:50 -!- XAMPP [~XAMPP@199.254.116.102] has joined #mcdevs 04:50 -!- XAMPP [~XAMPP@199.254.116.102] has quit [Changing host] 04:50 -!- XAMPP [~XAMPP@botters/xampp] has joined #mcdevs 05:17 -!- Yoshi2 [~Yoshi2@xdsl-78-35-229-171.netcologne.de] has joined #mcdevs 05:38 -!- Ac-town [~actown@osuosl/staff/actown] has quit [Quit: Ac-town] 05:52 -!- Jailout20001 is now known as Jailout2000 06:45 -!- umby24 is now known as umby24|offline 06:49 -!- Yoshi2 [~Yoshi2@xdsl-78-35-229-171.netcologne.de] has quit [Quit: Bye] 07:42 -!- Zaneo [~Zaneo@70.52.147.134] has quit [Quit: Leaving] 07:46 -!- Zachoz_ is now known as Zachoz 07:54 -!- kcj [~casey@unaffiliated/kcj] has joined #mcdevs 07:56 -!- eddyb [~eddy@unaffiliated/eddyb] has joined #mcdevs 08:05 -!- shoghicp_ [~shoghicp@77.225.6.14] has joined #mcdevs 08:09 -!- shoghicp [~shoghicp@77.225.6.14] has quit [Ping timeout: 248 seconds] 08:11 -!- Yoshi2 [~chatzilla@xdsl-87-78-103-156.netcologne.de] has joined #mcdevs 09:09 -!- edlothiol [~edlothiol@95-91-255-238-dynip.superkabel.de] has joined #mcdevs 09:30 -!- Cay [~OlofLarss@s83-177-171-150.cust.tele2.se] has joined #mcdevs 09:32 -!- SpaceManiac [~SpaceMani@r74-192-152-131.gtwncmta01.grtntx.tl.dh.suddenlink.net] has joined #mcdevs 09:32 -!- mode/#mcdevs [+v SpaceManiac] by ChanServ 09:38 -!- shoghicp_ is now known as shoghicp 09:43 -!- Yoshi2 [~chatzilla@xdsl-87-78-103-156.netcologne.de] has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]] 10:06 -!- r04r|away is now known as r04r 10:15 -!- Jailout2000 [~Jailout20@unaffiliated/jailout2000] has quit [Ping timeout: 256 seconds] 10:18 -!- md_5 [md_5@mcdevs/trusted/md-5] has quit [Remote host closed the connection] 10:20 -!- md_5 [md_5@mcdevs/trusted/md-5] has joined #mcdevs 10:20 -!- mode/#mcdevs [+v md_5] by ChanServ 10:25 -!- Xaardas [~tach@p5B252DF4.dip0.t-ipconnect.de] has joined #mcdevs 10:26 -!- Jailout2000 [~Jailout20@unaffiliated/jailout2000] has joined #mcdevs 10:30 -!- Guest64092 [Me4502@198.143.128.9] has quit [Remote host closed the connection] 10:34 -!- conehead [~conehead@unaffiliated/conehead] has quit [Quit: Computer has gone to sleep.] 10:34 -!- Jailout20001 [~Jailout20@unaffiliated/jailout2000] has joined #mcdevs 10:36 -!- Jailout2000 [~Jailout20@unaffiliated/jailout2000] has quit [Ping timeout: 246 seconds] 10:40 -!- barneygale [~barneygal@cpc22-sotn11-2-0-cust170.15-1.cable.virginmedia.com] has joined #mcdevs 10:55 -!- Me4502 [Me4502@198.143.128.9] has joined #mcdevs 10:56 -!- Me4502 is now known as Guest15788 10:59 -!- Guest15788 is now known as Me4502|Away 11:05 -!- Not-001 [~notifico@198.199.82.216] has joined #mcdevs 11:05 < Not-001> [mc-erl] clonejo pushed 3 commits to master [+0/-0/±7] http://git.io/nZG98Q 11:05 < Not-001> [mc-erl] clonejo 4268027 - extended Makefile 11:05 < Not-001> [mc-erl] clonejo 493f794 - added jiffy (for JSON) library as dependency 11:05 < Not-001> [mc-erl] clonejo ba83186 - [REWRITE] pushing latest state, rewrite of mc_erl_client.erl, unifying entity records (no player record anymore) 11:17 -!- nastyCreeper [~asd@static-71-174-73-11.bstnma.fios.verizon.net] has joined #mcdevs 11:35 -!- mappum [~mappum@c-67-170-21-29.hsd1.wa.comcast.net] has quit [Ping timeout: 245 seconds] 12:17 -!- InusualZ [~InusualZ@24.171.229.164] has joined #mcdevs 12:18 < InusualZ> Some one? 12:21 < AnotherOne|2> yep 12:21 -!- AnotherOne|2 is now known as AnotherOne 12:21 < AnotherOne> fuck! 12:21 < AnotherOne> how does local git know who i am on github? 12:21 < InusualZ> I need some one who know C# 12:21 <+clonejo> InusualZ: just ask your question 12:22 < InusualZ> How to structure a Packet 12:22 <+clonejo> You might use a class for every packet type. 12:32 < InusualZ> SirCmpwn  12:32 <+md_5> is sleeping 12:32 < InusualZ> noooooo 12:39 -!- kcj [~casey@unaffiliated/kcj] has quit [Ping timeout: 248 seconds] 12:45 < AnotherOne> i can use git! 12:52 -!- Jailout20001 [~Jailout20@unaffiliated/jailout2000] has quit [Ping timeout: 256 seconds] 12:58 -!- Jailout2000 [~Jailout20@unaffiliated/jailout2000] has joined #mcdevs 12:59 -!- GudangGaram [~ben@180.244.140.23] has joined #mcdevs 13:00 -!- GudangGaram [~ben@180.244.140.23] has quit [Client Quit] 13:03 -!- Calinou [~Calinou@unaffiliated/calinou] has joined #mcdevs 13:06 -!- ranie [~rramiso@124.6.182.55] has quit [Remote host closed the connection] 13:21 -!- BizarreCake [~BizarreCa@46.121.251.157] has joined #mcdevs 13:44 <+sadimusi> InusualZ: I'd use literal dictionary definitions 13:48 -!- zh32 [bnc@vm2.zh32.de] has quit [Ping timeout: 264 seconds] 13:48 -!- mbaxter_ [~mbaxter@199.180.250.158] has quit [Ping timeout: 264 seconds] 13:49 -!- mbaxter [~mbaxter@199.180.250.158] has joined #mcdevs 13:49 -!- mbaxter [~mbaxter@199.180.250.158] has quit [Changing host] 13:49 -!- mbaxter [~mbaxter@mcblockit/staff/mbaxter] has joined #mcdevs 13:49 -!- Jailout20001 [~Jailout20@unaffiliated/jailout2000] has joined #mcdevs 13:49 -!- InusualZ [~InusualZ@24.171.229.164] has left #mcdevs [] 13:50 -!- zh32 [bnc@vm2.zh32.de] has joined #mcdevs 13:52 < Grum> how does local git know who i am on github? <-- because you've cloned your repo from a github.com url :) 13:52 -!- Jailout2000 [~Jailout20@unaffiliated/jailout2000] has quit [Ping timeout: 276 seconds] 13:52 < AnotherOne> no i didn't 13:52 < Grum> then it doesnt ;) 13:52 < AnotherOne> but i think github client wrote params 13:53 < Grum> oh you using some graphical thingie? 13:53 < AnotherOne> how should i place visual studio project into repo to not make unsorted trash? 13:53 < AnotherOne> no 13:53 < AnotherOne> i like console version more 13:54 < nastyCreeper> why do you need visual blowrdio stuff? 13:55 < AnotherOne> because it is nice 13:55 < Grum> you just put the sourcefiles in the repo 13:55 < Grum> nothing that contains any sort of localized things 13:57 <+md_5> Grum whilst I'm here can I ask you a really big favour on behalf of myself, others, and the MinecraftForge team. Packet 01 Logiin has dimensions ID as a byte. Packet 09 has it as an int. Forge and other things need it to be int in the login packet too. Can this be arranged 13:57 * md_5 puppy eyes - makes the protocol sane 14:03 < AnotherOne> so i just put source files in the repo and add them to project anywhere? 14:04 < nastyCreeper> AnotherOne: what is nice in microshaft virual shitudio ? why did you choose it? 14:05 < AnotherOne> anything else is worse 14:05 < nastyCreeper> how about netbeans + c ? 14:05 < AnotherOne> netbeans... is it written in java? 14:05 < nastyCreeper> yes 14:05 < nastyCreeper> this is not server, so it's ok 14:06 < AnotherOne> so no 14:06 < AnotherOne> eclipse is enough for me 14:06 < AnotherOne> too slow 14:06 < nastyCreeper> netbeans is faster than eclipse 14:06 < AnotherOne> can it show const value on mouseover? 14:07 < Grum> md_5: meh 14:07 < AnotherOne> why do you have vs so much?:) 14:07 < AnotherOne> hate* 14:07 < Grum> 256 dimensions not enough? :/ 14:07 < nastyCreeper> AnotherOne: because m$ is about destroying open source 14:07 <+md_5> you spoke about the protocol being sane. this is one of those things that is an exactly THREE line change, that helps everyone stay sane 14:07 < nastyCreeper> also it spyes on users 14:08 <+md_5> at the moment MinecraftForge has to use its own login packet. 256 is not enough 14:08 <+md_5> and you already have an int for one of the packets 14:08 < Grum> maybe i'll change em both to a short? :D 14:08 < AnotherOne> nastyCreeper: my code is open source anyway:) 14:08 < nastyCreeper> AnotherOne: by open source i mostly mean linux community 14:08 <+md_5> that would be breaking it for the sake of breaking it. I think short is too conservative as well 14:09 < nastyCreeper> m$ already enforced UEFI that screws freedom 14:09 < nastyCreeper> some pc vendors don't make it possible to disable it 14:09 < nastyCreeper> so you are onyl able to install redhat, ubuntu and some other distros 14:09 < nastyCreeper> also m$ enforced directx support to video card vendors 14:09 <+sadimusi> nastyCreeper: stop it 14:09 < nastyCreeper> which linux can't use good 14:10 < nastyCreeper> sadimusi: sorry, i just hate m$ that much 14:10 < AnotherOne> still vs is best c++ ide 14:10 < AnotherOne> i was surprised ms had something good 14:11 < nastyCreeper> isn't it for c# only? 14:12 < Flemmard`> no VS is for C, C++, C#, VB, VB.NET .. 14:12 < nastyCreeper> what is used for code compilation there? 14:12 <+md_5> I use netbeans for C and Java. IntelliJ for python and php and nodejs 14:12 <+md_5> thats all 14:12 < Flemmard`> it uses a ms compiler 14:12 < nastyCreeper> Flemmard`: that is a problem. 14:12 < nastyCreeper> compiler may inject anything into your code 14:12 < Flemmard`> meh 14:13 < AnotherOne> netbeans you say 14:13 < AnotherOne> let's try 14:13 < nastyCreeper> netbeans. 14:13 < nastyCreeper> (y) 14:14 < AnotherOne> damnit, nastyCreeper 14:14 < AnotherOne> many people analyze asm code of apps 14:15 < AnotherOne> and no one says "omg ms is injecting shit!!!111" 14:15 -!- SpaceManiac [~SpaceMani@r74-192-152-131.gtwncmta01.grtntx.tl.dh.suddenlink.net] has quit [Ping timeout: 256 seconds] 14:15 < nastyCreeper> AnotherOne: asm code is quite hard to analyze 14:16 < nastyCreeper> even open source software isn't analized frequently unless it's something really well-known 14:16 <+md_5> doesnt matter 14:16 <+md_5> your friend pbunny spent his entire life analysing every line of code in his system 14:16 <+md_5> and bios 14:16 <+md_5> and cpu microcide 14:16 < nastyCreeper> wow 14:16 <+md_5> microcode 14:17 <+md_5> or so he claims 14:17 <+md_5> which would take longer than his entire lifetime 14:17 <+md_5> yet apparently he has done it 14:17 < nastyCreeper> maybe he joked? 14:19 -!- TomyLobo [~TomyLobo@91-66-112-147-dynip.superkabel.de] has joined #mcdevs 14:21 < TobiX> AnotherOne: Well, MS IS "injecting" "shit" into every C++ program you compile with their compiler (It's called STL and you can even read the source code ;)) 14:21 < nastyCreeper> TobiX: i'm sure m$ is creative enough to inject something that will help distribute windows 14:23 < nastyCreeper> i.e. suddenly user's skype begins to spam m$ links 14:23 < nastyCreeper> etc 14:24 < TobiX> nastyCreeper: Well, that's easy, since Skype == MS 14:24 < TobiX> But they wouldn't do that, because that would spoil their public image 14:26 < nastyCreeper> TobiX: not quite. they can always say that somebody wants to spoil their image 14:26 -!- Cay [~OlofLarss@s83-177-171-150.cust.tele2.se] has quit [Read error: Connection reset by peer] 14:26 < nastyCreeper> and many users still open links sent in such spam 14:26 -!- Cay [~OlofLarss@s83-177-171-150.cust.tele2.se] has joined #mcdevs 14:29 < TobiX> nastyCreeper: Your UEFI argument is invalid btw. 14:32 < SinZ> oh ffs, your still here 14:34 < nastyCreeper> TobiX: why? 14:35 < TobiX> Because UEFI does NOTHING to restrict your freedom 14:35 < nastyCreeper> UEFI won't allow to run grub if you don't have its key there 14:36 < nastyCreeper> you will have unsolvable problems building your own linux distro, for example 14:36 < nastyCreeper> you can disable UEFI, but some pc vendors don't allow that 14:36 < nastyCreeper> so you are forced to use windows, redhat, ubuntu and some other semi-commercial distros 14:36 < TobiX> nastyCreeper: That is bullshit, please educate yourself before telling untruths, thank you 14:36 < nastyCreeper> because to have your distro's key in UEFI, you must sign it with m$ 14:36 < nastyCreeper> TobiX: hold on, i'll give you the link 14:37 < TobiX> nastyCreeper: And for the love of god, please don't confuse UEFI and SecureBoot 14:37 < TobiX> nastyCreeper: And even then your argument is invalid 14:38 < nastyCreeper> http://forums.lenovo.com/t5/Linux-Discussion/How-to-install-Linux-on-UEFI-systems-where-GRUB-fail-to-install/td-p/674103 ( first result in google ) 14:38 < nastyCreeper> TobiX: well SecureBoot is shipped almost as often as UEFI 14:38 < nastyCreeper> pc vendors believe that windows OS == secure pc 14:39 < nastyCreeper> and linux is for hackers 14:39 < nastyCreeper> etc 14:39 < TobiX> MS requires SecureBoot to be disable-able (is that a word?) (firmware bugs nonwithstanding) 14:39 < nastyCreeper> citation needed 14:41 -!- SpaceManiac [~SpaceMani@r74-192-152-131.gtwncmta01.grtntx.tl.dh.suddenlink.net] has joined #mcdevs 14:41 -!- mode/#mcdevs [+v SpaceManiac] by ChanServ 14:42 <+sadimusi> nastyCreeper: http://download.microsoft.com/download/A/D/F/ADF5BEDE-C0FB-4CC0-A3E1-B38093F50BA1/windows8-hardware-cert-requirements-system.pdf 14:42 <+sadimusi> page 122 14:45 < AnotherOne> http://cs408919.vk.me/v408919150/1080/02-3NuzyWdc.jpg 14:46 < TobiX> nastyCreeper: And you don't even need to disable Secure Boot, just boot your linux distro with a Microsoft-signed (I know, shocking!) shim... 14:48 -!- barneygale [~barneygal@cpc22-sotn11-2-0-cust170.15-1.cable.virginmedia.com] has quit [Ping timeout: 246 seconds] 14:50 < nastyCreeper> TobiX: yes, that's what i'm talking about! 14:50 < nastyCreeper> m$ now decides whether linux distro is required to run or not 14:50 < nastyCreeper> can you imagine what it can lead to? 14:55 < TobiX> nastyCreeper: MS demonstrated no such thing. They signed shim and the Linux Foundation bootloader without problems - But, yes, I'll keep your horror scenario in mind and start protesting the day MS mandates that Secure Boot cannot be switched off. Until then I applaud them for their move against bootkit malware... 14:56 < nastyCreeper> "They signed shim and the Linux Foundation bootloader without problems" - what about bootloader i compile myself? 14:56 < nastyCreeper> iirc the key is provided for specific binary 14:56 < jast> how often do you need to compile your own secureboot bootloader? 14:56 < TobiX> nastyCreeper: Buy a 99$ certificate and submit it for certification. Done. 14:56 < jast> do you compile your own CPUs, too? 14:56 < nastyCreeper> jast: i am going to recompile everything from source code soon 14:56 < nastyCreeper> thanks to pbunny advice 14:57 < jast> including the compiler? with... what? 14:57 < jast> oh... a binary compiler 14:57 < jast> bam, you lose 14:57 < nastyCreeper> jast: http://www.linuxfromscratch.org/ 14:57 < jast> yeah, and where does your compiler for that come from? 14:57 < nastyCreeper> jast: well, it is the best i can do 14:57 < nastyCreeper> jast: pbunny will send me 14:57 < jast> if the best you can do is comparably insecure to not doing it... 14:57 < nastyCreeper> he recompiled everything like 20 times 14:57 < jast> you're creating work for yourself. which is all awesome, of course. 14:57 < jast> so, 20*0 14:58 < TobiX> nastyCreeper: I suggest reading "Reflections on trusting trust" by Ken Thompson 14:58 < nastyCreeper> so it's very low chance that backdoor kept moving from system to system via compilation 14:58 < jast> that's a lot of benefit 14:58 < jast> the chance is pretty much equivalent 14:58 < TobiX> nastyCreeper: As long as the chance is != 0, you still loose 14:58 < jast> if one compiler is manipulated, chances are all of them are 14:59 < nastyCreeper> TobiX: sorry i don't want to give 99% to m$ so it will allow me to boot my system 14:59 < nastyCreeper> how is that called.. um, robbery 14:59 < jast> after all, one manipulated compiler will infect all other compilers created by it 14:59 < jast> nastyCreeper: so, you can disable secureboot. $99 saved, nothing lost. yay! 14:59 < nastyCreeper> jast: for now 14:59 < nastyCreeper> jast: also, not on any pc 15:00 < nastyCreeper> many pc vendors enforce secureboot by default 15:00 < jast> for now anyone can access the internet without providing a digital signature 15:00 < TobiX> nastyCreeper: You are giving 99$ to VeriSign, so they can verify your identity 15:00 < jast> for now everyone isn't locked up 15:00 < jast> for now we're not killed by robot overlords 15:00 < nastyCreeper> yes 15:00 < nastyCreeper> by m$'s course is pretty obvious 15:00 < jast> so's your face 15:00 < nastyCreeper> TobiX: i have no urge to give my identity info to some US-based company, thanks 15:00 < TobiX> nastyCreeper: Any proof for enforced SecureBoot on PC? 15:00 < jast> proof by paranoia(tm) 15:03 < nastyCreeper> "While Microsoft claims the OEMs would be free to decide which keys to include and how to manage them,[17] competing OS vendors' relative lack of influence on the desktop OS market compared to Microsoft might mean that, even if signed versions of their operating systems were available, they might face difficulties getting hardware vendors to include their keys, especially if end users won't be able to manage those keys themsel 15:03 < nastyCreeper> sounds sad 15:04 < nastyCreeper> linux isn't actually popular amongst most desktop pc vendors 15:04 < nastyCreeper> i'm sure some pc vendors don't know what linux is at all 15:04 < nastyCreeper> so they will reply like "what? it's just some spyware, we won't install a key for it" --- Log closed jeu. juin 06 15:11:19 2013 --- Log opened jeu. juin 06 15:11:26 2013 15:11 -!- rom1504 [~rom1504@rom1504.fr] has joined #mcdevs 15:11 -!- Irssi: #mcdevs: Total of 101 nicks [1 ops, 0 halfops, 11 voices, 89 normal] 15:12 -!- Me4502 [Me4502@198.143.128.9] has joined #mcdevs 15:12 -!- Irssi: Join to #mcdevs was synced in 61 secs 15:12 -!- Me4502 is now known as Guest52841 15:13 -!- Calinou [~Calinou@unaffiliated/calinou] has quit [Quit: Excess Flood] 15:14 -!- enchilado [~enchilado@defocus/yummy/enchilado] has joined #mcdevs 15:14 < nastyCreeper> i'm sure it will change, seeing tendency of m$ conquering pc market and enforcing their standards on hardware 15:14 < nastyCreeper> i.e. directx 15:14 < nastyCreeper> TobiX: m$ can change the rules any time, i.e. "because linux is a hacker OS that isn't easy to get searched by police" 15:14 < nastyCreeper> or to fight terrorist 15:14 < nastyCreeper> its an US-company under the wing of NSA 15:15 -!- mbaxter [~mbaxter@199.180.250.158] has joined #mcdevs 15:15 -!- mbaxter [~mbaxter@199.180.250.158] has quit [Changing host] 15:15 -!- mbaxter [~mbaxter@mcblockit/staff/mbaxter] has joined #mcdevs 15:17 -!- zh32_ [bnc@vm2.zh32.de] has joined #mcdevs 15:17 < TobiX> Now that is tinfoil-hat talk. At this point it seems unreasonable to argue with you. Thanks for making that obvious 15:18 < nastyCreeper> what else to expect? 15:18 < nastyCreeper> fight terrorism * 15:18 -!- zh32 [bnc@vm2.zh32.de] has quit [Excess Flood] 15:18 -!- yosafbridge` [~yosafbrid@li125-242.members.linode.com] has quit [Ping timeout: 325 seconds] 15:18 -!- sadimusi [~sadimusi@77-57-175-131.dclient.hispeed.ch] has quit [Ping timeout: 325 seconds] 15:18 -!- zh32_ is now known as zh32 15:18 -!- sadimusi_ [~sadimusi@77-57-175-131.dclient.hispeed.ch] has joined #mcdevs 15:18 -!- mode/#mcdevs [+v sadimusi_] by ChanServ 15:19 -!- yosafbridge [~yosafbrid@li125-242.members.linode.com] has joined #mcdevs 15:19 < nastyCreeper> TobiX: prognosing events is used widely, i.e. in politics 15:19 < nastyCreeper> i don't see how microsoft's strategy isn't politics 15:19 -!- sadimusi_ is now known as sadimusi 15:19 < nastyCreeper> they work for US to dominate pc market 15:19 < nastyCreeper> to corner the world 15:19 < nastyCreeper> Microsoft does not seem worried about the lawsuit. "Consumers are free to purchase PCs with a non-Microsoft operating system, or without any operating system," a Microsoft spokesperson told Ars. "However, consumers benefit from the preinstallation of Windows on PCs. It provides the best user experience from the time a consumer first turns on the PC, and saves consumers the substantial effort and resources associated with havin 15:20 -!- Sanky [~SankyZNC@unaffiliated/sanky] has quit [Ping timeout: 273 seconds] 15:22 -!- Sanky [~SankyZNC@unaffiliated/sanky] has joined #mcdevs 15:30 < nastyCreeper> TobiX: that was a quote from http://arstechnica.com/information-technology/2010/01/italian-class-action-suit-targets-unwanted-windows-installs/ 15:30 < nastyCreeper> m$ sees people as bags of money that have pleasure from buying pcs and seeing icons 15:31 < dav1d> and it's tru 15:31 < dav1d> *true 15:31 < dav1d> give my father a pc without operating system, he will kill you 15:32 < nastyCreeper> because he is m$ zombie already 15:32 < nastyCreeper> simple 15:32 < nastyCreeper> he URGES ICONS 15:33 < nastyCreeper> dav1d: btw, windows is not the only operating system. 15:33 < dav1d> give my father a linux and he will kill you 15:33 < nastyCreeper> see above 15:33 < dav1d> give him a mac and I will kill you 15:35 < nastyCreeper> sadimusi forces me to stop, so i will stop 15:35 < nastyCreeper> we will talk other time 15:35 < dav1d> no please not 15:36 < AnotherOne> hey people, what is better to get int16 from byte array? 15:36 < AnotherOne> _dst = *reinterpret_cast(_pf_buffer.data() + _offset); 15:36 < AnotherOne> or 15:36 < AnotherOne> memcpy(&_dst, _pf_buffer.data() + _offset, sizeof(_dst)); 15:37 < nastyCreeper> first. 15:37 < dav1d> AnotherOne: neither, both don't respect endians 15:38 < dav1d> AnotherOne: but if you don't care about endianes the first 15:46 < AnotherOne> endianness is in next line of code:) 15:46 < AnotherOne> why first? 15:47 -!- Yoshi2 [~chatzilla@xdsl-87-78-103-156.netcologne.de] has joined #mcdevs 15:49 < dav1d> AnotherOne: you can fix it in one go, there are function for that 15:49 < dav1d> oh c++, I correct mysekf, I think there are functions like that 15:49 < dav1d> *myself 15:52 -!- tyteen4a03 [tyteen4a03@us2.freeBNC.net] has quit [Ping timeout: 246 seconds] 15:52 -!- tyteen4a- [tyteen4a03@us2.freeBNC.net] has joined #mcdevs 15:53 -!- tyteen4a- [tyteen4a03@us2.freeBNC.net] has quit [Excess Flood] 15:53 -!- tyteen4a03 [tyteen4a03@us2.freeBNC.net] has joined #mcdevs 15:55 -!- Stormx2 [~Stormx2@cpc18-sotn9-2-0-cust33.15-1.cable.virginmedia.com] has joined #mcdevs 16:08 < AnotherOne> dav1d: yes i can, but why? im ok with 2 lines 16:09 < AnotherOne> i used conversions from sdl_net 16:09 < dav1d> AnotherOne: -1 line, less errors, easier to understand 16:09 < dav1d> AnotherOne: why are you using sdl? 16:09 < AnotherOne> there is no 64-bit conversion 16:09 < AnotherOne> sdl is nice 16:09 < dav1d> AnotherOne: the api is a pain and it's really fat if you only use it for networking 16:10 < AnotherOne> i will use boost::asio later 16:10 < AnotherOne> now it doesn't work for me 16:11 < AnotherOne> http://pastebin.com/G09DstRW 16:11 < AnotherOne> is it hard to understand? 16:12 <+sadimusi> this reminds me why I don't ever use C++ 16:13 < dav1d> AnotherOne: why don't you cast? 16:13 < dav1d> memcpy is fat, a cast is free 16:13 < dav1d> but to your question if it is understandable, it isn't 16:14 < dav1d> all this magic _.* stuff 16:14 < AnotherOne> not magic for me:) 16:14 < dav1d> you asked me if it is hard to understand, not yourself :) 16:15 < AnotherOne> _var is argument, _pf_var is private field 16:15 < Yoshi2> it is only a matter of time until you don't understand it yourself :p 16:15 < AnotherOne> why? 16:16 < nastyCreeper> omg, flipping endianness is as simple as several assignments 16:16 < nastyCreeper> why a LIBRARY is needed for taht? 16:16 < dav1d> aha 16:16 < AnotherOne> because this is boost 16:16 < nastyCreeper> https://dpaste.de/98yOR/raw/ - just use that 16:17 < AnotherOne> omfg 16:17 < Yoshi2> if at some point in the future you put the code away for a few months, it will be difficult to remember why you did something in some way in your code 16:17 < nastyCreeper> and you can just get _size with sizeof() 16:17 < dav1d> AnotherOne: please don't do it like that, boost::* is good 16:18 < nastyCreeper> no. it's a heavy third-party library that isn't needed 16:18 < AnotherOne> somebody here told me that using loops for endian conversion is bad 16:18 < nastyCreeper> why? 16:18 < nastyCreeper> well you can unroll it 16:18 < dav1d> AnotherOne: it is 16:18 < nastyCreeper> however you will need to make a macro/function for every size possible 16:18 < AnotherOne> because it can be done without loops 16:18 < nastyCreeper> 2, 4, 8, maybe 16 16:18 < nastyCreeper> sure 16:18 < dav1d> AnotherOne: also don't listen to him, boost is fine 16:18 < nastyCreeper> but then it will be several funcs 16:19 < dav1d> AnotherOne: it does what you need and is well tested and is optimized already 16:19 < AnotherOne> https://github.com/TRocket/gnuCraft/blob/master/src/protocol/conversion.hpp 16:19 < dav1d> also from what I heared boost::asio is pretty good 16:19 < AnotherOne> not so heavy 16:19 < nastyCreeper> dav1d: you need to use a library only when you need to do something hard or something big 16:20 < Yoshi2> or when you don't want to reimplement something yourself 16:20 < AnotherOne> ^ 16:20 < nastyCreeper> wrong 16:20 < dav1d> AnotherOne: is this your code? 16:20 -!- act4 [~alex@host86-135-89-50.range86-135.btcentralplus.com] has joined #mcdevs 16:20 < AnotherOne> no 16:20 < nastyCreeper> reimplementing 3 lines of code is ok 16:20 < nastyCreeper> or just copy paste from somewhere 16:21 < dav1d> +violate any license 16:21 < dav1d> because "we don't give a fuck" 16:23 < AnotherOne> http://pastebin.com/UmpGSLuS 16:23 < AnotherOne> what is better? 16:24 <+sadimusi> first 16:25 < AnotherOne> why? 16:26 <+sadimusi> it's way more readable 16:26 <+sadimusi> but it'll probably perform worse 16:29 < dav1d> AnotherOne: boost 16:29 < dav1d> AnotherOne: it is readable, everyone knows what it does, it is tested, it is optimized and it will most likely be inlined 16:29 < dav1d> AnotherOne: since you depend anyways on boost (boost::asio) everyting is fine 16:30 -!- mappum [~mappum@c-67-170-21-29.hsd1.wa.comcast.net] has joined #mcdevs 16:31 < dav1d> also there is the "htons" family 16:33 < AnotherOne> i dont like it 16:34 < AnotherOne> it does the same but needs winsock include on windows 16:37 < nastyCreeper> this is problem of windows, not htons 16:38 < dav1d> why is this a problem? o.O 16:38 < dav1d> if it is, use boost 16:39 < nastyCreeper> there is a problem of m$ existing in our planet 16:40 < AnotherOne> dav1d: so i do 16:48 < AnotherOne> anyway, ms is useful too 16:49 < AnotherOne> linux is nice, but windows is better 16:49 -!- mode/#mcdevs [+o sadimusi] by ChanServ 16:49 -!- mode/#mcdevs [+b *!*@static-71-174-73-11.bstnma.fios.verizon.net] by sadimusi 16:49 -!- nastyCreeper was kicked from #mcdevs by sadimusi [nastyCreeper] 16:49 -!- mode/#mcdevs [-o sadimusi] by sadimusi 16:50 < AnotherOne> oh 16:50 <+sadimusi> his ban was removed by accident 16:50 < dav1d> sadimusi: wrong 16:50 < AnotherOne> so i dont need to write answer... 16:50 < dav1d> sadimusi: he was never banned 16:51 <+sadimusi> dav1d: I banned him for a day, then TkTech banned him again a few hours after the ban was lifted 16:51 < dav1d> sadimusi: oh daily, then I missed that 16:51 < dav1d> I just don't remember a day I didn't see this fucker 16:52 < TkTech> When I cleaned some of the ancient bans I accidentally removed his. 16:53 < dav1d> what about unnicked? 16:53 < dav1d> = pbunny 16:56 < jast> any incarnation of pbunny is easy to recognize due to his repeating the same old stuff again and again. I haven't seen it from unnicked yet. 16:57 -!- act4 [~alex@host86-135-89-50.range86-135.btcentralplus.com] has quit [Quit: act4] 16:58 < dav1d> jast: joined the first time shortly after pbunny was banned, (shortly after nastyCreepeer joined). then joined right after sadimusi said nastyCreeper has to stop or ban 16:59 < jast> but hasn't been as annoying as the other clown nicks yet, right? 16:59 < dav1d> not so far 16:59 < jast> that, to me, would be a sufficient argument to not be completely convinced that it's actually pbunny :) 17:00 < Yoshi2> there were at least two unnickeds in this channel, one of the two was talking about how paranoia does not exist 17:00 < jast> also, unnicked hasn't joined yet, even though nastyCreeper was banned just a few minutes ago... 17:01 < jast> okay, that doesn't actually mean much 17:01 < jast> back to work o/~ 17:03 < dav1d> I should make znc log stuff 17:03 -!- Shoot [Shoot@c-98-242-131-110.hsd1.fl.comcast.net] has joined #mcdevs 17:04 < dx> 11:50 < TkTech> When I cleaned some of the ancient bans I accidentally removed his. 17:04 < dx> TkTech: lol. 17:04 -!- Calinou [~Calinou@unaffiliated/calinou] has joined #mcdevs 17:12 -!- r04r is now known as r04r|away 17:13 -!- unnicked911 [~50e8f3d5@204.155.152.124] has joined #mcdevs 17:18 < AnotherOne> http://www.cplusplus.com/reference/iterator/inserter/ 17:18 < AnotherOne> what if i need opposite thing? 17:18 < AnotherOne> that overwrites instead of inserting 17:19 < AnotherOne> and inserts if nothing to overwrite 17:25 <+SirCmpwn> AnotherOne: /join #c++ 17:25 <+SirCmpwn> AnotherOne: correction, /join ##c++ 17:28 -!- dexter0 [~dexter0@c-24-23-138-192.hsd1.ca.comcast.net] has quit [Quit: exit(0);] 17:29 < dx> should i be bothered by the fact that i don't know wtf that code he linked means? (the first code block) 17:29 -!- TRocket [~TRocket@82-69-14-167.dsl.in-addr.zen.co.uk] has joined #mcdevs 17:30 < dx> should i bother curing my ignorance regarding c++? 17:30 < TRocket> yes. 17:30 <+sadimusi> no 17:30 < dav1d> no, definitly not 17:30 <+SirCmpwn> learn C, it's a lot better 17:30 < dx> i already know C 17:30 <+SirCmpwn> then you're good to go 17:30 < dx> heh 17:30 < dav1d> SirCmpwn: how can C be better than C++ if C is basically a subset of C++ 17:31 < dx> dav1d: a subset with less design flaws :P 17:31 <+SirCmpwn> dav1d: I have no response to that because it is incorrect 17:31 < dav1d> dx: you're not forced to use c++ in .cpp files :P 17:31 <+SirCmpwn> and I think you know that, but it's early 17:31 < dav1d> dx: g++ accepts C 17:31 < dx> dav1d: oh of course 17:31 < dav1d> so you can take what you like from C++ and use C 17:31 <+SirCmpwn> I don't just target x86 and friends 17:32 <+SirCmpwn> g++ is not always my compiler 17:32 < dav1d> what? 17:32 < dav1d> clang++ also does that, g++ cross compiles to literally everything 17:32 <+SirCmpwn> not z80 17:32 < dx> hah 17:32 < dx> fun 17:32 < dav1d> SirCmpwn: is there a C++ compiler for z80? 17:32 <+SirCmpwn> I hope not 17:33 <+SirCmpwn> C++ produces pretty bloated machine code 17:33 <+SirCmpwn> that's not acceptable when you're working with 6 MHz and 32K of memory 17:33 < dav1d> then your point is invalid, that c++ compiler would also accept C 17:34 <+SirCmpwn> no, I don't think there is one 17:34 -!- act4 [~alex@host86-135-89-50.range86-135.btcentralplus.com] has joined #mcdevs 17:34 < dx> i don't think any language except C or ASM is acceptable for z80 and microcontrollers in that spec range 17:34 <+SirCmpwn> and regardless, my point doesn't even change when using g++ 17:34 <+SirCmpwn> I don't like any of the extensions C++ puts on C, even if the compiler accepts them 17:34 < dx> oh wait people used BASIC lol 17:34 <+SirCmpwn> it's not the compiler I have a problem with, it's C++ 17:35 < jast> quoting: how can C be better than C++ if C is basically a subset of C++ 17:35 < jast> perfection isn't when there's nothing more to be added. it's when there's nothing more to take away. 17:35 < dx> i like that. 17:35 < dav1d> SirCmpwn: not everything of C++ is bad, especially the newer versions, generalizing that is wrong (I am not defending C++ here) 17:35 <+Fador> dx: z80 isn't really a microcontroller, it's CPU ;) 17:35 < dav1d> jast: I would know so many thinks I'd add to C 17:35 < jast> I didn't come up with it myself, sadly :) 17:35 <+SirCmpwn> dav1d: not everything about PHP is bad, but I still don't use it 17:35 <+Fador> I have a stack of z80's here 17:36 < dx> Fador: i didn't say it was, i just said the specs are comparable to microcontrollers 17:36 < dav1d> SirCmpwn: well the subset of PHP which is not bad, is too small to write a hello world, I guess 17:36 < Shoot> anyone looking into Scrolls? 17:36 < dav1d> (I originally only said C is part of C++, so how can C++ be worse) 17:37 <+SirCmpwn> PHP works fine for writing HTML 17:37 < dav1d> but whatever 17:37 <+SirCmpwn> not dynamic HTML, but, you know, static content 17:37 < dav1d> language discussions are pointless 17:37 <+SirCmpwn> i.e. PHP without any PHP 17:37 < dx> heh right, html is a subset of php 17:37 < dav1d> SirCmpwn: then it's not PHP 17:37 <+SirCmpwn> dav1d: and C without the ++ is not C++ 17:37 <+SirCmpwn> dav1d: thank you for arguing my point for me 17:37 < dav1d> php <- between those tags, I don't remember how to write them 17:38 < jast> I guess SirCmpwn wins this one :) 17:38 < dav1d> wat? 17:38 < dx> >win 17:38 < dx> the only winning move is not to play™ 17:38 < dav1d> (templates alone are a too great thing) 17:38 < jast> depends on the goal of the game 17:39 < jast> templates alone are a horrible, horrible thing 17:39 <+SirCmpwn> doesn't make the language as a whole better than C, dav1d 17:39 < dav1d> jast: if you like to duplicate your code N times, sure 17:39 <+SirCmpwn> C can do anything you want it to, and doesn't have all the bullshit C++ comes with 17:39 < jast> there's no need to use a monstrosity like templates to reduce code duplication 17:39 < dav1d> SirCmpwn: but definitly not worse, thanks for arguing for my point 17:39 < jast> there are plenty of alternatives that can't crash your compiler 17:40 <+SirCmpwn> dav1d: you're being silly. The other problems with the language are what makes it inferior, 17:40 <+SirCmpwn> *-, 17:40 < dav1d> jast: write me vector operations for 2,3,4...N dimensions for byte,short,int,float,double 17:40 < dx> i like lisp 17:40 < dav1d> jast: without templates 17:40 < jast> ever heard of generics? 17:40 <+SirCmpwn> http://i.imgur.com/gU0vO.jpg 17:40 < jast> templates with the insanity 17:40 < jast> *without 17:40 < dav1d> jast: here we go, lol 17:40 < dx> they don't need templates to add abstraction layers in lisp 17:41 < TRocket> learn asm and embed it in c or c++ 17:41 < jast> lisp is usually dynamically typed... so that's an unfair comparison 17:41 * dav1d hopes he isnt' serious 17:41 < dx> SirCmpwn: wtf am i reading 17:41 <+SirCmpwn> dunno, I stopped reading it 17:42 < dx> jast: i'm not really comparing 17:42 < jast> a comparison was kind of implied 17:43 < dx> jast: only pointing out the fact that functions can create any abstraction you want 17:43 < dx> (often with a severe lack of syntactic sugar in C, but shhhh) 17:44 < jast> well, static typing does kind of make it an issue with code duplication, unless you have *some* way to make it polymorphic 17:44 < jast> (type-polymorphic) 17:45 -!- SuinDraw [~NiaTeppel@WiseOS/Founder/NiaTeppelin] has joined #mcdevs 17:45 < jast> err. parametric polymorphism is what I was trying to refer to. 17:45 -!- act4 [~alex@host86-135-89-50.range86-135.btcentralplus.com] has quit [Quit: act4] 17:46 -!- TRocket [~TRocket@82-69-14-167.dsl.in-addr.zen.co.uk] has quit [Read error: Connection reset by peer] 17:46 -!- Prf_Jakob [~jakob@c-2b27e155.1214-1-64736c20.cust.bredbandsbolaget.se] has quit [Ping timeout: 246 seconds] 17:46 < dx> jast: hmm yep, that sounds like a feature i'd like to have 17:47 < dav1d> Yeah! let's do it like Java 17:48 -!- Prf_Jakob [~jakob@c-2b27e155.1214-1-64736c20.cust.bredbandsbolaget.se] has joined #mcdevs 17:48 -!- mode/#mcdevs [+v Prf_Jakob] by ChanServ 17:48 -!- mbaxter [~mbaxter@mcblockit/staff/mbaxter] has quit [Quit: Pong timeout] 17:49 -!- mbaxter [~mbaxter@199.180.250.158] has joined #mcdevs 17:49 -!- mbaxter [~mbaxter@199.180.250.158] has quit [Changing host] 17:49 -!- mbaxter [~mbaxter@mcblockit/staff/mbaxter] has joined #mcdevs 17:55 < jast> java does many things wrong, but at least it doesn't have a C++-style template system 17:57 -!- SuinDraw [~NiaTeppel@WiseOS/Founder/NiaTeppelin] has quit [Read error: Connection reset by peer] 17:58 -!- SuinDraw [~NiaTeppel@WiseOS/Founder/NiaTeppelin] has joined #mcdevs 17:59 < AnotherOne> you say "C++-style template system" as if it is something bad 18:00 < Flemmard`> it's bad if you dont know how to use it i'd say 18:03 < AnotherOne> everithing is bad that way 18:04 < AnotherOne> everything* 18:09 -!- mapppum [~mappum@c-67-170-21-29.hsd1.wa.comcast.net] has joined #mcdevs 18:10 -!- dexter0 [~dexter0@c-24-23-138-192.hsd1.ca.comcast.net] has joined #mcdevs 18:13 -!- mappum [~mappum@c-67-170-21-29.hsd1.wa.comcast.net] has quit [Ping timeout: 276 seconds] 18:19 -!- conehead [~conehead@unaffiliated/conehead] has joined #mcdevs 18:20 -!- redu [~redu@unaffiliated/redu] has joined #mcdevs 18:22 -!- yorick [~yorick@oftn/member/yorick] has joined #mcdevs 18:37 -!- Stormx2 [~Stormx2@cpc18-sotn9-2-0-cust33.15-1.cable.virginmedia.com] has quit [Read error: Connection reset by peer] 18:55 -!- Wulfspider [~Wulf@talk.spout.org] has quit [Ping timeout: 260 seconds] 18:56 -!- sfan5 [~sfan5@minetest.ru] has quit [Ping timeout: 245 seconds] 18:57 -!- jast [jast@zoidberg.org] has quit [Ping timeout: 252 seconds] 19:01 -!- sfan5 [~sfan5@minetest.ru] has joined #mcdevs 19:01 -!- jast [jast@zoidberg.org] has joined #mcdevs 19:01 -!- Wulfspider [~Wulf@talk.spout.org] has joined #mcdevs 19:06 < AnotherOne> how to push non-master branch to github? 19:07 -!- barneygale [~barneygal@cpc18-sotn9-2-0-cust33.15-1.cable.virginmedia.com] has joined #mcdevs 19:07 -!- r04r|away is now known as r04r 19:16 < AnotherOne> fuck 19:16 < AnotherOne> git sucks! 19:16 < AnotherOne> conflicts omg 19:16 < Flemmard`> takes a while to handle that yea 19:22 -!- Paprikachu [~Paprikach@178.112.9.126.wireless.dyn.drei.com] has joined #mcdevs 19:28 < jast> you get conflicts with anything that merges 19:29 <+sadimusi> they're not really a problem if you have a good tool to resolve them 19:29 <+sadimusi> i.e. not vimdiff 19:36 < AnotherOne> give me a hint, sadimusi 19:36 <+sadimusi> what os are you using? 19:36 < AnotherOne> windows 19:39 <+sadimusi> I don't know of any tools for windows, but I'm sure there are some 19:39 <+sadimusi> what happens when you git mergetool? 19:40 <+sadimusi> stackoverflow suggests p4merge: http://www.perforce.com/product/components/perforce-visual-merge-and-diff-tools 19:40 -!- pdelvo [~pdelvo@mcdevs/trusted/pdelvo] has joined #mcdevs 19:40 -!- mode/#mcdevs [+v pdelvo] by ChanServ 19:41 <+sadimusi> you can configure it like this http://stackoverflow.com/questions/426026/git-on-windows-how-do-you-set-up-a-mergetool#answer-436040 19:46 < dav1d> git mergetool? 19:48 <+sadimusi> dav1d: yes. which one are you using? 19:48 < dav1d> sadimusi: the good one^^ 19:48 < dav1d> can't remember that name... 19:49 < dav1d> can I make git show me the mergetool? 19:49 <+sadimusi> git config merge.tool might work 19:49 < dav1d> nope 19:49 < dav1d> prints nothin 19:49 < dav1d> *nothing 19:50 <+sadimusi> even with the --global flag? 19:50 < dav1d> sadimusi: meld 19:51 < dav1d> haha my history 19:51 <+sadimusi> I saw that mentioned somewhere before 19:51 < dav1d> haha great 19:51 < dav1d> http://sprunge.us/QFMg 19:52 < dav1d> history | grep git | grep merge 19:59 -!- BizarreCake [~BizarreCa@46.121.251.157] has quit [Remote host closed the connection] 20:05 -!- shoghicp_ [~shoghicp@77.225.6.14] has joined #mcdevs 20:09 -!- shoghicp [~shoghicp@77.225.6.14] has quit [Ping timeout: 256 seconds] 20:15 -!- shoghicp_ is now known as shoghicp 20:24 -!- Paprikac_ [~Paprikach@213-33-19-255.adsl.highway.telekom.at] has joined #mcdevs 20:24 < AnotherOne> omg i hate git 20:25 < AnotherOne> it deleted my vs project file 20:25 < eddyb> no, you delete your vs project file 20:25 < eddyb> by asking git to delete it 20:25 < eddyb> *deleted 20:27 < Flemmard`> at first you'll insult git a lot 20:28 -!- Paprikachu [~Paprikach@178.112.9.126.wireless.dyn.drei.com] has quit [Ping timeout: 264 seconds] 20:28 -!- SuinDraw [~NiaTeppel@WiseOS/Founder/NiaTeppelin] has quit [Quit: Leaving] 20:30 -!- Yoshi2| [~chatzilla@xdsl-78-35-230-208.netcologne.de] has joined #mcdevs 20:32 -!- Yoshi2 [~chatzilla@xdsl-87-78-103-156.netcologne.de] has quit [Ping timeout: 264 seconds] 20:32 -!- Yoshi2| is now known as Yoshi2 20:33 < AnotherOne> can anyone explain me what "origin" is? 20:33 < jast> a short name for the remote repository 20:33 < jast> i.e. where you cloned from 20:49 -!- jspiros [~jspiros@hylia.us] has quit [Quit: Lost terminal] 20:50 -!- jspiros [~jspiros@hylia.us] has joined #mcdevs 20:58 -!- Calinou [~Calinou@unaffiliated/calinou] has quit [Quit: Excess Flood] 21:22 -!- AlphaModder [~chatzilla@2602:306:37f4:cb80:2dbf:4ede:b782:c0a0] has quit [Remote host closed the connection] 21:24 -!- Calinou [~Calinou@unaffiliated/calinou] has joined #mcdevs 21:28 < AnotherOne> how to push non-master branch to github? 21:29 < dav1d> AnotherOne: git push origin branch:branch 21:30 <+sadimusi> you can leave away the :branch 21:33 -!- conehead [~conehead@unaffiliated/conehead] has quit [Ping timeout: 264 seconds] 21:34 -!- conehead [~conehead@unaffiliated/conehead] has joined #mcdevs 21:34 < dav1d> yes you can, but whenever I do that, I get an evil stare from Prf_Jakob! 21:37 <+Prf_Jakob> dav1d: hahaha :-p 22:00 -!- Cay [~OlofLarss@s83-177-171-150.cust.tele2.se] has quit [Read error: Connection reset by peer] 22:10 < AnotherOne> did anyone here use python in windows? 22:10 < dav1d> AnotherOne: yes 22:11 < AnotherOne> help me please 22:12 < AnotherOne> i'm cd'ing to directory with script, trying python27.lnk filename and gettingerror of no such file 22:12 < AnotherOne> python27.lnk is link in directory with PATH set 22:12 < dav1d> what is python27.lnk? 22:12 <+SirCmpwn> I think you should perhaps be asking ##python 22:12 < dav1d> o.O 22:12 < dav1d> C:\Python 2.7\python foo 22:12 -!- TRocket [~TRocket@82-69-14-167.dsl.in-addr.zen.co.uk] has joined #mcdevs 22:12 < dav1d> or simply 22:12 < dav1d> python foo 22:13 -!- TRocket [~TRocket@82-69-14-167.dsl.in-addr.zen.co.uk] has quit [Client Quit] 22:13 < AnotherOne> i want linux-like call 22:13 < AnotherOne> python foo doesn't work 22:13 -!- TRocket [~TRocket@82-69-14-167.dsl.in-addr.zen.co.uk] has joined #mcdevs 22:13 < dav1d> AnotherOne: then add your python installation to $PATH 22:13 < dav1d> eh %PATH% 22:14 < AnotherOne> is putting link in folder added there not ok? 22:14 -!- unnicked911 [~50e8f3d5@204.155.152.124] has quit [Quit: CGI:IRC (Session timeout)] 22:14 <+SpaceManiac> one thing you can do is use a .bat instead of a .lnk 22:14 < dav1d> AnotherOne: I don't think these windows link work like symbolic linux links 22:16 <+SpaceManiac> python.bat :: "@C:\path\to\python.exe" %* 22:26 < dav1d> is the render-distance sent in any packet? 22:27 < barneygale> CC iirc 22:27 < dav1d> barneygale: the client sends that 22:28 < dav1d> (I should have mentioned that I want to get it from the server) 22:28 < barneygale> oh I see! No, not iirc 22:28 < barneygale> You can work it out from what map data is sent, ofc. 22:28 < dav1d> I need it before that :) 22:28 < dav1d> wanna initialize a queue with the right size from the beginning 22:28 < barneygale> Unfortunately not. I don't think 0x32 is a thing anymore 22:33 < Not-001> [netherrack] thinkofdeath pushed 2 commits to master [+1/-0/±10] http://git.io/EZFWNw 22:33 < Not-001> [netherrack] thinkofdeath 6fc295d - Added data value support for block placing 22:33 < Not-001> [netherrack] thinkofdeath 7c44fba - Made creepers spawnable + entity fixes 22:41 < AnotherOne> damn 22:41 < AnotherOne> i installed beautifulsoup, but python cant see it 22:42 < AnotherOne> mb i need to update something? 22:44 < dav1d> no 22:45 -!- Calinou [~Calinou@unaffiliated/calinou] has quit [Quit: Excess Flood] 22:45 < AnotherOne> do i need to specify path to lib? 22:45 < dav1d> no 22:45 < dav1d> just install it correctly^^ 22:45 < AnotherOne> how is it? 22:46 < AnotherOne> python setup.py install 22:46 < AnotherOne> is what i did 22:48 < dav1d> why don't you use the installer? (btw. the setup.py install was correct) 22:48 < dav1d> maybe conflicting installations 22:48 < dav1d> check your lib/site-packages folder 22:49 < AnotherOne> it is there 22:49 < AnotherOne> should i move it one directory up? 22:50 < dav1d> no 22:50 < dav1d> then importing should work 22:50 < AnotherOne> fuck 22:50 -!- SpaceManiac [~SpaceMani@r74-192-152-131.gtwncmta01.grtntx.tl.dh.suddenlink.net] has quit [Read error: Connection reset by peer] 22:51 < AnotherOne> there is no beautifulsoup in modules list 22:52 < dav1d> add site-packages to PYTHONPATH 22:52 < dav1d> (it should be by default, except you messed up the installation) 22:53 -!- SpaceManiac [~SpaceMani@r74-192-152-131.gtwncmta01.grtntx.tl.dh.suddenlink.net] has joined #mcdevs 22:53 -!- mode/#mcdevs [+v SpaceManiac] by ChanServ 23:00 -!- eddyb [~eddy@unaffiliated/eddyb] has quit [Quit: Konversation terminated!] 23:01 < AnotherOne> it worked 23:01 < AnotherOne> but now i have encoding problems 23:03 <+SirCmpwn> what is your broader goal, AnotherOne 23:03 < AnotherOne> parse wiki and make formal descriptions of packets for code generator 23:04 <+SirCmpwn> I see 23:04 < AnotherOne> http://pastebin.com/5dzDrEQ0 23:04 <+SirCmpwn> parsing mediawiki sucks 23:04 <+SirCmpwn> good luck 23:05 < AnotherOne> table format is nice there 23:05 < AnotherOne> it is not going to be hard 23:05 < AnotherOne> of course if i will make this fucking python work 23:06 -!- omkelderman [3e83f635@gateway/web/cgi-irc/kiwiirc.com/ip.62.131.246.53] has joined #mcdevs 23:10 < dav1d> AnotherOne: give it the correct encoding, it did guess there pretty badly 23:10 < omkelderman> can i ask something here about a page of wiki.vg? 23:11 < dav1d> yes 23:11 < dav1d> you can 23:12 < omkelderman> oke, its about http://wiki.vg/Server_List_Ping, it says there are two formats that can be returned , 1.3 and earlier and later 23:13 < omkelderman> as far as i understand, what is explained there is the latest version 23:13 < omkelderman> but whats the old one? 23:14 < AnotherOne> dav1d: how do i do it? 23:14 < AnotherOne> # -*- coding: utf-8 -*- 23:14 < AnotherOne> ? 23:14 < dav1d> AnotherOne: no 23:14 < dav1d> AnotherOne: html.decode('encoding-here') 23:14 < dav1d> but I am surprised wiki.vg doesn't set an encoding 23:15 -!- Yoshi2 [~chatzilla@xdsl-78-35-230-208.netcologne.de] has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]] 23:15 < omkelderman> (i know its very unlikely someone has a server with 1.3 or earlier running, but i want to be as complete as possible :P) 23:15 -!- Yoshi2 [~Yoshi2@xdsl-78-35-230-208.netcologne.de] has joined #mcdevs 23:18 < dav1d> omkelderman: this page is relativly new, if you can find the old one, there is a histoy button on the upper right 23:18 < AnotherOne> i totally dont understand why does python exist 23:18 < dav1d> omkelderman: if you're lucky you can go back in history of the protocol paage 23:19 < AnotherOne> it does not work at all 23:19 < AnotherOne> only gives problems 23:20 < dav1d> AnotherOne: hach 23:20 < dav1d> you have no idea how things work and blame python for it 23:21 -!- shoghicp [~shoghicp@77.225.6.14] has quit [Read error: Connection reset by peer] 23:22 -!- shoghicp [~shoghicp@77.225.6.14] has joined #mcdevs 23:22 < AnotherOne> http://pastebin.com/BvGNuRnf 23:22 < AnotherOne> where am i wrong? 23:23 < dav1d> AnotherOne: why do you decode the soup 23:23 < dav1d> you have to decode the "bytes" which you get from urllib 23:23 -!- edlothiol [~edlothiol@95-91-255-238-dynip.superkabel.de] has quit [Ping timeout: 240 seconds] 23:23 < dav1d> can't thhe beautifulsoup load directly from an url? 23:23 < dav1d> it should handle encoding 23:24 < omkelderman> dav1d, i found it on http://wiki.vg/wiki/index.php?title=Protocol&oldid=2610#Server_List_Ping_.280xFE.29, thanx for the suggestion to look at the protocol-page-history 23:24 -!- conehead [~conehead@unaffiliated/conehead] has quit [Ping timeout: 260 seconds] 23:24 < dav1d> omkelderman: great :) 23:24 < dav1d> but it looks like it's the same 23:26 < omkelderman> uuh, no... the new one sends more info and splits at a null-char, the old one has less info and splits at '§' 23:26 < dav1d> AnotherOne: strange can't find a method to load directly from an url, lxml can do that 23:26 < AnotherOne> wiki.vg is in utf-8 23:26 < AnotherOne> soup = BeautifulSoup(page.read(), from_encoding="utf-8") 23:27 < dav1d> did you check the html header and the source? 23:27 < AnotherOne> i checked browser encoding for that page 23:27 < AnotherOne> it shows utf-8 23:27 < AnotherOne> lxml you say... 23:28 < dav1d> AnotherOne: http://sprunge.us/MRfM 23:28 < dav1d> works! 23:28 < AnotherOne> i'm close to write this parser in pure c++ 23:29 < dav1d> AnotherOne: I have no idea what your problem is 23:29 < dav1d> works perfectly here 23:29 < omkelderman> who has write-access to the wiki.vg-pages? i think it isnt a bad idea to add the old-server-list-ping-response to the existing page 23:30 < dav1d> AnotherOne: http://sprunge.us/KNMc 23:30 < dav1d> omkelderman: you can! 23:30 < AnotherOne> i will try your lxml 23:30 < dav1d> omkelderman: you have to register an account though 23:30 < omkelderman> aah, oke, of course :P 23:30 < omkelderman> why didnt i thought of that :P 23:32 < AnotherOne> oh 23:32 < AnotherOne> fuck it 23:32 < AnotherOne> im going to sleep 23:32 < AnotherOne> bye 23:32 < dav1d> cya! 23:37 -!- TRocket [~TRocket@82-69-14-167.dsl.in-addr.zen.co.uk] has quit [Remote host closed the connection] 23:55 -!- Xaardas [~tach@p5B252DF4.dip0.t-ipconnect.de] has quit [Quit: Tschuess und bis Bald] --- Day changed ven. juin 07 2013 00:02 < omkelderman> dav1d, before i safe something silly (my english can sometimes be incorrect), can you take a look at http://puu.sh/39Ua8.png and say if its ok? 00:06 < dav1d> omkelderman: The first 3 bytes are the same as described above. These 3 bytes are followed by a UCS-2 string, which contains 3 fileds delimited by §: 00:06 < dav1d> omkelderman: The entire packet looks similiar to this: 00:07 < dav1d> ok gtg, thanks for the changes! 00:07 < dav1d> cya 00:08 -!- r04r is now known as r04r|away 00:21 -!- omkelderman [3e83f635@gateway/web/cgi-irc/kiwiirc.com/ip.62.131.246.53] has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] 00:21 -!- TobiX [tobias@zoidberg.org] has quit [Quit: This random quit message was sponsored by: quitmsg by Timo Sirainen] 00:23 -!- jast [jast@zoidberg.org] has quit [Read error: Connection reset by peer] 00:29 -!- TobiX [tobias@zoidberg.org] has joined #mcdevs 00:35 -!- [z]2 [~z@cpc2-seac20-2-0-cust453.7-2.cable.virginmedia.com] has joined #mcdevs 00:36 -!- Netsplit *.net <-> *.split quits: Dinnerbone, AgentHH, [z] 00:38 <+sadimusi> did nastyCreeper drop in again? 00:39 -!- Netsplit over, joins: Dinnerbone 00:48 -!- AgentHH [~ec2-user@ec2-54-244-117-95.us-west-2.compute.amazonaws.com] has joined #mcdevs 00:49 < Not-001> [PartyCraft] SirCmpwn pushed 2 commits to master [+0/-0/±2] http://git.io/2Gjxvw 00:49 < Not-001> [PartyCraft] joshuaferrara 6e76b17 - Fixed command line error when command null 00:49 < Not-001> [PartyCraft] SirCmpwn 53d33bf - Merge pull request #14 from joshuaferrara/master Fixed command line error when command is null 01:01 -!- Netsplit *.net <-> *.split quits: AgentHH 01:04 -!- Netsplit over, joins: AgentHH 01:35 -!- Shoot [Shoot@c-98-242-131-110.hsd1.fl.comcast.net] has quit [Quit: Leaving] 01:36 -!- shoghicp [~shoghicp@77.225.6.14] has quit [Quit: Leaving] 02:37 -!- dexter0 [~dexter0@c-24-23-138-192.hsd1.ca.comcast.net] has quit [Quit: exit(0);] 03:04 -!- XAMPP-8 [~XAMPP8@199.254.116.104] has joined #mcdevs 03:15 -!- XAMPP_8 [~XAMPP8@199.254.116.104] has joined #mcdevs 03:16 -!- XAMPP-8 [~XAMPP8@199.254.116.104] has quit [Ping timeout: 246 seconds] 03:17 -!- Jailout20001 is now known as Jailout2000 03:24 -!- XAMPP_8 [~XAMPP8@199.254.116.104] has quit [Ping timeout: 246 seconds] 03:32 -!- yorick [~yorick@oftn/member/yorick] has quit [Remote host closed the connection] 03:34 -!- dexter0 [~dexter0@c-24-23-138-192.hsd1.ca.comcast.net] has joined #mcdevs 03:40 -!- ranie [~rramiso@124.6.182.55] has joined #mcdevs 03:46 < Not-001> [PartyCraft] SirCmpwn pushed 2 commits to master [+0/-0/±2] http://git.io/KLoGEg 03:46 < Not-001> [PartyCraft] joshuaferrara 7773fa1 - Fixed error in /time command Fixed error that dropped client when no second argument was provided for /time [set/add] 03:46 < Not-001> [PartyCraft] SirCmpwn 87dfbea - Merge pull request #15 from joshuaferrara/master Fixed error in /time [set/add] command 04:10 -!- umby24|offline is now known as umby24 04:19 -!- HaltingState [~HaltingSt@unaffiliated/haltingstate] has quit [Read error: Connection reset by peer] 04:21 -!- HaltingState [~HaltingSt@unaffiliated/haltingstate] has joined #mcdevs 04:38 -!- Yoshi2 [~Yoshi2@xdsl-78-35-230-208.netcologne.de] has quit [Ping timeout: 256 seconds] 04:41 -!- Yoshi2 [~Yoshi2@xdsl-87-78-169-136.netcologne.de] has joined #mcdevs 06:14 -!- kahrl [~kahrl@p5790C241.dip0.t-ipconnect.de] has quit [Quit: leaving] 06:30 -!- Yoshi2 [~Yoshi2@xdsl-87-78-169-136.netcologne.de] has quit [Quit: Bye] 06:48 -!- conehead [~conehead@unaffiliated/conehead] has joined #mcdevs 06:55 -!- Amaranth [~travis@ubuntu/member/Amaranth] has quit [Ping timeout: 240 seconds] 07:38 -!- umby24 is now known as umby24|offline 07:57 < AnotherOne> morning 08:14 -!- cathode [~cathode@c-76-105-184-52.hsd1.or.comcast.net] has quit [Quit: Leaving] 08:17 -!- r04r|away is now known as r04r 08:20 -!- Amaranth [~travis@67-60-91-38.cpe.cableone.net] has joined #mcdevs 08:20 -!- Amaranth [~travis@67-60-91-38.cpe.cableone.net] has quit [Changing host] 08:20 -!- Amaranth [~travis@ubuntu/member/Amaranth] has joined #mcdevs 08:20 -!- mode/#mcdevs [+v Amaranth] by ChanServ 08:25 -!- eddyb [~eddy@unaffiliated/eddyb] has joined #mcdevs 08:40 -!- XAMPP [~XAMPP@botters/xampp] has quit [Read error: Connection reset by peer] 08:42 -!- Cay [~OlofLarss@s83-177-171-150.cust.tele2.se] has joined #mcdevs 08:47 -!- conehead [~conehead@unaffiliated/conehead] has quit [Quit: Computer has gone to sleep.] 08:49 -!- cathode [~cathode@c-76-105-184-52.hsd1.or.comcast.net] has joined #mcdevs 08:50 -!- r04r is now known as r04r|away 08:57 -!- jast [jast@zoidberg.org] has joined #mcdevs 09:02 -!- Yoshi2 [~Yoshi2@xdsl-87-78-28-73.netcologne.de] has joined #mcdevs 09:05 -!- kev009 [~kev009@tempe0.bbox.io] has joined #mcdevs 09:05 -!- mode/#mcdevs [+v kev009] by ChanServ 09:12 -!- SpaceManiac [~SpaceMani@r74-192-152-131.gtwncmta01.grtntx.tl.dh.suddenlink.net] has quit [Read error: Connection reset by peer] 09:16 -!- SpaceManiac [~SpaceMani@r74-192-152-131.gtwncmta01.grtntx.tl.dh.suddenlink.net] has joined #mcdevs 09:16 -!- mode/#mcdevs [+v SpaceManiac] by ChanServ 09:34 -!- Yoshi2 [~Yoshi2@xdsl-87-78-28-73.netcologne.de] has quit [Quit: Bye] 09:47 -!- mapppum [~mappum@c-67-170-21-29.hsd1.wa.comcast.net] has quit [Ping timeout: 264 seconds] 09:55 -!- Calinou [~Calinou@unaffiliated/calinou] has joined #mcdevs 10:02 -!- Amaranth [~travis@ubuntu/member/Amaranth] has quit [Ping timeout: 248 seconds] 10:04 -!- Amaranth [~travis@ubuntu/member/Amaranth] has joined #mcdevs 10:04 -!- mode/#mcdevs [+v Amaranth] by ChanServ 10:08 -!- Amaranth [~travis@ubuntu/member/Amaranth] has quit [Read error: Connection reset by peer] 10:09 -!- r04r|away is now known as r04r 10:23 < dav1d> Jo 10:25 < Calinou> na 10:25 -!- edlothiol [~edlothiol@95-91-255-238-dynip.superkabel.de] has joined #mcdevs 11:00 -!- Xaardas [~tach@p5B2536C8.dip0.t-ipconnect.de] has joined #mcdevs 11:11 -!- unnicked911 [~50e8f3d5@204.155.152.124] has joined #mcdevs 11:52 -!- ranie [~rramiso@124.6.182.55] has quit [Quit: Leaving] 12:03 -!- BizarreCake [~BizarreCa@46.121.251.157] has joined #mcdevs 12:06 -!- Yoshi2 [~chatzilla@xdsl-87-78-28-73.netcologne.de] has joined #mcdevs 12:17 -!- Calinou [~Calinou@unaffiliated/calinou] has quit [Remote host closed the connection] 12:24 -!- shoghicp [~shoghicp@77.225.6.14] has joined #mcdevs 12:26 -!- Amaranth [~travis@ubuntu/member/Amaranth] has joined #mcdevs 12:26 -!- mode/#mcdevs [+v Amaranth] by ChanServ 12:29 -!- Paprikac_ [~Paprikach@213-33-19-255.adsl.highway.telekom.at] has quit [Remote host closed the connection] 12:49 -!- kcj [~casey@unaffiliated/kcj] has joined #mcdevs 12:50 -!- Calinou [~Calinou@unaffiliated/calinou] has joined #mcdevs 12:53 -!- Paprikachu [~Paprikach@178.112.87.12.wireless.dyn.drei.com] has joined #mcdevs 12:54 -!- Flemmard` [~flemmard@master.virtuousrom.com] has left #mcdevs [] 12:55 -!- Flemmard` [~flemmard@master.virtuousrom.com] has joined #mcdevs 12:58 -!- Amaranth [~travis@ubuntu/member/Amaranth] has quit [Ping timeout: 276 seconds] 13:09 -!- md_5 [md_5@mcdevs/trusted/md-5] has quit [Remote host closed the connection] 13:11 -!- md_5 [md_5@mcdevs/trusted/md-5] has joined #mcdevs 13:11 -!- mode/#mcdevs [+v md_5] by ChanServ 13:11 < unnicked911> any links on lighting processing compatible with client's? 13:11 < dav1d> Hi pb! 13:12 < dav1d> welcome back 13:20 < unnicked911> pb? 13:35 -!- kcj [~casey@unaffiliated/kcj] has quit [Ping timeout: 246 seconds] 13:38 -!- Yoshi2 [~chatzilla@xdsl-87-78-28-73.netcologne.de] has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]] 13:49 -!- ffdr [~root@198.147.20.25] has joined #mcdevs 13:49 < ffdr> Hi 13:50 < shoghicp> hi 13:50 < ffdr> can someone help me to make a magic sha1 hash in ruby? 13:50 < jast> sounds magical 13:51 < ffdr> jast: http://i.imgur.com/sg017lt.gif 13:51 < ffdr> I am talking about http://wiki.vg/Protocol_Encryption 13:52 < ffdr> that magic sha1 hash 13:52 < ffdr> twos complement crap 13:52 < jast> oh, nasty 13:58 < ffdr> ._. 14:00 < ffdr> nearly there 14:00 < ffdr> now just need to trim the zeros 14:00 < ffdr> with a regex... 14:01 < ffdr> so 0001234 => 1234 14:05 < dav1d> regex wtf? 14:06 < jast> your code is almost certainly wrong 14:07 < ffdr> it works for Notch jeb_ but not simon xD 14:08 < jast> try this: i=hash.to_i(16); if i>=(2**80) then i=(2**160)-i end; hash=i.to_s(16) 14:08 < ffdr> where hash is number? string with bytes? 14:09 < jast> correction: i=hash.to_i(16); if i>=(2**80) then i=-(2**160)+i end; hash=i.to_s(16) 14:09 < jast> hash is the hexdigest 14:10 < jast> okay, wrong result, never mind 14:10 < ffdr> correction only jeb_ was correct with my code* 14:10 < ffdr> actually it acts same with yours, only jeb_ is correct 14:10 < jast> i=hash.to_i(16); if i>=(2**159) then i=-(2**160)+i end; hash=i.to_s(16) 14:11 < ffdr> LOL 14:11 < ffdr> works 14:11 < jast> stupid mistake 14:12 < ffdr> 3 lines compared to 644 of c# and 30 of js \o/ 14:12 < jast> unfair comparison since js doesn't have SHA1 built in :) 14:12 < jast> and I'm sure you could do it much shorter in C#, too, if it has a bignum type 14:13 < ffdr> ffdr: what about ~ operator in ruby 14:13 < jast> ~ on bignums returns the same as - 14:13 < ffdr> ah 14:13 < ffdr> sprintf("%x",( ~Integer('0x'+sha.hexdigest)+1)).sub("..f","-").sub(/^0+/,"") 14:13 < jast> that's because bignums have no fixed width, so you wouldn't know where to cut off 14:14 < ffdr> it acted as your first code 14:15 < jast> the mistake with yours was that 'f' isn't the only leading digit for which you have to use the complement... anything from 8 upwards needs the sign flipped 14:16 < ffdr> ah 14:16 < jast> basically anything with the highest bit set 14:17 < ffdr> ok lets try this with minecraft.net auth 14:17 < jast> FWIW this ain't gonna be the fastest implementation. there's a lot of unnecessary conversions along the way. 14:29 < ffdr> meh something still wrong when doing minecraft.net auth, returns no 14:32 < ffdr> sha1.update [server_id, shared_secret, public_key] 14:34 < ffdr> uh maybe it is related to how public key is encoded 14:34 < ffdr> client doesnt have any problem using it anyway 14:38 < ffdr> whats the point of iso-8859-1 encoding of server id? 14:38 <+md_5> uh 14:38 <+md_5> dont think it does 14:38 * md_5 checks code 14:39 <+md_5> oh 14:39 <+md_5> it does 14:39 * md_5 shrug 14:39 <+md_5> no clue 14:39 < ffdr> request.getSessionId().getBytes( "ISO_8859_1" ), sharedKey.getEncoded(), EncryptionUtil.keys.getPublic().getEncoded() 14:39 <+md_5> lol 14:39 <+md_5> you are reading my code 14:39 < ffdr> haha 14:40 <+md_5> because I think I was the first person to reimplement this after they released encryption 14:40 <+md_5> and MInecraft did it 14:40 <+md_5> so I did too 14:40 < ffdr> now trying to implement it in ruby, I am so tired of doing java stuff 14:40 <+md_5> session id is a random hex string 14:40 <+md_5> so not sure what encoding it is gonna do 14:41 < ffdr> but in a form of aaabbbcccddd? 14:41 < ffdr> or plain bytes 14:41 < ffdr> random bytes... 14:41 <+md_5> well 14:41 <+md_5> its a SHA-1 of the bytes making up the hex string 14:42 < ffdr> and then that twos complement shit 14:44 < ffdr> String hash = Long.toString(random.nextLong(), 16); 14:44 <+md_5> yup 14:44 <+md_5> that is just a string 14:44 < ffdr> it gives like an md5 hash or binary stuff? 14:44 <+md_5> consisting only of hex numbers 14:44 <+md_5> "7809adfe91adf" would be an example 14:45 < ffdr> hmm I was generating a string in a form of md5 hash 14:46 < ffdr> ok it is a string so i dont think that was the problem 14:52 < ffdr> or maybe it is because i dont urlencode the hash D: 14:56 < ffdr> maybe my twos complement is wrong, but it works for jeb simon and notch 14:56 < jast> a hex string doesn't change if you urlencode it 14:56 -!- Calinou [~Calinou@unaffiliated/calinou] has quit [Quit: Excess Flood] 14:59 < AnotherOne> should i make wiki parser to json format? 14:59 < AnotherOne> or own one? 14:59 < AnotherOne> or we already have one? 15:05 -!- Paprikachu [~Paprikach@178.112.87.12.wireless.dyn.drei.com] has quit [Ping timeout: 264 seconds] 15:05 -!- Yoshi2 [~chatzilla@xdsl-87-78-28-73.netcologne.de] has joined #mcdevs 15:06 -!- Paprikachu [~Paprikach@178.112.87.12.wireless.dyn.drei.com] has joined #mcdevs 15:08 -!- BizarreCake [~BizarreCa@46.121.251.157] has quit [Ping timeout: 240 seconds] 15:08 < ffdr> weird 15:09 < ffdr> I joined few random servers with wireshark on and looking at joinserver.jsp s 15:09 < ffdr> for all servers it joined using same hash 15:09 < ffdr> I don't get it D: 15:09 < ffdr> ah nvm 15:13 -!- Paprikachu [~Paprikach@178.112.87.12.wireless.dyn.drei.com] has quit [Ping timeout: 246 seconds] 15:13 < ffdr> is public key in "DER" format fine? 15:13 -!- Paprikac_ [~Paprikach@178.112.87.12.wireless.dyn.drei.com] has joined #mcdevs