Posts

Showing posts from August, 2011

php - SQL query with multiple joins impacting performance -

i have relational mysql database 4000 records. contacts table related both keywords , notes tables manny-to-many relationships. wrote query (with php) retrieve each contact record and, each contact, related notes , keywords in group concat function. if grab contacts, query performs relatively 2 left joins , group concat, takes 30 seconds. there way speed up? here query: select c.*, group_concat(distinct n.id, '[-]', n.value, '' separator '---') notes, group_concat(distinct kk.id, '[-]', kk.value) keywords contacts c left join notes n on c.id n._contactid left join ( select k.*, kc._contactid contactid keywords k inner join keywords_contacts kc on k.id kc._keywordid ) kk on kk.contactid c.id group c.id order c.`last name`, c.`first name` i query can see c.id n._contactid , here making performace low use = operator , give index foreign key field _contactid . ...

Javascript: How to replace document.all in this case? -

in html: <td><input type="checkbox" name="checkall" onclick="doconfirmcheckall()"></td> ...and in js: document.all.checkall.checked = false; i have replace construct same meaning cannot use document.all (e.g. because of unsupport in ie11). what should use? document.getelementsbytagname("*").checkall.checked idea? if checkall name attribute, you'd use document.getelementsbyname ("checkall")[0].checked = false; if checkall id attribute, you'd use document.getelementbyid ("checkall").checked = false;

android - In Scroll View Edit text has scroll both are worked but in edit text if we type no of lines user can't see edit text it is scroll to top. -

in layout have scroll view in scrollable edit text.both working using setontouchlistener .if touch edittext scroll , layout scroll interact. problem when user typing edittext moving top of layout , user can't see edit text field. at time user typing both scrolls working. think solution when user clicked on edit text need stop layout scroll.in way edit text visible user , not moving when user typing.but don't know how implement if know please me. layout code:- <scrollview xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <relativelayout android:layout_width="match_parent" android:layout_height="match_parent" android:paddingbottom="@dimen/activity_vertical_margin" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margi...

arrays - C# foreach loop take values from outer loop to inner loop -

i have below code. int[] = new int[] { 8, 9 }; for(int i=0;i<n;i++) { print i; int z; //during first iteration z=8; during second iteration z=9; } output should this. during first iteration i=0 , z=8 during second iteration i=1 , z=9 array contains 2 elements. n , number of elements in array same. next loop execute. during first iteration want z value should 8(first element of array ) , second iteration z value should 9. want map 1st element of integer array first iteration of loop , on. try for (int = 0; < a.length; i++) // or < n if want { print i; int z = a[i]; // line value 1 one, 0, 1, 2, 3 , on... } edit 1 - after seeing comments on other answer, array 'a' turns out dynamic array have size n (which 2) the revised edition: int n = 2; int[] = new int[n]; string input = null; (int = 0; < a.length; i++) // or < n if want { print i; input = console.readline(); try { a[i] =...

Why can't Ifind Input Id in sap ui5 using the function sap.u.getcore.byId()? -

i'm trying access input field in controller of ui5 i'm not able fetch input box? i'm using sap.ui.getcore().byid('id of input'); i faced similar issue when started using ui5. id not same anymore because sap ui5 dynamically concatenates other properties id different. hope helps. try finding out id after has been changed resources.

php - Download redirect only in woocommerce -

i customize function handles redirect virtual product purchase page. this method: /** * redirect file start download * @param string $file_path * @param string $filename */ public static function download_file_redirect( $file_path, $filename = '' ) { header( 'location: ' . $file_path ); exit; } how can update without modify core class in way? public static function download_file_redirect( $file_path, $filename = '' ) { header( 'location: ' . $file_path . '&order=' . $_get['order'] ); exit; } updating class works like. not change woocommerce core. there way filter method? not have time modify core each update hooks available in woocommerce same, hope below code you. // define woocommerce_download_product callback function action_woocommerce_download_product( $download_data_user_email, $download_data_order_key, $download_data_product_id, $download_data_user_id, $download_data_downloa...

Is it possible to add a flag icon using the Magento admin panel? -

using magneto website , need display 2 different languagse. have set flag icon each location. 1 english , 1 arabic. possible add flag icon using magento admin panel, not in root folder. you can use extension https://www.magentocommerce.com/magento-connect/easy-flags-module.html can customize in way.

javascript - Get key of an object when the key is an object -

let obj1 = { 1: 1 }; let obj2 = {}; obj2[obj1] = 2; let keys = object.keys(obj2); // first (let key of keys) { console.log(key) // [object object] } (let prop in obj2) { console.log(prop) // [object object] } let key = keys[0]; // second console.log(typeof key); // string console.log(json.stringify(key) === json.stringify(obj1)); // false // thirth console.log(obj2['[object object]']); // 2 obj2[{}] = 3; // fourth console.log(obj2['[object object]']); // 3 console.log(obj2[obj1]); // 3 i have 4 questions: 1/. in first: there way object { 1: 1 } instead of [object object] ? 2/. in second: why getting string when trying type of object (not object )? 3/. in thirth: key of object object. so, why can assign via string? 4/. in fourth: after adding object obj2 , obj1 has been overridden although {} different obj1 (not duplicate key). why? javascript objects can use strings keys. th...

c# - Why don't the images don't show up on my ASP.Net core website? -

i have asp.net core web application , want add photos when try debug on iis express, image icon shows , i'm not quite sure do. of images jpg's , in folder inside of wwwroot folder. how reference photos: <img src="~/images/picture.jpg" /> i not sure make photos show up. make sure allowing static files served: public void configure(iapplicationbuilder app, ihostingenvironment env, iloggerfactory loggerfactory) { app.usestaticfiles(); } you can read more here: https://docs.asp.net/en/latest/fundamentals/static-files.html

Python Code to create Google Project -

is possible create new google developer/cloud project(for existing google account) automatically using python script ? if possible, can please redirect me helpful links/references ? thanks, is possible?: yes, using app engine's admin api or cloud resource manager apis although functionality in beta of time of writing (08-24-2016). can access them directly or through client library. directly via rest api: app engine admin api v1beta5 : create post /v1beta5/apps creates app engine application google cloud platform project. requires project excludes app engine application... more: https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps/create cloud resource manager api v1beta1 : post https://cloudresourcemanager.googleapis.com/v1beta1/projects/ creates project resource. and example request: { "name": "project name", "projectid": "project-id-1", "labels": { ...

iis - How to redirect any url that have hyphens to home url in asp.net mvc 5 -

i creating new site 1 of client. old site developed using wordpress , hence has 100s of broken urls below: http://www.example.com/best-gym-in-town/ http://www.example.com/video-gallery/ http://www.example.com/fun-stuff/ http://www.example.com/are-you-a-diabetes-patient/ http://www.example.com/john-in-media/ http://www.example.com/photo-gallery/ http://www.example.com/nutrition-program-that-suits-your-lifestyl/ http://www.example.com/our-range-of-fitness-tests/ http://www.example.com/corporate-group-workshops/some-article/another-article i developing new site in asp.net mvc 5. want write httpredirect rule in web.config can redirect of above url home or specific page. so far how thinking of solution <location path="about-me"> <system.webserver> <httpredirect enabled="true" destination="/home" httpresponsestatus="permanent" /> </system.webserver> </location> but have write 100s of such ent...

node.js - Getting 404 when attempting to publish new package to NPM -

i created new package: https://github.com/supericium/pli i'm trying publish npm first time this: ole@mki:~/sandbox/pli$ npm publish --access public npm err! publish failed put 404 npm err! linux 3.13.0-93-generic npm err! argv "/home/ole/.nvm/versions/v6.4.0/bin/node" "/home/ole/.nvm/versions/v6.4.0/bin/npm" "publish" "--access" "public" npm err! node v6.4.0 npm err! npm v3.10.3 npm err! code e404 npm err! 404 not found : @supericium/pli npm err! 404 npm err! 404 '@supericium/pli' not in npm registry. npm err! 404 should bug author publish (or use name yourself!) npm err! 404 npm err! 404 note can install npm err! 404 tarball, folder, http url, or git url. npm err! please include following file support request: npm err! /home/ole/sandbox/pli/npm-debug.log i tried updating both nodejs , npm make sure have latest version, are: ole@mki:~/sand...

c# - Handle Document Download in Selenium -

i had automated tool in selenium using chrome driver navigates website,search , downloads documnet clicking on download button when clicked download button opened in chrome pdf viewer, had disabled chrome driver as chromeoptions options = new chromeoptions(); options.addarguments("test-type"); options.addarguments("disable-popup-blocking"); options.addargument("disable-extensions"); options.adduserprofilepreference("plugins.plugins_disabled", new[] { "adobe flash player", "chrome pdf viewer" }); options.adduserprofilepreference("download.default_directory", tempdownloadfolder); iwebdriver webdriver = new chromedriver(chromebrowser_exe, options); now after clicking download button document being processed in browser , download full document. i had used thread.sleep(180000) - 3 minutes wait document download , other proccess. some documents being down...

how to set an auto increment id in Android realm-java? -

do know how set auto incremental id in android realm java,i know realm @ moment doesn't have support built in sq lite. pass name of model class extending realmobject , change column name "con_id" id field (primary key)of model class. call method , give 1 id can use insert new record new id. public static long getuniqueid(realm realm, class classname) { number number = realm.where(classname).max("con_id"); if (number == null) return 1; else return (long) number + 1; }

c - Reverse Link List is not printing while using reverse iteration method -

i trying print link list in reverse order when run it's not printing out. stopping after printing correct order , output screen hangs after that. here's code: #include<stdio.h> #include<conio.h> #include<stdlib.h> struct node{ int data; struct node *next; }; void reverse(struct node*); void main() { struct node *a; char ch; struct node *temp; struct node *temp1; a=null; clrscr(); { if(a==null) { temp=(struct node*)malloc(sizeof(struct node)); printf("enter data"); scanf("%d",&temp->data); temp->next=null; a=temp; } else { temp=(struct node*)malloc(sizeof(struct node)); temp->next=null; printf("enter data element"); scanf("%d",&temp->data); temp1=a; while(temp1->next!=null) { temp1=temp1->next; } temp1->next=temp; } printf(...

scala - SparkContext: error initializing SparkContext. java.net.UnknownHostException: master -

i new spark , intellij. have build.sbt file below: name := "testspark" version := "1.0" scalaversion := "2.11.8" // https://mvnrepository.com/artifact/org.apache.spark/spark-core_2.11 librarydependencies ++= seq("org.apache.spark" % "spark-core_2.11" % "1.6.2","org.apache.hadoop" % "hadoop-client" % "2.6.2") i have testmain.scala in src/main/scala-2.11/testmain.scala import org.apache.spark.{sparkcontext,sparkconf} /** * created tuannv5 on 24/08/2016. */ object testmain { def main(args: array[string]) { val conf = new sparkconf().setmaster("local[*]").setappname("test spark").set("spark.executor.memory","2g") val sc = new sparkcontext(conf) val data = sc.parallelize(1 1000000).filter(_<10000) data.foreach(println) } } for reason when run app in intellij. error: using spark's default log4j profile: org/apache/spar...

image - How to make a TIFF transparent in Java using JAI? -

i'm trying write tiff bufferedimage using java advanced imaging (jai), , unsure of how make transparent. following method works making pngs , gifs transparent: private static bufferedimage maketransparent(bufferedimage image, int x, int y) { colormodel cm = image.getcolormodel(); if (!(cm instanceof indexcolormodel)) { return image; } indexcolormodel icm = (indexcolormodel) cm; writableraster raster = image.getraster(); int pixel = raster.getsample(x, y, 0); // pixel offset in icm's palette int size = icm.getmapsize(); byte[] reds = new byte[size]; byte[] greens = new byte[size]; byte[] blues = new byte[size]; icm.getreds(reds); icm.getgreens(greens); icm.getblues(blues); indexcolormodel icm2 = new indexcolormodel(8, size, reds, greens, blues, pixel); return new bufferedimage(icm2, raster, image.isalphapremultiplied(), null); } but when writing tiff, background white. below code used writing tiff: ...

ios - PageViewController scroll bug (over scrolls) -

i following tutorial here , had make few changes fit project ( code of variation here , sorry put on github because it's bit lengthy copy , paste). when swipe right last vc, automatically closes on sight. other times works if swipe last vc stays there until swipe right again close it. i've placed print statements in code me find bug is. here print statements when works , when doesn't work . looking @ logs, since exact same code accessed in same order, i'm not sure how fix bug. problem doesn't occur when transition style pagecurl instead of scroll . first need know how pageviewcontrollers work. after first page loaded, moment start scroll try load next page. first page. after reach page preload next page (depending on direction) , have ready. in case when reach page 5 pageviewcontroller try preload next page leads part of code guard orderedviewcontrollerscount != nextindex else { print("last item in coachamrks going dismiss")...

powershell - Search members in Group Distribution Exchange -

i'm using following code members in group. get-distributiongroupmember -identity "marketing usa" the problems is, of groups have more 1000 members. instead of loading records, there better way can filter result see members need. i search primary email , display name . my exchange versions 2010 , 2013 . for both exchange 2010 , 2013 can search email address creating list of email addresses in regex form separated | . use -imatch match email addresses need. note : search both primary , secondary address. $emailaddress = [regex]"username1@domain.com|username2@domain.com|username3@domain.com" get-distributiongroupmember -identity "marketing usa" | { $_.emailaddresses.smtpaddress -imatch $emailaddress } then searching display name can use regex in same way separating names | . $displayname = [regex]"firstname1 lastname1|firstname2 lastname2|firstname3 lastname3" get-distributiongroupmember -identity "marketin...

java - making AnchorPane resizeable based on its parent -

i have column 3 rows. each row includes image . column child of gridpane . can see in following fxml : <gridpane gridpane.columnindex="1"> <columnconstraints> <columnconstraints hgrow="sometimes" maxwidth="7.0" minwidth="0.0" prefwidth="0.0" /> <columnconstraints hgrow="sometimes" maxwidth="30.0" minwidth="10.0" prefwidth="30.0" /> </columnconstraints> <rowconstraints> <rowconstraints minheight="10.0" prefheight="30.0" vgrow="sometimes" /> <rowconstraints minheight="10.0" prefheight="30.0" vgrow="sometimes" /> <rowconstraints minheight="10.0" prefheight="30.0" vgrow="sometimes" /> </rowconstraints> <children> <imageview fitheight="31.0" fitwidth="29.0" onmous...

python - Seaborn kdeplot not plotting some data? -

i'm trying seaborn kdeplot example work on dataset. reason, 1 of datasets isn't plotting @ all, other seems plotting fine. minimal working example, have sampled 10 rows large data sets. my input data looks this: #dataframe dfa index x y category 0 595700 5 1.000000 14.0 1 293559 4 1.000000 14.0 2 562295 3 0.000000 14.0 3 219426 4 1.000000 14.0 4 592731 2 1.000000 14.0 5 178573 3 1.000000 14.0 6 553156 4 0.500000 14.0 7 385031 1 1.000000 14.0 8 391681 3 0.999998 14.0 9 492771 2 1.000000 14.0 # dataframe dfb index x y category 0 56345 3 1.000000 6.0 1 383741 4 1.000000 6.0 2 103044 2 1.000000 6.0 3 297357 5 1.000000 6.0 4 257508 3 1.000000 6.0 5 223600 2 0.999938 6.0 6 44530 2 1.000000 6.0 7 82925 3 1.000000 6.0 8 169592 3 0.500000 6.0 9 229482 4 0.285714 6.0 my code snippet l...

css - Mobile Site ignores meta=viewport and is zooming-in any thumb or content -

it seems add meta work mobile version of site , ignored , full-zoomed ( when visit site on mobile ) actual size of have in css. > tried : > <meta name="viewport" content="width=device-width,> initial-scale=1, maximum-scale=1"> & > <meta name="viewport"> content="width=device-width"> as matter of fact, took off line in hope not scale, still zoom-in ! the header, seems ok, , scaling on mobile , else, zoomed-in . exemple : thumb 728x410 in css , yet , or without mobile meta viewport , still have same size on mobile makes huge! also, when website loading on mobile, actual meta=viewport works , meaning if have set have 320 px on mobile, thumbs show should , when website loaded, bum .. 728px have in css! anyone knows how fix this? thanks! having built many responsive websites, have state if have content wider mobile screen (in case 320px, iphone only?), mess up. solve this, make sure have few...

html - Can't make three divs with background images responsive -

i have 3 divs contain background images ( background-image: url() ) i'm having issues in making them responsive (using bootstrap) , putting spacing between them. tried things width: 100% , margin: 0 auto adding margin property kinda removes margin , images lose spacing between each other if margin used while padding of course doesn't work. reason cannot add width images height. http://codepen.io/skullscream-1471533661/full/jaoojb i'd google has got me frustrated can't think of google. flexbox excellent making sort of thing easy. here great resource flexbox learn from. here i've given parent "display: flex" make children flex elements. i've made children 32% wide (leaving 1% gap). i've set parent "justify-content: space-between" tell flex elements leave space between each item. on mobile i've given parent "flex-wrap: wrap" if wide they'll drop next line, , children 100% width span full width of device...

javascript - Clicking on an empty anchor link sends the user to the top of the page -

i have 2 empty anchor links <a href="#"> used create tabs. please take @ jsfiddle: https://jsfiddle.net/mrsnrub/cuuy5cbp/ the problem user goes top of page when going tab tab. use jquery-ui's tabs, have same html element each tab, , think jquery-ui's tabs force have different html elements in each tab. i want use these tabs further down page, , making user scroll down after every tab switch not user-friendly. how fix this? update: if click on "tab 1" activate it, shouldn't able hit tab key on keyboard , tab 2 highlighted. use <a href="javascript:void(0)"> . https://jsfiddle.net/obybyvds/ here's explanation of why works

java - Running Abstract Methods from other classes -

im working on project , ease of use wanted able create class extending "screen" interface , screen class initialised main method - //screen interface public abstract interface screen { public abstract void init(); } //screen implementation public class game implements screen { @override public void init() { //do stuff } } //main class public class main { public static void main(string[] args) { screen s = new screen(); s.init(); } } but doesn't work because cant instantiate abstract class. have tried screen.init(); but cant call method unless static. how can i'm trying achieve? if not clear enough please ask in comments don't flag , update question. edit: know can instantiate game class not point of this. trying run init method in every class implementing screen interface dont have specify each 1 induvidually. why not game s = new game (); s.init (); or if have use screen interface the...

photoshop - Optimizing image for full page desktop with supports for responsive design -

recently have requested 1 of friend design website non profit charitable organization. friend developed using html , bootstrap. delivered website. found website loading slow. the website has full page image slider in homepage. 3 images can changed using slider. image size, resolution may issue. please refer below image link image details my friend sick , hospitalised. not time me ask modify images. have photo shop. need or share links can myself. here area need help. 1) per image, image sizes 1900 x 920 pixels. resolutions 300 , 72 dpi. given current desktop/laptop displays resolution , cellular phone, resolution should save, should size? 2) if need higher resolution (as 1 of image 72 dpi) can increase resolution higher resolution in photoshop? images natural agricultural farm. 3) how reduce file size without affecting image dimensions (width x height)? guidance? tutorial links? appreciate :) 4) replace 1 image s2.jpg image took using digital camera. image size repla...

linux - Execute root command with no root user avoiding password prompt -

i have script.sh file executing following command: chown -r apache:apache /var/www/html/my/data if try execute non-root user (username = marco), prompt password halts script waiting input. i'm trying configure /etc/sudoers file adding following lines, none of them works , i'm prompted sudo password: marco all=(all:all) nopasswd:/my/directory/structure/script.sh marco all=(all) any clue? thank you. if need root permission run chown , there no need give whole script root permissions. place in script: sudo chown -r apache:apache /var/www/html/my/data and, using sudoedit , add line: marco all=(all:all) nopasswd:chown -r apache:apache /var/www/html/my/data

mysql error message on stored procedure -

i having trouble displaying error message here's wrote: delimiter go create procedure getusers( in iemailaddress varchar(30), in ipassword varchar(30)) begin declare exit handler sqlexception -- 1 checking empty email address , suppose -- display error message. select emailaddress users not exists( select emailaddress users emailaddress=iemailaddress signal sqlstate value '99999' set message_text = 'email address not exists'; ) end begin declare exit handler sqlexception -- 1 checking empty password , suppose -- display error message. select password users not exists( select password users password=ipassword signal sqlstate value '99999' set message_text = 'password not exists'; ) end begin select emailaddress, password,...

php - How to select from first table if ID exist in second or third table with high efficiency? -

i have 3 tables in assignment. first table: patient: patid, fname, lname, recordnum. patientdr: patid, drid, patientclin: patid, clinid. i need select patients fname, or lname if "patid" in table "patient" found in table "patientdr" if drid="$docotr->id" or "patientclin" if clinid="$clinic->clinid" this query select t1.* patient t1 patlname '{$search_patlname}%' , patfname '{$search_patfname}%' , ( exists (select patid patientdr t2 t2.drid = '{$doctor->id}' , t2.patid = t1.patid) or exists (select patid patientclin t3 t3.clinid = '{$clinic->clinid}' , t3.patid = t1.patid) ) limit 10 the number of patients can high, data retrieved using ajax , taking in consideration following note: "sql statements use exists condition in mysql inefficient since sub-query re-run every row in outer query's table. there more efficient ways write...

java - Right work whit path at RESTful api with spring mvc, angular and hibernate -

i have designprojects.jsp want runned after logincontroller , want path include current month , year , looks : ..../designprojects/2016/08/ want use path angularjs crud . how make right? should write rest_service_uri in angular_service file? may rest_service_uri = '........./designprojects/{year}/{month}/'; ? guys..... my logincontroller : @controller public class logincontroller { @autowired private loginservice loginservice; @requestmapping(value = "/", method = requestmethod.get) public string index() { return "redirect:/login"; } @requestmapping(value = {"/login"}, method = requestmethod.get) public modelandview displaylogin(user user) { modelandview model = new modelandview("/login"); model.addobject("user", user); return model; } @requestmapping(value = "/login", method = requestmethod.post) public modelandview executelogin(httpservletrequest request, @modelattribute("user"...

sql - Case Statement having no effect on output -

i trying sums of donations based on bank approval status , grouped gift kind. however, script outputs rr , nr donations on separate lines (see below script). seems case statements aren't working @ all. select gift_kind, case when c.bank_approval_status = 'ap' sum(c.charge_amount) end approved, case when c.bank_approval_status in ('rr','nr') sum(c.charge_amount) end rejected, case when c.bank_approval_status = 'ar' sum(c.charge_amount)*-1 end refunded, case when c.bank_approval_status not in ('ar','ap','rr','nr') sum(c.charge_amount) end other_status charge_log c, transactions t c.account_id=t.account_id , c.process_id= 'chg - 02532' , c.gift_date=t.gift_date , c.gift_seq=t.gift_seq , c.pledge_number=t.pledge_number , t.sts='a' group t.fund_type, t.gift_kind, c.bank_approval_status order...

regex - Grepping for a pattern followed by another pattern and excluding what lies inbetween as ouput -

i want egrep -o '(mon|tues)[1-3]?[0-9].*(mon|tues)[1-3]?[0-9]' and isn't found (mon|tues)[1-3]?[0-9] with input mon19hellotues20 mon19world hellomon19 tues8worldtues22 i want mon19tues20 tues8tues22 as output sed better tool print matched txt in output: sed -ne 's/(mon|tues)([1-3]{0,1}[0-9]).*(mon|tues)([1-3]{0,1}[0-9])/\1\2\3\4/p' file mon19tues20 tues8tues22

android - WebView cut off -

i have webview supposed show webcam films. when go webcam mobile's browser works fine, when try application looks this: http://i.imgur.com/muohsrh.jpg for reason zooms in, , part of screen thats "outside" unreachable, when trying drag, scroll or zoom out (as can seen in picture, i'm trying drag screen right). what able find regarding problem this: android - webview cuts off i've tried solutions there, no avail. would appreciate help. thanks! managed find answer. x.getsettings().setloadwithoverviewmode(true); x.getsettings().setusewideviewport(true); (when x webview) fitting webpage contents inside webview (android)

Excel Macro Save.As Date -

i have macro takes master workbook & saves bunch of different copies different labels. example of section 1 workbook: range("e1:g1").select activecell.formular1c1 = "099 commercial" chdir "t:\accounting\aspen pre-payroll (shared)\_payroll emails" activewindow.view = xlnormalview activewindow.zoom = 50 activeworkbook.saveas filename:= _ "t:\accounting\aspen pre-payroll (shared)\_payroll emails\099 payroll bundle crew & exp.xlsx" _ , fileformat:=xlopenxmlworkbook, createbackup:=false so label after macro saves looks 099 payroll bundle crew & exp 099 payroll bundle 08-23-2016 crew & exp 08-23-2016 being date located in specific cell =rc[-1] however, usuals " & format(date, "mm-dd-yyyy") & " & " & format(now(), "mm-dd-yyyy") & " not work & gives me compile error pop-up. my knowledge macros limited appreciated! edit: e...

'Advanced' Batch Code With BITSADMIN? -

so, making simple 'updater' program batch. able find , use code: bitsadmin /transfer download /download /priority normal http://downloadsite.com/file.zip c:\file.zip i wondering if @ possible compare files or similar? example, in installation directory there file named 'test.exe' , same named file on download site. depending on file larger, either download new file or keep old. possible?

How to configure subprojects as Java and Android at the same time with gradle -

i try correctly configure multi project build gradle. the difficulty have 3 projects , want build android application normal java8 application (runnable jar). therefore, have android project, java8 application project , plain java project common code both applications share. with following setup, can compile both applications. the android project applies "com.android.application" plugin , has dependency on common project the java application project applies "application" plugin , has dependency on common project the common project applies "java" plugin in order use lambda expressions, i'm using retrolambda in android project , java 8 in java application. obviously, cannot use full java8 in common project, break android application. to able use lambda expressions in common project, have set sourcecompatibility java 1.8. makes possible use e.g. java8 stream apis in common project. when compile android project, not compile error. obviou...

jquery - Make bootstrap modal work with another website using greasemonkey/tampermonkey (eg SO) -

i'm trying add couple of buttons, when clicked bootstrap dialogbox/modal should pop up. demo: http://jsbin.com/wiruhepere/1/edit?html,css,js,output however when applying using greasemonkey/tampermonkey on real website, let's stackoverflow: it's not working @ !! i'm suspecting script/css conflict maybe don't have knowledge track down :< what i'm looking is: make modal appear when clicking on "delete" button when clicking on "ok" confirm, grab/intercept answer other stuffs... please bear in mind i'm beginner in this, if soemthing isn't clear enough, feel free ask :-) updated gm code based on woxxom comments: // ==userscript== // @name bootstrap test // @namespace http://tampermonkey.net/ // @description why hell modal isnt working :< // @author enissay // @include http://stackoverflow.com/* // @include https://stackoverflow.com/* // @resource jqueryjs https://ajax.googleapis.com/ajax/l...