Posts

google scripts onedit -> email trigger for range produces an email for each edit -

i know happening by-design i'm trying figure out how people deal - tried few different approaches think i'm not thinking right way ( i'm more of bash scripter :) ). i have google sheet script onedit on range of cells: if cell in range edited, email sent. good! now, if edits, 5 cells in range, 5 emails sent. bad! so seems need way have each script run "know" each other , send email after amount of time after first cell edited? i looked @ clue setting flag prevent other edits... https://developers.google.com/apps-script/articles/sending_emails#section2 i have imagine common thing figure out it's not coming me. thanks guys ideas, jl use script propertiesservice save timestamp. example script below send email once day. https://developers.google.com/apps-script/reference/properties/ var settings = propertiesservice.getscriptproperties(); var lasteditemaildate = settings.getproperty('lasteditemaildate'); var today = new date().t...

java - Spring HttpMessageConverter for only one Controller? -

i'm aware of , comfortable using spring message converters automatically convert objects controller returns into, e.g. json. however, haven't been able find information applying particular message converter only one of several controllers in app. basically, have 1 particular piece of app show audit log entries, , ever viewed admin, doesn't need pretty. i'd write quick httpmessageconverter takes list<auditentry> , returns string html table of entries, else in app user-facing , gets sent on json. possible? didn't see mention of in docs read. if is, what's magic xml? the @requestmapping anotation has produce produces producible media types of mapped request, narrowing primary mapping. so in case of json have in produce - "application\json" when want return html can use "text\html" , use modelandview of spring-mvc

java - Mapreduce Hbase file not found exception -

i trying populate data hbase using mapreduce time , again throwing following exception :- 15/04/29 21:35:37 warn mapreduce.jobsubmitter: hadoop command-line option parsing not performed. implement tool interface , execute application toolrunner remedy this. 15/04/29 21:35:38 info mapreduce.jobsubmitter: cleaning staging area file:/home/hduser/hadoopdir/mapred/staging/hduser2144453758/.staging/job_local2144453758_0001 exception in thread "main" java.io.filenotfoundexception: file not exist: hdfs://localhost:54310/usr/lib/hbase-0.98.12-hadoop2/lib/hbase-protocol-0.98.12-hadoop2.jar the jar given in path , provided nodes. still keeps on giving error. appreciated. command :- $ hadoop jar hbase-bulkimport.jar org.apache.hadoop.conf.configuration.driver /user/466708/workexample/ output/ nbafinal2010 logs:- 15/04/29 21:35:37 warn mapreduce.jobsubmitter: hadoop command-line option parsing not performed. implement tool interface , execute application toolrunner re...

javascript - Hiding dynamically generated divs on 'Click Event' -

i working on project have created 4 divs dynamically, first "display:block". when click next, second div "display:block" , 1st, 3rd, 4th "display:none"; problem when click next button fast 2 times - 2 divs "display:block" , both seen on screen. have tried following code, fed of this. there way control show-hide of dynamically generated divs? <script> /* first check 1 div must show on click of 4 clickable buttons - failed .. ;( */ $(document).ready(function(){ $('span#backpage').click(function(){ var alpha1 = $('div.ui-formwizard-content').css('display','block'); $('div.ui-formwizard-content').css('display','none'); alpha1.css('display','block'); }); $('span#nextpage').click(function(){ var alpha1 = $('div.ui-formwizard-content').css('...

vhdl - Floating point to fixed point coversion -

i'm creating hardware module using fixed point computations. input floating point, , wish convert floating point input fixed point (q8.8). i've been trying use david bishops library ( http://vhdl.org/fphdl/ ) floating points , fixed point. works in simulation, not when synthesize it. e.g. in following code output y routed ground when synthesized. library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; library ieee_proposed; use ieee_proposed.fixed_float_types.all; use ieee_proposed.fixed_pkg.all; use ieee_proposed.float_pkg.all; entity sigmoid port ( clk : in std_logic; x : in float32; y : out sfixed(15 downto -16) ); end sigmoid; architecture behavioral of sigmoid signal size : sfixed(15 downto -16); begin set_c: process(clk) begin if rising_edge(clk) y <= to_sfixed(x, size); end if; end process; end behavioral; from i've been reading on various for...

android - How to use the camera with images? -

Image
i want make application contains image , background can use device camera. know how launch camera not how put image forward. example application: https://play.google.com/store/apps/details?id=com.kat.police.photosuit.montage anybody know tutorial explaining how or code? i have searched can not find perhaps because english not good. in advance please check example: http://examples.javacodegeeks.com/android/core/ui/surfaceview/android-surfaceview-example/ and use layout activity_main.xml <?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context="com.javacodegeeks.androidsurfaceviewexample.androidsurfac...

javascript - Have a pop up window when clicking on an image -

sometime in websites see when click on edit image, pop window appears. in pop window, there may example, check box list, or can attach file,... , there , ok or return button. how can implement kind of window? should use javascript? know website tutorial? when implementing dialogs / popups in past, have used jquery dialogs. can find documentation here jquery dialogs: https://jqueryui.com/dialog/ .