Posts

Showing posts from April, 2011

php - Preset currency value on select codeigniter -

i have select box currency 1 , 2, currency 1 euro. want select box preset value 1 euro. i using controller currency information this. $data = array( 'sexlist' => $this->localization->gettextparamvalues(null, 'user', 'sex'), 'countrylist' => $this->localization->getcountrylist(), 'currencylist' => $this->localization->getcurrencylist(), 'languagelist' => $this->localization->getlanguagelist(), 'user' => $userexist, 'userinfo' => $this->user_profile->getuserinfo(), 'currency' => $this->localization->getcompanycurrency() ); $this->load->view('header', $this->history->getpreviouspageinarray()); $this->load->view('borrow_registerpage_view',$data); the currency pushing value 1 data array, in html file doesnt prese...

javascript - HTML and style sheet not linking -

ok no matter style sheet not link html document, both in same directory on computer , no matter do, no style applied <p> tag. have stripped document bare bones , cannot find error is. i'm sure @ point extremely simple , complete idiot missing it. please help. index.html <!doctype html> <html> <link rel=sylesheet type=text/css href=style.css> <head> </head> <body> <p> hello, world! </p> </body> </html> style.css p { color: red; } your format in html not correct. should be: <!doctype html> <html> <head> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> </body> </html> your <link rel="stylesheet" type="text/css" href="style.css"> should inside of <head></head> tag

jquery - SAPUI5 Dropdown box limit -

i trying display 294 records in dropdown box, nothing displays @ all. have set size limit 500 , 300 , still nothing displays. binding, same other dropdown boxes have fewer records display +- 30 records those. has experienced same issue? here code: this.countriesdropdownmodel = sap.ui.getcore().getmodel("countrymodel"); this.countriesdropdownmodel.setsizelimit(300); sap.ui.getcore().getelementbyid("reasoncountryentryid").setmodel(this.countriesdropdownmodel, "countriesdropdownmodel"); and in view form: new sap.ui.layout.form.formelement({ label: new sap.ui.commons.label({text:"country"}), fields: new sap.ui.commons.dropdownbox({id:"reasoncountryentryid",width:"250px"}) }), the data binding: var countrytemplate = new sap.ui.core.listitem({text : "{countriesdropdownmodel>externalname_defaultvalue}"}); sap.ui.getco...

c# - Can I find out the return value before returning while debugging in Visual Studio -

take following function: datatable go() { return sometableadapter.getsomedata(); } when set breakpoint in function, there possibility inspect returned value? go() directly coupled datagrid in .aspx page. the way inspect returned datatable, use temporary variable. however, that's bit inconvenient. isn't there way? not know of. note if do add variable, removed compiler in release builds anyway... update: this functionality has been added vs2013 . can see return values in autos windows or use $returnvalue in watch/immediate window. the value can seen directly after returning function, easiest way access putting breakpoint on function call , step on (f10) call. update vs2015: boo! unfortunately, doesn't appear in vs2015 (devenv v14)

ruby - undefined method `friendships' for #<User::ActiveRecord_Relation:0x007fdd1adb7a00> Rails -

i´m learning rails building app. app working fine until added code users_controller.rb def show @user = user.find(params[:id]) @user = user.order('created_at desc').paginate(page: params[:page], per_page: 30) end def compare if current_user.profile @users = user.find_by(id: params[:to].to_i) if params[:to] @paper_weight_total_user = @users.papers.sum(:paper_weight) else redirect_to user_path end end i added users_controller because current user supposed able compare data friends data if hits "compare data" button(shown below) <h4> <%= current_user.profile.name%> friends</h4> <ul> <% @user.friendships.each |friendship| %> <li> <%= link_to user_profile_path(friendship.friend), :method => :get %> <%= friendship.friend.profile.name %> (<%= link_to "remove", friendship, :method => :delete %>...

java - Retain scroll position in infinite RecycleView inside ScrollView (ANDROID) -

i have recycleview inside scrollview can infinite scroll , load new data paging. there way save scroll position (recycleview , scrollview) when activity onpause(), , restore when onresume(). instagram, facebook, etc. when click detail posting , timeline in same position when left before enter code here . my advice : use recycleview inside recycleview. recycleview can use strategy : 1) save last visible item position 2) manipulations 3) restore position int lastviewedposition = ((linearlayoutmanager)rv.getlayoutmanager()).findlastvisibleitemposition(); //some manipulations rv.getlayoutmanager().scrolltoposition(lastviewedposition + data.size() - 1);

javascript - Using RxJS Observable to change css class on drag events -

hi goal use observable sequence listen dragenter/dragleave events change css classes. ie : var mydraggablelistel = document.queryselector.... var itemdragin$ = rx.observable.fromevent(mydraggablelistel, 'dragenter').map((e)=> e.target); var itemdragout$ = rx.observable.fromevent(mydraggablelistel, 'dragleave').map((e)=> e.target); basically want add 'hover' class on 'dragenter',and remove same class on dragleave. i wondering if there clever way 'merge' these 2 subscription like: .subscribe( (booladd, classname, target ) => { booladd ? target.classlist.add(classname): target.classlist.remove(classname) } maybe im overthinking andi leave 2 observables separate, wondering if had accomplished or if had better way. thanks! you can totally using rx.observable.merge() method. links: merge - general rx merge - rxjs example example (here's fiddle ): rx.observable.merge( rx.observable.fromevent($...

java - Spring Boot init.d not Not running (process not found) -

i trying follow instructions here , trying run spring boot app init.d service not successfully. i created executable jar (myapp.jar) mentioned , created symlink /etc/init.d/myapp when run java -jar myapp.jar see application start successfully. but when try use service myapp status says not running (process not found) service myapp start says failed start the documentation says " assuming have spring boot application installed in /var/myapp " don't understand point quite well. copied executable jar (via jenkins) /var/myapp. contains 1 file jar. create problem? any suggestions appreciated. environment: springbootversion = '1.3.2.release' jdk6 (yes is) ubuntu 12.04 you must register jar service. @ http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#deployment-initd-service

amazon web services - Unable to connect on AWS - RDS DB : SQL Server 2012 Express -

Image
i'm new in aws world. have issue access instance of microsoft sql server 2012 express (11.00.5058) on rds (us-east-1a). when have created db instance, able access it, create tables, transfer data, etc.. worked fine ! i didn't change , few hours after inactivity, try access sql server instance using microsoft sql server enterprise manager not able connect anymore. got following message: cannot connect m3instance.cqbvdcpcgye3.us-east-1.rds.amazonaws.com,1433. a network-related or instance-specific error occurred while establishing connection sql server. server not found or not accessible. verify instance name correct , sql server configured allow remote connections. (provider: tcp provider, error: 0 - wait operation timed out.) (microsoft sql server, error: 258) currently, instance appears available, security group 'rds-launch-wizard (sg-be4afcc6)'. i have try connect 1433 port on via telnet , no success. instance name m3instance.cqbvdcpcgye3.us-...

python - Is this multi-threaded function asynchronous -

Image
i'm afraid i'm still bit confused (despite checking other threads) whether: all asynchronous code multi-threaded all multi-threaded functions asynchronous my initial guess no both , proper asynchronous code should able run in 1 thread - can improved adding threads example so: so constructed toy example: from threading import * queue import queue import time def do_something_with_io_lag(in_work): out = in_work # imagine work involves sending # on internet , processing output # once arrives time.sleep(0.5) # simulate io lag print("hello, bee number: ", str(current_thread().name).replace("thread-","")) class workerbee(thread): def __init__(self, q): thread.__init__(self) self.q = q def run(self): while true: # work queue work_todo = self.q.get() # function simiulate i/o lag do_something_with_io_lag(work_todo) ...

ruby - Rails location of model with two words -

i doing api backend in ruby on rails. i have model, call testmodel . when user creates new record of method, want return location header containing url of newly created object (i.e. user can access using get), try render json: @test_model, status: :created, location: @test_model unfortunately, rails can't give me location, because seems try call method test_model_url , rails seems interpret url object model subobject of item test . how can correctly? this has nothing model naming, more how ruby on rails work convention. cf. rails guide on routing (especially part 2.3) each of these helpers has corresponding _url helper (such photos_url) returns same path prefixed current host, port , path prefix. -> have setup routes correctly, _url , _path helpers work. you should stick rails naming conventions , model should named testmodel instead of testmodel .

rspec - Is there a way without a (*)splat argument to pass multiple arguments in Ruby? -

i need write method takes unknown number of arguments (hence *splat) passes yields_with_args spec. the code: def eval_block(*args, &block) raise "no block given!" if block.nil? block.call(args) end the rspec: it "passes arguments block" expect |block| eval_block(1, 2, 3, &block) end.to yield_with_args(1, 2, 3) end end it works, yields array *splat creates: [1,2,3] vs 1,2,3 , , therefore doesn't pass rspec. there way pass on multiple arguments through method in ruby? replace block.call(args) with block.call(*args) splat has 2 functions: collecting arguments array when in definition, , distributing array arguments in calls. 2 inverse operations: if expect transparent operation (three arguments go in, 3 arguments go out), should distribute collected.

android - Accessing volley response with callback interfaces -

Image
i m trying extract android volley response member variable of same class. used callback interfaces perform task : public void getdata(mycustomlistener customlistener) { jsonarrayrequest arrayrequest = new jsonarrayrequest(request.method.post, url, response -> { log.i("response",response.tostring()); customlistener.onresponse(completecart); }, error -> log.i("volley_error", error.getmessage())) { ... customerlistener interface: public interface mycustomlistener { public void onresponse(object response); public void onerror(string error_response); } and inside oncreateview method of fragment : getdata(new mycustomlistener() { @override public void onresponse(object response) { completecartproitems.addall((list<completecartproitem>) response); } @override public void onerror(string error_response) {} }); when ...

windows - Force open button for XML file download in Internet Explorer -

Image
we looking client-side way force internet explorer show open button when downloading xml file. normally download bar looks this: when downloading xml file, however, no "open" button shown: how configure ie/windows in way "open" button shown each file download? i've read x-download-options http header, unfortunately, must client-side solution cannot alter web application. we found out following: windows had associated file type "xml" internet explorer (control panel -> default programs -> set associations). triggers ie not show open button anymore, don't know why exactly, however, when associating xml notepad, open button reappears. if has better solution force open button pleas come forward. in meantime going use workaround.

c++ - What command can I use to append data using ftp in SFML? -

i'm using sfml upload files on ftp server, wish upload data in every 10min 1 file in server, found function: response sf::ftp::sendcommand(const std::string &command, const std::string& parameter="") but i'm not @ ftp commands @ all, didn't understood rfc has been pointed in use of ftp "append" command , know string command use ftp append command?

android - How to send notification to user when new version is available the application is built on by using PhoneGap Framework? -

Image
i making new version of application. want give notification users when new version of app available automatically. don't know how this. regarding appreciated. thanks in advance. ok.for when build application using phonegap build tool.you have set hydration mode on before building application.when set hydration mode application automatically notified.for this, go : apps->settings->select "enable hydration" mode -> save. again build application settings.run in mobile devices.again build app using phonegap build.your application automatically notified of new version. you can see screenshot have uploaded here.

swift - why "Show detail" segue is not usable in my splitview? -

Image
hi first encounter this, have been using splitview before 1 odd. me how fix this? i setted app ipad 8.0 minimum deployment target you should enable "size classes", 1 of problem cause this.

java - JTable hides the header after INSERT -

Image
so i'm starting making sample project can insert employee , department connected database. when trying insert values on fields. header or columns hides after hitting button "add". appreciate! codes string inputemployee = employeetf.gettext(); string inputdepartment = departmenttf.gettext(); if(inputemployee.isempty() && inputdepartment.isempty()){ joptionpane.showmessagedialog(null, "please fill up!"); } else if(inputemployee.isempty()){ joptionpane.showmessagedialog(null, "employee name should not left blank"); } else if(inputdepartment.isempty()){ joptionpane.showmessagedialog(null, "department should not left blank"); } else{ defaulttablemodel model = new defaulttablemodel(); jtable.setmodel(model); object[] row = new object[2]; string myquery = "insert sample (employeename,department) values (?,?)"; try{ ...

rest - Play Games Services for Web - Increment Event method -

google play games services has events mechanism, has method increment specific event amount provided. sdks android/ios/c++, have method incrementing event. but rest api doesn't have method ( https://developers.google.com/games/services/web/api/events ) the 1 event, seams similar record event( https://developers.google.com/games/services/web/api/events/record#auth ) but requires user authenticated. thanks in advance. i found answer. methods in sdks require user authenticated, record method should same, think.

c# - Object is null when passing a string propery of very long length (Base64 String) to .Net webapi Contoller -

i getting updatecasehearingmodel= null when property "strbase64" has long string. passing strbase64 base64 of file. works small files fails when file size exceeds 4mb(it creates lengthy string). public httpresponsemessage updatecasehearing([frombody]updatecasehearingmodel updatecasehearingmodel) { try { //code here } } is there way pass long string(of object) webapi contoller in .net. your application working fine iis configuration has limit of 4mb. see -> https://msdn.microsoft.com/en-us/library/e1f13641(v=vs.85).aspx optional int32 attribute. specifies limit input stream buffering threshold, in kb. limit can used prevent denial of service attacks caused, example, users posting large files server. the default 4096 (4 mb).

configuration - how to configure activti 5.17 with ldap -

can please guide me how can configure "activiti" 5.17 , ldap ? ldap xml configuration file not there in 'activiti 5.17' (activiti-cfg-context.xml missing in 5.17) tried configure "ldap" in "activiti-custom-context.xml" file 'activiti' wont boot again. tried find out nothing helped me, if u have done integration please me ! response appreciated! pls check if following urls helpful http://thysmichels.com/2014/05/25/activiti-bpm-tutorial-ldap/ https://forums.activiti.org/content/ldap-authentication-issue https://forums.activiti.org/content/steps-integrate-activiti-ldap

wordpress - How do I integrate Woocommerce payment method to my banks checkout page? -

i new woocommerce , need help...my bank send me payment checkout code , wish integrate woocommerce checkout page... the attached checkout page requires payment parameters woocommerce such paymenttotal, referenceno, currency, purchasedescription, transactiontype..etc how can integrate woocommerce checkout banks sample checkout page please? <?php session_start(); ?> <!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>mastercard migs vas integration demo - checkout page</title> </head> <body> <h1>example migs vas server hosted merchant integration - checkout page</h1> <form action="postrequest.php" method="post"> <div> <p...

javascript - Radius ignored google maps API -

i see points of interest within recover slider feel property radius not taken account. when try change value , see change, not result. radius in meters ? can me? thank in advance var radius = 50; $(document).ready(function(){ $('#range-input').on('change', function(evt, range) { radius = $(this).val(); $('#range-output').val($(this).val() + "m"); }); }); var infowindow; var latu; var lngu; var distance; var motcle; function initmap() { var mapoptions = { zoom:12, scalecontrol: true, streetviewcontrol: true, zoomcontrol: true, zoomcontroloptions: { style: google.maps.zoomcontrolstyle.small, position: google.maps.controlposition.right_center }, maptypeid: google.maps.maptypeid.roadmap } geocoder = new google.maps.geocoder(); infowindow = new google.maps.infowindow(); if (navigator.geolocation) ...

How to create function for disable all element with button tag after 1 second in javascript? -

maybe it'll looks this: var buttons = document.getelementsbytagname("button"); function disbtn(){ settimeout(function(){ (var = 0; < buttons.length; i++) { buttons[i].style.display = 'none'; } } , 1000); } could please give me simple solution when call disbtn() function button tag in current page disabled after 1 second delay? you can try: var buttons = document.getelementsbytagname("button"); function disbtn(){ settimeout(function(){ (var = 0; < buttons.length; i++) { buttons[i].setattribute('disabled',true); } } , 1000); } disbtn(); demo

ios - AVCaptureVideoDataOutputSampleBufferDelegate.CaptureOutput not called -

i have self-developed framework (mysdk), , ios app (myapp) uses mysdk. inside of mysdk, have class (scanner) in mysdk processes images video output of device camera. here's sample of code: scanner.swift class scanner: nsobject, avcapturevideodataoutputsamplebufferdelegate { var capturedevice : avcapturedevice? var captureoutput : avcapturevideodataoutput? var previewlayer : avcapturevideopreviewlayer? var capturesession : avcapturesession? var rootviewcontroller : uiviewcontroller? func scanimage (viewcontroller: uiviewcontroller) { nslog("%@", "scanning begins!") if (capturesession == nil) { capturesession = avcapturesession() } rootviewcontroller = viewcontroller; capturesession!.sessionpreset = avcapturesessionpresethigh let devices = avcapturedevice.devices() device in devices { if (device.hasmediatype(avmediatypevideo)) { if(device.pos...

jquery - Alter code to when scrolled to the bottom -

trying adjust code work when user reaches bottom of content opposed top. works fine, top. <script> $(function(){ var shrinkheader = 150; $(window).scroll(function() { var scroll = getcurrentscroll(); if ( scroll >= shrinkheader ) { $('.button').addclass('shrink'); $('.brand').addclass('shrink'); } else { $('.button').removeclass('shrink'); $('.brand').removeclass('shrink'); } }); function getcurrentscroll() { return window.pageyoffset || document.documentelement.scrolltop; } }); </script> i want function does, when user reaches 150px bottom, not top use: $(document).scrolltop(); to get/detect distance scrolled top in jquery. if want get distance bottom. i suggest using: // returns height of browser viewport $( window ).height(); // returns height of html document $( document ).height(); getting distance: distance = parseint...

android - VR without Gyro -

is there app similar google cardboard can work without gyroscope sensor. , work mean: play simple movies doesn't require head movement and if possible, can simulate gyroscope of accelerometer , compass. can done. here open source development going on virtual gyro help appreciated. some vr games on android work fine without gyro : try space x hunter vr : https://play.google.com/store/apps/details?id=com.creation3d.spacexhuntervr vr bowl : https://play.google.com/store/apps/details?id=com.creation3d.vrbowl and games fibrum

Less mixin, extract colors from array and on hover, add darken to that array -

is possible darken array colors? this: @array: @color1 @color2 @color3 @color4 .color-mix(@i) when (@i > 0) { .myclass { li:nth-child(@{i}) { .background-color(extract(@array, @i)); &:hover { // not working, there right approach this? .background-color(extract(darken(@array, 5.5%, @i))); } } .color-mix(@i - 1); } } // iterate .color-mix(4); if understand question correctly, yes, can achieve that. below how it. code correct except instead of trying darken extracted value, trying extract darkened value (which not possible). @array: #fff #00f #ff0 #f00; .color-mix(@i) when (@i > 0) { .myclass { li:nth-child(@{i}) { .background-color(extract(@array, @i)); &:hover { .background-color(darken(extract(@array, @i), 5.5%)); } } } .color-mix(@i - 1); /* have moved because think wrongly placed */ } // iterate .color-mix(4); one ...

python - Django: Deploy to ElasticBeanstalk import error on myapp.settings -

i'm deploying app elasticbeanstalk , hitting snag seems pretty simple. error importerror: no module named myapp.settings can't figure out should causing issue. i've deployed other django apps identical settings in past , haven't had problem before. i've attached below error logs eb manage.py , .ebextensions file errors eb logs [2016-03-07t03:10:29.648z] info [3559] - [application update/appdeploystage0/ebextensionpostbuild] : starting activity... [2016-03-07t03:10:30.852z] info [3559] - [application update/appdeploystage0/ebextensionpostbuild/infra-embeddedpostbuild] : starting activity... [2016-03-07t03:10:30.853z] info [3559] - [application update/appdeploystage0/ebextensionpostbuild/infra-embeddedpostbuild/postbuild_0_myapp] : starting activity... [2016-03-07t03:10:31.824z] info [3559] - [application update/appdeploystage0/ebextensionpostbuild/infra-embeddedpostbuild/postbuild_0_myapp/command 01_collectstatic] : starting activity... [2016-03-07...

javascript - Jquery panzoom on click -

looking implement jquery plugin allows zoom svg elements. https://github.com/timmywil/jquery.panzoom what having issues implementing zoom functionality when user clicks on element, while using 'duration' parameter available in framework. an example var $section = $('section').first(); $panzoom = $section.find('.panzoom').panzoom({ contain: false, minscale: 1, maxscale: 3, contain: true, duration: 1200 }).panzoom('zoom', true); some html <element class='test'/> some click handler $('.test').on('click' function(){ $panzoom.panzoom("zoom", 2.5); }); this zoom in, not use 'duration' provided. it looks calling zoom zoom in, , calling zoom true parameter zoom out. doesnt seem zooming maxscale. //in $panzoom.panzoom("zoom"); //out $panzoom.panzoom("zoom", tr...

javascript - Display different <h1> text on interval -

i take array of quotes , display different qoute on page every 6 seconds. i have tried using javascript function loops through array , fades in new qoute. keep getting error qoutes not defined. have tried moving array function , $(document).ready() function , still got same error. below app.js code: var quotes = [ "don't limit challenges, challenge limits.", "if doors of perception cleansed every thing appear man is, infinite.", "the power of imaginiation makes infinite", "the finite mind tries limit infinite.", "the limits in our life impose on ourselves." ]; var quotetimer = function(){ for(var = 0; i< qoutes.length; i++){ $('.container').find('h1').fadein().text(qoutes[i]); } } $(document).ready(function(){ setinterval(quotetimer, 6000); }); adjust time delay , should trick update: added fading update2: removed placeholder, added comments var quotes = [ "don...

c# - Self Contained Binary Search with only a single int and array parameter -

so have function need create in addition binary search must data mining (so not pure binary search)/ custombinarysearch(int goal, int[] myarray) i know quite how go making binary search. problem stems signature of function. pass index values of sub-array recursively call required maintain original signature. is there way pass sub-segment of array without creating new array? trying efficient code. aka custombinarysearch(goal, myarray[startindex, endindex])? the problem stems signature of function. pass index values of sub-array recursively call required maintain original signature. make public method call private method has signature prefer. is there way pass sub-segment of array without creating new array? this feature proposed c# 7.

php - Alternative ways for generating a random number in Fat-Free Framework -

i have following f3 htm snippet. <repeat group="{{ @rooms }}" value="{{ @room }}"> <div class="col row m12 cell white card-panel"> <div class="col m4 destination valign-wrapper"> <h4 class="valign">{{ @room }}</h4> </div> <div class="col m8 call-number valign-wrapper"> <h1 class="valign value">{{ rand(1,9).rand(0,9).rand(0,9).rand(0,9) }}</h1> </div> </div> </repeat> to produce four-digit random number, generating , concatenating 4 randomly generated single digit numbers. while work fine, it's not pretty at. there better way this? looking alternative ways preferably using f3, not native php.

ios - Use of unresolved identifier '_ComboItemId' -

hello friends getting strange error while creating model class though have created class shows error suggestion !! thank here code import foundation class combomodel { private var _comboitemid: string! private var _combomaincategory: string! private var _combocategoryid: string! } var comboitemid : string { return _comboitemid // error use of unresolved identifier '_comboitemid' } init(comboitemid : string) { self._comboitemid = comboitemid // error initializers may declared within type } this simple user mistake. you've got class private variables class combomodel { private var _comboitemid: string! private var _combomaincategory: string! private var _combocategoryid: string! } // class ends here!!! now you're trying access combomodel classes private variable _comboitemid. var comboitemid : string { return _comboitemid // error use of unresolved identifier '_comboitemid' } so, you're looking for: class combom...

javascript - $q defer in angular -

i simplified code solve specific problem. i have 2 functions @ $scope: singlerequest() , multireqest() . multireqest() must call testserver() several time , call singlerequest() . problem in example: singlerequest() called before multireqest() started, @ same time console.log('all requests multirequest loaded') called in turn. why happening? doing wrong? thanks. function testctrl($scope, $q, $http) { //variables declaration etc var testserver = function (_pos) { console.log('testserver:', _pos) var deferred = $q.defer(); $http.get(service.first, parameters).success(function (data, status, headers, config) { console.log(_pos, 'request multirequest loaded'); //do smth data deferred.resolve(); }).error(function (err) { deferred.reject(err); }); return deferred.promise; }; // // $scope.singlerequest = function () { console.log('start singlerequest function'); $http.get(service....

vb.net - Opendialog box > Select txt file > display contents into a text box -

sorry if sounds dumb question. i'm trying open txt file using button (open dialog). display results of the text file textbox (that can edit values) after hit button called save writes text file. is possible? option strict on option explicit on imports system.io imports system public class form1 private sub form1_load(sender object, e eventargs) handles mybase.load end sub private sub button1_click(sender object, e eventargs) handles button1.click dim fd openfiledialog = new openfiledialog() dim strfilename string fd.title = "open file dialog" fd.initialdirectory = "c:\" fd.filter = "all files (*.*)|*.*|all files (*.*)|*.*" fd.filterindex = 2 fd.restoredirectory = true if fd.showdialog() = dialogresult.ok strfilename = fd.filename end if end sub private sub textbox1_textchanged(sender object, e eventargs) handles textbox1.textchanged...

Embedding HTML code in extended email Jenkins plugin -

i trying use extended email plugin send embedded html mail. in section "editable email notification" > "default content" trying write html code: <b>test result summary:</b> </br><iframe width="900" height="400" src="http://jenkins.eng.company.com:8080/view/nimbus/job/nimbus_sddc_nightly/allure/#/home"></iframe> </br><b>feature wise test result:</b> </br><iframe width="900" height="800" src="http://jenkins.eng.company.com:8080/view/nimbus/job/nimbus_sddc_nightly/allure/#/features"></iframe> the mail getting line 1 , 3 , not iframe. want these content in mail. how can achieve this?

php - PhpStorm mapping paths -

Image
i'm setup docker container ssh , ftp access. my local project looks this: /users/gezimhome/projects/ziprecipes.net/zip-recipes project dir. source code wordpress plugin in src folder. have wordpress downloaded , extracted locally here in /users/gezimhome/projects/ziprecipes.net/workdir/wordpress . here deployment settings: my mappings: my server: in docker container, wordpress downloaded , uncompressed here: /usr/share/nginx/html/wordpress/ , map /users/gezimhome/projects/ziprecipes.net/zip-recipes/src /usr/share/nginx/html/wordpress/wp-content/plugins/zip-recipes when creating container. xdebug setup because incoming connection xdebug screen: so, question is, since have mapping why keep bothering me mapping wordpress files?! and bigger question is, why breakpoints in plugin not being hit @ all?! please :( when setting server host needs match server host name. case set server host zrdn : the web server needs have server name configured we...

python - how to use for loop with bootstrap carousel -

i have figured out how use bootstrap carousel problem want render featured stories in carousel. have carousel shows 3 slides, i'm trying have featured stories instead of 3 slides. <div class='carousel slide' id="mycarousel"> <ol class="carousel-indicators"> <li class="active" data-slide-to="0" data-target="#mycarousel"></li> <li class="active" data-slide-to="1" data-target="#mycarousel"></li> <li class="active" data-slide-to="2" data-target="#mycarousel"></li> </ol> <div class="carousel-inner"> <div class="item active" id="slide1"> <img src="http://i.imgur.com/sq691zo.jpg" > <div class="carousel-caption"> <h4>hello</h4> <p...

python - Space shooter game have slight errors -

i've been having trouble levels game , wondering why enemies in game not falling top of screen, , trying make levels class levels not working.can please help! my code: import pygame import random # define colors black = (0, 0, 0) white = (255, 255, 255) red = (255, 0, 0) blue = (0, 0, 255) lav = (209, 95, 250) #enemy class block(pygame.sprite.sprite): """ class represents block. """ def __init__(self, color): # call parent class (sprite) constructor super().__init__() self.image = pygame.image.load("enemy2.png") self.rect = self.image.get_rect() def reset_pos(self): self.rect.y = random.randrange(-300,-20) self.rect.x = random.randrange(0,screen_width) #player class player(pygame.sprite.sprite): """ class represents player. """ def __init__(self): """ set player on creation. """ ...

Aggregate imports then export in TypeScript -

i'm used using es6 syntax. tend aggregate react component files 1 "import" file use index.js of components folder. allows me write destructing imports so: import { app, ticker, timer } "./components" inside of index.js file can write export import commands so: export app "./app" export ticker "./ticker" export timer "./timer" is there way can in typescript? can't seem index.ts recognized default file in module. there syntax export import in typescript? is there way can in typescrip just use es6 export * syntax: export * "./components"; alternatively can still do: export {app,ticker,timer} "./compoents"