| Ayla | do you know how can I grep the output of a program, if that program writes on a single line? | 00:47 |
|---|---|---|
| Ayla | it writes a progression, and everytime I gain 1%, the line is deleted an rewritten | 00:48 |
| wpwrak | tr \015 \012 ? (or whatever the program uses to delete the line) | 00:54 |
| wpwrak | note that you still may have problems with stdout buffering | 00:54 |
| wpwrak | (and the exact command syntax would be tr '\015' '\012' for the bourne shell) | 00:56 |
| Ayla | wow! | 00:57 |
| Ayla | thank you! | 00:57 |
| wpwrak | was a pleasure :) | 00:59 |
| Ayla | yes, I have problems with stdout buffering :( | 01:00 |
| wpwrak | that's hard to fix | 01:02 |
| Ayla | (I'm trying to add a progression bar to wodim using zenity) | 01:03 |
| wpwrak | you could try running it under script -f then tail -t | tr ... | 01:04 |
| wpwrak | whatever wodim and zenity are ;-) | 01:04 |
| DocScrutinizer05 | zenity is great | 01:07 |
| DocScrutinizer05 | (cmdline gfx toolkit) | 01:08 |
| DocScrutinizer05 | the progress bar is a itsy bit tricky to handle though | 01:08 |
| cladamw | wpwrak, Would it be better to generate *.mod under kicad-lib\modules or localproject\modules ? | 01:09 |
| DocScrutinizer05 | http://library.gnome.org/users/zenity/3.2/zenity.html#zenity-progress-options | 01:13 |
| DocScrutinizer05 | (ben USB inrush) no, an inductor is definitely not the solution | 01:19 |
| DocScrutinizer05 | you'll want a switch with current limiter and/or softstart. I.E. a mosfet | 01:20 |
| Ayla | new question: | 01:20 |
| Ayla | is there a command to add/multiply numbers from command line? | 01:21 |
| DocScrutinizer05 | yes | 01:21 |
| DocScrutinizer05 | $(( )) | 01:21 |
| DocScrutinizer05 | echo $(( 3 * 5 + 8 )) | 01:22 |
| DocScrutinizer05 | inside braces you don't need $ to expand env vars | 01:22 |
| DocScrutinizer05 | three=3; five=5; echo $(( three * five )) | 01:23 |
| DocScrutinizer05 | possibly a bashism though, dunno | 01:23 |
| DocScrutinizer05 | nope, seems to work on messybox as well | 01:25 |
| DocScrutinizer05 | also: echo $(( 0x20 )) -> 32 | 01:27 |
| Ayla | can I do something like this: | 01:27 |
| Ayla | echo '$(( 2 + 2 ))' | echo | 01:27 |
| Ayla | I have a command that returns the '$(( 2 + 2 ))' string | 01:27 |
| DocScrutinizer05 | echo | echo doesn't make sense | 01:27 |
| Ayla | well, that's an example here | 01:28 |
| Ayla | I have a sed command that returns two numbers, on which I'd like to make a percentage | 01:28 |
| DocScrutinizer05 | and you don't want to execute the result of 2+2 as a command | 01:28 |
| DocScrutinizer05 | something like echo $(( $(date +%s) / 1000 )) ? | 01:30 |
| DocScrutinizer05 | echo $(( $(date +%s) % 60 )) | 01:32 |
| pabs3 | whitequa1k: sounds like slashdot material | 01:35 |
| pabs3 | whitequa1k: I guess the osmocom folks would be very interested in your findings, SGSII is a pretty common smartphone | 01:37 |
| Ayla | heheh | 01:37 |
| Ayla | I found it | 01:37 |
| Ayla | echo "expr 2 \* 3" | bash | 01:37 |
| Ayla | I can return "expr 2 \* 3" on my sed command, and bash will execute the call | 01:38 |
| DocScrutinizer05 | eval "expr 2 \* 3" | 01:48 |
| DocScrutinizer05 | though I don't get it why you need to pass thru the "expr" from anywhere inside sed | 01:50 |
| cladamw | interesting i got "hole (line 63) not completely inside pad "3" (line 67)" when run fped on http://projects.qi-hardware.com/index.php/p/kicad-libs/source/tree/master/modules/dcjack.fpd | 01:50 |
| DocScrutinizer05 | echo $(( $(sed 's/.*/2 * 7/;q' /dev/urandom) )) | 01:55 |
| Ayla | $WODIM dev=$BURNER speed=$SPEED -v -dummy -pad -xa -eject $TMP_IMAGE2 \ | 02:05 |
| Ayla | | stdbuf -o0 tr '\015' '\012' \ | 02:05 |
| Ayla | | stdbuf -o0 grep 'written' \ | 02:05 |
| Ayla | | stdbuf -o0 sed -u 's/^Track\ [0-9]\+: \+\([0-9]\+\) of \+\([0-9]\+\).*$/expr \1 \\\* 100 \/ \2/' \ | 02:05 |
| Ayla | | bash | zenity --progress --auto-close --title="$WTITLE" --text="Burning second data session..." | 02:06 |
| Ayla | now it works ;) | 02:06 |
| qi-bot | [commit] Adam Wang: dcjack.fpd: fixed "hole (line 63) not completely inside pad "3" (line 67)" (master) http://qi-hw.com/p/kicad-libs/667f6c9 | 02:20 |
| qi-bot | [commit] Xiangfu: config.full_system include kmod-ipv6 (master) http://qi-hw.com/p/openwrt-packages/009fea8 | 03:01 |
| cladamw | wpwrak, i sometimes got "Deleted stale lock file 'home/adam/pcbnew-adam' when opening Pcbnew, what could cause it ? | 03:38 |
| qi-bot | [commit] Xiangfu: urjtag: disable python bindings (master) http://qi-hw.com/p/openwrt-packages/ee4c2af | 04:33 |
| wpwrak | cladamw: you get that when you didn't quit pcbnew "cleanly" before | 05:31 |
| wpwrak | normally, this is no cause for concern | 05:31 |
| cladamw | wpwrak, okay. | 05:32 |
| cladamw | wpwrak, and I see threre's no list match in CvPcb for labsw. Why? but I saw Xue did. ... ? | 05:34 |
| wpwrak | list match ? there's labsw.cmp, so the footprints are defined | 05:58 |
| cladamw | mmm .... i should have said why labsw didn't have *.net ? | 06:11 |
| wpwrak | oh, because you can generate .net from the other files | 06:13 |
| cladamw | what files are they ? | 06:15 |
| cladamw | so does this mean you edited directly labsw.cmp by yourself ? not by CvPcb itself ? | 06:16 |
| wpwrak | the inputs are .pro, *.sch, and .cmp. you just start eeschema and make the netlist. then cvpcb should show everything correctly | 06:18 |
| wpwrak | well, except if there were incompatible changes in kicad-libs. that may have happened | 06:18 |
| wpwrak | i created .cmp using cvpcb. made the netlist, then started cvpcn and associated the footprints | 06:19 |
| cladamw | so two directions can be work ? one from Eeschema to generate Netlist then using CvPcb to generate .cmp | 06:21 |
| cladamw | and another way is from .cmp then generate .net(like yours) | 06:23 |
| wpwrak | eeschema uses the information from .cmp when generating .net. yes | 06:23 |
| wpwrak | and cvpcb updates the .net file | 06:23 |
| wpwrak | grmbl. to get about 1 kB of optimized SHA-1 code, there are 130+ MB of bzr to download ... (for AVR, avrcryptolib) | 06:24 |
| cladamw | wpwrak, okay. I need to give a try. :-) | 06:25 |
| qi-bot | [commit] Adam Wang: Makefile: added necessary fpd filename to generate mod file (master) http://qi-hw.com/p/kicad-libs/dd2c1a9 | 08:48 |
| wpwrak | nice. 202 footprints in 16 .mod files :) | 09:27 |
| wpwrak | err, 46 .mod files | 09:27 |
| qi-bot | [commit] Adam Wang: ledsmd.fpd: fixed polarized marker (master) http://qi-hw.com/p/kicad-libs/7be9efc | 10:01 |
| cladamw | wpwrak, i'm working on linking components/footprints for m1.cmp , meanwhile checking if the footprint have clear mistakes, then just found one. :( | 10:04 |
| cladamw | and the 'make' can auto check a fpd changed, It's good. just make. | 10:05 |
| whitequa1k | pabs3: thanks | 11:12 |
| qi-bot | The build was successful: http://fidelio.qi-hardware.com/~xiangfu/build-nanonote/openwrt-xburst.minimal-20120616-1605 | 11:28 |
| qi-bot | [commit] Xiangfu: urjtag: compile fine with disable inb outb (master) http://qi-hw.com/p/openwrt-packages/67ac56b | 12:26 |
| wpwrak | cladamw: lemme port the PDF generator for footprints, so that we can have a catalog, too | 12:37 |
| cladamw | wpwrak, alright, sounds good. that way can be good to search. | 12:39 |
| cladamw | wpwrak, when i am doing 'match' work , it's a boring work to match since my brand memory doesn't good enough to recall. So I still open Fped to see their shapes. :(:-) | 12:40 |
| wpwrak | yeah, we need better names | 12:43 |
| wpwrak | if you go beyond thing like 0603 or QFN32, it gets difficult very quickly | 12:43 |
| wpwrak | it would also make sense to have list of all the parts we know, with recommended footprint and recommended symbol | 12:44 |
| wpwrak | e.g., YAGEO R123XYZ456 R 0603 | 12:45 |
| wpwrak | then we could feed this data in to kicad, to make things a little easier | 12:45 |
| cladamw | yes, btw, since I had have wiki page with package, it's okay, but it's better to edit such data filled in sch's field. :-) | 12:57 |
| wpwrak | the more thing you don't have to look up manually, the better :) | 13:11 |
| cladamw | oh ~ yeah! | 13:15 |
| qi-bot | [commit] Xiangfu: urjtag : replace inb/outb with some simple define (master) http://qi-hw.com/p/openwrt-packages/927287f | 13:57 |
| qi-bot | [commit] Xiangfu: urjtag: fix the liburjtag.so.* path (master) http://qi-hw.com/p/openwrt-packages/f2a7a0d | 15:50 |
| qi-bot | [commit] Xiangfu: xburst-tools, urjtag : add MAINTAINER (master) http://qi-hw.com/p/openwrt-packages/5fcb64c | 15:54 |
| whitequa1k | DocScrutinizer: extra fun | 16:38 |
| whitequa1k | the boot sequence of that xgold626 is as follows: bootrom -> psi -> ebl -> flash | 16:38 |
| whitequa1k | theoretically, it should use a flash rom (because the fw relocates itself to ram) | 16:39 |
| whitequa1k | samsung placed ram instead of the "flash rom" chip | 16:39 |
| whitequa1k | each time the phone starts, BP is "flashed" | 16:39 |
| whitequa1k | even more funny. | 16:39 |
| whitequa1k | neither psi nor ebl nor anything else in the chip checks integrity of anything | 16:39 |
| whitequa1k | after modifying a model name in the hex editor it still boots and works (makes calls) | 16:40 |
| whitequa1k | i want a datasheet for that chip. | 16:40 |
| whitequa1k | Samsung policy on tivoizing anything is best described as follows (real code): | 16:43 |
| whitequa1k | if(VerifyImage() != 0) returnError(); | 16:43 |
| whitequa1k | int VerifyImage(void) { return 0; }. | 16:43 |
| pabs3 | lol | 16:44 |
| whitequa1k | I'm not really sure if it is good or bad | 16:48 |
| whitequa1k | on the one hand, they don't prevent _me_ from doing anything with that | 16:48 |
| whitequa1k | on the other one, they don't prevent anyone from doing anything with _my_ phone | 16:48 |
| roh | hihi | 16:57 |
| DocScrutinizer51 | whitequa1k: seems your module has a STE chip :-D | 17:50 |
| DocScrutinizer51 | and yes, Samsung might not do much tivoizing | 17:52 |
| DocScrutinizer51 | SG advanced and SGS2 seem to have STE too | 17:52 |
| whitequark | DocScrutinizer51: why are you so sure? :D | 18:59 |
| whitequark | it should be Infineon | 18:59 |
| DocScrutinizer05 | whitequark: simcom SIM900: C4851 GPRS Ultra Low Cost | 21:03 |
| whitequark | DocScrutinizer05: ahhhh, so you're about those modules | 21:32 |
| whitequark | have you investigated them? | 21:32 |
| whitequark | (also, SIM900 and SIM900B are different devices, through I suppose you already know that) | 21:33 |
| DocScrutinizer05 | I ran into a list of STE products | 21:33 |
| DocScrutinizer05 | googled a bit | 21:33 |
| DocScrutinizer05 | sim900b: CN57560 & C4851, GPRS&GPS | 21:34 |
| whitequark | er | 21:36 |
| whitequark | sim900b quite certainly doesn't have gps | 21:36 |
| DocScrutinizer05 | that's what I found | 21:36 |
| whitequark | weird | 21:36 |
| whitequark | what about sgs2? I'm absolutely sure it uses Intel/Infineon modem... | 21:37 |
| DocScrutinizer05 | not unusual when OEMs change all internals while keeping case and brand | 21:37 |
| whitequark | yeah, I'm used to it, so I won't be surprised if SGS2 comes with different modems | 21:38 |
| whitequark | actually, it has a 9100G which looks exactly the same but has OMAP AP and TI BP inside | 21:38 |
| whitequark | also *T, *M and some other regional/carrier variants, god knows for what | 21:38 |
| whitequark | through no docs I seen for sim900b mention gps at all | 21:39 |
| DocScrutinizer05 | google U8500 samsung | 21:39 |
| DocScrutinizer05 | http://www.stericsson.com/press_releases/PR_Samsung_U8500.jsp | 21:40 |
| whitequark | ah, I see. but galaxy s != galaxy s 2 | 21:40 |
| whitequark | not what I have | 21:40 |
| whitequark | samsung changes basebands a lot. how do you think, why? | 21:41 |
| whitequark | why not stick to a single vendor and just use their stuff? consistency and so on | 21:41 |
| --- Tue Jun 19 2012 | 00:00 | |
Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!