**** BEGIN LOGGING AT Fri May 22 02:59:58 2015 May 22 06:40:02 moin :) May 22 06:48:40 oink May 22 07:25:52 KotCzarny: hi May 22 07:53:29 freemangordon: are you awake? May 22 12:21:44 do someone know how to replace "--" in a file, by using the replace command? May 22 12:26:00 zsh: command not found: replace May 22 12:26:05 must be some useless stuff May 22 12:26:26 yeah idk i'd just use sed May 22 12:26:27 sed -e 's#--#foobar#g' file May 22 12:26:37 -bash: replace: command not found May 22 12:26:50 I guess sed will take a while to pars 18GB file May 22 12:26:54 *parse May 22 12:27:44 it is part of mysql-server May 22 12:28:50 looks like the important property is "in-place" May 22 12:29:11 well, sed can do it as well May 22 12:29:14 -i May 22 12:29:30 -i is quite nonstandard May 22 12:29:44 don;t care, as ling as it works on ubuntu May 22 12:29:47 r*long May 22 12:30:25 anyway, could someone gimme the regexp to replace "--" with "#" at the start of line? May 22 12:30:36 freemangordon_: ^-- ? May 22 12:30:43 no idea May 22 12:30:53 ^ should be "start of line" May 22 12:30:58 so ^-- should work May 22 12:31:00 I tend to not touch regexps May 22 12:31:03 hmm, ok May 22 12:31:09 for inline you should probably use "# " or "##" May 22 12:31:20 use where? May 22 12:31:29 in the replace May 22 12:32:05 sed -re 's/^\-\-/# /m' May 22 12:32:06 i think May 22 12:32:12 but check on a test file first May 22 12:32:12 no, it turned out to be "\-\-", but I gave up on replace, as it doesnt seem to support regexp May 22 12:32:28 ok May 22 12:32:44 what is /m ? May 22 12:33:02 might be /s May 22 12:33:15 always confused about those two flags May 22 12:33:36 time to open the grymoire May 22 12:33:44 http://www.grymoire.com/Unix/Sed.html May 22 12:33:44 but just test it May 22 12:33:46 one of it works May 22 12:33:58 could be also without any flags May 22 12:34:47 sed -i 's/^\-\-/#/' $FILE should do the job, lets see May 22 12:34:59 nope May 22 12:35:04 for ^ you need -r May 22 12:35:19 or im just sleepy May 22 12:35:30 I think you're sleepy May 22 12:35:54 i guess ^ isnt regexp anyway May 22 12:36:03 what is it then ? May 22 12:36:04 "use extended regular expressions in the script." ??? May 22 12:36:05 and its not needed May 22 12:36:21 echo -e "123\n--234\n5--5" | sed -e 's/^--/# /' May 22 12:36:31 this one worked fine May 22 12:36:31 KotCzarny: it works without -r here May 22 12:36:51 i guess sed just understands ^ without regexps flag May 22 12:36:57 and why the '-e'? May 22 12:37:06 'execute this script' May 22 12:37:14 KotCzarny: regex != extended regex May 22 12:37:15 which script?!? May 22 12:37:22 the one in '' May 22 12:37:35 but, but... it does it wothout -e May 22 12:37:39 though it worked without -e too May 22 12:37:46 might be for multiple scripts May 22 12:37:48 freemangordon_: -e allows for multiple expressions May 22 12:37:59 so I don;t need it I guess May 22 13:46:00 Hey there, I am entirely new to maemo. What kind of OS things can I actually run on a N900? May 22 13:46:23 any linux of your choice, basically May 22 13:47:09 are there readymade images anywhere or do I have to chase the parts? any overview thread? May 22 13:47:29 google n900 May 22 13:47:34 there are quite a few articles/threads about running other distros May 22 13:48:14 keep in mind you might/will lose some functionalities May 22 13:48:44 ok, thats what I was about. Whats the best thing, to still use it as phone? May 22 13:49:12 most probably maemo May 22 13:49:54 he he May 22 13:50:06 even though you should be able to keep the phone part with any distro, a custom kernel, and proper userland (ofono for instance, or some libcmt-speech based software) May 22 13:50:07 in short, old glibc and old kernel May 22 13:50:17 other than that everything linuxish works May 22 13:51:26 it has 256M of ram, so dont expect anything modern to work May 22 13:54:46 So I will chase parts ^^ thanks! May 22 13:55:14 chase parts ? May 22 18:22:22 ShadowJK: I have an external battery (solar) which I didn;t use for long time. now, it seems it self-discharged too much. I disassembled it and the voltage on battery ports was .36V. I connected a charger and after about 1h, the voltage is 0.43V. So, 1 - is it safe to charge that battery? 2-what consequences should I expect? May 22 18:23:12 It might catch fire eventually May 22 18:28:58 freemangordon: it started crystallizing inside May 22 18:29:02 battery is ded May 22 18:29:10 ded ded May 22 18:29:11 ShadowJK: really? even if the charging current is just a couple of mA May 22 18:29:37 and crystals pierce the insulator May 22 18:29:43 hmm, I see May 22 18:30:41 and you know what happens when high current runs inside? May 22 18:30:46 or outside May 22 18:31:43 part of it might still holding charge, but overall its trash now May 22 18:31:44 http://www.mpoweruk.com/lithium_failures.htm May 22 18:32:42 So the copper in it is dissolving, if you manage to recharge it, and the copper is now no longer dissolved, you'll have solid copper in random places where it's not supposed to be.. which makes the battery riskier to use, because that copper creates local short ciruits May 22 18:34:10 ok, got it, thanks May 22 18:34:32 the battery goes to trash, might use the solar cell though :) May 22 18:35:45 definitely May 22 18:36:22 all lions charge the same (roughly) so you should be able to replace it May 22 18:36:29 yeah May 22 18:37:54 hmm, is it safe to connect li-ion batteries in parallel? May 22 18:38:37 my gut feeling tells me yes, but I want some expert's say :) May 22 18:38:49 If they're at the same voltage when you make the connection May 22 18:38:50 i dont know, but i bet its not safe May 22 18:38:59 ShadowJK: yea, sure May 22 18:39:05 different parameters/aging May 22 18:39:13 so they will charge/discharge differently May 22 18:39:19 Li-Ion batteries in parallell are self-balancing May 22 18:39:26 NiMh batteries in parallell are not May 22 18:39:36 nice to know May 22 18:39:49 ShadowJK: thanks a lot May 22 18:40:10 shadowjk: how to make them same voltage tho? May 22 18:40:21 charge them ;) May 22 18:40:24 yep May 22 18:40:24 or some mergin of difference is acceptable? May 22 18:40:59 doh May 22 18:41:03 s/mergin/margin/ May 22 18:41:06 I guess no, the charging current will be too big May 22 18:41:23 You can crudely estimate the margin of difference, by multiplying cell voltage difference by the sum of the internal resistances of the two cell. Hobbyists don't always have access to equipment that can measure the internal resistance, though :) May 22 18:41:44 so, its not safe at home May 22 18:41:45 :) May 22 18:42:10 KotCzarny: I guess a serial resistor for a couple oh hours will make it safe :) May 22 18:42:15 *of May 22 18:43:13 wouldnt that confuse the charger tho? May 22 18:43:39 you're missing the point - connect those 2 charged batteris in paralle, but through a resistor May 22 18:43:42 So for example two fresh new BL-5J batteries have an internal resistance of, well, for this puprose well use a bit too low estimate of 0.1 Ohm. Say one was in a N900 that just shut down, so around 3.5V, and the other is full at 4.2V. Ohm's law, (4.2V - 3.5V) / 0.2 .. 4.5 Amps... Which is a bit too much :) May 22 18:44:30 until the measured voltage (and thus the charging current from higher voltage batt to lower) falls in some safe margin May 22 18:45:11 So I'd say this puts the safe margin at < 0.1V difference :) May 22 18:45:18 hehe May 22 18:46:20 also, what would happen if one of the batteries gets bad? (for whatever reason) May 22 18:46:20 for example 10 Ohm resistor for 24 hours (sounds good to me, didn;t calculated) will be enough IMO May 22 18:46:36 KotCzarny: fire in the hole I guess May 22 18:46:38 :) May 22 18:46:41 :) May 22 18:46:51 sounds fun May 22 18:47:05 ShadowJK: what about that serial R? does ity sound sane to you? May 22 18:47:14 assuming both batteries are charged to 4.2 May 22 18:47:46 ~.1/10 May 22 18:47:46 0.01 May 22 18:48:01 10 mA should be safe by all measures May 22 18:48:06 Personally, if I charged them both in a non shitty charger i would just parallell with wire May 22 18:48:23 yeah, but you never now May 22 18:48:45 I mean - the charger quality, unless you have a lab May 22 18:48:53 which I don't :) May 22 18:49:35 Coincidentally I do have a battery jumper wire with a 1R resistor in it, but that I used for inrush current limiting May 22 18:50:15 so 10R is t0o much? May 22 18:50:18 *too May 22 18:50:24 when i was lacking 24V psu and wanted to power some 24V inudstrial kit May 22 18:50:58 eh, dunno May 22 18:51:06 :) May 22 18:51:35 ok, will see when I don;t find a replacement battery so I need to use 2 or 3 smaller ones May 22 18:51:40 id just check battery voltaged with meter, and if close use wire, if not, resistor May 22 18:52:31 ok May 22 18:54:00 * ShadowJK just bought a 6000mAh powerbank from Lidl for 12E :) May 22 18:55:14 Did you btw see about that new Mediatek SoC? May 22 18:55:20 10(+1) cpu cores May 22 18:55:31 kinda insane :) May 22 18:59:20 omg May 22 19:00:47 rip freemangordon May 22 19:00:49 you will be missed May 22 19:01:59 hmm? May 22 19:02:23 such a young life May 22 19:02:31 lost in the explosion of multiple lithium batteries May 22 19:02:40 connected in parallel May 22 19:02:47 *charged in parallel May 22 19:03:00 :D May 22 19:16:46 charge junkie **** ENDING LOGGING AT Sat May 23 02:59:58 2015