Posts

Showing posts from June, 2010

angularjs - Trying to access facebook graph api via angular js http get returns error -

angularjs - Trying to access facebook graph api via angular js http get returns error - i'm trying utilize code below user links via facebook graph api. not work. $http.get('https://graph.facebook.com/me?access_token='+response.authresponse.accesstoken).success(function(data) { alert(data); }).error(function(data, status, headers, config) { alert(data+status+headers+config); }); angularjs

xml - JAXB @XmlAnyElement ignoring CDATA -

xml - JAXB @XmlAnyElement ignoring CDATA - our application working fine till encountered cdata section in incoming xml. know cdata in xml quite mutual case. how forgot it. using jaxb mapping in next way @xmlrootelement(name="myroot") @xmlaccessortype(xmlaccesstype.field) public class myroot { @xmlelement(name="one") private string one; @xmlelement(name="three") private string three; @xmlanyelement private list<object> remaining = new arraylist<object>(); public myroot() { } } i receive next xml application. didn't understand why jaxb ignoring cdata in /myroot/two/bla2/one. after transformation see output <two><bla><bla> <bla2><one> function matchwo(a,b) { if (a < b && < 0) { homecoming 1;} else { homecoming 0;}} </one></bla2> <two> (notice there no cdata) here xml <myroot> <one></one> <two> <...

php - How to print out the value in view file? -

php - How to print out the value in view file? - i have array that, want print out in view file, it's empty, array array( (int) 0 => array( 'productsusernode' => array( 'product_user_node_id' => '155', 'user_node_id' => '53', 'product_id' => '1', 'is_active' => '1', 'expiry' => '0000-00-00', 'created' => '2013-01-10 10:27:22', 'modified' => '2013-01-10 10:27:22', 'created_view' => '10:27 am, jan 10,2013', 'modified_view' => '10:27 am, jan 10,2013' ), 'usernode' => array( 'user_node_id' => '53', 'division_id' => '28', 'role_id' => '4', 'user_id' => '56', 'created' => '2...

asp.net mvc - Automatically close window after some time using JQuery -

asp.net mvc - Automatically close window after some time using JQuery - i want close window automatically after 5 seconds using jquery. tried not working. function submitdesignrequestform() { var frm = $("#frmdesignrequestform").serialize(); $.post("/admin/savedesignrequestform", frm, function(data) { notify("success", "saved successfully"); settimeout(function() { window.close(); }, 500); }); }); } but above function show message not close windows. settimeout(function() { notify("success", "saved successfully"); window.close(); }, 5000); from above function "saved successfully" pops window not close. please guide! the problem not in code, tried identical one: info empty string otherwise same. and worked perfectly, in google chrome, see these links problem can firefox , ie: firefox: window.close() doesn't work on f...

android - Delete a unpublished app from Google Play -

android - Delete a unpublished app from Google Play - i create new app in google play account. did not publish yet. ready publish. is there way delete permanently business relationship since not published yet? i can not find remove or delete button. read here , here, couldn't find delete button. there unofficial delete might perchance bug/glitch in old android developer console. instructions below. switch old developer panel select application deletion , create sure it's description , necessary publishing components filled out. (you may utilize false info) save application draft. not publish select apk tab press delete on current activated apk , draft application should deleted. might need press "switch advanced" screen show. crucial - application must not have been published before. android google-play

django - How can I know was a video-file already viewed in that day? -

django - How can I know was a video-file already viewed in that day? - i have internet-shop purchase video lessons. now, consider, need add together constrain: people can see video lesson 1 time per day (24 hours). how can know video-file viewed in day? create new model map user , vido date video viewed. can check if user has viewed video on day. class videoviewed(models.model): user = models.foreignkey(user) page = models.foreignkey(video) date = models.datetimefield() manager = resultmanager() django nginx

php - Apollo activemq ack -

php - Apollo activemq ack - hy, utilize apollo activemq broker , stomp. wrote 2 methods 1 sending message broker , 1 reading message queue. when send 1 message borker , read it, ok, can read , acknowledge message,my problem appear when run multiple times sending message , have many message in queue, when seek read , acknowledge message every time receive first message queue. if run loop " while ($con->hasframe) { $msg = $con->readframe(); $con->ack($msg); } everything ok, can read , acknowledge message queue. update : activemq not removing messages queue when ack received php. ack homecoming true message still there in queue. update : problem seems "prefetchsize" default 1000, want set 1, utilize stomp interact broker, please give me hint should alter value 1000 1. try adding activemq.prefetchsize:1 header in subscribe frame. php activemq stomp apollo

c# - Why do I lose selected item of RadComboBox within a repeater? -

c# - Why do I lose selected item of RadComboBox within a repeater? - i'm using radcombobox autopastback enabled within repeater info filled linqdatasource . works fine except when select item radcombobox . after postback selected of item radcombobox disappeared , cleared nil selected. code : <asp:repeater id="repeater1" runat="server" datasourceid="linqdatasource4" onitemdatabound="repeater1_itemdatabound" onitemcreated="repeater1_itemcreated"> <itemtemplate> <table class="expertmode"> <tr> <td> <telerik:radcombobox id="radcombobox66" runat="server" autopostback="true" emptymessage="نام صفت مثل : رنگ" datatextfield="key" datavaluefield="key" allowcustomentry="true"></telerik:radcombobox> </td> </tr...

Installing XML::LibXML Perl module for ActiveState Perl Version 5.6.1 build 629 -

Installing XML::LibXML Perl module for ActiveState Perl Version 5.6.1 build 629 - how can install xml::libxml perl module on activestate perl version 5.6.1 build 629? here tried: d:\users\abc>ppm install xml::libxml installing bundle 'xml-libxml'... error installing bundle 'xml-libxml': not locate ppd file bundle xml-libxml and other way: d:\users\abc\downloads\xml-libxml-2.0014\xml-libxml-2.0014>perl makefile.pl couldn't find c compiler compilation failed in require @ makefile.pl line 83. begin failed--compilation aborted @ makefile.pl line 83. maybe ppm bundle manager not able find right bundle perl version. you seek find , install 1 this. maybe 1 of them works you. ppm install http://www.bribes.org/perl/ppm/xml-libxml.ppd ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/xml-libxml.ppd ppm install http://trouchelle.com/ppm/xml-libxml.ppd ppm install http://ppm.tcool.org/archives/xml-libxml.ppd ppm install http://t...

sql - Convert free text date value to date data type leads to future year in converted date -

sql - Convert free text date value to date data type leads to future year in converted date - i facing problem conversion of freetext dob (date of birth) value valid date info type. using sql server 2008 r2. following example. when free text date value 01/28/48 beingness converted through convert function of sql showing 2048 year instead of 1948 future year , not possible in date of birth column. can help me come out issue? following screenshot have attached quick reference. this system-wide setting in sql server - "two-digit year cutoff". check this: sp_configure 'show advanced options', 1 reconfigure sp_configure 'two digit year cutoff' in case, value of 2049 - date year before considered 20xx year (e.g. 48 -> 2048 ), dates year after interpreted 19xx ( 70 -> 1970 ). so can either alter setting you, or you'd need write custom t-sql function handle case (always converting dates 19xx dates - regardless o...

Android WebView error -

Android WebView error - i'm beginner in learning android, please help me this. maintain getting error: 02-19 16:55:00.330: e/androidruntime(2335): java.lang.runtimeexception: unable start activity componentinfo{com.mkyong.android/com.mkyong.android.webviewactivity}: java.lang.nullpointerexception public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.webview); webview mywebview = (webview) findviewbyid(r.id.webview1); webview.getsettings().setjavascriptenabled(true); websettings websettings = mywebview.getsettings(); mywebview.loadurl("http://www.google.com"); } my xml file: <webview xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/webview1" android:layout_width="fill_parent" android:layout_height="fill_parent" /> i think it's line webview.getsettings().setjavascripte...

css - text alignment ckeditor -

css - text alignment ckeditor - i can't find how add together button format text: text-align:center; text-align:left; text-align:right; text-align:justify; i have v4 version http://ckeditor.com/demo i seek find solution find issue posts. maybe using plugin ? i'm using ckeditor forexemple: <textarea id="monday" class="ckeditor" name="monday" ><?php echo $this->datas['monday']; ?></textarea> thanks you have add together justification configuration -- e.g., var config = { toolbar: [ ['font','fontsize'], ['bold','italic','underline'], ['textcolor','bgcolor'], ['justifyleft', 'justifycenter', 'justifyright'] ], }; $('.ckeditor').ckeditor(config); css button ckeditor text-align

Jquery dropdown control with tags -

Jquery dropdown control with tags - does know jquery plugin command dropdown list. user should able select multiple values dropdown list , selected values should displayed tags in same control. please see attached image reference. i suggest utilize http://xoxco.com/projects/code/tagsinput/ or http://textextjs.com/ both of them nice , easy integrate project. jquery

java - Access request attribute inside struts 2 param tag? -

java - Access request attribute inside struts 2 param tag? - this question has reply here: how jsp scriptlet value in struts tag 2 answers i want access request attribute (named 'msg_key') value in param tag . homecoming empty var message='<s:url attributes..><s:param name="msg_key" value="#request['msg_key']" /></s:url>'; though same work in property tag var message1='<s:property value="#request['msg_key']" />'; i not getting how access request attribute within param tag? you can this: var message = '<s:url attributes../>'+'?'+ '<s:property value="#request['msg_key']" />'; or: <s:url var="test" attributes..> <s:param name="msg_key" value="#request[...

emacs - Directory-local variables error: wrong-type-argument stringp -

emacs - Directory-local variables error: wrong-type-argument stringp - i have next .dir-locals.el: ((c++-mode . ((irony-compile-flags-work-dir . "/home/aparulekar/developer/gameplay") (irony-compile-flags . (list "-igameplay/src" "-iexternal-deps/bullet/include" "-iexternal-deps/oggvorbis/include" "-iexternal-deps/libpng/include" "-iexternal-deps/zlib/include" "-iexternal-deps/lua/include" "-iexternal-deps/glew/include"))))) when visit file in folder, next error: directory-local variables error: (wrong-type-argument stringp irony-compile-flags) could please tell me why can't assign list directory-local variable? (this https://github.com/sa...

c# - convert generic list to datatable using linq..? -

c# - convert generic list to datatable using linq..? - list<employee> objemplist = new list<employee>(); (int = 0; < 5; i++) { objemplist.add(new employee(){id=i, name="aa" + i}); } i want create table generic list items rows using linq or lambda expressions...how that..??i did using loops want using linq..! use copytodatatable extension. see msdn article how to: implement copytodatatable generic type t not datarow datatable table = objemplist.copytodatatable(); btw here simpler way create list of employees: enumerable.range(0,5) .select(i => new employee { id = i, name = "aa" + }) .tolist(); consider using nbuilder: builder<employee>.createlistofsize(5).build() c# linq linq-to-dataset

python 2.7 - Windmill seems to be successfully installed, but doesn't start -

python 2.7 - Windmill seems to be successfully installed, but doesn't start - i installed windmill on mac (mountain lion) using pip, , seems successful: macbook-pro:~ kyskmt$ pip-2.7 install windmill requirement satisfied (use --upgrade upgrade): windmill in /opt/local/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages cleaning up... but windmill doesn't start: macbook-pro:site-packages kyskmt$ windmill firefox -bash: windmill: command not found my question: should follow instructions on link? https://github.com/windmill/windmill/wiki/installing don't want follow because create python install folder, i.e. "/usr/local/bin/python". i'd installed python2.7 , pip, many other libraries, using macports (thus, location is:"/opt/local/bin/python"). should install python , easy_install? or other solution start windmill? works default python on os x 10.8 , older versions. following practice of installing p...

Selenium IDE - How to check that an element is (CSS) visible? -

Selenium IDE - How to check that an element is (CSS) visible? - example 1: checking twitter bootstrap modal has opened. the modal exists on page hidden css until modal opened. how verify modal opened? example 2: checking user error message div displayed. the error message div exists hidden css until needed. how verify message visible? you seek using verifyvisible command. looks @ css see if visibility or display set. homecoming true if either of these visible or returns false otherwise. need pass in locator. utilize element of modal beingness controlled css. css selenium selenium-ide

IOUtils Exception Android -

IOUtils Exception Android - i implementing expansion files . utilize technique read zip files answer. every thing fine error getting on ioutils. says ioutils cannot resolved. project api level 3.0 , above. here lline : **ioutils**.copy(inputstream, outputstream); ioutils class available apache commons library. need download jar , set within libs directory before can utilize it. android

How to run tests in visualstudio 2012? -

How to run tests in visualstudio 2012? - how run tests written in codeduitest (c# code) in visual studio ? when right-click in test method, in test class, or outside scope of test class, , take run tests , doesn't run test.instead builds. even tried run tests rom testexplorer.but after clicking on testexplorer -> run tests , 1 time again builds solution , doesn't run script ? i have visual studio 2012 ultimate installed in machine ? had same issue. vs installed on vm , test cases not started. did install vs2012 on virtual machine? if yes, seek real windows 7 machine. visual-studio-2012 coded-ui-tests

c# - WSE Web Service Client SoapHeaderException -

c# - WSE Web Service Client SoapHeaderException - i trying build client interacts 3rd party soap web service. web service requires wse security. i generated old school .asmx web service wsdl of service trying interact with. wsdl has no info in wse security. without wse security can connect fine. however, added wse security .asmx web service. i added next code client add together wse username , password soapcontext requestcontext = host.requestsoapcontext; usernametoken usertoken = new usernametoken("username", "password", passwordoption.sendplaintext); requestcontext.security.tokens.add(usertoken); however, when phone call processmessage method next exception doesn't tell me much: system.web.services.protocols.soapheaderexception: server unavailable, please seek later at system.web.services.protocols.soaphttpclientprotocol.readresponse(soapclientmessage message, webresponse response, stream responsestream, boolean asynccal...

PHP - Accessing and sending data to process -

PHP - Accessing and sending data to process - i've been programming little client-server-application , want show output of server-process in little server-webpage. everytime, press key in server-console, current state output. assuming, server running , want show current state of server, how implement in php? my thoughts process , send key input. how implement in php? server running on debian 6 apache , php 5.4. thanks in advance depend on how simple want go: the simplest simulate call. example, client calls fopen('http://server.example.com/status.php?server=myserver&stats=uptime'); , @ server level, @ $_get['server'] , $_get['uptime'] . can utilize method , add together authentication either passing credentials variable. output can either plain html or json encoded use xml rpc or soap php cross-process

c# 4.0 - What is the practical difference between dynamic and T in C# -

c# 4.0 - What is the practical difference between dynamic and T in C# - i read type dynamic in c# 2010. (the corresponding msdn entry) i confused practical difference between t , dynamic while developing generic functions. current tests didn't show new ways utilize dynamic a way, isn't possible t . in add-on seems, dynamic needs much more time in runtime accomplish same tasks. some illustration code create point clear: // sample object public class sampleobj { public string test { get; set; } } my test-method (measuring speed well): static void main(string[] args) { var sampleobj1 = new sampleobj { test = "test1" }; var sampleobj2 = new sampleobj { test = "test2" }; stopwatch c1 = stopwatch.startnew(); bool res1 = compareobjectst<sampleobj>(sampleobj1, sampleobj2); c1.stop(); console.writeline("comparison t: {0} time: {1} ms", res1, c1.elapsedmilliseconds); stopwatch c2 = stopwatch....

How to disconnect a bluetooth device from C# .Net in Win7 -

How to disconnect a bluetooth device from C# .Net in Win7 - i disconnect bluetooth device c# .net application, runs on win 7 x64. i know ms provides little functionnality reguarding bt on .net. i've searched 32feet.net, , found how connect, discover, information, ... nil disconnecting (have missed ?). then, found on msdn ioctl_bth_disconnect_device. problem can't understand how phone call it. seems shoud utilize deviceiocontrol platform invoke, i'm afraid haven't got plenty .net skills build myself. here @ moment : using system; using system.collections.generic; using system.linq; using system.text; using system.runtime.interopservices; using microsoft.win32.safehandles; using system.io; namespace btdisco { class programme { const int ioctl_bth_disconnect_device = 0x41000c; [dllimport("kernel32.dll", setlasterror = false, charset = charset.auto)] public static extern bool deviceiocontrol( micr...

How can I upgrade Typo3 4.2.6? -

How can I upgrade Typo3 4.2.6? - i have typo3 4.2.6 version running. to version should upgrade? (can upragde 6.x?) how should upgrade? i suggest upgraded latest version of typo3 4.7. upgrading site typo3 6.x won't selection there's exists lot of open issues in typo3 forums regarding upgrade typo3 6.x. of extensions in typo3 4.x won't work smoothly in typo3 6.x. suggest upgrade lastest version typo3 4.7. typo3 4.6 onwards need php 5.3 otherwise can upgrade 4.5.x. how upgrade typo3? check link: https://sankartypo3.wordpress.com/2012/05/17/how-to-upgrade-typo3-version/ i've 1 time upgraded typo3 4.2 4.7 in step step way (4.2 4.4, 4.4 4.5 , 4.5 4.7). issues after typo3 upgrade solved using methods mentioned under "some simple ways find out errors/issues after upgrading typo3!" in above link. typo3

web config - WCF: relativeAddress,baseAddress and binding -

web config - WCF: relativeAddress,baseAddress and binding - i new in wcf , start expirience simple file-less application part of (web.config) can see below: <servicehostingenvironment multiplesitebindingsenabled="true"> <serviceactivations> <add factory="system.servicemodel.activation.servicehostfactory" relativeaddress="./relativeaddress.svc" service="wcf_transactions.myservice1"/> </serviceactivations> </servicehostingenvironment> now can access service at http://localhost:18148/relativeaddress.svc then add together next lines: <services> <service name="wcf_transactions.myservice1" behaviorconfiguration="mybehavior1"> <host> <baseaddresses> <add baseaddress="http://localhost:18148/" /> ...

AngularJS - Directive template dynamic -

AngularJS - Directive template dynamic - how can create directive dynamic template? class="lang-js prettyprint-override"> 'use strict'; app.directive('ngformfield', function($compile) { homecoming { transclude: true, scope: { label: '@' }, template: '<label for="user_email">{{label}}</label>', // append replace: true, // attribute restriction restrict: 'e', // linking method link: function($scope, element, attrs) { switch (attrs['type']) { case "text": // append input field "template" case "select": // append select dropdown "template" } } } }); class="lang-html prettyprint-override"> <ng-form-field label="first name" type="text"></ng-form-field> this have right now, , displayin...

vb.net - how to create session in asp.net using vb -

vb.net - how to create session in asp.net using vb - i have gridview shows details of passenger have booked ticket on page load event have next code. label1.text = session("pid").tostring() dim sql string = "select * plist pid='" & label1.text & "'" seek con.connectionstring = strcon dim cm new sqlclient.sqlcommand(sql, con) con.open() cm.executenonquery() grab ex exception msgbox(ex.message) if con.state = connectionstate.open con.close() end if end seek i getting error: system.nullreferenceexception: object reference not set instance of object. the session session("pid") null, should fill info before , should check session: if session("pid") isnot nil ' write code end if asp.net vb.net

multidimensional array - R: creating a 3D matrix based on a colum value -

multidimensional array - R: creating a 3D matrix based on a colum value - i have matrix has next first 2 columns: location, year. followed 50 columns, 1 each calendar day. columns days have either 'na' if location not visited, or 1 if location was. example: location year 1 2 3 4 5 6 7 8 9 10 .... 50 site1 2005 na na na 1 na na 1 na na 1 .... na site2 2006 na na 1 na na na 1 na na 1 .... na i have used reshape bundle before create 4 dimensional matrices, each column in info frame used variable melt , cast array. here, have multiple columns , not seem work well. i create following: dim y: locations dim x: days 1-50 dim z: years it's extracting info each year, , stacking each location day array 1 behind other. know best way create 3 dimensional array way might be? thanks. it not clear want have (your give values of final result not structure, , info work on) first reproduce data dat <- data.frame(location =c(...

java - does singleton instance of connection object creates issue in web application -

java - does singleton instance of connection object creates issue in web application - i using below code snippet create singleton instance of connection object web application used multiple users. static { seek { string driver = propertyreader.getpropertyreader("driverclassname"); class.forname(driver).newinstance(); } grab (exception ex) { ex.printstacktrace(); } } private static connection conn = null; private static synchronized connection getdbconnection() { try{ if(conn == null || conn.isclosed()){ conn = null; string url = propertyreader.getpropertyreader("url"); string username = propertyreader.getpropertyreader("username"); string password = propertyreader.getpropertyreader("password"); conn = drivermanager.getconnection(url,username,password); ...

URL Rewrite Issue (PHP - Apache) -

URL Rewrite Issue (PHP - Apache) - rewriterule ^türkçe/yazılar/(.+)$ sayfa.php?rd_dil=türkçe&rd_sayfa=yazılar&rd_yazar=$1 [l] rewriterule ^türkçe/yazılar/(.+)/(.+)$ sayfa.php?rd_dil=türkçe&rd_sayfa=yazılar&rd_yazar=$1&rd_baslik=$2 [l] first rule works fine both url structure. (with seo friendly , conventional)second rule works conventional structure. couldn't create localhost/türkçe/yazılar/drogba/karakter can show me error please?thanks, best regards php apache .htaccess url-rewriting seo

shallow flat in scheme -

shallow flat in scheme - there function "shallow flat"? mean, function flatten 1 () each look in list for example: (shallow flat '((1) (2) ( ( 4 5) 6))) return '(1 2 (4 5) 6)) thanks (apply append '((1) (2) ((4 5) 6))) ;=> (1 2 (4 5) 6)) (apply append '((1) (2) (((4) 5) 6))) ;=> (1 2 ((4) 5) 6) you can create procedure, ie: (define (shallow-flatten lst) (apply append lst)) scheme

regex - C# Text Matching HTML -

regex - C# Text Matching HTML - i'm trying interact crappy "web-service" (cleverly disguised simple aspx page...) don't command page can't tweak output i'm stuck it. format same this: <b> <a href=\"http://www.google.com/\" target=\"_blank\">google inc</a> </b> <br />123 north main <br />hume, deed <br />(999) 888-8888 so, need parse out url , name , address , city , state , , phone ? it's not formed xml can't utilize xml parser, , regex seems painfully nasty, stuck string.match , indexof etc? thanks suggestions... james you can utilize html parser parse page, html agility pack, free , robust one. or can utilize xquery processor .net, please have @ thread see drawbacks of using regex parsing html pages c# regex string xml-parsing

php - Disabling button depending if variable is empty or NULL -

php - Disabling button depending if variable is empty or NULL - i have several input fields , using ajax assign values php variables. in javascript code have function savethem stores values. @ end there button store values in mysql database. php, how can disable button if 1 of variables happens empty or null ? mockup site select: function savethem() { var name = $.trim($("#name").val()); var age = $.trim($("#age").val()); var phone = $.trim($("#phone").val()); var email = $.trim($("#email").val()); var job = $.trim($("#job").val()); var hobby = $.trim($("#hobby").val()); var datastring = 'name='+name+'&age='+age+'&phone='+phone+'&email='+email+'&job='+job+'&hobby='+hobby; $.ajax({ ...

php - Scripting mysql for retrieving data in a loop -

php - Scripting mysql for retrieving data in a loop - background: non developer bash shell scripting knowledge needs query read db instance , generate info given variables. data in existing file a1 b1 a2 b2 ...... ... .... bn i connect mysql database within bash script , loop through select statement "n" number of times select x, y,z table tablet_vendors a=a1 , b=b1 except a1 , b1 need passed parameters first time, a2 , b2 next time , n in loop. know shell side of things, don't know how integrate both. tried can define possible values "a" @ origin of shell script, it's way tedious. help appreciated. i open suggestions on using other scripting languages if easy work mysql , if can provide guidance. searches pointing php , python?? here's simpler version: import mysqldb mysql import csv con = mysql.connect('localhost','user','password','dbname') cur = con.cursor() q = "select x, y,z...

vb.net - Event handler to use when nodes of ASP.Net TreeView are clicked by user -

vb.net - Event handler to use when nodes of ASP.Net TreeView are clicked by user - using next web.sitemap example, create event handler grab when user clicks on "teachers" link of asp.net treeview. happens parent node. <sitemapnode title="teachers" url="~/defaultteachers.aspx" > <sitemapnode url="~/teachers.aspx" title="teachers" description="maintain details of each teacher." /> <sitemapnode url="~/teacherschedules.aspx" title="teacher schedules" description="maintain teacher schedules." /> <sitemapnode url="~/teacheremailnotices.aspx" title="email notices teachers" description="email notices teachers." /> </sitemapnode> can tell me event place in markup of asp.net treeview maybe this? <asp:treeview id="treeviewmain" runat="server" expanddepth="...

php - What is the difference between isset($var) == "Test" and isset($var) && $var == 'Test" -

php - What is the difference between isset($var) == "Test" and isset($var) && $var == 'Test" - what difference between isset($var) == "test" , isset($var) && $var == 'test" ? here short example: $var = "chuck test"; var_dump(isset($var)); // bool(true) var_dump(isset($undefined)); // bool(false) var_dump(isset($var) == "chuck test"); // bool(true) var_dump(isset($var) && $var == "chuck test"); // bool(true) var_dump(isset($undefined) == "chuck test"); // bool(false) var_dump(isset($undefined) && $undefined == "chuck test"); // bool(false) it looks equivalent aren't: var_dump(isset($var) == "chuck testa"); // bool(true) !!! var_dump(isset($var) && $var == "chuck testa"); // bool(false) because isset() returns true or false , , non-empty string compared true results in true . so improve utilize isset($var)...

gherkin - Java Cucumber Step Definition for vertical DataTable -

gherkin - Java Cucumber Step Definition for vertical DataTable - i'm using cucumber-jvm. have next in .feature file: background: given next business relationship file line: | first name | lance | | lastly name | fisher | | corporate name | | this vertically-oriented table. next generated step definition uses first name , lance headers, first name, lastly name, , corporate name should headers. @given("^the next business relationship file line:$") public void the_following_account_file_line(datatable arg1) throws throwable { // express regexp above code wish had // automatic conversion, alter datatable list<yourtype> throw new pendingexception(); } how implement step definition handle vertical table rather horizontal table? it's simple enough, datatable can homecoming array of arrays of strings, , can step through in whatever manner wish. however, i'd agree prakash murth...

c++ - list node pointer 'not declared in this scope'? -

c++ - list node pointer 'not declared in this scope'? - i've searched high , low trying debug this, far can't figure out. i've got class declaration in file named datalist.h, methods in file named datalist.cc file, , main programme in separate .cc file. datalist.cc has #include header include datalist.h. whenever run g++ datalist.cc in ubuntu terminal, spits out datalist.cc: in function ‘bool transactonce(int&, trans&, std::string&)’: datalist.cc:395:2: error: ‘listnodet’ not declared in scope datalist.cc:395:13: error: ‘nodetptr’ not declared in scope datalist.cc:396:13: error: ‘headtrans’ not declared in scope what's weird declare variables of these type on place in other fellow member functions in datalist.cc, compiler doesn't give me other errors besides above. i'm trying figure out g++ doesn't particular declarations in 1 function. 'listnodet' struct within main class, , struct includes pointer obj...

Generate Downloadable PDF's from HTML Tables -

Generate Downloadable PDF's from HTML Tables - can guys suggest me tools generate downloadable pdfs html tables? if possible, compatible twitter bootstrap. ps.: i've tried prawn, i'd know other tools. thanks what need know basic perl scripting, html, perl module installation introduction the adobe © pdf files 1 of popular file format transferring documents. 1 of reasons displays document way printed (wysiwyg). since not require word processor browse document, lot more convenient. need reader able browse document. perl has module allow convert html files pdf documents. done using html::htmldoc module. installation you need download htmldoc product easy software products. install first can proceed download html::htmldoc module cpan. 1 time download it, install typical perl modules. generating pdf document first thing utilize module , create instance of html::htmldoc package. you can pass total html document bundle or tell generate pdf d...

objective c - XCode 4.6 dequeueReusableCellWithIdentifier: forIndexpath: not working -

objective c - XCode 4.6 dequeueReusableCellWithIdentifier: forIndexpath: not working - i've been working on project while. fine, , today upgraded xcode 4.6...all of sudden, crash. if there no info (i'm using core data), load blank tableview. seek add together in other view controller, crash. same issue on simulator , on device. "all exceptions" breakpoint enabled, debugger pointing line: reedcell *cell = [tableview dequeuereusablecellwithidentifier:cellidentifier forindexpath:indexpath]; i "uitableview: unrecognized selector..." exception. class subclass of uitableviewcontroller , ought have tableview, no? when set next test code viewdidload, don't confirmation. in other words, tableview no longer responds method. heck? if deprecated, don't see documentation of that. if ([self.tableview respondstoselector:@selector(dequeuereusablecellwithidentifier:forindexpath:)]) { nslog(@"rtvc responds selector dequeuereusablecellw...

Fancy listView in android -

Fancy listView in android - i have utilize listview similar of timescape's listview or can go listviews similar of iphone's 3d album can tell me custom library ? got, wanted : cout<<"https://github.com/renard314/listview3d"; android android-layout android-listview android-view

Program/Tool to evaluate XPath 2.0 expression -

Program/Tool to evaluate XPath 2.0 expression - xmlstarlet can used evaluate xpath 1.0 expressions. doesn't back upwards xpath 2.0 expressions. program/tool can used evaluate xpath 2.0 expression? preferably written in c? much xmlstarlet? thanks in anticipation. sadly, there's real shortage of xpath 2.0 processors, in c. xquery superset of xpath 2.0, , there quite few xquery processors around, including ones should work in environment. (but i'm not familiar plenty recommend one.) xpath xpath-2.0 xmlstarlet

excel - Macro which points the cell represented by an array element -

excel - Macro which points the cell represented by an array element - i have 2 columns in excel sheet . first column has other cell address illustration - column has contents f1, f2, f3, f4 , f5. sec column has other cell address illustration - column b has contents x1, x13, x17, x72. now want macro can re-create contents of cells mentioned in column first (want re-create contents of f1 ...f5) cells mentioned in column 2. please help assuming each cell in column contains single cell address: sub transfervalues() dim rnga range dim rngb range dim srcaddress range dim destaddress range dim r long 'row iterator set rnga = range("a2", range("a2").end(xldown)) set rngb = rnga.offset(0, 1) r = 1 rnga.rows.count set srcaddress = range(rnga(r).value) set destaddress = range(rngb(r).value) destaddress.value = srcaddress.value next end sub excel excel-vba

objective c - iOS trim video to fixed length -

objective c - iOS trim video to fixed length - i able select video photo library , pick out 15 seconds of video existing clip. there way forcefulness trim fixed length? set uiimagepickercontroller property, videomaximumduration fixed length want. documentation: the maximum duration, in seconds, video recording. @property (nonatomic) nstimeinterval videomaximumduration discussion the default value property 10 minutes (600 seconds). when user taps share button send film mms, mobileme, youtube, or destination, appropriate duration limit , appropriate video quality enforced. this property available if mediatypes property’s value array includes kuttypemovie media type. ios objective-c cocoa-touch

wpf - Binding to an initially NULL property in the ViewModel doesn't rebind -

wpf - Binding to an initially NULL property in the ViewModel doesn't rebind - i have usercontrol contains telerik raddataform. form's itemssource bound property on usercontrol's viewmodel: <telerik:raddataform itemssource="{binding path=viewmodel.items, relativesource={relativesource ancestertype=local:myusercontrol}}" /> where viewmodel is: public partial class myusercontrol: usercontrol { public myusercontrolvm viewmodel { { homecoming this.datacontext myusercontrolvm; } } } within viewmodel, items ordinary collection: public class myusercontrolvm : myviewmodelbase { private observablecollection<anitem> items_; public observablecollection<anitem> items { { homecoming this.items_; } set { this.items_ = value; notifypropertychanged("items"); } } ... } and where, of course, myviewmodelbase implements inotifypropertychange...

How do I prevent tycho-p2-repository-plugin from including target platform dependencies? -

How do I prevent tycho-p2-repository-plugin from including target platform dependencies? - i trying create p2 repository using tycho plugin extends eclipse environment. when seek mvn install, zip file creates adds plugins org.eclipse not want included. i have defined plugin not include dependencies (even though default false) <plugin> <groupid>org.eclipse.tycho</groupid> <artifactid>tycho-p2-repository-plugin</artifactid> <configuration> <includealldependencies>false</includealldependencies> </configuration> </plugin> at moment creates zip file of @ to the lowest degree 48mb. the p2 repository built eclipse-repository packaging type contains (transitive) inclusions of module's category.xml , *.product files. "transitive inclusion" listed in these files, , included in included features. default, artifacts referenced (e.g. in bun...

php - Getting product weight in magento -

php - Getting product weight in magento - i'm trying create csv export script, partener cost aggregation sistem. i'm having problem extracting weight of products magento. $show_prodweight = (@$_get['weight'] == "on") ? "on" : "off"; .... $product = mage::getmodel('catalog/product'); $product->setstoreid($storeid); $product->load($product_id); $prod_model = $product->getsku(); $prod_id = $product->getid(); $prod_name = $product->getname(); if ( $show_prodweight =="on") { $prod_weight = $product->getweight (); } else { $prod_weight == "2"; } .... print $product['prod_weight'] . $datafeed_separator . can please tell me doing wrong ? resolved simplyfing code $product = mage::getmodel('catalog/product'); $product->setstoreid($storeid); $product->load($product_id); $prod_model = $product->getsku(); $prod_id = $product->g...

Code to read Wav header file producing strange results? C -

Code to read Wav header file producing strange results? C - i need read header variables wave file , display are. using next code, output has numbers far large. i've searched solutions hours. help much appreciated! thanks. got wave soundfile format https://ccrma.stanford.edu/courses/422/projects/waveformat/ output: wav file header information: filesize 3884 bytes riff header riff wave header wave subchunk1id fmt chunk size (based on bits used) 604962816 subchunk1size 268435456 sampling rate 288030720 bits per sample 2048 audioformat 256 number of channels 2048 byte rate 288030720 subchunk2id subchunk2size 1684108385 here source: #include <stdio.h> #include <stdlib.h> typedef struct wav_header { char riff[4]; int ...