Posts

Showing posts from April, 2013

autocomplete - Textbox does not show the normal Google Chrome credit card detection -

Image
when using google chrome, credit card textbox on checkout page not show normal ability select existing credit card. did set "auto complete type" google recommends. is due long "asp.net" style id field? <input name="ctl00$conmain$checkoutcontrol1$txtcreditcardnumber" type="text" id="ctl00_conmain_checkoutcontrol1_txtcreditcardnumber" title="credit card number " x-autocompletetype="cc-number"> https://dia-fundraising-dinner-2015.simpletix.com/checkout/guest/order/df71f52a-f9b9-4dcd-923b-4e2d46bd754a/ it works fine, need name on creditcard first input field, chrome uses autocomplete rest. use autocomplete besides x-autocompletetype support other versions of chrome. <input name="ccname" id="frmnamecc" required placeholder="full name" autocomplete="cc-name"> <input name="ctl00$conmain$checkoutcontrol1$txtcreditcardnumber" ty...

cocoa - How to create alerts that look similar to OS X notifications? -

Image
from alerts, i'm assuming picture represents panel, not sheet (my understanding sheets overlays on open apps). i'm looking create custom, or built in 'clean' popup alert (notification). can't seem find within nsalert speaks of customizing alert - alerttype seems might apparently conveying importance. an example this: (source: http://i.stack.imgur.com/wjhv8.jpg ) the nsusernotificationcenter class used present these "user notifications" in upper-right of screen: import appkit let note = nsusernotification() note.title = "hi stack overflow" note.subtitle = "how’s going?" note.contentimage = nsimage(contentsofurl: nsurl(string: "http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png")!) nsusernotificationcenter.defaultusernotificationcenter().delivernotification(note) (the 1 see gmail custom non-standard notification system chrome provides. can take advantage of if write chrome extension, nsus...

c# - how to write test method for a method which is inside an internal Class? -

this question has answer here: how test internal class library? 1 answer i have internal class multiple methods inside it, want write nunit each method, how can call method? note: method has interface. sample code: internal class sample : issample { public string getvalueabc(int a, int b) { string h="value:"+a+"and another:"+b; return h; } } you can return class other publicly available method this: public class mysamplefactory { public isample createsample() { return new sample(); } } //inside unit test isample sample = mysamplefactory.createsample(); sample.getvalueabc();

c++ - Problems defining and using types through QML files with QRC -

i'm having quite bit of trouble defining new object types through qml documents , trying use types. context, have main.qml uses mymenu add mymenu list of menu's. part working fine. from there, create mywindow component mymenu.qml, , in mywindow.qml try use autotab.qml type can break apart tabs individual files. the problems running seem related use of qrc file. if don't give mywindow alias, error file not found. if give mywindow alias, error autotab not type. mymenu.qml import qtquick 2.4 import qtquick.controls 1.3 menu { id: m_mymenu title: qstr("mine") menuitem { text: qstr("mywindow") ontriggered: { var component = qt.createcomponent("qrc:/mywindow"); if (component.status == component.ready) { var obj = component.createobject(null) obj.visible = true } else { console.log(component.errorstring()) ...

sockets - Find and print to network printer by IP address in Java -

i've read tons of similar questions , haven't gotten anywhere.. what i'm trying connect printer directly ip (not 1 that's in windows devices list) , print document it. here's i've tried far (didn't work, no idea why): try{ socket sock = new socket("1.2.3.4", 9100); printwriter ostream = new printwriter(sock.getoutputstream()); ostream.println("hello world"); ostream.close(); sock.close(); } catch (unknownhostexception e){ e.printstacktrace(); } catch (ioexception e) { e.printstacktrace(); } i found problem. can try network printer code. https://blog.entelect.co.za/view/3213/android-printing-to-a-network-printer i saw many examples example worked. guess there connection problem printer.

Issue with PHP Loop Record not Inserting -

i trying insert records mysql database tables using simple html dom. checkout codes.. <?php $startpage=1; $endpage=2; for($p=$startpage;$p<=$endpage;$p++) { $html = file_get_html("http://examplesite.com/index.php?page=$p"); // connect main page links foreach($html->find('div.tt-name a[1]') $link) { $linkhref = $link->href; $url[] = $conn->real_escape_string(trim($linkhref)); //loop through each link $linkhtml = file_get_html('http://examplesite.com'.$linkhref); $title=array(); $size=array(); foreach($linkhtml->find('div#content h1') $title2) { $title[] = $conn->real_escape_string(trim($tit2)); } foreach($linkhtml->find('div.torrentinfo table tr[3]') $size2) { $size[] = $conn->real_escape_string(trim($size2)); } $qv = $conn-...

Organize routes and sub-routes in legal app using Laravel -

i'm working in legal web app using laravel 5, , have 11 classes 'models' , working fine. in real world there lawyers working in different offices, each office had 1 admin can create or open cases or 'lawsuits' litigants, , lawyers follow , update cases in courts or when offices. the problem confuse how sort them in route , sub-routes .. how have sort them starting lawsuits, litigants or lawyers ? something such: offices/{id}/lawyers/{id}/lawsuits/{id}/ a) offices -> lawyers -> lawsuits -> sessions -> judgments offices -> lawyers -> lawsuits -> litigants offices -> meetings articles courts judges users b) offices -> lawsuits -> sessions -> judgments offices -> lawsuits -> litigants offices -> lawsuits -> lawyers offices -> meetings articles courts judges users c) offices -> litigants -> lawsuits -> sessions -> judgments offices -> litigants -> lawsuits -> l...

Imagebrush resolution to render a MeshGeometry3D in WPF -

i visualizing spatial data using meshgeometry3d in wpf. noticed passing imagebrush constructor of diffusematerial makes 3d visualization , manipulation fast , efficient (than using visualbrush). solution in following code block this.datameshmodel geometrymodel3d includes mesh. problem have give high resolutions (1000) bitmap image source make grid nice , distinguishable. choosing high dpi seems odd , raises memory exceptions. suggestion? data model looks this 1000 dpi , this 4000 dpi. thanks! private void assigntexture(geometry gridgeom, double texturedpi, double gridthickness) { // rendering grid on drawingvisual drawingvisual dv = new drawingvisual(); using (var dvc = dv.renderopen()) { dvc.drawrectangle(brushes.tomato, null, gridgeom.bounds); dvc.drawgeometry(null, new pen(brushes.black, gridthickness), gridgeom); } if (dv.drawing.canfreeze) { dv.drawing.freeze(); } ...

html - How I can break my document correctly with DOMPDF? -

i want generate pdf dompdf through dynamic content. creating table this: <?php $language = $this->input->cookie('language'); if (!isset($language)) { $language = $core_settings->language; } ?> <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta name="author" content=""/> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="invoice.css" type="text/css" charset="utf-8" /> <style type="text/css"> @page { margin: 0; } .pages { margin: .5in; } .other-pages{ padding:60px; } .first-page { margin: 0in; ...

asp.net - Set splitlate=false on gridview itextsharp -

Image
here layout of page exporting: ------------------------------- ' text text text ' ' ' ' gridview ' ' ' ' text text text ' -------------------------------- here table after rendering html <table cellspacing="0" id="mytest_gvmain" style="width:100%;border-collapse:collapse;"> <tbody> <tr> <th scope="col">item</th> <th scope="col">description</th> <th scope="col">quantity</th> <th scope="col">unit</th> <th scope="col">rate</th> </tr> <tr> </tr> </tbody> </table> as see gridview in middle of page. because gridview can of size expanding different pages, set splitla...

ms release management - Base-64 error when trying to execute vNext deployment script -

release management 2013 writes "the input not valid base-64 string" error message application event log when tries execute power shell dsc deployment script. know causing error? ps dsc script: $configdata = @{ allnodes = @( @{ nodename = $env:computername } ) } configuration webappserver { node $allnodes.nodename { file webapplicationfiles { ensure = "present" type = "directory" recurse = $true sourcepath = $applicationpath destinationpath = "c:\inetpub\wwwroot\test" } } } webappserver -configurationdata $configdata error message application log: timestamp: 9/29/2015 5:19:32 pm message: input not valid base-64 string contains non-base 64 character, more 2 padding characters, or illegal character among padding characters. : \r\n\r\n @ system.convert.frombase64_decode(char* startinputptr, int32 inputle...

javascript - AWS SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided -

i getting response request amazon product api. <?xml version="1.0"?> <itemsearcherrorresponse xmlns="http://ecs.amazonaws.com/doc/2011-08-01/"><error><code>signaturedoesnotmatch</code><message>the request signature calculated not match signature provided. check aws secret access key , signing method. consult service documentation details.</message></error><requestid>9aff7feb-7f9b-4efb-aece-b595b1b7b0e5</requestid></itemsearcherrorresponse> in javascript, generating signature as: var paramo = { service:'awsecommerceservice', operation:'itemsearch', awsaccesskeyid:accesskeyid, associatetag:associatetag, version:'2011-08-01', searchindex:'all', keywords:name, responsegroup:'itemattributes,offersummary', timestamp:timestamp }; var string='get\nwebservices.amazon.in\n/onca/xml\n'; console.log(string+$....

simulation - v-rep Bubble Rob tutorial issues -

i extrememly new v-rep (a robotic simulation software) , trying become familiar system going through several of tutorials. however, have gotten stuck first tutorial, bubble rob. if load actual bubble rob scene in tutorial folder, can see once 'sensingnose' reaches 1 of cylinders, bubble rob backs off , tries direction. however, in scene, after following through directions, bubble rob continues going forward until touching cylinder , becomes stuck. (aka sensing nose not stopping him.) the error shows when simulation running says: 29: object not exist (simsetjointtargetvelocity) any thoughts may have done wrong , why fucction above not exist? have checked may of properties can, entirely possible missed step. figuring out went wrong me understand more of program, don't know enough it's functionality currently, find on own. appreciated! found solution after messing around in program; object simsetjointtargetvelocity referencing incorrect handle had been t...

xml - How to attach a picture from android gallery into my note app? -

i'm developing simple note app, kind of diary need function click on "attach" button attach files internal , external memory phone, files pictures , maybe, if possible, video , wav files, of them text file on note app, , need save in database, know if possible , how do , read sharing files apps apps on android developer site got confused, if possible, btw sorry bad english i'm not native english speaker , it's first time asking here, glad of this. hi leonardo medina lango, not need save whole file in app's folder. save file path sqlite database. if files in cloud sync sqlite database cloud server background service.

How to use PostCSS in Meteor JS? -

i want use postcss in meteor app can't found package this, know how integrate postcss in meteor js? i leave here. postcss package meteor, maybe interested in helping this: https://atmospherejs.com/juliancwirko/postcss

git - Copy commits in repository A to repository B, deleting all files in B but retaining history? -

i have 2 repositories: repository contains complete, finished application. repository b contains proof-of-concept prototype application developed prior complete application. i want delete prototype out of repo b (but retain history) , apply commits on b. how can approach this? you can merge branches want merge repo after removing of data master branch of repo b , committing removal. in repo b: git rm -r . git commit -m "cleaning out prototype." git remote add repoa /path/to/repo/a git merge repoa/master

wordpress - Custom Woocommerce create_order api modification -

i have created custom create_order() api function in wordpress woocommerce. realize take in singular product not dynamically. if have product id 1 ~ 5 (single product) 6 10 variable products,this code add 1 product each time. how change code able add multiple different kinds/groups of products? whether or not single product or variable product or bundle products 1 order? sorry bad english :) public function create_order() { if ($_request['dev']) { $address = array( 'first_name' => 'zayle', 'last_name' => 'ong', 'company' => 'timios', 'email' => 'crystalizewy@hotmail.com', 'phone' => '777-777-777-777', 'address_1' => '31 main street', 'address_2' => '', 'city' => ...

javascript - $localStorage value got change with fabric js -

i saving polygon value inside angular $localstorage . once fabric js draw object . $localstorage changed. var arr = [{ x: 81, y: 58 }, { x: 221, y: 23 }, { x: 247, y: 158 }, { x: 100, y: 219 }, { x: 81, y: 58 }]; if(!$localstorage.mask) $localstorage.mask = arr; is bug ? here plunker indeed, fabricjs seems modify given points array internal purposes (i.e. offset), in piece of code (from https://cdnjs.cloudflare.com/ajax/libs/fabric.js/1.5.0/fabric.js ): ... //misko321: reference of minx, miny, width , height _calcdimensions: function() { var points = this.points, minx = min(points, 'x'), miny = min(points, 'y'), maxx = max(points, 'x'), maxy = max(points, 'y'); this.width = (maxx - minx) || 0; this.height = (maxy - miny) || 0; this.minx = minx || 0, ...

PHP Cant Pass Variable include File? -

lets go point, i hava form this exhibition.php <?php include("email_class.php"); if(isset($_post[save])){ $email = $_post[email]; $company = $_post[company]; $gender = $_post[gender]; $buyer = $_post[buyer]; $discussion = $_post[discussion]; $class = new email_class(); $class->notifikasi($discussion); }//end if ?> and code include file this email_class.php <?php class email_class{ function notifikasi($discussion){ if($discussion == "discussion"){ $to = $email; $subjek = "thanks visiting @ gulfood exhibition, dubai"; $message = "<html> <head> <title>exibithion email</title> </head> <body> bla blaa"; $message.= "dear <b> ".$gender." ".$buyer."</b><br><br>"; $headers = "mime-version: 1.0" . ...

java - Checking for matching tags -

so have question can't seem find answer have line of text contains not letters angle brackets "<x>hello, welcome!</x>" now how read line of text , check characters , check see if can find closing set match , if didn't display error message if did display correct message. any or hints on awesome! thanks! re = /<(\w+)>.*<\/(\w+)>/i; function check(str) { match = str.match(re); if (match && match[1] == match[2]) return true; return false; } str1 = "<x>hello, welcome!</x>"; console.log(str1,check(str1)); str2 = "<x>hello, welcome!</x>"; console.log(str2,check(str2)); str3 = "<x>hello, welcome!</y>"; console.log(str3,check(str3)); i know actual parser better this, figured regular expressions still worth shot.

asp.net - How web.config is validated -

all,this question may ignored everyday asp.net developer air. if think dumb, please don't laugh. thanks, we knew web.config hosted in every asp.net web application. , it's syntax restricted xml , dotnetconfig.xsd . schema describe can allowed in web.config . but when in specified web.config . <?xml version="1.0" encoding="utf-8"?> <configuration> .... </configuration> we didn't see place show xml based on dotnetconfig.xsd .i mean xml need validated should documented schema can validated in runtime. right ? how validation works ? please tell me . thanks. web.config not strictly validated against xsd file @ runtime. xsd file used visual studio assistance developers avoid typos , other errors in known parts of configuration file, because .net configuration entirely extensible there little point in performing xsd-based validation @ runtime. some validation performed system.configuration classes in class library...

Android - Create Application level fragment -

for current project, using slidinguppanel library . the sliding panel host fragment contain application/global level information. panel in every activity in application. similar way google play music works. my question is, best way persist sliding panel fragment throughout application? see myself going in 2 ways... storing fragment inside application class , loading @ start of every activity (somehow, not sure if possibility). storing data display in application class & loading new instance of fragment, passing in persisted data. which 1 of these 2 ways best? 1. possible? there coding landmines these approaches? storing fragment persist throughout application lifecycle pretty unorthodox, because fragment class should able follow it's normal lifecycle events (in case, onpause , onresume) instead of being stuck somewhere in application class. it common practice store data , load each time display fragment. if want enable sort of cacheing or singleton pat...

iOS 8,9 font-weight on body element causes html entity &#8209; to disappear (non breaking hyphen) -

Image
i using ios (multiple versions) , when using html entity &#8209; font-weight value on body tag have following results: ios 9.0.1 (doesn't render entity) ios 9.0 (doesn't render entity) ios 8.4 (shows odd character below): code reproduce: <!doctype html> <head> <meta charset="utf-8" /> <style> body { font-weight: 300; } </style> </head> <body> <span>&#8209;$7.00</span> </body> </html> if remove font-weight works expected in ios versions. bug? bug not happen on safari mac url try: http://chrismuench.com/ios_9_font_bug.html try using &ndash; have not seen &#8209; used previously. i have tested &ndash; on both ios devices , ios simulator , both work. for full list of html safe characters please see this site

java - Number and string sorting Al -

i want sort number+string combination sorting based on number combination. can suggest optimal solution? say strings are: 12 masdf 4 oasd 44 twer and on. sorting based on numbers 12, 4, 44 , after sorting have show full alphanumeric strings. as program run on thousands of data don't want split string , compare number on each iteration. plan extract numbers , take in array , sort array. after sorting done, want put numbers associated strings , keep in string array show. should done in c++. algorithms should applied - insertion sort, quick sort, merge sort, etc. create class store full string , number. make class comparable . convert list of string list of class. sort list using sort method relevant. iterate list , print string fields. sorry, answer java, since tagged java. replace/remove comparable whatever c++.

php - I am trying to use substr to extract the part of the array element value with a if-else statement -

i new php , having trouble on how output this. $employee_numbers = array( "sam jerry"=>"1849", "david flint"=>"2274", "lena vincent"=>"2532", robert vanny"=>"3471" ); i trying output substr shows name , number. so looks sam jerry's employee number is: 1849 --> management thanks in advanced you have loop through array. $employee_numbers = array( "sam jerry"=>"1849", "david flint"=>"2274", "lena vincent"=>"2532", "robert vanny"=>"3471" ); foreach($employee_numbers $employee => $number){ echo $employee . " employee number is: " .$number . php_eol; //don't know management info }

r - increasing the distance between igraph nodes -

Image
i have graph have produced using igraph. i'd spread out nodes. way have found far scale layout , force plot command not rescale. png("kmeanscolourednetwork.png", width=1200,height = 1000) col=c("yellow", "saddlebrown", "brown1","chartreuse2", "chocolate1","darkorange" ,"deepskyblue1", "hotpink1","plum2") for(i in 1:9){ v(graph)$cluster[which(v(graph)$name %in% kmeans[,i])]<-col[i] } v(graph)$color=v(graph)$cluster coords <- layout.fruchterman.reingold(graph)*0.5 plot(graph, layout = coords, vertex.label=na, rescale=false, vertex.size=degree(graph)*.25,vertex.color=v(graph)$cluster) labels = paste("cluster:", 1:length(colours)) legend("left",legend=labels, col=col, pch=16, title="k means clustered subgroups") dev.off() if don't rescale, central highly connected nodes clump , graph this, patterns in body of graph impossible discern: ...

android - Default title bar displayed before my custom title bar appears -

i' developing android app , need use custom title bar using picture , 2 buttons. thing is, when launch app, during 1 or 2 seconds before custom title bar appears, there ugly default 1 "my application" displayed. minimum targeted api 15. all answers found on stack overflow didn't work, or succeed make disappear doing same custom title bar. here how call activity: supportrequestwindowfeature(window.feature_custom_title); super.oncreate(savedinstancestate); getwindow().setfeatureint(window.feature_custom_title,r.layout.topbarclassic); since first view fragment dont call setcontentview and custom styles.xml: <resources> <style name="theme" parent="theme.appcompat.light.noactionbar"> <item name="android:windowtitlesize">50dp</item> <item name="android:windownotitle">false</item> </style> </resources> once again custom title bar works properly...

Java: Reflection, Generic Types, and Unchecked Casts -

my class given object class. using reflection iterate on declared fields of class , registering changelistener on each field property base class. the original 'createchangelistener' method looked this: private void createchangelistener(property property) { property.addlistener(new changelistener() { @override public void changed(observablevalue observable, object oldvalue, object newvalue) { foo.this.propertychanged(observable); } }); } however, producing unwanted warning: warning: [unchecked] unchecked call addlistener(changelistener<? super t>) member of raw type observablevalue property.addlistener(new changelistener() { t type-variable: t extends object declared in interface observablevalue not dissuaded, provided generic type property parameter , changelistener : private void createchangelistener(property<object> property) { property.addlistener(new change...

autohotkey - AHK recursive map? (Map RAlt to RWin which is mapped to other keys) -

i have bunch of rwin+x => y mappings. ralt mapped rwin rwin+x == ralt+x . example: ; rwin+j => left >#j::sendinput,{left} which works fine, can hold down rwin , press j , keep sending left . let's add before map following: ralt::rwin if hold ralt press j , send left correctly, if keep holding ralt , press j again, send j , not left . have release ralt , press again. is there way fix that? this came based on issue. it's work around solution: #j:: if (getkeystate("ralt", "p") or getkeystate("rwin", "p")) { sendinput,{left} } return ralt:: while getkeystate("ralt", "p") { ; add key in {key} format followed period . want act endkey. input, key, l1 m t1, {space}.{esc}.{shift}.{enter} .{tab}.{backspace}.{alt}.{home} .{delete}.{pgup}.{pgdn}.{end} .{up}.{down}.{left}.{right} ...

entity framework - Visual Studio 2015 EDMX model browser and diagram is missing -

i have updated visual studio 2015. opened solution , works. till decided add in entity edmx. double-clicked on edmx file open diagram should or maybe model browser @ least opens xml page. checked missed installation setup didn't find entity framework there. tried create test solution , create edmx ado.net entity missing well. going on? going revert visual studio 2013? for me, sequence was: double-click .edmx file right click white space in opened diagram click model browser in context menu appears if opens xml means xml text editor set default program open edmx file. can follow these steps open in ado.net entity data model designer right click on edmx file and select open , select option show in below image. http://i.stack.imgur.com/d49ki.png

asp.net - How to set checkbox always checked when user redirect to another page? -

Image
how implement checkbox stay check if user redirects page? example, in code behind when check checkbox system updates database , says "validated" , when press gobackteacher_click event redirect page. in page there button function there redirect current page code behind function implemented , checkbox checked. aspx code: <div class="container" style="text-align: center; margin: 0 auto;"> <br /> <h1>validation of subjects</h1> <br /> <asp:gridview runat="server" cssclass="table table-hover table-bordered" id="validatesubject" style="text-align: center"></asp:gridview> </div> <div style="float: right; padding-right: 75px;"> <button type="button" runat="server" class="btn btn-success" onserverclick="gobackteacher_click">go back</button> </div> code behind: using system;...

php - Joomla : Backend not showing editing tabs -

Image
i'm not sure why, joomla having errors. on content , menus. i can't describe code happening, because don't understand why. i'll use article section explain , comparison. this common 'edit article' section in common joomla. and have in joomla there lot difference between two, summarize : there no 'alias' field set url_aliasing there no 'content, publising, images , links, etc...' set publishing options, etc. the 'category' field in top, , 'tags' field not changeable my question : what causing this? extension, article module, or what? please elaborate , provide solution. thank you. the first thing recommend have updated site latest version. both reasons of safety , features. currently joomla version 3.4.4 you're working version 3.1.4 , compare screen 3.2.1

How to set environment variable from a job and use it in next job in jenkins? -

i want have job set environment variable , use these environment variables in next jobs. how can set environment variable through jenkins ? technically, can't pass env variables 1 job next, , i'm not aware of plugin out of box. there technique however. idea create properties file in first job (e.g. exported.properties), add file job artifacts, , import file via envinject plugin in second job. this pre-supposes have link between first , second job, typically achieved copy artifact plugin, number of workflow-like plugins can well. for example, creating properties file, add step "execute shell", e.g. echo "# saving version properties build_version=${buildversion} build_node_name=${node_name} source_job=${job_name} " > ${workspace}/buildversion.properties of course, can use other build steps, e.g. windows shell, groovy script, etc... each specific syntax of course.

dictionary - Comparing the values of maps in GO -

i have compare values (not keys) of 2 maps of type ' map[string]float64 '. the contents of maps : map1[abcd:300 pqrs:400] , map2[abcd:30 pqrs:40] no check if value(map1)/value(map2) > = 1 (like 300/30=10>1), something. how can achieve in go ? tia. i tried : for key := range m2{ k := range m1{ temp := m1[k] / m2[key] fmt.println("temp*******", temp) } } playground working example breaking down main loop: for key, value1 := range m1 { if value2, ok := m2[key]; ok { fmt.printf("%f / %f = %f\n", value1, value2, value1/value2) if value2 != 0 && value1/value2 > 1 { fmt.println("greater 1!") } else { fmt.println("not greater 1!") } } } first use range pull out both value , key every entry in m1, since need both. second, using comma ok syntax of value2, ok := m2[key] , i...

c# - Avoid page refresh when clicking on LinkButton in grid -

i have gridview control, , inside of control have defined link button using gridview.itemtemplate . i using open new window on click. when click on link button, however, page refreshes before opening new window. how can stop page refreshing after link button clicked? pop not displaying when add update panel first grid if remove update panel first grid, grid refreshing , popup displaying i need open popup without refreshing grid please find me solution working on past 2 days html <%@ page language="c#" autoeventwireup="false" codefile="viewdata1.aspx.cs" inherits="ablesas.viewdataui1" enableeventvalidation="false"%> <asp:updatepanel id="updatepanel4" runat="server"> <contenttemplate> <asp:gridview id="datagrid1" style="visibility:visible" runat="server" alternatingrow...

.net - How to delete a node in csproj file in c#? -

i want delete node <reference include="system.data" /> from csproj file programmatically. csproj file file structure : <itemgroup> <reference include="microsoft.csharp" /> <reference include="system.data.oracleclient" /> <reference include="system.messaging" /> <reference include="system.web.dynamicdata" /> <reference include="system.web.entity" /> <reference include="system.web.applicationservices" /> <reference include="system.componentmodel.dataannotations" /> <reference include="system" /> <reference include="system.data" /> <reference include="system.core" /> <reference include="system.data.datasetextensions" /> <reference include="system.web.extensions" /> <reference include="system.xml.linq" />...

#1064.You have an error in your SQL syntax;check manual that corresponds to MySQL server version for the right syntax to use near 'NULL' at line 1 -

i have following code. getting error like: error code: 1064. have error in sql syntax; check manual corresponds mysql server version right syntax use near 'null' @ line 1 mysql code: set session group_concat_max_len = 8192*50; set @sql = null; select group_concat(distinct concat( 'select id, "', c.column_name, '" word limesurvey.lime_survey_697389 ' ) separator ' union ' ) @sql information_schema.columns c c.table_name = 'limesurvey.lime_survey_697389' , c.column_name '697389%' order c.ordinal_position; set @sql = concat('select id, word (', @sql, ') x order id'); prepare stmt @sql; execute stmt; deallocate prepare stmt; can here? new mysql. you cannot define null value @sql. instead can try this: set @sql = ''; edit: you need execute above code inside stored program or function. mysql docs says: mysql su...

asp.net mvc - i want to make data as image type in rdlc reports(pdf) -

i want make data image rather text user can't copy text pdf in rdlc reports. public fileresult downloadarticle(int id) { signalrdatacontext srcontext = new signalrdatacontext(); localreport localreport = new localreport(); localreport.reportpath = server.mappath("~/report/report1.rdlc"); reportdatasource reportdatasource = new reportdatasource(); localreport.enableexternalimages = true; reportdatasource.name = "dataset1"; reportdatasource.value = srcontext.articles.where(x => x.articleid == id).select(x => new { x.code, x.article_name }).tolist(); localreport.datasources.add(reportdatasource); string reporttype = "pdf"; string mimetype; string encoding; string filenameextension = "pdf"; warning[] warnings; string[] streams; byte[] renderedbytes; renderedbytes = localreport.render(reporttype, "...

arm - Linux kernel for A20 cpu stuck at 'Starting kernel' -

linux kernel version: 4.1.8 board:cubietruck a20 cpu. compiled platform: os x 10.5.5 i follows: first use sunxi_defconfig default configuration, 'byte_swap.h' not found error occurred. use sun7i_defconfig offered cubieboard, , make -j4 arch=arm cross_compile=arm-none-eabi- zimage , make -j4 arch=arm cross_compile=arm-none-eabi- dtbs . then burn uboot , spl sdcard , make partitions: 1 boot , 1 root file system. put zimage, script.bin , dtb file on boot partition. then create boot.cmd below: fatload mmc 0 0x46000000 zimage fatload mmc 0 0x49000000 sun7i-a20-cubietruck.dtb setenv bootargs console=ttys0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait panic=10 ${extra} bootz 0x46000000 - 0x49000000 and mkimage -c none -a arm -t script -d boot.cmd boot.scr . so there's 3 files on boot partition: boot.scr script.bin sun7i-a20-cubietruck.dtb zimage the uboot works fine.(at least think), here output u-boot spl 2014.04 (sep 29 2015 - 21:36:09) board: cub...