Posts

Showing posts from January, 2015

freemind shortcut keys not working -

freemind shortcut keys not working - hi shortcut keys such ctrl+s , ctrl+v,... not working in freemind when run in linux. don't have problem these shortcuts in other applications. please help me. freemind version 0.9.0 info aout linux: linux kali 3.12-kali1-486 #1 debian 3.12.6-2kali1 (2014-01-06) i686 gnu/linux no lsb modules available. distributor id: ubuntu description: ubuntu 12.04 lts release: 12.04 codename: precise i delete custom configuration through follow command. rm -rf .gnome .gnome2 .gconf .gconfd .metacity .cache .dbus .dmrc .mission-control .thumbnails ~/.config/dconf/user ~.compiz* work me , hope work whom face problem. luck freemind

Run TestNG groups both sequentially and in parallel -

Run TestNG groups both sequentially and in parallel - ok, referring testng doc can run tests either sequentially (by default in test suite) or in parallel using <suite parallel="tests"> . now here testng config class="lang-xml prettyprint-override"> <?xml version="1.0" encoding="utf-8"?> <!doctype suite scheme "http://testng.org/testng-1.0.dtd"> <suite name="complete test suite"> <listeners> <listener class-name="com.uas.test.portlet.integration.util.webdriverlistener" /> <listener class-name="org.uncommons.reportng.htmlreporter" /> </listeners> <test name="parallel tests" parallel="methods" thread-count="4"> <groups> <run> <exclude name="sequential-test"></exclude> </run> </groups> ...

mysql - SQL syntax exception -

mysql - SQL syntax exception - i beginner mysql , want find out why getting sql syntax exception below query: select a.file_id file_xfer_tracking_detail a, file_xfer_tracking_header b b.transaction_id = a.transaction_id , b.interface_id =? , a.file_name =? , a.status = 'inprocess' , a.update_time > sysdate- 0.003472222222222222 , a.file_id <> ? , b.direction = ? in mysql workbench, in editor see syntax error @ and b.interface_id=? . beginner , not sure how prepare it, also, reference bareword sysdate valid syntax oracle, it's invalid mysql. in mysql, homecoming current datetime, you'd want reference function sysdate() , or function now() . subtracting numeric value date look valid in oracle; it's not valid in mysql. the particular numeric value specified in query ( 0.003472222222222222 ) interpreted oracle fractional part of day, equivalent 5 minutes. ( = 1/24/60 * 5 ) in mysql, equivalent, you'd want lik...

php - laravel can't print the correct parameter -

php - laravel can't print the correct parameter - i have function public function show($id) { echo $id;exit; $restaurant = restaurant::find($id); homecoming view::make('restaurants.profile')->with('restaurant', $restaurant); } i phone call this: http://localhost:8082/profjectname/public/restaurants/show/20 i got error: symfony \ component \ httpkernel \ exception \ notfoundhttpexception when phone call way: http://localhost:8082/parkingproject/public/restaurants/show?id=3 it prints show instead of 3 when phone call way: http://localhost:8082/parkingproject/public/restaurants/testestestes?id=3 it prints testestestes instead of 3 routes.php i have : route::resource('restaurants', 'restaurantscontroller'); the routes works other functions in controller, don't thing route has error. could help me please if you're using resource controller, there's ...

wordpress - How do I get one cell value from $wpdb? -

wordpress - How do I get one cell value from $wpdb? - i can't figure out function should use, get_var, get_results or may shouldn't utilize them @ all, neet echo 1 value 1 cell only, 9000. <?php $apartprice_this = $wpdb->get_results( $wpdb->prepare("select meta_value wp_postmeta post_id=%d , meta_key=%s", the_id(),'price')); echo $apartprice_this; ?> but now, don't know takes, returns me "8array", that? wp function get_results returns array. echo value in array should utilize field key as: foreach( $apartprice_this $results ) { echo $results->field_key; } wordpress wordpress-plugin wpdb

php - Foreach iteration not working -

php - Foreach iteration not working - i got key values in array variable. here iterate array , execute it. foreach ($key_details $index => $value) { # code... $result = $s3->deleteobjects(array( 'bucket' => content_bucket, 'objects' => array( array('key' => $value), ) )); } here each time need create instance. if possible iterate this # code... $result = $s3->deleteobjects(array( 'bucket' => content_bucket, 'objects' => array( foreach ($key_details $index => $value) { array('key' => $value), } ) )); } you can't utilize foreach within array declaration - hence parse error: unexpected t_foreach... . instead, though, create info objects first, utilize deleteobjects parameter. $objects = array(); foreach ($key_details $value) { $objects[] = array('key' => $value); } $result = $s3->deleteobjects...

javascript - How do I reset a checkbox thats checked value is set by php? -

javascript - How do I reset a checkbox thats checked value is set by php? - i have web form bazillion check boxes. if form filled out incorrectly, none of check boxes reset (as anti-frustration feature). problem is, reset button doesn't work uncheck boxes if form has been submitted before. how prepare this? document.getelementbyid("form").reset() doesn't work if form has been submitted beforehand either. sample code below: <body> <script> function resetdata() { document.getelementbyid("deletecontactflag").checked=false; document.getelementbyid("useradministrationflag").checked=false; } </script> <form action="<?php echo htmlspecialchars($_server["php_self"]); ?>" method="post" id="form"> <input type="checkbox" name="deletecontactflag" id="deletecontactflag" <?php if (isset($_post["deletecontactflag"])) ec...

ios - NSObjectInaccessibleException', reason: 'CoreData could not fulfill a fault. How to interpret this? -

ios - NSObjectInaccessibleException', reason: 'CoreData could not fulfill a fault. How to interpret this? - i trying figure out problem. many answers cause tried access info deleted. never delete in coredata. yet delete zgaihit z_pk = ? , z_opt = ? in log. what perchance problem 2014-06-26 18:44:20.968 isikota[2626:4403] coredata: sql: begin exclusive 2014-06-26 18:44:20.968 isikota[2626:4403] coredata: sql: delete zgaihit z_pk = ? , z_opt = ? 2014-06-26 18:44:20.968 isikota[2626:4403] coredata: sql: commit 2014-06-26 18:44:24.256 isikota[2626:60b] <0xd042b70 newisikotaappdelegate.m:(77)> nav.tabbaritem.title: catalogs 2014-06-26 18:44:24.258 isikota[2626:4403] coredata: sql: begin exclusive 2014-06-26 18:44:24.258 isikota[2626:4403] coredata: sql: commit 2014-06-26 18:44:24.259 isikota[2626:4403] coredata: sql: select count( distinct t0.z_pk) zgaihit t0 2014-06-26 18:44:24.259 isikota[2626:4403] coredata: annotation: total count request execution time: ...

javascript - Get the width/height of the JSFiddle result window while in -

javascript - Get the width/height of the JSFiddle result window while in <head> - is possible dimensions of jsfiddle 'result' window, using vanilla javascript, while in <head> or <body> (referring drop downwards menu on left)? inspecting html, object i'm trying dimensions of: <div id="result" class="window bottom">...</div> here simple example of i'm trying do. i'm asking possible? javascript html onload jsfiddle

Ctags path in vim is different from the shell -

Ctags path in vim is different from the shell - i trying generate ctags vim. utilize exuberant ctags. so problem when :!ctags or :call system('ctags') vim not work because uses default ctags , not exuberant ctags. had similar problem in shell overcame specifying path of exuberant first export path=/usr/bin/local/:$path here weird part when echo $path in vim shows right path. when :call system('which ctags') shows me /usr/bin/ctags , not /usr/bin/local/ctags . can't understand going on?? though can overcome problem call system('/usr/bin/local/ctags') wondering if there improve out there. edit: utilize osx 10.9.3 :set shell? -> shell=/bin/zsh set shellcmdflag -> shellcmdflag=-c and set path in zshrc file export path="/usr/local/bin:usr/local:$path when :!command or :call system('command') vim starts new subshell according values of 'shell' , bunch of other options listed under :help 'shell...

C++ string only letters -

C++ string only letters - i've got this. problem strings must letters only, how can this? i've been sitting on few hours , can't find working solution. i've tried utilize answers topic accept letters guess i'm dumb , still can't create work :( class="lang-cs prettyprint-override"> #include <string> #include <vector> #include <iostream> #include <iterator> #include <algorithm> using namespace std; int main(void) { vector <string> strings; string line; { cout << "enter string, 'stop' stops: "; cin >> line; strings.push_back(line); } while (line != "stop"); vector <string> :: iterator w; cout << "before sorting \n"; (w=strings.begin(); w!=strings.end(); w++) cout << *w << endl; sort (strings.begin(),strings.end()); cout << "after sorting \n"; (w=strings.begin(); w!=strings.end(); w++) cout << *w <...

Powershell replace regex between two tags -

Powershell replace regex between two tags - given block of arbitrary text enclosed specific tags, replace whole chunk else (in example, "banana") $newvar = $oldvar -replace "<!-- url -->(*.)<!-- end -->","banana" is there mode in ps regex not require escaping , can syntax simple accomplish replacement? update: understand should .* , not *. , still no dice. match covers multiple lines, if adds complexity regex or requires other options. it looks me have .* in reverse ( *. ). apart that, try: $newvar = $oldvar -creplace '(?s)<!-- url -->.*?<!-- end -->', 'banana' in response comments, have made .*? lazy not "overmatch" (for details on lazy vs. greedy, see reference section) also in reference comments, (?s) activates dotall mode, allowing .*? match across multiple lines. reference the many degrees of regex greed regex powershell

apache - Call to undefined function curl_init in php 5.2.6 XAMPP 1.6.8 Windows Server -

apache - Call to undefined function curl_init in php 5.2.6 XAMPP 1.6.8 Windows Server - i error on php application : fatal error: phone call undefined function curl_init() i have searched everywhere reply , trust me i've done every solution given still failed overcome problem. far i've tried several solutions such : removing comment ";" in php.ini before extension=php_curl.dll , restart server go http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/ , download fixed curl extensions there , replace php_curl.dll in xampp/php/ext downloaded dlls (each 1 of them 1 one) , restart server change extension=php_curl.dll extension="c:\xampp\php\ext\php_curl.dll" , restart server all solutions didn't work case. think server runs older version of xampp , php (xampp 1.6.8 php 5.2.6), source of problem? i desperate help, tried solutions provided in similar questions in stackoverflow (trust me, there's lot of em) , still couldn...

php - laravel NotFoundHttpException appears though I have the function -

php - laravel NotFoundHttpException appears though I have the function - i have code <li> <a href="{{ url::to('restaurants/admins/25') }}"> <i class="fa fa-location-arrow"></i> profile </a> </li> and in routes, have this: route::resource('restaurants', 'restaurantscontroller'); but got error: symfony \ component \ httpkernel \ exception \ notfoundhttpexception could help please? tl;dr i suggest utilize url restaurants/25/admins instead of restaurants/admins/25 entities ordered big small, i.e. restaurants -> 1 restaurant -> restaurant's admin. so, reply i'm going use: <a href="{{ url::to('restaurants/25/admins') }}"> then in route can do: route::get('restaurants/{id}/admins'), 'restaurantscontroller@admins'); route::resource('restaurants', 'restaurantscontroller'); and in cont...

ruby on rails - Undefined method `to_hash' while saving with reform gem -

ruby on rails - Undefined method `to_hash' while saving with reform gem - i got problem. i'm using reform gem in rails application complex forms. unfortunately stuck while creating form. that's code: class order::form < reform::form include coercion include composition include reform::form::activerecord property :subscription, on: :order property :due_date, type: date, on: :order property :start_fee, numericality: true, on: :order collection :products, populate_if_empty: product, on: :order property :type property :budget end property :campaign, on: :order property :customer_id property :customer property :id property :organization_number end end model :order def persist!(params) if validate(params) binding.pry # begin ::activerecord::base.transaction save |data, map| ... end end # rescue exception # false # end end...

android - Getting Context of a fragment -

android - Getting Context of a fragment - i developing application read spectrum info txt file , using achartengine plotting points. using fragment , trying add together graphicalview returned getview(context context) method of scattergraphplot .java class linear layout of fragment. cannot figure out context passed getview (context context) method graphicalview. piece of code mainactivity.java file reading file , adding view loadspec = (button) findviewbyid(r.id.loadspec); loadspec.setonclicklistener(new onclicklistener() { @override public void onclick(view v) { // todo auto-generated method stub filepath = filename.gettext().tostring(); filepath = "/sdcard/" + filepath + ".txt"; seek { bufferedreader br = new bufferedreader(new filereader(filepath)); string specdata = ""; int channelv...

c# - How to pass a NULL value to Stored Procedure -

c# - How to pass a NULL value to Stored Procedure - i passing datetime param stored procedire inserts value along other valus in table. the code utilize passing variable cmdproc.parameters.addwithvalue("@pi_tdc_datetime_stamp", convert.todatetime(param[7])); now array 'param gets value tsv file , in of rows of file datetime blank ok. need pass null variable. code fails hits such entry , exception throws up. string not recognized valid datetime. @ system.datetime.parse(string s, iformatprovider provider) @ system.convert.todatetime(string value) i know sure code , stored procedure insert values works because inserts 10 values , breaks when hits empty datetime column. how can overcome issue use datetime.tryparse check if there valid date, otherwise pass dbnull.value datetime dt; if (datetime.tryparse(param[7], out dt)) { cmdproc.parameters.addwithvalue("@pi_tdc_datetime_stamp", dt); } else { cmdproc.parameters.addwithva...

css - CSS3 Hide/Show Filter button using Child Selectors? -

css - CSS3 Hide/Show Filter button using Child Selectors? - i'm trying create button hide , show content using css3 kid selectors, trick works minimal markup. soon add together multiple div's within section(where content placed) kid selectors don't hide content anymore rendering hide/show button useless. any help or improve understanding what's going on appreciated it. help. here's problematic markup: css: .please > section:first-of-type { float: right; width: 62.5%; } .please > section:last-of-type { display: none; visibility: hidden; } .please { -webkit-transition: .125s linear; -moz-transition: .125s linear; -ms-transition: .125s linear; -o-transition: .125s linear; transition: .125s linear; } #read_more[type=checkbox] { border: 0; clip: rect(0 0 0 0); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; } [for="read_more...

ios7 - UIImage imageWithContentsOfFile does not work (ImageNamed works fine) -

ios7 - UIImage imageWithContentsOfFile does not work (ImageNamed works fine) - i struggling display image. the next codes work fine. imageview.image = [uiimage imagenamed:@"picture"]; or imageview.image = [uiimage imagenamed:@"picture.png"]; but next codes not work. nsstring *theimagepath = [[nsbundle mainbundle] pathforresource:@"picture" oftype:@"png"]; imageview.image = [uiimage imagewithcontentsoffile:theimagepath]; or imageview.image = [[uiimage alloc] initwithcontentsoffile:[[nsbundle mainbundle] pathforresource:@"picture" oftype:@"png"]]; i tried clean project has not fixed yet. have same experience? imageview.image = [[uiimage alloc] initwithcontentsoffile:[[nsbundle mainbundle] pathforresource:@"picture.png" oftype:nil]]; give shot, xcode not recognize file png file. but why don't remain imagenamed: ? ios7 uiimage xcode5

arrays - Can't create a variable in a while loop in VBScript? -

arrays - Can't create a variable in a while loop in VBScript? - this code causes error me: i = 0 set colors = createobject("scripting.dictionary") while < 7 if true dim a(1) a(0) = "go" a(1) = "try" colors.add "space", end if = + 2 loop i'm not sure why. need similar, initialize dictionary 1 array each key, while loop seems messing up. suggestions? thanks! once you've dimmed array, cannot dimmed again. can, however, redim ed. dim outside loop. if want clear array during each loop, can 1 of following: redim a(1) ' redim without 'preserve' clear array ' or erase arrays vbscript

ios - How to avoid duplicates when adding to core data? -

ios - How to avoid duplicates when adding to core data? - i trying figure out how avoid duplicate info beingness added? having columns unique rows, , if column not unique disallow whole row added. add together row this... if([userprofileid isequaltostring: myid]) { user *users = [nsentitydescription insertnewobjectforentityforname:@"user" inmanagedobjectcontext: _managedobjectcontext]; int = 0; for(i = 0; < responsecount; i++) { [users setuserid:userids[i]]; [users setname:names[i]]; [users setdateretrieved:[nsdate date]]; } //todo have avoid duplicate beingness saved in db nserror *error = nil; if(![_managedobjectcontext save:&error]) { //handle error if not save } [se...

javascript - show a button and strike through only for that particular li element -

javascript - show a button and strike through only for that particular li element - i have next code, works perfectly, except when comes nested li elements might nested under li element targeting: $('#comment-section .comment-box a#un-do').hide(); $('#comment-section ul li[data-is-archived="true"]').map(function() { $('#comment-section ul li[data-is-archived="true"]').css('text-decoration', 'line-through'); $('#comment-section ul li[data-is-archived="true"] a#un-do').show(); }).get(); what strike out text in li element, , show undo link each li element matches particular element (or set of). ul li - strike through works, shows undo button, data-is-archived = true ul li - strike through works, shows undo button, data-is-archived = false why every nested li element getting striked through , having link appear when ones data-is-archived=true should have strike through , link show - ...

r - ggplot2: qplot facet axis scale free while preserving the grid -

r - ggplot2: qplot facet axis scale free while preserving the grid - i have next plot (borrowed http://www.statmethods.net/advgraphs/ggplot2.html): created next code: library(ggplot2) # create factors value labels mtcars$gear <- factor(mtcars$gear,levels=c(3,4,5), labels=c("3gears","4gears","5gears")) mtcars$am <- factor(mtcars$am,levels=c(0,1), labels=c("automatic","manual")) mtcars$cyl <- factor(mtcars$cyl,levels=c(4,6,8), labels=c("4cyl","6cyl","8cyl")) q <- qplot(hp, mpg, data=mtcars, shape=am, color=am, size=i(3), facets=gear~cyl, xlab="horsepower", ylab="miles per gallon") print(q) now i'd axis "scale better". illustration 3 gears column axis scaled range 10 25. still want preserve cyl-gears-grid , want 1 scale per column. so next not expect: q <- qplot(h...

symfony2 - Symfony, Liip Imagine bundle not working on server in prod environment -

symfony2 - Symfony, Liip Imagine bundle not working on server in prod environment - i have project maintain uploaded images in src/my/bundle/resources/uploads/images/full , utilize twig filter imagine_filter dynamically create thumbnails. on local machine works flawlessly , on server, there under dev environment. when delete created thumbnails (leaving full directory), clear prod cache , load web page, images not created, url remains under media/cache, , logger gives me request.error : "no route found "get /uploads/images/avatar/354026c94b773b77ca945b4a6323e15c84102f6b.jpg"" @ /<path>/app/cache/prod/classes.php line 1964 {"exception":"[object] (symfony\\component\\httpkernel\\exception\\notfoundhttpexception: no route found \"get /uploads/images/avatar/354026c94b773b77ca945b4a6323e15c84102f6b.jpg\" @ /<path>/app/cache/prod/classes.php:1964, symfony\\component\\routing\\exception\\resourcenotfoundexception: @ /<pa...

image processing - Building an active appearence model using the menpo API in python -

image processing - Building an active appearence model using the menpo API in python - is there tutorial explaining how can active appearence model can implemented using menpo api in python ? i unable find 1 @ menpo website: http://www.menpo.org/ looks needed more research in website... same problem here tutorial aams , menpo http://nbviewer.ipython.org/github/menpo/menpo-notebooks/blob/v0.3.0/notebooks/deformable%20models/aams%20basics.ipynb python image-processing menpo

django - Why is Heroku installing old Python (pip) dependencies in new deployments? -

django - Why is Heroku installing old Python (pip) dependencies in new deployments? - (asking here directed heroku's own support) we have uncovered dependency issue in project mismatched libraries between dev environments. details aren't relevant, underlying cause dependency had ">=" version match in setup.py - meant when dev rebuilt environment got latest version (0.4.0) instead of old version he'd had (0.3.11), , started getting deprecationwarning . as part of debugging process, under impression whenever repo pushed heroku, clean environment rebuilt, led me assume, incorrectly, our dev environment (which rebuilt daily) have had latest version installed. because weren't seeing issue on dev environment decided investigate, , ran heroku run pip list on remote environment. i (very) surprised see output of lucky dip of old , expired dependencies, , not clean environment @ all. turns out may have had issue debugging living happily on our live envir...

I want to Separate similar value from array In java -

I want to Separate similar value from array In java - see below code , please allow me know correction. have written expected result.. please help me. seek { list<string> associds= new arraylist<string>(); list<string> actionids= new arraylist<string>(); associds.add("1"); associds.add("2"); associds.add("3"); associds.add("5"); actionids.add("2"); actionids.add("3"); actionids.add("7"); actionids.add("4"); actionids.add("6"); list<string> matchfromfirstarray= new arraylist<string>(); list<string> notmatchfromfisrtarray= new arraylist<string>(); list<string> notmatchfromsecondarray= new arraylist<string>(); for(int j=0;j<associds.size();j++) { for(int i=0;i<actionids.size();i++) { if(associds.get(j).equalsignorecase(action...

multithreading - Thread-safe Enumset in Java -

multithreading - Thread-safe Enumset in Java - i utilize next code initialize synchronized instance of enumset: private final set<myclass> instance = collections.synchronizedset(enumset.noneof(myclass.class)); i have 2 questions: do retain benefits of enumset compactness , efficiency in case? is there more... let'say... semantically rich way empty , synchronized instance of enumset? well javadoc: if multiple threads access enum set concurrently, , @ to the lowest degree 1 of threads modifies set, should synchronized externally. typically accomplished synchronizing on object naturally encapsulates enum set. if no such object exists, set should "wrapped" using collections.synchronizedset(java.util.set) method. best done @ creation time, prevent accidental unsynchronized access: set s = collections.synchronizedset(enumset.noneof(myenum.class)); so think that's best can do. i maintain set final did. it's odd don't m...

jquery - Copy to clipboard not working in IE 11 -

jquery - Copy to clipboard not working in IE 11 - for re-create text clipboard in mvc have utilize zeroclipboard.swf , jquery.zclip.js <script> $("#buttoncopylink").zclip({ path: "/content/zeroclipboard.swf", copy: function () { homecoming $('input#copylinktext').val(); } }); </script> this working without issue in browsers not in ie 11. please provide solution prepare issue.. try updating version of flash. had same problem - worked me in chrome failed in ie11. went site: http://www.adobe.com/software/flash/about/ and saw in chrome running v14 in ie11: you have version 11,4,402,287 installed after upgrading flash in ie11, page reported: you have version 14,0,0,145 installed and zeroclipboard worked me. able verify on demo page: http://zeroclipboard.org. jquery copy clipboard zeroclipboard

mysql - List all rows despite join -

mysql - List all rows despite join - i don't understand why trying doesn't work. i have 2 tables table1 id_tb1 | tb1field 1 aaa 2 bbb 3 ccc 4 ddd 5 eee table2 id_stuff | id_tb1 1 1 1 4 1 5 2 1 3 1 what id need bring together tb1 , tb2 list records tb1. : result id_tb1 | tb1field | tb2.id_stuff 1 aaa 1 2 bbb null 3 ccc null 4 ddd 1 5 eee 1 so did : select t1.*, t2.id_stuff table1 t1 left bring together table2 t2 on t2.id_tb1 = t1.id_tb1 t2.id_stuff = 1 but obviously, it's not solution. has an thought ? thx. if add together status on left joined table in clause, if doing inner join. add status left join select t1.*, t2.id_stuff table1 t1 left bring together table2 t2 on t2.id_tb1 = t1.id_tb1 , t2.id_stuff = 1 mysql...

python - Django form submits (I think) but does not send to database -

python - Django form submits (I think) but does not send to database - below code think should working version of email submit form within bootstrap3 modal. upon form submit taken barebones give thanks page, not think email address beingness sent database because can't see in django admin. also, reason think broken form validation not seem working. can submit looks nil email address , still beingness sent give thanks page. do have issues in of files, or isolated specific area? views.py from django.shortcuts import render temp.models import email forms import emailform def index(request): if request.post: form = emailform(request.post) if form.is_valid(): email = emailform() email.save() homecoming render(request, 'temp/thanks.html') homecoming render(request, 'temp/index.html') def thanks(request): homecoming render(request, 'temp/thanks.html') forms.py from dja...

javascript - uglyfy top level functions with gulp -

javascript - uglyfy top level functions with gulp - take simple gulp illustration uglification: gulp.task('scripts', function() { // minify , re-create javascript (except vendor scripts) homecoming gulp.src(paths.scripts) .pipe(uglify()) .pipe(concat('all.min.js')) .pipe(gulp.dest('build/js')); }); if have 2 files: file f1.js : function f1(){ var hello = 1; homecoming hello; } file f2.js : function f2(){ homecoming f1(); } the result of task in all.min.js is: function f1(){var n=1;return n} function f2(){return f1()} how can uglify mangle these top level function names i.e. f1 , f2 ? have tried: an uglify return gulp.src(paths.scripts) .pipe(uglify()) .pipe(concat('all.min.js')) .pipe(gulp.dest('build/js')) .pipe(uglify()); passing mangle option return gulp.src(paths.scripts) .pipe(uglify({mangle: true})) .pipe(concat('all.min.js')) .pipe(gu...

android.view.inflateexception binary xml file line #7 error inflating class fragment -

android.view.inflateexception binary xml file line #7 error inflating class fragment - i new android.i need load image url marker. on doing getting error" android.view.inflateexception binary xml file line #7 error inflating class fragment" code mainactivity package com.ngshah.goglemapv2withlazyloading; import java.util.hashtable; import android.app.activitymanager; import android.content.context; import android.graphics.bitmap; import android.os.build; import android.os.bundle; import android.support.v4.app.fragmentactivity; import android.view.view; import android.widget.imageview; import android.widget.textview; import com.google.android.gms.maps.cameraupdatefactory; import com.google.android.gms.maps.googlemap; import com.google.android.gms.maps.googlemap.infowindowadapter; import com.google.android.gms.maps.supportmapfragment; import com.google.android.gms.maps.model.bitmapdescriptorfactory; import com.google.android.gms.maps.model.latlng; import com.google....

c++ - QImage / Logo in QCustomPlot -

c++ - QImage / Logo in QCustomPlot - how can add together logo/qimage in qcustomplot plot ? i new both qt , qcustomplot . i using c++ qcustomplot* plot = new qcustomplot(parent); logo = new qimage(); bool success = logo->load("logo-wallpaper.png"); how add together logo plot? you can set pixmap of label logo image , add together label layout in plot : qlabel *mylabel = new qlabel(this); mylabel->setpixmap(qpixmap::fromimage(logo)); qgridlayout * layout = new qgridlayout(plot); layout->setalignment(qt::alignright | qt::aligntop); layout->addwidget(mylabel ,0,0); c++ qt qcustomplot

clrs - Can we prove correctness of algorithms using loop invariants in which we prove that it is true after the first iteration rather than before? -

clrs - Can we prove correctness of algorithms using loop invariants in which we prove that it is true after the first iteration rather than before? - clrs says we must show 3 things loop invariant: initialization: true prior first iteration of loop. maintenance: if true before iteration of loop, remains true before next iteration. termination: when loop terminates, invariant gives useful property helps show algorithm correct. my question can edit steps , create them these instead: initialization: true after first iteration of loop. maintenance: if true after iteration of loop, remains true after next iteration. termination: when loop terminates, invariant gives useful property helps show algorithm correct. explanation: utilize principle of mathematical induction prove correctness. using "initialization" prove property holds after 1st iteration. using "maintenance" can show property holds iterations since "initialization"...

iphone - Preventing every push notification being executed iOS titanium -

iphone - Preventing every push notification being executed iOS titanium - if multiple force notifications whilst app in foreground. callback method execute every force notification 1 one. callback : function(e) { if (e.inbackground == 1) { //came background - something. } else { // titanium.ui.iphone.setappbadge(null); //check type, if chat. if (type == 'chat') { //check if window opened or not, if fire event handler if (currentwindow == '_chatwindow') { //update view straight after entering app background. fire event handler ti.app.fireevent('_updatechat', {}); } else if (currentwindow == '_messages') { //refresh messages screen if on messages screen , chat message arrives //update view straight afte...

Cucumber: Unable to find step definition -

Cucumber: Unable to find step definition - i have next feature file: macrovalidation.feature class="lang-gherkin prettyprint-override"> @macrofilter feature: separating out errors , warnings scenario: no errors or warnings when separating out error list given have 0 macros when filter out errors , warnings macros need have 0 errors , need have 0 warnings my definition files. class="lang-java prettyprint-override"> package com.test.definition; import cucumber.api.java.after; import cucumber.api.java.before; import cucumber.api.java.en.given; import cucumber.api.java.en.then; import cucumber.api.java.en.when; import cucumber.runtime.java.stepdefannotation; import java.util.arraylist; import java.util.arrays; import java.util.list; import static org.junit.assert.assertequals; import static org.junit.assert.asserttrue; import static org.powermock.api.mockito.powermockito.doreturn; import static org.powermock.api.mockito.power...

salesforce - VisualForce page with AngularJS tag -

salesforce - VisualForce page with AngularJS tag - i've got interesting question. i have visualforce page angular js. the problem ng-repeat-end tag. the html looks this: <span ng-repeat-end ng-if="$last" class="a nav__links__link" data-nav="control">you here: {{breadcrumb.label}}</span> visualforce won't save error: attribute name "ng-repeat-end" associated element type "span" must followed ' = ' character. so alter offending tag this: <span ng-repeat-end="" ng-if="$last" class="a nav__links__link" data-nav="control">you here: {{breadcrumb.label}}</span> which makes visualforce happy angular js mad error: unterminated attribute, found 'ng-repeat-start' no matching 'ng-repeat-end' found. how can satisfy both visualforce's parser , angularjs? at end of day visualforce needs valid xml document. s...