As of 2016-02-26, there will be no more posts for this blog. s/blog/pba/
Showing posts with label console. Show all posts

I seem to find more feature of Firefox 4 every time I use it. I was wandering through the menu, believe me, I have done that when I just installed it. Somehow, I didnt notice there were two new things: Inspect and Web Console. You can activate them by pressing Ctrl+Shift+I and Ctrl+Shift+K.

http://i.imgur.com/Lklo4h.jpg

The Inspect (the top windows on the left, right, and bottom) is really something called very pre-alpha feature, I got crash once by just hovering my cursor around. If you try to compare it with Firebug1 or Developer Tools in WebKit-based browsers, you will be so disappointed at it. It just shows you the values, nothing fancy, you can not edit or tweak your HTML on the fly. FFs Inspect is like a blackboard updated by hand, others are like a 60 HD plasma TV updated by automatic intelligent programs.

The Web Console (the frame above Mozilla webpage) seems to be more mature and it supports console.log(). And dont forget that JavaScript Console (Ctrl+Shift+J), its the place to read error occurrences in JavaScript, Web Console is not for that purpose. I think Firefox would have integrated developer tools someday, Firebug is great but I would like to have built-in.

[1]The latest 1.6b1 still failed for six tests in Firefox 4.0b4.

Console Display Manager is another great program I found on forums. I downloaded it from GitHub, the authors website seems to be down. Followed that wiki page to configure it, then deactivated XDM and rebooted. I logged in in console and the display manager showed up

https://farm5.staticflickr.com/4140/4926241632_14cb2f7af7_b.jpg

CDM works a little different than other DMs. You log in in console (tty1), then /etc/profile.d/zzz-cdm-profile.sh kicks in and you see the display manager. It checks if you are in console, then launches cdm and you choose DE/WM to continue. Basically, you dont need to manually run startx just press the enter key.

I use the default theme instead of cdm theme. You can try those themes (/usr/share/cdm/themes) just fire up cdm in your terminals, use escape key to quit. You dont have to log out only to see the theme. Honesty, the color schemes are not so good in console, thats the reason I chose default them. Its not fancy but still looks good.

The memory usage is slightly smaller, I believe if its written in C, it would use less. It is written in Bash. This was with XDM:

https://farm5.staticflickr.com/4141/4926241636_46101814d3_o.png

And this was with CDM:

https://farm5.staticflickr.com/4102/4926241640_63f50d1705_o.png

Its about 2-3 MB less but XDM had two more dbus programs running, so its probably 1-2 MB less.

The reason I used XDM was because I didnt want to type startx, now I have removed the XDM since I still dont need to with CDM. My Gentoo is slimmer a little bit.

I read this Howto about WordGrinder. I give it a try, it's easy to compile, just need a little change. You will need:





yum install gcc ncurses-devel lua-devel lua-filesystem


Then run ./pm install to install, I got an error from linker:



gcc "-Wall" "--std=c99" "-Os" "-s"  -o ".pm-cache/34-1-utils" ".pm-cache/1-utils.o" ".pm-cache/2-main.o" ".pm-cache/3-lua.o" ".pm-cache/4-word.o" ".pm-cache/5-bit.o" ".pm-cache/6-screen.o" ".pm-cache/32-31-7-

_prologue.o" ".pm-cache/33-dpy.o" "-lm" "-lncursesw" "-llua5.1"

/usr/bin/ld: cannot find -llua5.1


I do install lua, but the name isn't right for Fedora. So, I opened the pmfile for "lua5.1", it's at line 215 in the version 0.3.2. I changed it to "lua". Now, I have WordGrinder.



But there is a problem, I couldn't make text italic or underlined, maybe I don't know how to use that? Anyway, here is a screenshot of what I get from WordGrinder and exported HTML result:





By the way, it also provides binary package for Windows users!



Updated: I got it! RTFM! wordgrinder README.wg. You can press CTRL+SPACE to enter selecting mode, then press CTRL+I to italicize the text.