[00:01] good morning === smile|sleep is now known as smile [09:03] Kilos reen gehad? [09:03] goeie more [09:04] * inetpro had about 29mm === MaNL is now known as MaNI [13:54] i have the strangest problem on a linux box, login as root but i cannot type a commands. some work like df -h, but top or screen just never returns [13:55] vi doesnt work, but cat does [13:55] had some storage removed, but not sure what to look for [13:58] sounds like a ncurses issue or something [13:58] all the problem commands involve manipulating the terminal in some way other than just plain text output [13:58] https://bin.snyman.info/mmm6be5n [13:58] while the ones that work are all plain text output [13:58] hmm [13:59] i'd have no idea what to do about ncurses [14:00] perhaps: strace top - or similar can shed a bit more light [14:00] what happened is that this is a vm on vmware and we ripped a storage array out from under it. vmware had a failure because disk wasnt removed correctly and vm would not start. removed all storage array disk from vmware and machine booted. [14:01] strace top - [14:01] ^^ doesn't do anything [14:02] maybe ncurses or some similar library that all these things share got corrupted or something, don't know if apt-get has some way to just forcefully reinstall everything if so that would clear it up [14:03] otherwise I don't know - can't see a direct link between a failed storage array and your symptoms, but theres definitely some kind of a pattern to which commands are working and which are not [14:04] Thanks, that gives me a place to start [16:54] hi everyone, many power cuts today with storm and rain [16:55] and water getting into house wiring so earth leakage tripping [16:55] helloooo inetpro and all you other lurkers [17:05] Kilos-: hi :) [17:07] hey smile [17:08] Should I leave? Should I stay? Should I come back another day? :) [17:08] * smile listens to David Carvet - Should I Leave [17:08] stick around [17:08] I'll do that ;) [17:08] for now :p [17:09] Kilos-: but you still have power :) [17:09] nsnzero: are you a developer? :) [17:09] no smile , just an average joe [17:10] but what do you need help with ? [17:10] nothing in fact :) I was trying to build chmlib a few days ago, but to no avail :) [17:10] I'm not used to C programming myself [17:11] I know the basics, but I can't even compile a simple library XD [17:11] unless there is a "configure" script, that is [17:11] I wonder why it's missing [17:11] chm -> i remember that as a windows help file format [17:11] yes! :D that's it! [17:12] I'm writing a program to take a chm file, extract it and read the hhc file inside the chm archive [17:12] the hhc file is what you end users call the table of contents [17:12] ;) [17:13] ok in c there are two files to a library - the header and the code [17:13] yeah, that's right. :) [17:13] do you have to use c ? [17:13] I use JavaScript with node.js currently, for parsing the hhc file [17:14] I wrote a command line tool with node.js and javascript [17:14] I would like to know how I can "talk" to chmlib from JavaScript [17:14] that way, I will get a lot of information about the chm file for free [17:15] chmlib is also what's used by xchm and the sumatrapdf reader (which also opens chm files) [17:16] chmlib is widely used, but not from within javascript ;) [17:16] I'm going to play a game, be back in a while [17:17] ok sure i do some research in the mean time - i dont like java so i never learn't it [17:25] Maaz tell smile that this is a good starting point https://sourceforge.net/projects/chmpane/?source=typ_redirect [17:25] nsnzero: Got it, I'll tell smile on freenode [17:46] nsnzero: thanks :) [17:46] smile: By the way, nsnzero on freenode told me "tell smile that this is a good starting point https://sourceforge.net/projects/chmpane/?source=typ_redirect" 20 minutes and 38 seconds ago [17:46] I wonder if it's using chmlib, lets download it and look at the source code :) [17:50] power on and off smile [17:51] Kilos-: now it's on I presume ;) [17:51] well duh [17:51] haha [17:51] longest its been on all day [17:52] nsnzero: I tried chmpane, it works for some chm files, but even for CHM specification compliant files the chance of failing is high :) [17:52] I might still have a good time studying the source code, but as a product on itself, it's worthless :) [17:53] Kilos-: lets celebrate that. :) [17:55] lol [17:55] Maaz coffee on [17:55] * Maaz starts grinding coffee [17:56] chmpane uses lzx.c, which is written by Jed Wing :) [17:56] i have power sockets hanging outside the flush wall mountings to escape the water [17:56] the same author as the chm specification [17:56] Kilos-: good [17:56] will need to check roof tommorrow [17:56] :D [17:56] or in ceiling [17:56] Kilos-: don't fall of the roof [17:56] nope its too far for old peeps to fall [17:57] ill tie a safety rope to a sky hook [17:58] (y) [17:58] that's a thumbs up [17:58] http://www.nongnu.org/chmspec/latest/ <- do you envy me for reading that? ;) [17:59] nope [17:59] ok guys i go sleep now. you have a good time [17:59] see you tomorrow [17:59] Coffee's ready for Kilos-! [17:59] oh my [17:59] Maaz ty [17:59] You are welcome Kilos- [17:59] * Kilos- sips cyber coffee [18:00] good night, Kilos- [18:00] good luck sleeping with drinking coffee late at night.. ;) [18:01] lol ty [18:06] smile - you will see in the spec that extracting the index is not guaranteed [18:06] nsnzero: the CHM spec on nongnu.org? :p [18:07] the chm is just a bunch on html files , with an index which is compressed with LHZ and complied into the chm file itself [18:07] index != table of contents :p [18:07] index = keyword index = hhk file [18:07] table of contents = hhc file [18:08] it seems to extract the table of contents, but the encoding is wrong o.O [18:08] it's just plain ascii / utf-8 I think.. [18:08] so it shouldn't fail at all [18:10] now you just want to extract the index or hhk file ? [18:10] hhk = index XD [18:10] I want to extract the hhc file [18:10] which is the toc [18:10] ;) [18:11] I've succeeded at it with JavaScript and 7-Zip already :) [18:11] but I'm very interested in the $FIftiMain file: http://www.nongnu.org/chmspec/latest/Internal.html#FIftiMain [18:11] the search cache :) [18:12] chmpane is not using chmlib o.O [18:15] i need to find a chm file to check out [18:18] nsnzero: I'll pass you one :) what's your e-mail address? [18:18] got 1 aready [18:21] okay :) where did you get it? :) I would like to test it as well :) [18:34] sorry smile : from here https://msdn.microsoft.com/en-us/library/windows/desktop/ms669985(v=vs.85).aspx [18:34] right from the source [18:36] ai! [18:37] Maaz: tell Kilos why you killing our power now as well? [18:37] inetpro: Righto, I'll tell Kilos on freenode [18:38] hi inetpro [18:39] nsnzero: thanks [18:39] hi nsnzero [18:39] city of Tshwane, "Power off due to a 132Kv trip, technicians already attending to it. ETR not yet known." [18:40] ETR => estimated time resolved? ;) [18:41] I guess so yes... down since about 18:30 here [18:41] or estimated time to recover [18:42] or estimated time to resolve [18:45] we had a transformer trip about a week ago - lucky it was about 10pm [18:46] when it blew about 8 months ago it took a week for them to fully restore power [18:52] smile - here is 1 using chmlib https://github.com/jedwing/CHMLib/blob/master/NOTES [18:59] nsnzero: I came across it before, but now I already understand some more of it :) [18:59] I now realize i just can call any chm* function from chmlib.c from within another c program [19:00] let's hope I don't need the source code of "chmlib", and just use the compiled library as available in the repos [19:00] just include chmlib.h aswell [19:02] yeah, but do I need the file "chmlib.h"? or will the C compiler detect "hey, I dont need to have chmlib.h, because I already have the installed chmlib?" [19:05] normally the *.h is the library that pulls the relevant c code into your program [19:06] i havent programmed in c in a long time - and i only use it for Atmel AVR microcontrollers [19:07] I have a directory with chmlib.h and test_chmLib.c in [19:07] [geoffrey@msi-laptop chmlib-tests]$ LANG=C gcc test_chmLib.c -o testchmlib [19:07] /tmp/ccHNORkc.o: In function `main': [19:07] test_chmLib.c:(.text+0x69): undefined reference to `chm_open' [19:07] test_chmLib.c:(.text+0xe9): undefined reference to `chm_resolve_object' [19:07] test_chmLib.c:(.text+0x1b4): undefined reference to `chm_retrieve_object' [19:07] collect2: error: ld returned 1 exit status [19:07] that means it can't import chmlib [19:07] :/ [19:08] it doesn't matter if I have a chmlib.h in the same directory, it fails with the same errors [19:11] include chm_lib.c those missing functions are in there [19:15] nsnzero: did that, no effect :) I found this, what should I do with it? :) [19:15] https://github.com/jedwing/CHMLib/blob/master/src/Makefile.simple [19:16] thats a linker error [19:16] I would like to do a ./configure, make, make install, but no such file or command "./configure" [19:16] you need to tell the linker to link chmlib [19:16] MaNI: how? [19:16] i.e. nothing to do with the header file [19:17] gcc test_chmLib.c -o testchmlib -Lchmlib [19:17] for example [19:17] [geoffrey@msi-laptop chmlib-tests]$ LANG=C gcc test_chmLib.c -o testchmlib -Lchmlib [19:17] /tmp/cc5KpISp.o: In function `main': [19:17] test_chmLib.c:(.text+0x69): undefined reference to `chm_open' [19:17] test_chmLib.c:(.text+0xe9): undefined reference to `chm_resolve_object' [19:17] test_chmLib.c:(.text+0x1b4): undefined reference to `chm_retrieve_object' [19:17] collect2: error: ld returned 1 exit status [19:17] :| [19:19] chmlib files (installed from repo): /usr/bin/chm_http /usr/bin/enum_chmLib /usr/bin/enumdir_chmLib /usr/bin/extract_chmLib /usr/bin/test_chmLib /usr/include/chm_lib.h /usr/include/lzx.h /usr/lib/libchm.so /usr/lib/libchm.so.0 /usr/lib/libchm.so.0.0.0 [19:20] sorry, -lchmlib [19:20] -L is for specifying the search path. [19:22] thanks MaNI - i never built with command line gcc before [19:24] header file (include) tells it -what- definitions to expect to find, linker has to actually locate those definitions in order to produce a binary that knows how to call them [19:24] undefined reference is always a linker error [19:24] :) [19:24] [geoffrey@msi-laptop chmlib-tests]$ LANG=C gcc test_chmLib.c -o testchmlib -lchmlib [19:24] /usr/sbin/ld: cannot find -lchmlib [19:24] collect2: error: ld returned 1 exit status [19:24] not yet there :) [19:25] should I specify the path to the library, instead of the name? [19:25] /usr/lib/libchm.so maybe? [19:25] I'm just assuming the name of course, I've never used 'chmlib' so I don't know what it calls itself [19:26] if it's named libchm.so then it should just be -lchm [19:26] if it's in a custom (non system) path then you need to tell the linker where to find it with e.g. -L/my/custom/folder as well [19:26] * nsnzero goes to read up on C.... again [19:27] goodnight guys - hope everything works out [19:27] MaNI: you're an angel :D LANG=C gcc test_chmLib.c -o testchmlib -lchm worked [19:27] LANG=C is just added because I could show you the error messages and info messages in English ;) [19:30] Hello [19:33] I'm leaving, thank you for your support! :) [19:35] bye :) [20:13] hey superfly , so how is the US? [20:15] * nlsthzn will check for an answer in the morning... bed time :p [20:16] nlsthzn: so far, it's a good winter. In general, warmer than South Africa's winter. [20:17] nlsthzn But I'm in the desert, so that kinda figures [21:05] * inetpro falling asleep [21:06] superfly: take care and have a good rest of the day [21:07] good night [23:41] just had first snow day and snow is gone :( [23:42] !weather charlotte, nc [23:42] Maaz weather charlotte, nc [23:42] squish102: In Charlotte, North Carolina at 5:52 PM EST on January 07, 2017: -2°C; Humidity: 49%; Wind: NW at 11 km/h; Conditions: Partly Cloudy; Sunrise/set: 7:32 AM EST/5:27 PM EST; Moonrise/set: 1:31 PM EST/2:03 AM EST