Posts

Showing posts from August, 2015

python - How can I edit my parser to properly group "AND" and "OR" predicates? -

i trying write small parser able parse simple key = value queries. should smart enough handle and , or groups, and having higher precendence. example text-input: a = 10 && b = 20 = 10 || b = 20 = 10 && b = 20 || c = 30 the first 2 trivial. last should group first 2 predicates "and" group, , group should grouped in "or" group. i have basics down, got stuck on proper grouping. using ply uses flex/bison/lex/yacc syntax define grammar. if i'm totally heading down wrong track existing syntax please let me know... valuable learning experience concerning parsers. i've tried setting precedence, don't think it's caused reduce/reduce conflict. think it's more of issue of way i've defined grammar in general, can't figure out need change. below current implementation , unit-test file. test-file should understanding expected output. there's 1 failing test. that's 1 causes me headaches. the tests can run u

c++ - CppDB compilation errors -

i followed following steps in order build cppdb: svn co http://cppcms.svn.sourceforge.net/svnroot/cppcms/cppdb/trunk cppdb-trunk cd cppdb-trunk cmake ~/desktop/cppdb-trunk make make install afterwards, i'm trying compile , run file example1.cpp examples directory. when run gcc example1.cpp following errors: /tmp/ccgwenrv.o: in function main': example1.cpp:(.text+0x2a): undefined reference to std::allocator::allocator()' example1.cpp:(.text+0x42): undefined reference std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)' example1.cpp:(.text+0x58): undefined reference to cppdb::session::session(std::__cxx11::basic_string, std::allocator > const&)' example1.cpp:(.text+0x64): undefined reference std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' example1.cpp:(.

python - Cannot upload large file to Google Cloud Storage -

it okay when dealing small files. doesn't work when try upload large files. i'm using python client. snippet is: filename='my_csv.csv' storage_client = storage.client() bucket_name = os.environ["google_storage_bucket"] bucket = storage_client.get_bucket(bucket_name) blob = bucket.blob("{}".format(filename)) blob.upload_from_filename(filename) # file size 500 mb the thing traceback "killed" , i'm out of python interpreter. any suggestions highly appriciated edit: works okay local machine. application runs in google container engine, problems occurs there when runs in celery task.

csv - Ignore NewLIne inside a field in FileHelpers C# -

i new using filehelpers class parsing csv. have file this... "background","info","agent abcdefg =================== context tenant: {vendor: 1, customer: 719046046}","2,140.69","","7/11/2017 3:30 am" i ignore newline , read 1 string. can please help? so @ end of line \r\n , want removed. you can use [fieldquoted] this: public class yourrecordclass { [fieldquoted()] public string field1; [fieldquoted()] public string field2; [fieldquoted(quotemode.optionalforboth, multilinemode.allowforboth)] public string field3; [fieldquoted()] public string field4; [fieldquoted()] public string field5; [fieldquoted()] public string field6; }

ios - Not Able to read Xcode crash log -

Image
i received crash in app released on app store few days ago. got crash report in xcode 8.3 not able debug it. can going through report?. have attached screenshot of crash report inside xcode. you can symbolicate crash report lot of methods. first, need save .app file caused crash. , .crash file , dsym file. can download dsym organiser. symbolicate crash report doing this: put .app, .crash , dsym files in on folder go folder in terminal write below line : xcrun atos -o myapp.app/myapp -arch armv7 -l 0xb7000 -f whateverthernameis.crash references: how symbolicate crash log xcode 7? how can find memory location apple crash report? app crash.? symbolicating iphone app crash reports new xcode crash organizer not symbolicate .xccrashpoint files atos cannot symbols dsym of archived application

ruby - How to merge values of a single hash? -

is there way merge values of single hash? example: address = { "apartment" => "1", "building" => "lido house", "house_number" => "20", "street_name" => "mount park road", "city" => "greenfield", "county" => nil, "post_code" => "wd1 8dc" } could outcome looks this? 1 lido house, 20 mount park road, greenfield, wd1 8dc address.compact remove value equals nil, if in method include string interpolation , want exclude nil value addresses , include others without comma @ end? def address(hash) hash.compact puts "#{hash["apartment"]} #{hash["building"]}, \n#{hash["house_number"]} #{hash["street_name"]}, \n#{hash["city"]}, \n#{hash["county"]}, \n#{hash["post_code"]}" end you need join values in string: &

What is Mach-O type should I use it in my iOS Objective-C project? -

Image
what mach-o type in build setting in xcode? , should set on? it has these options "executable" "dynamic library" "bundle" "static library" "relocatable object file" i had error "apple mach-o linker error group" since changed executable static library error went off, wanna know ok changed it? , options mean won't face error in future. for more detail building mach-o files , xcode build setting reference

values are getting replaced with the same values on change - jquery -

i need display rows closest drop down drop down value. here whats happening if add row, on change of drop down values getting replaced value. $(document).on('change', '.bundleassettype', function() { var class1 = class2 = class3 = class4 = ''; var id = $(this).val(); class1 = $(this).closest('tr').find("td:eq(1) input[type='text']").attr('class').split(' ')[1]; class2 = $(this).closest('tr').find("td:eq(2) input[type='text']").attr('class').split(' ')[1]; class3 = $(this).closest('tr').find("td:eq(3) input[type='text']").attr('class').split(' ')[1]; class4 = $(this).closest('tr').find("td:eq(4) input[type='text']").attr('class').split(' ')[1]; $('.' + class1).val(id); $('.' + class2).val(id); $('.' + class3).val(id); $('

android - Room database architecture entity extends error -

while using android room i'm having following entity: @entity public class call implements parcelable { @primarykey(autogenerate = true) private long id; private string filepath; private long durationinmillis; private string phonenumber; private int isstarred; private int isincoming; private long timestampcreated; } all works great. want pojo (call.class) extends abstract class following: @entity public class call extends baseviewtypedata implements parcelable { .... .... } and i'm getting following error: error:cannot figure out how save field database. can consider adding type converter it. error:cannot find getter field. error:cannot find setter field. error:cannot figure out how read field cursor. error:cannot find getter field. error:cannot find setter field. the parent (baseviewtypedata.class) simple class handle multiple view types in recycler views. public abstract class baseviewtypedata extends baseobservable { public static final int view_type_cal

javascript - Change border color of canvas in AngularJS -

i learning angularjs @ moment , wrote website contains canvas. goal change color of border after clicking on checkbox. canvas.html : <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>canvas</title> <link rel="stylesheet" type="text/css" href="/canvas/canvas.css"> </head> <body ng-app="nganimate"> <canvas id="mycanvas" width="1200" height="800"></canvas> <script src="/canvas/canvas.js"></script> <h1>change color: <input type="checkbox" ng-model="checkbox"></h1> <div ng-canvasgreen="checkbox"></div> <script src="/scripts/angular.min.js"></script> <script src="/scripts/angular-animate.js"></script> </body> </html> canvas.js //

java - Subselect expression with Ebean and PlayFramework -

in api work on have offer model class maps offer table database. offercontroller class contains several methods retrieving offers database linked various endpoints. need endpoint extended offer class. i'll show need in terms of sql query: select *, (select t t.offer_id = offer.id , t.other_id = $external_value) added_value offer; i know can use @formula @transient don't think can 'inject' $external_value @formula's query. any ideas?

jquery - not able to remove category in select2 -

i using select2 in angular custom modal pop up. can add multiple category can can remove when click cancel symbol when remove category list, not able remove last 2 category. not know reason. can me? html code below <select select2 id='category' data-close-on-select="false" ng-model="text.category" select-selection="text.category" class="js-example-basic-multiple" multiple="multiple" select-options="child in category_list"> <option value="">-- select category --</option> </select>

javascript - ES2015 module import polluting global namespace -

i have rewritten bunch of old js es2015 making use of module import/exports. i'm using rollup , babel transpile back. the libraries integrated number of other sites don't have control of need cautious code make sure don't pollute global, doesn't throw errors, etc. gulpfile.js var rollupbabel = rolluppluginbabel({ babelrc: false, presets: [ "babel-preset-es2015-rollup" ] }); merged.add(rollup({ entry: './js/bnr.js', format: "es", plugins: [ rollupbabel ] }) .pipe(source('bnr.js')) .pipe(gulp.dest('./compiled/js/'))); bnr.js import * helpers "../lib/helpers"; import moment "../../node_modules/moment/src/moment"; class connect { constructor(window, document) { this.init(); } init() { // stuff happens here } } output // helpers , not here var hookcallback; function hooks() { return hookcallback.apply(null, arguments); } // done register method

android - Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. -

am getting error while trying run project error:execution failed task':app:transformclasseswithjarmergingfordebug'. com.android.build.api.transform.transformexception: java.util.zip.zipexception: duplicate entry: com/google/android/gms/common/internal/zzc.class build.gradle file: android { compilesdkversion rootproject.ext.compilesdkversion buildtoolsversion rootproject.ext.buildtoolsversion packagingoptions { exclude 'meta-inf/dependencies' exclude 'meta-inf/notice' exclude 'meta-inf/license' exclude 'meta-inf/license.txt' exclude 'meta-inf/notice.txt' } aaptoptions { cruncherenabled = false } dexoptions { predexlibraries = false incremental true javamaxheapsize "4g" } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile project(':bottom-bar') compile project(':crop

reactjs - Redirect to home path after successful login | React, Redux -

hello people @ stack overflow! want user redirected when he/ has been logged app. can't work. thought add promise in action after has been logged in, apparently not. here's authentication action: import axios 'axios' import settings '../settings' import { withrouter } 'react-router-dom' axios.defaults.baseurl = settings.hostname export const login = ({ email, password }) => { return dispatch => { return axios .post('/tokens', { email: email, password: password }) .then(response => { this.props.history.push('/') // not working :( }) } } when inspect app in developer console valid response, this: unhandled rejection (typeerror): cannot read property 'history' of undefined . thanks reading! you can add callback function: import axios 'axios' import settings '../settings' import { withrouter } 'react-router-dom' axios.defaults.baseurl = setti

sql - How to Show date in textbox which type is date in asp.net -

how show date in textbox database.textbox type "date". in asp.net you need convert value datetime, convert again string. this: _txtcoatorderdate.text = ((datetime)dt.rows[i]["coat_custm_date"]).tostring("dd/mm/yyyy");

php - ElasticSearch get random results with multiple filters doesn't work -

not getting proper results elasticsearch multiple filters. i following documentation: https://www.elastic.co/guide/en/elasticsearch/guide/current/random-scoring.html it returns results first filter , did not apply others filters can add , operator in sql statement.

Deal with Readonly values in ASP.NET (Core) applications and Azure Tables -

i have object this: class record { public datetime created { get; set; } // ? set or not set ? public string name { get; set; } public record() : (datetime.now) { } public record(datetime created) { this.created = created; } } my problem don't know how expose created member, read-only get; or set; ? that member set once when created (by constructor), should readonly viewed. in edit view have problems field, because if expose them writeable (with set ) input tries update or says it's wrong formatted; other side if readonly not load database (azure tables in case)... here function recuperates records "database" (azure tables): public async task<list<t>> gettableentitiesasync<t>(string partition) t : itableentity, new() { tablequery<t> recordsquery = new tablequery<t>().where( tablequery.generatefiltercondition("partitionkey", querycomparisons.equal, partition)); list<t> myl

Docker runner chroot does not work within gitlab-ci-docker-runner -

i automating process of creating sd-image embedded platform. using gitlab ci in particular docker runner. works on system locally, when runs in gitlab ci, there strange errors. here process: i start docker container, runs build.sh . build.sh chroot on mounted image , runs provision.sh . details i first run docker this: docker run --rm -it --privileged=true -v `pwd`:"/wd" -w="/wd" ubuntu:xenial-20170710 /bin/bash build.sh the file build.sh looks this: apt-get update apt-get install qemu-user-static pixz -y pixz -d ubuntu-16.04.2-minimal-odroid-xu4-20170516.img.xz ubuntu- 16.04.2-minimal-odroid-xu4-20170516.img md5sum -c ubuntu-16.04.2-minimal-odroid-xu4-20170516.img.md5 limits=$(sfdisk -l --bytes ubuntu-16.04.2-minimal-odroid-xu4-20170516.img | tail -n 1) loopdev=$(losetup -f --show -o $((512 * $(awk '{print $2}' <<< "$limits"))) --sizelimit $(awk '{print $5}' <<< "$limits") ubuntu-16.04

Google Drive image upload from android -

i trying upload image google drive using api. ve searched didn't find way. ve got demo code uploads text file , works. need change upload image. code... public void createfileongoogledrive(drivecontentsresult result){ final drivecontents drivecontents = result.getdrivecontents(); // perform i/o off ui thread. new thread() { @override public void run() { // write content drivecontents outputstream outputstream = drivecontents.getoutputstream(); writer writer = new outputstreamwriter(outputstream); try { writer.write("hello abhay!"); writer.close(); } catch (ioexception e) { log.e(tag, e.getmessage()); } metadatachangeset changeset = new metadatachangeset.builder() .settitle("abhaytest2") .setmimetype("text/plain") .setstarred(t

javascript - How to add auto increment to existing collection in mongodb/node.js? -

is there methods or packages, can me add auto increments existing collection? internet full of information, how add ai before create collection, did not find information on how add ai when collection exist... mongodb not have inbuilt auto-increment functionality. create new collection keep track of last sequence value used insertion: db.createcollection("counter") it hold 1 record as: db.counter.insert({_id:"mysequence",seq_val:0}) create javascript function as: function getnextsequenceval(seq_id){ // find record id seq_id , update seq_val +1 var sequencedoc = db.counter.findandmodify({ query:{_id: seq_id}, update: {$inc:{seq_val:1}}, new:true }); return sequencedoc.seq_val; } to update existing values in existing collection, should work (for empty {}, can place conditions if want update documents only): db.mycollection.update({}, {$set:{'_id':getnextsequenceval("mysequence")}},{multi:t

javascript - Woocommerce 'remove product' remove X and replace with an image -

im trying replace cross image delete products can't make work, says path invalid. here's js: function replacecross($){ // search woocommerce object var link = $(".woocommerce .product-remove a"); var can = $('<img id="trashcan">'); var dir = "<?php echo get_template_directory_uri(); ?>"; can.attr("src", +dir+ "/images/garbage.png"); can.appendto(".woocommerce .product-remove"); } and html: <tr class="woocommerce-cart-form__cart-item cart_item"> <td class="product-remove"> <a href="#" class="remove" aria-label="dit artikel verwijderen" data-product_id="627" data-product_sku="mudd &amp; water dr alice white leaf-xs">×</a> <img id="trashcan" src="nan/images/garbage.png"> </td> </tr> and i'm running localize script

javascript - How to get file location as variable in NWJS -

i trying file location variable in nw.js. have code nw.js docs can not figure out how use return file location. need write script use id “filedialog” result? https://github.com/nwjs/nw.js/wiki/file-dialogs **html** <input style="display:none;" id="filedialog" type="file" /> **javascript** <script> function choosefile(name) { var chooser = document.queryselector(name); chooser.addeventlistener("change", function(evt) { console.log(this.value); }, false); chooser.click(); } choosefile('#filedialog'); </script> you better access file name via file list input.files : https://github.com/nwjs/nw.js/wiki/file-dialogs lile list section. the called function async callback wont able return names calling function. handle files in callback. function choosefile(name, handlefile) { var chooser = document.queryselector(name); chooser.addeventlistener("change", fu

python - Group rows by date and overwrite NaN values -

i have dataframe of following structure simplified question. b c d e 0 2014/01/01 nan nan 0.2 nan 1 2014/01/01 0.1 nan nan nan 2 2014/01/01 nan 0.3 nan 0.7 3 2014/01/02 nan 0.4 nan nan 4 2014/01/02 0.5 nan 0.6 0.8 what have here series of readings across several timestamps on single days. columns b,c,d , e represent different locations. data reading in set such @ specified timestamp takes data locations , fills in nan values other locations. what wish group data timestamp can .groupby() command. there wish have nan values in grouped data overwritten valid values taken in later rows such following result obtained. b c d e 0 2014/01/01 0.1 0.3 0.2 0.7 1 2014/01/02 0.5 0.4 0.6 0.8 how go achieving this? try df.groupby dataframegroupby.agg : in [528]: df.groupby('a', as_index=false, sort=false).agg(np.nansum) out[528]: b c d e 0 2014/01/01 0.1 0.3 0.2 0.7 1 2014/01/02 0.5 0.4 0.6 0.8

swift - Call a static func on optional type -

i have protocol, conforming class , class 1 simple function. protocol outputable { static func output() } class foo: outputable { static func output() { print("output") } } class bar { func eat(_ object: anyobject?) { if let object = object, let objecttype = type(of: object) as? outputable.type { objecttype.output() } } } let foo = foo() let bar = bar() var foooptional: foo? bar.eat(foo) // prints 'output' bar.eat(foooptional) // print nothing is there way pass optional type being nil conforming outputable protocol , call protocol's static functions inside eat function? though it's nil still passing type , that's should need inside eat, right? to make more clear. know why last line prints nothing. there way adjust eat print 'output' string out? one of way achieve you're seeking use generics , call method on type: func eat<t: outputable>(_ object: t?) {

vba - How to combine multiple macros and excel functions into a single macro that executes on button click? -

i need combine multiple macros single macro executes on button click. kindly excuse me if write wrong since new excel macros , vb. following scenario. steps: calculate total extract reference compare total field value matching reference , mark "complete" if sum of total matching references calculates ). (explained...) first calculate debit , credit amount new column called total, this, used sum function. after tried same using macro executes on button click (old macro) private sub gettotal_click() activesheet lastrow = .cells(.rows.count, "a").end(xlup).row end = 5 lastrow range("k" & i).value = range("f" & i).value + range("g" & i).value next end sub this time consuming (took around 2 hrs when executed on 75k records) when using formula (which finished in minutes). still not able understand reason this. modifiying dy.lee's answer below, took seconds calculate total. (modified

javascript - react-native: `this.state` is undefined in login function -

i'm having trouble accessing this.state in functions inside component. always "undefined not object this.state.username , this.state.password " error simpleform.js import expo 'expo'; import react 'react'; import { stacknavigator, drawernavigator } 'react-navigation'; import app './app'; import registerform './register'; import { view, text, textinput, image, touchableopacity, asyncstorage, stylesheet } 'react-native'; import { yourrestapi } './constants/api3'; class simpleform extends react.component { constructor(props) { super(props); this.state = { username: '', password: '', datas: '' }; this.login = this.login.bind(this, this.state.username, this.state.password); } componentwillmount() { this.login(); } registerscreen = () => { this.props.navigation.navigate('register'); } login() { yourrestapi(this.state.username, this.sta

Errors with fence_scsi unfencing on Centos7 Pacemaker Cluster -

i attempting implement 2 node pacemaker cluster in centos 7, using pcs. have run apparent brick wall stonith fencing configuration , have been far unable resolve it. our cluster running on 2 hyper-v virtual machines using vhds disk sets being presented shared scsi devices. attempting use 1 such shared disk fence_scsi fencing agent my stonith resources configured thusly: resource: fence_1 (class=stonith type=fence_scsi) attributes: pcmk_host_list="node_1 node_2" pcmk_monitor_action=metadata pcmk_reboot_action=off devices=/dev/disk/by-id/wwn-0x60.......... pcmk_host_check=static-list nodename=node_2 meta attrs: provides=unfencing resource: fence_2 (class=stonith type=fence_scsi) attributes: pcmk_host_list="node_1 node_2" pcmk_monitor_action=metadata pcmk_reboot_action=off devices=/dev/disk/by-id/wwn-0x60.......... pcmk_host_check=static-list nodename=node_1 meta attrs: provides=unfencing i have tried various combinations of resources , paramete

java - JPA - Resolving relationships (ManyToMany + ManyToOne) -

Image
i've got problem defining relationships, i've got entities: i've tryed make relationships in code, this: project-datostabla @manytomany(cascade = cascadetype.merge) @jointable(name = "datostabla", joincolumns = @joincolumn(name = "idproject", referencedcolumnname = "idproject"), inversejoincolumns = @joincolumn(name = "idtable", referencedcolumnname = "idtable")) public set<datostabla> getdatostabla() { return datostabla; } datostabla-project @manytomany(mappedby = "datostabla") public set<project> getproject() { return project; } datostabla-atributosdatostabla @onetomany(fetch = fetchtype.lazy, mappedby = "datostabla") public set<atributosdatostabla> getatributodatostabla() { return atributodatostabla; } atributosdatostabla-datostabla @manytoone(cascade = cascadetype.merge, fetch = fetchtype.lazy) @joincolumns({ @joincolumn(name = &quo

c# - Parsing T-SQL To Extract Part of WHERE Clause -

i have large sql database containing 'curves'. each curve has id (curveid). i'm trying determine main users of each curve , if used @ all. enable this, dbas providing logs of statements executed against database. these statements can in complexity. want extract curveids being queried for. example statement follows: with g ( select [timevalue] [mc].[granularitylookup] [timevalue] between '19-jul-2017 00:00' , '30-sep-2017 00:00' , [1 hr] = 1), d ( select [curveid], [deliverydate], [publishdate], avg([value]) value, max([periodnumber]) periodnumber mc.curveid_6657_1_latest data join (select curveid id, deliverydate ddate, max(publishdate) pdate mc.curveid_6657_1_latest curveid = 90564 , deliverydate >= '19-jul-2017 00:00' , deliverydate <= '30-sep-2017 00:00' group deliverydate, curveid ) dates on data.deliverydate = dates.ddate , data.publishdate = dates.pdate data.curveid = 90564 , data.deliverydate >= 

python - Splitting dataframe column into equal windows in Pandas -

i have dataframe following , intend extract windows size = 30 , write loop each block of data , call other functions. index = pd.date_range(start='2016-01-01', end='2016-04-01', freq='d') data = pd.dataframe(np.random.rand(len(index)), index = index, columns=['random']) i found following function, wonder if there more efficient way so. def split(df, chunksize = 30): listofdf = list() numberchunks = len(df) // chunksize + 1 in range(numberchunks): listofdf.append(df[i*chunksize:(i+1)*chunksize]) return listofdf you can use list comprehension. see so post how access dfs , way break dataframe. n = 200000 #chunk row size list_df = [df[i:i+n] in range(0,df.shape[0],n)]

sql - I have successfully created a scalar function, but get an error The multi-part identifier "dbo.unpivottest3" could not be bound -

my function: create function [dbo].[unpivottest3]() returns int begin declare @colsunpivot nvarchar(max), @query nvarchar(max) --select particular columns select @colsunpivot = stuff((select ',' + quotename(c.column_name) information_schema.columns c c.table_name = 'tblkri dump' , c.column_name '%-20%' xml path('')), 1, 1, '') set @query = 'insert bi_dwh.tblkri_dump1 select u.sector_name, u.lob_name, u.indicator_group_name, u.user_defined_indicator_id, u.indicator_name, u.indicator_description, u.classification, u.score_green_threshold, u.score_red_threshold, u.indicator_priority, u.indicator_how_to_acquire, u.cause, u.impact, u.action_plan, u.resolution_expected, u.resolution_target_date, u.no_resolution_reason, u.memo_last_updated, u.risk_category, u."risk_sub-category&quo

vim macros - vim to generate code template dynamically -

i have write test cases contains repetive code. the name of method should classname delimitted _ ex: class_name_test the object name should classnameobj , mock method should take classname.class the genericobj.call statement common methods sayhello should bound classnameobj , remaining result common the commonmethods common objects instead of copy pasting , changing classname , classnameobj, interested in automating using vim. is possible if pass class name, rest should generated? the method template mentioned below. @test public void stop_video_request_valid_data() throws throwable { classname classnameobj = mock(classname.class); when(genericobj.call()).thenreturn(new object[]{classnameobj}); when(classnameobj.sayhello()).thenreturn("hello"); commonmethods(); } snippets built-in :abbreviate on steroids, parameter insertions, mirroring, , multiple stops inside them. 1 of first, famous (and still used) vim plugins snipmate (inspire

javascript - Ninja Forms - limit submissions to one per user with out requiring the user to be logged in to view the form -

i'm using ninja forms , want site visitor see form once. doesn't seem function of ninja forms self. not knowing much... can add code use cookies , determine whether or not visitor has seen form, , if hide second time? even better yet replace form message in it's place. "sorry 1 submission per person" i did see "localstorage" in research. i see post don't understand how or if can use needs set cookie , cookie javascript you use browser fingerprinting library generates unique id per device. store id , check when creating page form. here's 1 such lib made in javascript. you'd need take id , pass server level. https://github.com/delboy1978uk/jquery-browser-fingerprint

emacs: How do you copy a file? -

in dired mode, how copy file? i pressed 'c' mentioned in manual it's saying compress to: i want copy, not compress! you need use upper-case c, not lower-case.

encryption - How to sign and encrypt a message using S/MIME in PowerShell -

i attempting create powershell script will: build message sign message using private s/mime certificate encrypt message using s/mime public cert of recipient send email has been signed , encrypted i have included full script below changed email addresses, cert names, etc. the private cert has been imported onto machine using internet explorer. referenced within directory c:\users\xxx\appdata\roaming\microsoft\systemcertificates\my\certificates\ the problem when send email using script being encrypted not signed. however, if don't encrypt message , instead include $signedmessagebytes when building memory stream (see first line in step 4 of script) email signed correctly when being sent. suggest message being correctly signed before encryption occurs. for reason script won't include signature when encrypting message. what must signature included when message encrypted? $smtpserver = "localhost" $recipient = "recipient@emailaddress.com"

r - How to make part of rmarkdown document without section numbering? -

Image
i have rmarkdown document (.rmd) want knit pdf document. number_sections has been put 'yes' , toc 'true'. how can add appendix sections appear in table of contents don't have section number? here example .rmd code. how can let appendix , appendix b numberless sections , let them appear in table of contents @ same time? --- title: "test" author: "test test" geometry: margin=1in output: pdf_document: keep_tex: yes latex_engine: xelatex number_sections: yes toc: yes toc_depth: 3 header-includes: - \usepackage[dutch]{babel} - \usepackage{fancyhdr} - \pagestyle{fancy} - \fancyfoot[le,ro]{this fancy foot} - \usepackage{dcolumn} - \usepackage{here} - \usepackage{longtable} - \usepackage{caption} - \captionsetup{skip=2pt,labelsep=space,justification=justified,singlelinecheck=off} subtitle: test test test fontsize: 12pt --- # start # second ```{r results="asis",eval=true,echo=false,message=false, error=false, warn