Posts

javascript - Cannot get module.id with ES6 with SystemJS -

i cannot find equivalent of typescript module.id javascript es6 systemjs. possible use commonjs module in es6 ? tried set moduleids: true in babel options it's not working , documentation says not available common modules

java - Method to insert hyperlinks in description field of Icalendar (ics) file -

Image
i used insert hyperlinks in ics file using x-alt-desc field allowed html tags. issue field worked woth ms outlook , had use alternate description field must contain plain text format (\n added new line). i able following output now outlook : google calendar mozilla thunderbird issue links work best in outlook, still clickable/working in google calendar , plain text in thunderbird. there way can making them clickable in thunderbird google calendar??

jquery - No response for success call after form submiting -

i'm making simple contact form send each message don't see response after function success i.e. message mail sent.. errors.. etc. js var submitcontact = $('#submit'), message = $('#msg'); submitcontact.on('click', function(e){ e.preventdefault(); var $this = $(this); $.ajax({ type: "post", url: 'contact.php', datatype: 'json', cache: false, data: $('#contact-form').serialize(), success: function(data) { if(data.info !== 'error'){ $this.parents('form').find('input[type=text],textarea,select').filter(':visible').val(''); message.hide().removeclass('success').removeclass('error').addclass('success').html(data.msg).fadein('slow').delay(5000).fadeout('slow'); } else { message("thank you!"); ...

java - Marshmallow permissions and explanation -

could explain me plaese how should explain user permission i work camera2api , implement such snippet of code ask permishion dinamicly private void opencamera(int width, int height) { setupcameraoutputs(width, height); camerahelper.configuretransform(width, height, textureview, previewsize, getactivity()); cameramanager manager = (cameramanager) getsystemservice(context.camera_service); try { if (!cameraopencloselock.tryacquire(2500, timeunit.milliseconds)) { throw new runtimeexception("time out waiting lock camera opening."); } if (activitycompat.checkselfpermission(this, manifest.permission.camera) != packagemanager.permission_granted) { // should show explanation? if (activitycompat.shouldshowrequestpermissionrationale(this, manifest.permission.camera)) { // show explanation user *asynchronously* -- don't block // thread waiting user...

Android AdMob Native Express into ListView -

Image
i've problem when admob express native ads load first time , refresh banner. code same github google native ads i've put adpter listview control choise: if (position == 0) { // put admob view initialization here }else{ // listview view element } in case see listview become in parts black background: where errors? lot

How do I detect an existing interactive console from inside ansible? -

i want change behaviour of ansible playbook when executed within interactive console opposed non-interactive console (like ci environment) how can inside playbook? you need way determine whether command runs ci or not. if have access command run suggest add variables command, example ansible-playbook -i inv.yml --extra-vars "ci=true" playbook.yml and can refer ci variable inside playbook determine do. if cumbersome best thing rely on environmental variables ci servers set. should consult documentation of ci server whether sets kind of environmental variables, , if yes do. (but not all) set ci variable true . worst case scenario should specify variable manually in configuration of ci server. you should able access environment variables of management host machine using: {{ lookup('env','ci') }} of course these options work have make sure environment variable set on non-interactive shells (which ci should you), , not set on interactiv...

c# - Monitor SQL table for when X has passed -

say have list of subscribers in database table in sql server. have different rollover dates , therefor have column called rolloverdate. at moment have quartz.net task runs every 5 minutes checks if rolloverdate has passed , performs necessary functions. is there better way this? seems pretty inefficient have run task every 5 minutes check this. other way monitor when x has passed in sql server?