Posts

Showing posts from May, 2011

hadoop - Find port number where HDFS is listening -

hadoop - Find port number where HDFS is listening - i want access hdfs qualified names such : hadoop fs -ls hdfs://machine-name:8020/user i access hdfs with hadoop fs -ls /user however, writing test cases should work on different distributions(hdp, cloudera, mapr...etc) involves accessing hdfs files qualified names. i understand hdfs://machine-name:8020 defined in core-site.xml fs.default.name . seems different on different distributions. example, hdfs maprfs on mapr. ibm biginsights don't have core-site.xml in $hadoop_home/conf . there doesn't seem way hadoop tells me what's defined in fs.default.name it's command line options. how can value defined in fs.default.name reliably command line? the test running on namenode, machine name easy. getting port number(8020) bit difficult. tried lsof, netstat.. still couldn't find reliable way. following command available in apache hadoop 2.0 can used getting values hadoop configuration pro...

sql server - Not able to get SSAS specific performance counter categories with c# -

sql server - Not able to get SSAS specific performance counter categories with c# - i want retrieve performance counters of ssas service. can see these counters, distributed multiple categories in perfmon. have checked registry key , found these counters. not able retrieve these counters c#. here sample code snippet using- foreach (performancecountercategory pcc in performancecountercategory.getcategories()) { if (pcc.categoryname.startswith("msolap")) { console.writeline(pcc.categoryname); } } note in perfmon can see counter categories as msolap$marsh:connection msolap$marsh:locks msolap$marsh:memory etc. is possible see 2 different list of counters @ 2 places i.e in perfmon & in c# (performancecountercategory class) is there existing wmi class ssas can used retrieve these counters. ssas on 64bit environment installs 64bit counter's library so, if run code 32bit application or using 32bit version of windows perfmon...

multithreading - Thread not printing everything after notifyAll in java -

multithreading - Thread not printing everything after notifyAll in java - class lock implements runnable{ int i=0; public synchronized void run(){ for(i=0;i<10;i++){ if(thread.currentthread().getname().equals("t1") && == 5) {try { this.wait();} catch(interruptedexception ie){}} system.out.print(thread.currentthread().getname()+" "); if(thread.currentthread().getname().equals("t3") && == 9) this.notifyall(); } } } public class threadlock { public static void main(string[] args){ lock l = new lock(); thread t1 = new thread(l); thread t2 = new thread(l); thread t3 = new thread(l); t1.setname("t1"); t2.setname("t2"); t3.setname("t3"); t1.start(); t2.start(); t3.start(); } } output is: t1 t1 t1 t1 t1 t3 t3 t3 t3 t3 t3 t3 t3 t3 t3 t1 t2 t2 t2 t2 t2 t2 t2 t2 t2 t2 t1 not printing 10 times after calling notifyall method. ran man...

Locking a cell in vba excel -

Locking a cell in vba excel - i want lock cell in vba excel. read previous answers , used them. cell not lock.!!!! code: number = range("a1") if number < 5 cells(1, 1).locked = true else cells(1, 1).locked = false end if after subroutine runs cells(1,1) not protected. locked cell become protected when switch protection worksheet. need add cells(1, 1).worksheet.protect that makes locked cells protected (see example). p.s. default cells are locked excel-vba

vim - Display soft hyphens and narrow no-break space -

vim - Display soft hyphens and narrow no-break space - when text editing vim under konsole, i'd see characters, including notably soft hyphens ( &shy; ) , narrow no-break spaces ( &#8239; ). right see these characters when cursor on them, , otherwise after moved 1 place left, leads much confusion. instance, syntax highlighting see in vim: <p class="txt"><span>(«par bonheur...») </span></p> while real text ( _ means narrow no-break space here): <p class="txt"><span>(«_par bonheur..._»)</span></p> and, if seek set cursor on e , see is: <p class="txt"><span>(«par bon heur...») </span></p> with cursor on h , because column e appears h is. without syntax highlighting </span></p> part shoved left well. i don't know if font issue, vim issue, kde issue or what. i've tried available fonts in scheme , behave same. there solution? ...

android - java.lang.IllegalStateException: Cannot perform this operation because there is no current transaction -

android - java.lang.IllegalStateException: Cannot perform this operation because there is no current transaction - i created asynctask class in write part (onpreexecute , doinbackgrond methods): @override protected void onpreexecute() { // instantiate progressdialog , set style style_horizontal dialog = new progressdialog(context); dialog.setindeterminate(false); dialog.setmax(100); dialog.setprogressstyle(progressdialog.style_horizontal); dialog.setcancelable(false); dialog.settitle("update"); dialog.setmessage("download data. please wait..."); dialog.show(); super.onpreexecute(); } @override protected string doinbackground(string... urls) { int count = 0; int numusers = 0; db = new database(context); sqlitedatabase localdb = db.getwritabledatabase(); seek { jsonarray userjsonarray = connectandcreatejsonarray(urls[0]); numusers = userjsonarray.length(); localdb.begi...

ruby on rails - Ignoring created_at timestamp when working with a Datetime field object -

ruby on rails - Ignoring created_at timestamp when working with a Datetime field object - in ticketing app built using rails 4.1, there 2 datetime fields (booking_start_date , booking_end_date). utilize next code ensure availability of tickets , update status: def check_start_date if(self.booking_start_date >= datetime.now && datetime.now < self.booking_end_date) if(self.ticket_quantity.to_i > 0) self.status = 'open' else self.status = 'sold out' end elsif(datetime.now < self.booking_start_date) self.status = 'booking available soon' elsif(datetime.now >= self.booking_end_date) self.status = 'closed' end end often takes few minutes user fill ticket creation form. so, if user starts @ 10.30 (which auto populated in booking_start_date field) , takes till 10.35 create form, status of ticket stays empty. put, long booking_start_date atleast min...

linux - C++ Libzip + remove = core dump -

linux - C++ Libzip + remove = core dump - i have issue when using libzip. on linux , have installed library using sudo apt-get install libzip2 libzip-dev (so not latest version). here code : #include <iostream> #include <zip.h> #include <unistd.h> #include <sys/stat.h> #define zip_error 2 using namespace std; bool isfilepresent(string const& path) { struct stat *buf; return(stat(path.c_str(), buf)==0); } int main(void) { struct zip *zip; struct zip_source *zip_source; int err(0); string zipfile("fileszip/ziptest"); string filetozip("filestozip/test1"); string filetozip2("filestozip/test2"); char tmp[] = "fileszip/ziptest\0"; // test if file nowadays if(isfilepresent(zipfile)) { // if(remove(tmp) != 0) if(remove(zipfile.c_str()) != 0) { homecoming zip_error; } } // open zip archive zip = zip_open(zip...

java - The method getCurrentSession() is undefined for the type SessionFactory -

java - The method getCurrentSession() is undefined for the type SessionFactory - i'm doing web based project using maven,spring , hibernate.i have faced problem. problem whenever i'm using sessionfactory.getcurrentsession() showing error , error is the method getcurrentsession() undefined type sessionfactory here pom.xml <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>org.mahin.webchatapp</groupid> <artifactid>webchatapp</artifactid> <version>1.0-snapshot</version> <packaging>war</packaging> <name>webchatapp</name> <description>for chatting</description> <properties> <spring.version>4.1.1.release</spring.version>...

javascript - can't make this (simple) recursive function return a value -

javascript - can't make this (simple) recursive function return a value - i got next function write in mill can utilize afterward: treeview.factory('utils', function () { return{ // util finding object 'id' property among array findbyid:function findbyid(a, targetid) { var indexresult = 0; (var = 0; < a.length; i++) { //console.log(targetid + " - " +a[i].id); if (a[i].id === targetid) { indexresult = i+1; console.log(a[indexresult-1]); break; } else { if(a[i].nodes instanceof array) { homecoming findbyid(a[i].nodes, targetid); } } } if(indexresult == 0) { } else { ...

python - Matplotlib imshow() grid uneven when grid size is large -

python - Matplotlib imshow() grid uneven when grid size is large - i trying utilize imshow() function in matplotlib plot color values in 177 x 177 grid. when run next code on little (30x30) grid (i.e. set width = 30 ), image produces has nice, evenly sized squares. when run on larger grid (150x150), squares not evenly proportioned. stretched in 1 or both dimensions. here's simplified version of code i'm using: grid = [[]]*width in range(width): grid[i] = [[]]*width j in range(width): grid[i][j] = (random(), random(), random()) plt.imshow(grid, interpolation="none", aspect=1) plt.savefig("test.png") any thought how create grid even? i've tried of aspect ratio stuff discussed here, didn't seem solve problem. i'm using python 2.7.6 , matplotlib version 1.3.1. edit: here image showing cells big gird if zoom way in. obtained using different coloring function, in clusters of 9 cells colored increasing hue. more sho...

java - Already sorted array -

java - Already sorted array - i have array including user's inputs. programme bubble sort, selection sort , insertion sort. first bubble, sec selection , insertion sort comes. i couldn't manage solve problem. when code run selection sort, array sorted bubble sort. i tried create 2 temporary arrays @ first utilize "source array" @ selection , insertion sorting arrays re-arranged bubble sort again. ( don't understand why ) is there way sort array seperately or have create them methods ? i'm counting swaps , comparisons btw. ! system.out.println("• please come in number of elements in sorting bag:"); length = input.nextint(); system.out.println("• number of elements: " + length); int[] sorbag = new int[length]; int[] sorbag2 = new int[length]; int[] sorbag3 = new int[length]; system.out.println("• please come in elements of sorting bag:"); (int = 0; < sorbag.length ; i++) { ...

python - Matplotlib animation wasting lot of memory -

python - Matplotlib animation wasting lot of memory - im doing animation using matplolib in pyside form. animation running, works. wasting lot of memory. i'm providing test info test code below, maybe reaches end, larger data, programme stops working. can dont waste lot of memory? import sys matplotlib import pyplot, animation import numpy np pyside import qtcore, qtgui matplotlib.backends.backend_qt4agg import figurecanvasqtagg figurecanvas moves_data import moves_x, moves_y class form(qtgui.qwidget): moves_x = moves_x moves_y = moves_y def __init__(self): super(form, self).__init__() self.initializecomponent() self.set_animation_area() def initializecomponent(self): self.hbox = qtgui.qhboxlayout() #----------------- animation button ----------------- self.btn_anim = qtgui.qpushbutton("run animation") self.btn_anim.clicked.connect(self.start_animation) self.hbox.addwidget(self...

php - Can't print the json from ajax post using json_decode -

php - Can't print the json from ajax post using json_decode - i using ajax post info php script work done... basically, i'm taking form variabes, , creating json... taking json , sending controller script: function createjson() { jsonobj = []; $("input[class=form-control]").each(function() { var id = $(this).attr("id"); var value = $(this).val(); item = {} item [id] = value; jsonobj.push(item); }); jsondata = json.stringify(jsonobj); var request = $.ajax({ url: "../../../../ajax/signupcontroller.php", type: "post", data: jsondata, datatype: "html" }); request.done(function( msg ) { console.log(msg); }); request.fail(function( jqx...

mysql - PHP one time expire link -

mysql - PHP one time expire link - i want url www.something.com/somenumber/index.html example www.google.com/101521145/index.html means want random number before required page is possible using php , sql if randomness need : <?php $time = round( microtime( true ) * 1000 ); //microtime returns current microseconds of server echo $time; ?> php mysql sql

class - compiles .py to .exe inluding it Classes -

class - compiles .py to .exe inluding it Classes - i have 4 .py files. below list of files required run programme. of them missing fail programme run. how code works: ) guiss.py imports demonstrator.py ) demonstrator.py imports filereader.py , process.py ) run programm need click guiss.py. my cx-freeze code below: from cx_freeze import setup,executable import os includefiles = ['filereader.py','demonstrator.py','logo.gif','thebrighterchoice.gif'] #bin_includes= ['process.py','demonstrator.py','filereader.py'] ..... 'bin_includes':bin_includesincludes = ['process'] includes = ['process','tkinter'] excludes = ['tkinter'] packages = ['os','xlrd'] setup( name = "process", version = "0.1", description = "description", author = "raitis kupce", options = {'build_e...

sql - Grails Count By does not return correct value -

sql - Grails Count By does not return correct value - i trying homecoming total count of items in database using grails count query have def string = "'%"+params.query+"%'" def sqlquery ="select count(status) document status= '"+params.status+"' , doc_name "+string; total = document.executequery(sqlquery); this should homecoming me total count returning 0 instead of 724 tried total = document.countbystatusanddocnamelike(params.docstatus,string); but getting 0 instead of 724 which wierd because returns right value def sqlquery ="select count(status) document doc_name "+string; total = document.executequery(sqlquery); so, if these two: def sqlquery ="select count(status) document status= '"+params.status+"' , doc_name "+string; total = document.executequery(sqlquery); and total = document.countbystatusanddocnamelike(params.docstatus,string); return ...

linux - Is it possible to fix PNG files corrupted by ASCII conversion? -

linux - Is it possible to fix PNG files corrupted by ASCII conversion? - i've accidentally downloaded png images ascii files. original files deleted have downloaded files. possible prepare png files corrupted ascii conversion? it depends. kind of convertion done? ( \r\n -> \n ? or reverse?). if image small, there probability of successful recovery blindly doing reverse convertion. see eg fixgz. otherwise should seek alternatives, can lot. fact png structured in fixed length chunk can help, take work. linux png ascii file-conversion

javascript - CoffeeScript curiousity about splat & this implementation -

javascript - CoffeeScript curiousity about splat & this implementation - so, looking thru code functional & currying driver of it.. seeing convention of splat usage, , though can "see" doing in compiled javascript, have not seen mention of docs etc.. on "..." splat usage coffeescript @ end of line (see below). for instance, have: flip = (f) -> (as...) -> f as.reverse()... which compiles to: flip = function(f) { homecoming function() { var as; = 1 <= arguments.length ? __slice.call(arguments, 0) : []; homecoming f.apply(null, as.reverse()); }; }; now, understand "as..." beingness used as: as = 1 <= arguments.length ? __slice.call(arguments, 0) : []; taking arguments , assigning them "as". but, not wrapping head around usage here: -> f as.reverse()... # <-- "..." @ end. if remove (the '...'), "apply" of compiled goes away.. so, convention he...

c++ - What do /proc/fd file descriptors show? -

c++ - What do /proc/fd file descriptors show? - learning /proc/ directory today, in particular i'm interested in security implications of having info process semi-publicly available, wrote simple programme simple whatnot allows me explore properties of /proc/ directory: #include <iostream> #include <unistd.h> #include <fcntl.h> using namespace std; extern char** environ; void is_linux() { #ifdef __linux cout << "this running on linux" << endl; #endif } int main(int argc, char* argv[]) { is_linux(); cout << "hello world" << endl; int fd = open("afile.txt", o_rdonly | o_creat, 0600); cout << "afile.txt open on: " << fd << endl; cout << "current pid: " << getpid() << endl;; cout << "launch arguments: " << endl; (int index = 0; index != argc; ++index) { cout << argv[index] << endl; ...

How to find Decile in R if the data set has NA values -

How to find Decile in R if the data set has NA values - i trying rank info using decile using r. here code. x<-c(1,6,2,4,3,5,12,9,8,10,11,7) newvar<-cut(x,quantile(x,(0:10)/10),include.lowest=true) cbind(x,newvar) x newvar [1,] 1 1 [2,] 6 5 [3,] 2 1 [4,] 4 3 [5,] 3 2 [6,] 5 4 [7,] 12 10 [8,] 9 8 [9,] 8 7 [10,] 10 9 [11,] 11 10 [12,] 7 6 for above info set giving right values. but if info set has na values givin error shown below. x<-c(1,6,2,4,3,5,12,9,8,10,na,11,7,na) newvar<-cut(x,quantile(x,(0:10)/10),include.lowest=true, na.rm=false) error "error in quantile.default(x, (0:10)/10) :missing values , nan's not allowed if 'na.rm' false" r

need for concatMap in nested Haskell maps -

need for concatMap in nested Haskell maps - i don't understand why concatmap, rather map, needed in this: expand :: [[int]] -> [[int]] expand xs = concatmap (\a -> (map (\b -> a++b) [[1],[2],[3]])) xs don't , b each pick simple list in respective assignments, a++b concatenation of these lists should list? would appreciate insight ... map preserves number of elements in input list, can't utilize since want create 3 elements in output every list in input list. concatmap allows returning list incorporated output list. inner map creates 3 lists input list, since returns list of lists each input list need remove layer of nesting. haskell

Javascript: Recursion, jQuery Error -

Javascript: Recursion, jQuery Error - working on navigation menu script jquery. script beingness designed recursion there no hard coded limit number of levels menu has. i'll start code: navigationmenu.prototype.reset = function ( ulelement, colorindex, colors ) { //color index should 1 when straight calling function var listitems = $(ulelement.children); var numitems = listitems.length; var targetwidth = (100 / numitems) + '%'; listitems.each( function ( x ) { var children = $(listitems[x].children); var xt = $(listitems[x]).prop('tagname'); var submenu = null; children.each( function ( y ) { var yt = $(children[y]).prop('tagname'); if (yt == 'ul') { submenu = $(children[y]); } else if (yt == 'a') { $(children[y]).css('background-color', colors[colorindex-1]); //offset 1 facilitate 0 indexed arrays $(children[y]).hover( function () { //set hove...

tags - Magento include phtml file within another phtml file -

tags - Magento include phtml file within another phtml file - i making custom home page magento website in phtml file named home_banner.phtml, in turn have referenced in cms->pages->home page content next code {{block type="core/template" template="theme/home_banner.phtml"}} in home_banner.phtml have called tags/popular.phtml display popular tags. <div class="last-posts-grid clearfix"> <?php echo $this->getlayout()->createblock('core/template')->settemplate('tag/popular.phtml')->tohtml(); ?> </div> however tags not beingness displayed though anchor tag says "view tags" id getting called correctly. ul class="tags-list" visible in page source tags not visible. suggestions? you made little error in template file. template file has below: <div class="last-posts-grid clearfix"> <?php echo $this->getlayout()->createblock(...

javascript - graph.hasEdge function in dagre-d3/graphlib -

javascript - graph.hasEdge function in dagre-d3/graphlib - has used graph.hasedge function in dagre-d3/graphlib see if border exists between 2 nodes. i'm talking api takes in 2 arguments 2 nodes , checks if border exists between two. my problem me, function returns false. tried giving 2 nodes have border between two, , still gives me false.(note that, works when give 1 argument, border id had defined @ time of doing graph.addedge(edgeid, source, destination); please see link api rerference would reply question here, dagre-d3 working on previous version of graphlib - http://cpettitt.github.io/project/graphlib/latest/doc/index.html so, moment, prepare check non-empty array outedges using 2-arg variant:http://cpettitt.github.io/project/graphlib/latest/doc/index.html#digraph-outedges (quoted cpettitt : link issues page - https://github.com/cpettitt/dagre-d3/issues/91) javascript d3.js dagre-d3

Android camera capture activity error on nexus devices -

Android camera capture activity error on nexus devices - this demo application utilize capture image phone photographic camera app, compression , display on imageview. works on other devices except on nexus devices. tested on lg e975, samsung s3 mini, samsung note 2 , works fine. seek search no luck finding any. here code: main activity: public class main extends activity { protected imageview img_pic; protected button btn_capture; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); img_pic = (imageview) findviewbyid(r.id.imageview); btn_capture = (button) findviewbyid(r.id.button); btn_capture.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { intent cameraintent = new intent(mediastore.action_image_capture); startactivityforresult(camera...

PHP uploader only uploads Small files -

PHP uploader only uploads Small files - my php code upload little files eg, 20mb when seek upload files more homecoming nil insert database anyway. have tried putting upload size doesn't anything. script should upload swf file , image while inserting info database used. why can't upload more 20mb. <?php $link = $_post['link']; if(isset($_post['upload'])) { $allowed_filetypes = array('.swf'); $max_filesize = 999999999999999999999999999999999999999999999; $upload_path = 'swf/'; $game = $_post['game']; $category = $_post['category']; $swf = $_post['swf']; $height = $_post['height']; $width = $_post['width']; $radio=".swf"; $characters = '0123456789abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'; $done = ''; ($i = 0; $i < 25; $i++) $done .= $characters[mt_rand(0, 61)]; $filename = $done . '' . $radio; $ext = substr($filename, strpos($filename,...

Run function after another function completes JavaScript and JQuery -

Run function after another function completes JavaScript and JQuery - i need little help. i'm trying run sec function "likelinks();" after first function "getlikeurls();" finished. because 2nd function relies on links array execute. seems trying run @ same time. any help appreciated. var links = []; var url = '/' + window.location.pathname.split('/')[1] + '/' + window.location.pathname.split('/')[2] + '/' getlikeurls(); likelinks(); function getlikeurls() { (i = 1; < parseint(document.getelementsbyclassname('pagenav')[0].getattribute('data-last')) + 2; i++) { var link = $.get(url + 'page-' + i, function(data) { //gets links current page $(data).find('a[class="likelink item command like"]').each(function() { links.push($(this).attr('href')); // puts links in array ...

android - Compound layout -

android - Compound layout - i want create custom layout cut down redundancy in code. every layoutfile has 30 lines of code identical. my goal create custom layout/view can hold in children. <baselayout xmlns:...> <!-- normal content --> <button /> <label /> </baselayout> while above xml holds of content, baselayout in xml containing other views , functionality: <framelayout xmlns:...> <linearlayout><!-- contains header--></linearlayout> <linearlayout><!-- individual content here--></linearlayout> <framelayout><!-- contains loading screen overlay --></framelayout> </framelayout> so children above xml should inserted sec linear-layout. have succeeded doing so. confronted layout problems (match parents not match parents , wraps) my approach extending linearlayout next logic: /** * extracting children , adding them inflated base-layout */ @overr...

c - about the /proc/xx/map and the vm_area_struct -

c - about the /proc/xx/map and the vm_area_struct - the kernel module code: static int __init module(void) { struct pid *current_pid; struct task_struct *current_task; struct mm_struct *mymm; struct vm_area_struct *pos = null; current_pid = find_vpid(7887); current_task = pid_task(current_pid, pidtype_pid); mymm = current_task->mm; for(pos = mymm->mmap; pos; pos = pos->vm_next) { printk("0x%hx-0x%hx\t%ld\t", pos->vm_start, pos->vm_end,pos->rb_subtree_gap); if(pos->vm_flags & vm_read) { printk("r"); } else { printk("-"); } if(pos->vm_flags & vm_write) { printk("w"); } else { printk("-"); } if(pos->vm_flags & vm_exec) { printk("x"); } else { printk("-"); } printk("\n"); ...

sql - mysql - order by inside subquery -

sql - mysql - order by inside subquery - i used next query mysql 5.5 (or previous versions) years without problems: select t2.code (select country.code country order country.code desc ) t2; the order of result descending needed. last week, migrated new mysql version (in fact, migrated mariadb 10.0.14) , same query same database not sorted descending anymore. sorted ascending (or sorted using natural order, not sure in fact). so, can tell me if bug or if alter of behaviour in recent versions of mysql/mariadb? thank you. g. plante after bit of digging, can confirm both scenarios: mysql 5.1 apply order by within subquery. mariadb 5.5.39 on linux not apply order by within subquery when no limit supplied. does correctly apply order when corresponding limit given: select t2.code ( select country.code country order country.code desc limit 2 ) t2; without limit , there isn't reason apply sort within subquery. can equivalently applied outer qu...

sql - TSQL Recursive Query with Count -

sql - TSQL Recursive Query with Count - i have recursive query have working part. here have far: declare @table table(mgrqid varchar(64), qid varchar(64), ntid varchar(64), fullname varchar(64), lvl int, dt datetime, countofdirects int) emplist(mgrqid, qid, ntid, fullname, lvl, metadate) ( select top 1 mgrqid, qid, ntid, firstname+' '+lastname, 0, meta_logdate dbo.employeetable_historical qid in (select director dbo.attritiondirectors) , meta_logdate <= @pit order meta_logdate desc union select b.mgrqid, b.qid, b.ntid, b.firstname+' '+b.lastname, lvl+1, b.meta_logdate emplist cross apply dbo.fetch_directshistorical_by_qid(a.qid, @pit)b ) insert @table(mgrqid, qid, ntid, fullname, lvl, dt) select emplist.mgrqid , emplist.qid , emplist.ntid , emplist.fullname , emplist.lvl , emplist.metadate emplist order lvl option(maxrecursion 10) now, @table has list of qids ...

tcl and gnuplot interaction -

tcl and gnuplot interaction - currently, tcl handle info processing part. let's info stored in tcl list variable. if want utilize gnuplot show data. best way this. based on study, gnuplot needs info file provided. can not straight pass list variable gnuplot command. guess creating gnu command within tcl string operation. , print command file,for illustration name "command.dat". , phone call gnuplot way in tcl: exec gnuplot "command.dat" any other method? or reference. tcl gnuplot

linux - dd: invalid argument 'ucase' to 'conv' -

linux - dd: invalid argument 'ucase' to 'conv' - why 'ucase' value not working attribute 'conv' in unix ? error info ➤ dd if=mergefile of=dddemo conv=ucase dd: invalid argument 'ucase' 'conv' you're using version of dd(1) doesn't understand ucase conversion specifier, such 1 included busybox. linux unix dd

variables - Java String Switch Statement Not Going To Proper Switch -

variables - Java String Switch Statement Not Going To Proper Switch - i'm facing issue switch statement. i've printed out switch variable, , seems correct, print statement desired switch not working. switch statement in main ~20 lines bottom. the test stub is: "person#joe gaucho#28000 marguerite parkway#949-582-4800#gaucho@sb.edu;" "faculty#1234153524#1341244#1234150000#adjunct;employee#bgs210#20000#123455000;" "person#mickey mouse#disneyland#800 1disney#mmouse@disney.com;" "exit#" the expected output is: person name: joe gaucho address: 28000 marguerite parkway phonenumber: 949-582-4800 emailaddress: gaucho@sb.edu faculty officehours: wed jan 14 22:49:13 pst 1970, wed dec 31 16:22:21 pst 1969, wed jan 14 22:49:10 pst 1970 rank: adjunct employee office: bgs210 salary: 20000.0 datehired: fri jan 02 02:17:35 pst 1970 person name: mickey mouse address: disneyland phonenumber: 800 1d...

c# - adding button to each row in gridview that has a drop down menu -

c# - adding button to each row in gridview that has a drop down menu - i have gridview want add together "actions" button each row added upon click allow me edit or delete row. in image looks drop downwards list. prefer button dropdownlist work lastly resort. have tried far: <asp:gridview runat="server" id="grdvwdeposittransaction" autogeneratecolumns="false" datakeynames="status" onrowcommand="grdvwdeposittransaction_rowcommand" showheaderwhenempty="true" showfooter="true" onrowdatabound="grd_rowdatabound" cssclass="grid" width="750"> <headerstyle cssclass="headertemplate" /> <footerstyle cssclass="footertemplate" /> <columns> <asp:templatefield > <itemtemplate> ...

javascript - Resizing a src iframe when its document has loaded? -

javascript - Resizing a src iframe when its document has loaded? - we're embedding phpbb within our website , embedding work nicely adjust height of iframe phpbb loaded. code below works not perfectly. when content of frame re-loaded (by click in it), awaits .load() rather .ready() launch resizing event shows short delay. notice when scroll downwards page in illustration , click move page (say, select forum). we've tried using $('frame').ready() doesn't work @ all. any ideas remedy this? please don't suggest re-create content of iframe or such thing. thanks. function resize_iframes() { if ($('iframe').length < 1) return; // set specific variable represent iframe tags. var iframes = document.getelementsbytagname('iframe'); // resize heights. function iresize() { // iterate through iframes in page. (var = 0, j = iframes.length; < j; i++) { // set inline style equal body height ...