#htc-linux

<2010> <February> Show msg only
1234567891011121314151617
1819202122232425262728

00:00=> Bob_eponge joins
00:02=> Bob_eponge_ joins
00:02<= Bob_eponge_ left/quit
00:03=> Bob_eponge_ joins
00:04<= Bob_eponge_ left/quit
00:05=> M_CC joins
00:05<= Bob_eponge left/quit
00:06 NetRipper lol that's awesome
00:06 NetRipper a patent on the way something is programmed
00:09<= tehtrk left/quit
00:09=> Test__ joins
00:10** mpurcell is now known as mpurcell|afk
00:12 Captnoord 1992
00:12 Captnoord its old
00:12 Captnoord still valid in a way
00:12 Captnoord needs sleep
00:12 Captnoord nn
00:13<= Captnoord left/quit
00:16<= Test__ left/quit
00:18<= M_CC left/quit
00:26<= Vito89 left/quit
00:39=> tehtrk joins
00:54=> theunholy joins
00:54<= fleixius left/quit
00:55<= Zoolooc left/quit
00:56<= theunholy left/quit
00:56=> theunholy joins
00:56<= theunholy left/quit
00:56=> theunholy joins
00:57=> jumoit joins
00:58=> AstainHellbring joins
00:58<= Unholy left/quit
01:01<= theunholy left/quit
01:02=> Unholy joins
01:02 Unholy hey guys
01:05 makkonen howdy
01:08 Unholy any of you know c++? i need help with a home work, having a hard time finding a tutorial that is clear enof to help me
01:13 MrPippy yeah some c++, whats the question
01:14 Unholy ok i have some variables declared, each of them has cout for user imput, what i want to do is tell the progam to multyply or divide the 2 imputs fro my variables
01:14 Unholy did that come out right?
01:14 Olipro variablea * variableb
01:15 Olipro do you need to write it to console?
01:15 Olipro printf!
01:15 Unholy yes i just need to know the code to do that
01:15 Paul_away that's C . he needs C++
01:15=> skodde joins
01:15 Olipro how is that C?
01:16 Olipro it will compile as C++ or C
01:16 Paul_away where is some C++ class around :)
01:16** mickeyl is now known as mickey|zzZZzz
01:16 Olipro Unholy: go Google scanf and printf
01:16 Olipro knock yourself out laddo
01:16 Unholy cout << "email" << email << endl; something like this to print out the result
01:16 Unholy huh?
01:17 Olipro well, you could sprintf it to a char array and the pipe that to cout
01:17 Olipro but printf would be simpler
01:17 Olipro int numberA, numberB;
01:17 Olipro print("Enter a number bitch\n");
01:18 Unholy lol
01:18 Olipro scanf("%d", numberA);
01:18 Olipro print("and another, bitch");
01:18 Unholy wait
01:18 Unholy wait
01:18 Olipro scanf("%d", numberB);
01:18 Unholy dont tell the hole program dude
01:18 Unholy i want to make it
01:18 Unholy XD
01:18 Olipro then go google scanf and printf like I told you
01:18 Olipro jesus
01:18 Olipro if you want to look REALLY clever
01:18 Olipro you can use sprintf
01:18 Unholy i did 1 sec
01:18 Olipro and allocate a char* pointer using new
01:19 Olipro char *stringPtr = new char[50];
01:19 Olipro 50 means you'll allocate 50 bytes for char storage
01:19 Unholy whats "%d" for?
01:19 Olipro GOOGLE SCANF AND YOU'LL FUCKING FIND OUT
01:19<= Paul_away left/quit
01:19 Unholy ah k
01:19 Unholy no need to use caps
01:20 MrPippy c++ way is cin and cout instead of scanf and printf
01:20 Olipro no need to make me repeat myself numerous bloody times
01:20 Olipro MrPippy: says who?
01:21 Olipro what sort of moron would deliberately use cin and then pass it to sscanf rather than call scanf right off the bat
01:21 Olipro just because c++ has cin doesn't mean it's automatically the best method of accessing stdin
01:22 Olipro it really does depend on what you're doing
01:23 Unholy cin and scanf same thing right
01:23 Olipro no
01:23 Olipro scanf is a function
01:23 Olipro cin is something you pipe
01:23<= MethoS- left/quit
01:23=> MethoS- joins
01:24 Unholy hmm im getting realy confused, im taking this class in spanish, terminology not the same
01:24 Olipro C++ in spanish
01:24 Olipro jesus
01:24 Unholy no dude
01:24 Unholy nvm
01:25 Olipro or rather
01:25 Olipro madre de la dios
01:25 Olipro anyway
01:25 Olipro cin/cout are objets of the istream class
01:25 Olipro whereas scanf and printf are functions
01:25 Unholy yea i have to do it woth iostram
01:25 Unholy stream*
01:26 Olipro you have to use <iostream>
01:26 Unholy yes
01:26 Olipro then there's no problem with using scanf and printf
01:26 Unholy but il get conffused
01:26=> tehtrk_home joins
01:26 Olipro ok then
01:26 Olipro use cin
01:26 Olipro and use sscanf
01:26 Olipro you're not getting out of this either way
01:27 Unholy witch is the simplest?
01:27 Olipro scanf and printf because it saves you having to create additional variables to save the input/output strings into
01:27 Unholy olipro mind if i pm you so we dont flood this with c++ stuff
01:27 Olipro I bet you don't even understand pointers
01:27 Unholy probly XD
01:28 Olipro what is a pointer?
01:28 Olipro for example
01:28 Olipro char *myPointer = "Hello";
01:28 Olipro do you understand why that variable is a pointer?
01:29 Olipro a pointer points to a number, that number is a RAM memory address
01:29 Olipro myPointer's value might be 0x12230
01:29 Olipro and, if we were to look at address 0x12230 in our computer's RAM
01:29 Olipro we would see the letter H
01:29 Olipro and if we look at the next byte, we see an e
01:30 Unholy i think thats like to advance for me right now 0o
01:30<= BabelO left/quit
01:31<= MethoS- left/quit
01:31=> MethoS- joins
01:31 Olipro pointers are pretty fundamental to C and C++
01:31 Olipro so I suggest you get it into your head boy
01:31 Olipro especially because bad things happen if you declare a pointer and don't allocate it
01:32 Olipro for example
01:32 Olipro char *myPointer;
01:32 Olipro strcpy(myPointer, "Hello");
01:32 Olipro that'll cause big problems because myPointer will very probably not point to a valid RAM address
01:32 Olipro so strcpy will try to write RAM that doesn't exist
01:32 Olipro and the computer won't like that
01:33 Olipro and your program will crash
01:33 Unholy hmm
01:33 MethoS- Unholy: i honestly suggest you to use std::string std::cin and std::cout, if you to learn c++
01:33 MethoS- *if you try to learn c++
01:33 Olipro ah yes, std::string, that makes life easy
01:33 Olipro it does everything for yoy
01:33<= Markinus left/quit
01:33 Olipro *you
01:33 MethoS- right
01:34 Unholy i am , im like my 3 day of this class
01:34 Olipro although you can still declare a pointer to an std::string
01:34 Olipro so...
01:35 MethoS- pointers are maybe a bit to early to deal with after day three
01:35 Unholy so if i want to scan the variable in cout that the user input, i have to use scanf?
01:35 Unholy scanf "%d", int
01:35 Unholy ;
01:35 Olipro no
01:36 Olipro you have to use sscanf
01:36 Olipro you cin to a variable
01:36 Olipro then you pass the string to sscanf
01:36 Unholy so i ned the cin before sscanf?
01:36 Unholy need*
01:36 Olipro actually nope, cin can write to an integer just fine
01:37 Olipro although your program will do a poo if someone doesn't enter a number
01:37 Olipro int numberA;
01:37 Olipro cin >> numberA;
01:37 Unholy ok then cin "%d", int; ?
01:37 Olipro no
01:37 Olipro I just told you
01:37 Olipro cin >> numberA;
01:38 Unholy ok i got that
01:38 Unholy i had that before
01:38 Olipro and cin >> numberB
01:38 Olipro then
01:38 Unholy what i want is the program to for example multyply numbera and numberb
01:38 Olipro cout << "A times B = " << (numberA * numberB);
01:39 Olipro cout << "A over B = " << (numberA / numberB);
01:40 Unholy but before that how i have to cout the number a and b values
01:40 Unholy from the user imput
01:40<= JairunCaloth left/quit
01:41 MethoS- cout is for output
01:41 Unholy cin then
01:41 Olipro int numberA, numberB;
01:42 Unholy cout << "Entre el nombre de la persona: " ;
01:42 Unholy cin >> nombre ;
01:42 MethoS- [01:37:25] <Olipro> cin >> numberA;
01:42 Olipro cout << "gimme a goddamn number";
01:42 Olipro cin >> numberA;
01:42 Olipro cout << "well done, now gimme another fucking number";
01:42 Olipro cin >> numberB;
01:42 Olipro cout << "A times B = " << (numberA * numberB);
01:42 Olipro cout << "A over B = " << (numberA / numberB);
01:42 MethoS- return 0;
01:42 MethoS- }
01:42 MethoS- :D
01:42 Unholy ah ok
01:42 Olipro unless your main function is void
01:43 MethoS- which would be C
01:43 MethoS- :D
01:43 Olipro maaaaaybe
01:43 Unholy i got that
01:44 MethoS- void main()
01:44 MethoS- {
01:44 MethoS- }
01:44 Unholy typing the program let me see if can do it without looking to much
01:44 Unholy XD
01:44 MethoS- gcc compiles it
01:44 MethoS- c++ doesn't
01:44 MethoS- main.c:1: error: '::main' must return 'int'
01:45 MethoS- Olipro: so, void main() is definetly C
01:45=> Totototto joins
01:45 Olipro you and your primitive linux compilers
01:45 MethoS- which one do you use?
01:45 Olipro my superior MS compiler can do void main and zero sized arrays
01:45 Olipro (note, I'm joking)
01:45 MethoS- my c compiler takes it as well
01:45 MethoS- only the c++ doens't
01:45 MethoS- ->no problems
01:46 MethoS- :PP
01:47 Unholy olipro can i have your msn or email?
01:47 Unholy for future questions
01:47 Unholy XD
01:47 Olipro have I have ten quid?
01:47 Olipro *can I have ten quid
01:47 Olipro how do I shot web?
01:47 stinebd how is babby formed?
01:47 Olipro I accidentally the whole bottle
01:50<= Totototto left/quit
01:51 Unholy olipro can separate the procces with // procces? you know to make look cleaner
01:51 Olipro / is for comments
01:51 Olipro stupid IRC
01:51 Olipro // is for comments
01:51 Unholy i know under that i would cout theprocces
01:52 Olipro anything you write after // will be completely ignored by the compiler
01:52 Unholy oh
01:52 Unholy then i cant
01:52 Olipro the only purpose of comments is for humans to get some information on what you're doing
01:52 Olipro /here we cout the information
01:52 Olipro *//
01:52 Olipro / only applies to a single line
01:53 Unholy i see
01:53 Olipro /* begins a multiline comment
01:53 Olipro */ ends it
01:53 Olipro if you want to make it look cleaner, do whatever you like
01:53 Olipro you can stick stuff on newlines if you want
01:54 Olipro so long as the ; is in the right place it's fine
01:56=> JairunCaloth joins
01:56 Unholy and if i want to print that information to the console to like say, count "sum result ": ; to show me the result of the sum or the multyplication
01:57 Olipro well, if you were writing sums on paper
01:57 Olipro you'd use + wouldn't you
01:57 Olipro so
01:57 Olipro what do you think C++ uses
01:57 Olipro or pretty much any computer language for that matter
02:00 Unholy nvm the it prints the result nice
02:00 Unholy it worked
02:00 Unholy i love you
02:01** mpurcell|afk is now known as mpurcell
02:01 Unholy holy shit this is so nice
02:02 Olipro congratulations on making a poor man's calculator
02:03 Unholy jajaja
02:03 Unholy erm ups its hahaha
02:03 Olipro I could write that shit in assembler
02:03 Olipro because I'm fucking hardcore
02:03 Olipro HARDCORE
02:09 Unholy olimpro what if i want to be creative and add like a sort of wait time before the result, something like wait 1.0ms
02:15 Unholy olipro my masta were you go
02:17 Olipro call sleep
02:17 Olipro sleep(100);
02:17 Olipro that's 100 ms
02:17 Olipro 1000ms is 1 second
02:18 Unholy count "plz wait:" ;
02:18 Unholy sleep(1000);
02:18 Unholy like that?
02:19<= enjalot left/quit
02:20<= GeertJohan left/quit
02:24 Unholy olipro compler says sleep is not a valid identifier
02:24 Unholy compiler.
02:27<= leaigor left/quit
02:27<= Unholy left/quit
02:27 makkonen MrPippy: do you have wifi working in the latest kernel? I hear something happened with the wireless module, but I'm not seeing what exactly.
02:30 MrPippy i haven't tried it lately but yeah, it should be working
02:31 MrPippy i haven't tried the latest xdandroid though, maybe thats the problem
02:32 MrPippy ohhh...latest xdandroid pulls calibration from nand instead of using a stock one
02:32 MrPippy if they aren't using the right offset, its not gonna work
02:33 makkonen ah
02:34 MrPippy i know the offset for diam500, hopefully its the same for raph800
02:34 makkonen so it's clearly not the right offset. how do I determine it?
02:34 makkonen and where does it go? I saw a few things changed in the rootfs.
02:36 MrPippy yeah i'm grabbing it now to see how they did it, the commands i use to get the cal are at http://htc-linux.org/wiki/index.php?title=WL1251
02:36=> mcdull joins
02:36 MrPippy found it by dumping nand and searching for the header--in my nand it appeared twice, but the 2nd one is the right one
02:37 makkonen ah
02:39 makkonen yeah, it's in init.etc/wifi/loadit
02:39=> jooprzol joins
02:39 makkonen unfortunately, it uses the same offsets you do.
02:41 MrPippy really? weird, someone in my thread is having a problem
02:42 mcdull Hi,
02:42 bzo I can't get wifi to start on my diam500, using the latest xdandroid with the included kernel and modules
02:43 MrPippy interesting
02:43 MrPippy is it working for other devices (like diam100)?
02:43 bzo presumably, since that is what phh is using :)
02:43 makkonen trying to run the commands from the wifi-calibration script from an adb shell, insmod /lib/modules/mtdchar.ko fails to load saying 'invalid module format'...
02:44 bzo let me fire up adb and see if there is anything in the log
02:44 MrPippy ohh...now we have to include the mtd modules with our kernels?
02:44 makkonen yeah, just failing because the module is the wrong version.
02:44 makkonen yup.
02:48 bzo aw shoot, adb is not working for me with this kernel. I think phh enabled usb massstorage in his kernel which breaks adb for the diam500
02:49 bzo but since I'm running with the included kernel and modules, you would think I couldn't have the mtd module problem
02:50 makkonen can't you just echo 2 > /sys/devices/platform/msm_hsusb/usb_function_switch
02:51 makkonen well, maybe glemsom hasn't been updated about the change, and his system isn't building the mtd modules yet either.
02:51 bzo maybe for windows adb, but linux adb expects to see a composite device
02:51 makkonen ah
02:51 makkonen last time I enabled mass storage, it killed data and ground the whole thing to a halt, so I haven't bothered with it in a while. :-)
02:54 bzo there does seem to be some unexplained conflict... though it may be less dramatic now
02:56 makkonen even on the vogue they don't have simultaneous mass storage and adb working. that was disappointing.
02:56=> Unholy joins
02:57 bzo I guess it must be another one of these cdma quirks
02:57 bzo speaking of which, I sure wish we could figure out the mic init problem
02:58 Unholy olipro you here?
02:59 MrPippy yeah, mic and battery status are the biggest features left i think
02:59 bzo MrPippy: is the mic controlled directly by the MSM, or is there another chip/driver?
03:00 makkonen did you ever take battery status from my tree? it's... better than nothing. that's about all the praise I'll give it.
03:01 MrPippy yeah the mic is all msm, more arm11/arm9 rpc fun
03:01 bzo makkonen: I was running with your battery tweaks for a while. Huge improvement over the constant 5% status. At least you had some hint as to the charge state
03:01 Olipro yes Unholy
03:01 MrPippy haven't tried your battery status but i've got it open, should really try it
03:02 Unholy that sleep identifier dosent work, compiler complains its not valid, i also found another one voidsleep() is that the same?
03:02 makkonen bzo: yeah. it's not good, but it's good enough that I don't really have to think about it all the time.
03:02 MrPippy does charge status show up right?
03:03 makkonen as in whether the charger is connected? no.
03:03 bzo MrPippy: I was thinking about what we chatted about the other day about the heroc differences. They must have crammed everything into the a9 firmware they weren't allowed to open source, and just exposed a single rpc call to the a11
03:03 makkonen I don't really understand what's up with that. I'm pretty sure all the fake_charger stuff has been disabled at this point, but it's still wrong. I haven't looked at it at all closely, though.
03:04 MrPippy yup thats what they did, shove everything into amss and you don't have to open source it
03:04 bzo wonder why the battery stuff is proprietary though?
03:04 MrPippy yeah the charger status should be easy, its a gpio and we know what it is
03:05 Unholy olipro can pm me your msn?
03:05=> moishaSPB joins
03:06 MrPippy battery status isn't really proprietary, we have access to the voltage/current/temp values, but they're uncorrected raw values
03:06 bzo I mean the battery calculations
03:07 bzo perhaps they are using someone else's library
03:10<= marex left/quit
03:13=> enjalot joins
03:14<= leobaillard left/quit
03:15 mcdull confirmed that 3D completely broke in Blackstone.
03:16 mcdull fun thing is that, the phone "restart" inself when I try a 3d game. So acutally the phone could be restarted by some means.
03:20<= Kevin2 left/quit
03:21<= bzo left/quit
03:22=> Kevin2 joins
03:24=> jeremychang_ joins
03:33=> The_Eccentric joins
03:36 Unholy anyone here know c++? i need help with colotext()
03:36 MrPippy never heard of that function
03:38 Unholy colortext sorry
03:39 MrPippy still never heard of that, is it windows or linux?
03:39 Unholy i just want to color a the comment of one of my cout
03:39 Unholy windows heh
03:39 tmzt ?
03:39 Unholy its a homework
03:39<= MethoS- left/quit
03:39 tmzt color?
03:39 Unholy yea change the color fo the font
03:40 Unholy from black to w/e i want
03:40 Unholy XD
03:40 tmzt ansi?
03:40 Unholy of*
03:40 tmzt I bet your overloading an operator and that's the homework
03:40 Unholy 0o
03:40 Unholy lol
03:41 Unholy nah i just finished this calculating program witch olipro helpd me with
03:41 Unholy i want to color a comment
03:41 Unholy il shwo what imean
03:41 Unholy show*
03:42 Unholy cout << "Please Wait While Your Problem is Processing: " << endl; you see the commented are i want it to come ot in the console green not blue
03:42 Unholy i mean black*
03:42 Unholy omfg typos
03:42 Unholy area*
04:03<= jeremychang_ left/quit
04:17<= Lone_Wolf left/quit
04:26 makkonen ok, built the mtd modules... inserted the mtd modules... mknod'ed the mtd0ro device... but when I dd from it, I get ENODEV
04:28 adamw makkonen: i used the regular (i.e. not read-only node), worked for me...
04:28 MrPippy i think the ro device is provided by mtdblock_ro, is that inserted?
04:28 makkonen scary.
04:29 adamw makkonen: i never liked my phone that much anyhow :P
04:29 makkonen ah. that's the problem.
04:29 makkonen hmm. device or resource busy.
04:30 adamw unload the modules and just reload the ones you need?
04:30 adamw (and remove the device node you created)
04:30=> jeremychang_ joins
04:30 makkonen it'd be cool if depmod worked here.
04:30 makkonen it'd also be cool if rmmod worked here.
04:32 adamw oh yes I forgot that.
04:32 adamw modinfo would also be handy. :P
04:32 adamw though at least you can run that on your build system.
04:32 adamw (to figure out the deps)
04:32 makkonen fortunately pushing the stylus in the bottom of the phone works. that unloads the modules.
04:33 adamw along with some other small side effects i guess
04:34 makkonen turning on animations sort of makes the phone feel faster. stupid brain, getting all confused by shiny things.
04:35 makkonen ok. guess I'm just going to add all these insmod commands to the rootfs script. see what happens.
04:35<= tmzt left/quit
04:38 makkonen wait, the script has rmmod in it. does it work at some point, and then break when android comes up? or is this script just overly optimistic?
04:43 MrPippy i think phh was confident that android wouldn't mess with nand
04:43 MrPippy but i don't know...it probably wouldn't be hard to write and compile a rmmod replacement that actually works
04:44 makkonen so before this change, was every android raph/diam/topa/rhod reporting the same mac address?
04:45 MrPippy yeah
04:45 makkonen cute.
04:47 makkonen hm... I'm also reporting 102392 B of swap now. maybe that should be changed in eclair.user.conf
04:47 makkonen although... everything seems to be running fine.
04:47<= tehtrk_home left/quit
04:47 makkonen Another thing I don't understand.
04:54 makkonen all modules inserted successfully, still ENODEV. is the non-readonly device on a different minor number for mknod?
04:55 makkonen 0 vs 1, looks like.
04:56=> tmzt joins
04:57<= jooprzol left/quit
05:00<= MADler2 left/quit
05:06 makkonen mtd0, also ENODEV
05:09<= Olipro left/quit
05:12=> Olipro joins
05:30<= Unholy left/quit
05:51<= Kevin2 left/quit
06:00=> kvaster joins
06:08<= ali12341 left/quit
06:17<= ReeferMattness left/quit
06:18<= droid001 left/quit
06:33<= mcdull left/quit
06:43<= enjalot left/quit
06:52=> jeremychang__ joins
06:54<= jeremychang_ left/quit
07:01=> BHSPitMonkey joins
07:17=> mcdull joins
07:19<= mcdull left/quit
07:19=> mcdull joins
07:29 mcdull which irc client is preferred under ubuntu?
07:46=> droid001 joins
07:53<= M1DLGpc_ left/quit
07:54=> M1DLGpc joins
07:54<= M1DLGpc left/quit
07:54=> zachy joins
07:55=> M1DLG joins