Posts

PHP: Get all lines containing specific text -

i'm trying parse source code website goes like <html> ... ... ... <div class="menu_body"> <a href="url" onclick="_gaq.push([parameters]);location.href=this.href+'?channelid=287&date='+dateofmonth;return false;"> <img src="img"></a> <a href="url"><img src="img"></a> <a href="url"><img src="img"></a> </div> ... ... <div class="menu_body"> <a href="url"><img src="img></a> <a href="url"><img src="img"></a> <a href="url"><img src="img"></a> </div> ... ... ... </html> what want if possible grep out lines contains channelid , not sure if it's possible? sounds want sort of html parser http://si...

asp.net mvc 3 - Changing setting in applicationHost.config to Allow has no effect on 500.19 error -

i have web site using .net 4 , asp.net mvc3 running in iis 7.5. following error: this configuration section cannot used @ path. happens when section locked @ parent level. locking either default (overridemodedefault="deny"), or set explicitly location tag overridemode="deny" or legacy allowoverride="false". i found solution here , setting overridemodedefault allow both handlers , modules seems have no effect on site still 500.19 error. tried restarting iis , searching other possible config files not find any. i'm out of ideas , every site i've looked @ suggesting above solution says change it, save , you're done, i'm @ loss on problem. other thing haven't done restarted server, nothing has suggested should necessary. i recommend using appcmd.exe allow overriding different configuration sections. more info on can found @ (http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe/). to answer question direct...

command line interface - Google cli - where to ask questions? -

i'm trying use google cli (e.g. 'google calendar "...") used work poorly , fails error diagnostic. searching "google calendar" less useless searching "evolution email." i wish people think searchability when naming programs. /rant is there forum or newsgroup somewhere can post questions? and if there's expert here, after open browser , authorize, program produces: traceback (most recent call last): file "/usr/bin/google", line 839, in <module> main() file "/usr/bin/google", line 825, in main run_once(options, args) file "/usr/bin/google", line 605, in run_once authenticated = authenticate(auth_manager, options, config, section_header) file "/usr/bin/google", line 119, in authenticate valid_token = auth_manager.retrieve_access_token(display_name, browser) file "/usr/lib/pymodules/python2.6/googlecl/authentication.py", line 180, in retrieve_access_token ...

What is a Parameter in PHP? -

i wondering parameter in php? a parameter pass function or method. can value stored in variable, or literal value pass on fly. known arguments . some_function($some_param, "some other param"); it's kind of using blender make smoothie: blender function, ingredients , milk put in blender blend parameters/arguments, , smoothie return value :) $banana_smoothie = make_smoothie('banana', 'milk'); you can see similar analogies in php manual entry link ( makecoffee() , makeyogurt() ).

Loading data from multiple xls files to oracle table -

i have multiple xls files . have stored these file names in table below table name sequence file1.xls 1 file2.xls 2 file3.xls 3 each file has 3 fields field1 field2 filed3 now have load data in table has 4 column field1 field2 field3 field4 , filed4 should field sequnce of file name. please suggest way load data files if convert excel spreadsheets csv can load them using external tables.

seam - org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException when deployed in JBoss6 -

i have upload excel file in jbossseam application. using poi3.6 jar. excel upload successful in application server jboss5.1. got exception when used jboss6. how resolve problem? please me solve issue? the stacktrace follows : 2011-02-09 10:20:00,247 error [stderr] (http-10.120.10.19-8086-1) org.apache.poi.poixmlexception: java.lang.reflect.invocationtargetexception 2011-02-09 10:20:00,247 error [stderr] (http-10.120.10.19-8086-1) @ org.apache.poi.xssf.usermodel.xssffactory.createdocumentpart(xssffactory.java:61) 2011-02-09 10:20:00,263 error [stderr] (http-10.120.10.19-8086-1) @ org.apache.poi.poixmldocumentpart.read(poixmldocumentpart.java:256) 2011-02-09 10:20:00,263 error [stderr] (http-10.120.10.19-8086-1) @ org.apache.poi.poixmldocument.load(poixmldocument.java:196) 2011-02-09 10:20:00,263 error [stderr] (http-10.120.10.19-8086-1) @ org.apache.poi.xssf.usermodel.xssfworkbook.(xssfworkbook.java:179) 2011-02-09 10:20:00,263 er...

c++ - Qmake Project File -

i have class file (header , cpp) made, want use in main.cpp file. generated qmake project file (from current directory of main.cpp) , added header , cpp with: headers += $$quote(/home/myusername/projects/src/myclass.h) sources += $$quote(/home/myusername/projects/src/myclass.cpp) sources += main.cpp when run makefile, seems work until gets part of main.cpp include header file , says: fatal error, no such file or directory i feel i'm making basic mistake, can't seem figure out. first, using absolute paths in project file bad idea. if class part of project, located in directory, use relative paths both in project file , in #include directive, using #include "relative/path/myclass.h" syntax. if class not part of project, should compile library, use qmake following options: qmake includepath+=/path/to/the/header libs+=-l/path/to/the/library and add library name project file: libs += -llibraryname then may include class #include <myclas...