Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

xorg - Version information on Xserver modules -


i trying find tool extract module version information (a part of module record) fron xserver module. example, in xorg logs can see following information librecord module in xorg.0.log file...

[    39.892] (ii) loading /usr/lib/xorg/modules/extensions/librecord.so [    39.905] (ii) module record: vendor="x.org foundation" [    39.905]    compiled 1.9.0, module version = 1.13.0 [    39.905]    module class: x.org server extension [    39.905]    abi class: x.org server extension, version 4.0 

is there tools allow me extract aforementioned information. can use modinfo on module , have version information, not work. consistent way know of parse xorg log file. thanks.

yes, there , can try write small one.

http://gitorious.org/xdriverprobe

the problem xdriverprobe won't compile on newer servers since didn't update newest abis. also, xdriverprobe used video drivers, can adapted used on other modules. main source code file (xdriverprobe.c) has less 500 lines, can learn reading it.

it works in ubuntu 11.10... ./xdriverprobe -o moduledata gives information want.

look @ source code. does:

  • dlopen() module
  • find symbol called modulenamemoduledata (if module called modulename)
  • that symbol xf86moduledata* see /usr/include/xorg/xf86module.h
  • check member named vers

spend few hours , you'll able write tiny code want.

more information: http://www.xfree86.org/current/design17.html#65 (very old document, of what's written there still true today). if you're not happy document, have read xorg source code.

happy hacking!


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -