Posts

Showing posts from August, 2012

java - Calling MainApplication methods from BroadcastReceiver -

i have android application activity, service , broadcast receiver. service call broadcast intent works. broadcast receiver receives intent correctly. but how can access methods of class mainapplication class mybroadcastreceiver ? ((mainapplication)getapplication()).mymethod(); gives error-message "cannot resolve method" //call service-class private void sendbroadcast() { log.d(tag, "sending broadcast intent"); intent intent = new intent(); intent.setaction("com.package.name.mybroadcastreceiver"); intent.addflags(intent.flag_include_stopped_packages); sendbroadcast(intent); } //receiver class public class mybroadcastreceiver extends broadcastreceiver { @override public void onreceive(context context, intent intent) { //doesn't work - "cannot resolve method" ((mainapplication)getapplication()).mymethod(); //doesn't work either ((mainapplication)context.getapplication...

qt - How to flip RadioButton? -

is possible flip radiobutton ? default circle aligned left , text aligned right. i'd position text left , circle right. layoutmirroring.childreninherit: true position text left, circle still on left. column { id: column1 x: -265 y: 219 width: 104 height: 45 spacing: 5 layoutmirroring.enabled: true layoutmirroring.childreninherit: true exclusivegroup { id: diamtypes } radiobutton { text: "one"; exclusivegroup: diamtypes } radiobutton { text: "two"; exclusivegroup: diamtypes } } add text item (with desired name) within radiobutton item , give relative x , y position it. leave text property of radiobutton blank. radiobutton { id: radiobuttonid x: 319 // button position y: 46 text { x: -60 // relative text position radio button y: 3 text: "radio button" font.pointsize: 8 color: "black" } }

angularjs - How to handle strings containing HTML using Angular Translate? -

i've seen lot of topics problem, hasn't resolved problem. when try use <p ng-html-bind-unsafe="{{tasksdetails[task.id].description | translate:{task:task, taskdetails:tasksdetails[task.id]} }}"></p> nothing appears @ website. primary way display was: <label data-translate>task_details</label> <label class="value-label">{{tasksdetails[task.id].description | translate:{task:task, taskdetails:tasksdetails[task.id]} }}</label> but doesn't recognize html tags.

MS CRM 2013 Process Update Account - multiple values to one field -

i'm trying implement update procedure 1 in blog post (via entity , workflow updating account, triggered when new entity being created) http://www.powerobjects.com/2013/08/01/updating-records-in-microsoft-dynamics-crm/ in list , new entity "account update" have 3 fields full name of company (name, name_2, name_3). in workflow want put these 3 , combine values in account field "company" (the company's name). in process tried insert them via "form assistant" , in field "company" have following entry: {name(account update);name_2(account update);name_3(account update)} but doesn't seem work. after import , update of account (which ends successful) value in "company" value of first name field. is possible combine values? do, when choose more 1 field in form assistant , ok? so @ last figured out how archive it. with "form assistant" can combine or add multiple field values 1 new field bit tri...

java - How do I make a HK2 ServiceLocator use the Singleton service instances from the ServiceLocator that it's bridged from? -

we using using extrasutilities.bridgeservicelocator() inject existing singleton application services created in 1 servicelocator jersey restful web services bridging app servicelocator jersey servicelocator. however singletons exist in 'outer' locator aren't being used - each of services being created once again when injected jersey services. seems singleton visible within scope of servicelocator, if it's bridged. is intended behaviour? , if there way change behaviour , have true singleton across bridged servicelocators? i have extracted issue out set of test classes illustrate point below: public class bridgedservicetest { private servicelocator _outerservicelocator; private servicelocator _innerservicelocator; @test public void testbridgedinnerserviceok() throws exception { servicelocatorfactory servicelocatorfactory = servicelocatorfactory.getinstance(); _outerservicelocator = servicelocatorfactory.create("outer"); servi...

java - Create in a simple way a copy of an object -

consider code below: project project1 = new project("string1","string2","string3","string4","string5", ...); project project2 = project1; here, project2 not copy of project1 , because points same object. significate if edit project2 , edit project1 . i want project2 independent of project1 . suppose can make constructor project param like: public project(project project) { this.string1 = project.getstring1(); this.string2 = project.getstring2(); ... } i case, have 15 attributes in project class, doing require me write big constructor. is there better way ? :) thanks ! no, there not better way that. use clone , but... don't. don't use clone .

php - Not able to login into joomla for users who has Jombri Freelance component enabled -

i faced strange problem today. logins joomla website has stopped working. found further investigations not working user has posted project or service using jombri freelance component of joomla. is there can me this? thanks, ankit

promoted builds - Jenkins CI - Promote Corresponding Downstream Jobs -

i using promoted builds plugin promote jobs qa, test, production, etc. plugin great promoting single job. looking way promote parent job , have job promote rest of downstream jobs corresponding build. here example. lets have 3 jobs triggered upstream job: job 1 - build 200 - parent job kicks off job 2 upon successful build job 2 - build 400 - job 2 kicks off job 3 upon successful build job 3 - build 300 - job 3 builds after job 2 successful after done want able promote job 1 build 200 , have job promote job2 build 400 , job 3 build 300 since these artifacts built in downstream relationship. this can done building jobs , automatically promoting them, not want build artifacts have been created. any appreciated!

php - Twig is not able to load assets -

Image
i'm trying slim slim-extras , twig. problem can't include css or js files twig html. accessing css , js file directly browser give 404 not found error browser console throws 404 page error. here httdocs(folder structure) my apache document root /var/www/devdomain.dev/public , directoryindex index.php this index.php in public folder here tried add hook $app->hook , pass twig did not work. <?php require '../vendor/autoload.php'; // prepare app $app = new \slim\slim(array( 'templates.path' => '../templates', )); // create monolog logger , store logger in container singleton // (singleton resources retrieve same log resource definition each time) $app->container->singleton('log', function () { $log = new \monolog\logger('slim-skeleton'); $log->pushhandler(new \monolog\handler\streamhandler('../logs/app.log', \monolog\logger::debug)); return $log; }); $app->hook('slim.befor...

java.util.NoSuchElementException: No line found, do I need to handle this exception? -

my program compiles, getting run time exceptions, not sure if need handle them? methods commented out , extended class, display text. don't know if using labels correctly? want program loop , handle exceptions erroneous characters, does, should terminate if user enters "5". import java.util.*; import java.util.inputmismatchexception; import java.util.scanner; public class mainmenu3 { // extends premierleagueclubs public static void main(string args[]){ boolean shouldexit = false; int option = 0; loop: while (!shouldexit) { try{ scanner in = new scanner(system.in); menu(); system.out.println("\n"); option = in.nextint(); } // end try catch(inputmismatchexception e) { string option2 = integer.tostring(option); } // end catch switch (option) { case 1: chooseteam(); break; case 2: createprofile(); break; case 3: loadsave(); break; case 4: credits(); break;...

post - cURL to Guzzle conversion -

i have curl works well: curl -h "authorization: token 71e24088d13304cc11f5a0fa93f2a2356fc43f41" -h "content-type: application/json" -x post -d '{ "reviewer": {"name": "test name", "email": "test@email.com"}, "publication": {"title": "test title", "doi": "xxx"}, "complete_date": {"month": 6, "year": 2015} }' https://my.url.com/ --insecure and use multi curl symfony2 guzzle what tried far: $client = new \guzzle\http\client(); $request = $client->post('https://my.url.com/'); $jsonbody = "'{ "; $jsonbody .= '"reviewer": {"name": "'.$review['name'].'", "email":"'.$review['email'].'"}, '; $jsonbody .= '"publication": {"title": "'; if ($review['article_title...

c++ - Pointer memory usage -

i may wrong on these facts correct me! a pointer points memory address, if went memory address find byte ? pointer points lowest address of memory segment points too, if points 8 byte memory segment, starts @ 0x0 , ends @ 0x7, point 0x0 ? how pointer know size of memory points at? if pointer points segment of memory 128 bytes in size , pointer cast different type, happens size of memory segment? how pointer know size of memory points @ ? it doesn't. so if pointer points segment of memory 128 bytes in size , pointer cast different type, happens size of memory segment ? the memory's still there, since cast away information had object residing there, well, y'know. that's it. don't know. that's why people use sizeof when aliasing objects through char* @ underlying bytes: std::ofstream os("some-binary-file"); const double d = 0.1234; os.write((char*)&d, sizeof(double)); // ^^^^^^^^^^^^^^ // // othe...

r - Understanding the behaviour of subsetting using 'which' -

i trying define function generating prime numbers till n. came following solution, compared solution readily available (given below reference). there's line of difference in both codes (indicated below) sieve <- function(n){ sq.n <- sqrt(n) vec <- 2:n primes <- rep(0, times=(sq.n)) <- 1 while (!(is.na(primes[i] < sq.n)) && (primes[i]) < (sq.n)) { primes[i] <- vec[1] vec <- vec[which(vec%%primes[i] != 0)] # keeps numbers not divisible # prime in question <- + 1 } return(c(primes[which(primes!=0)], vec)) } curious efficiency, google search yielded following code - getprimenumtilln <- function(n) { <- c(2:n) l <- 2 r <- c() while (l*l < n) { r <- c(r,a[1]) <- a[-(which(a %% l ==0))] # removes numbers # divisible prime in question l <- a[1] } c(r,a) } both solutions work okay. (the internet solution gives wrong answer if n square of prime, can corrected easily) and these micro...

reactive programming - How hook observable starting on delayed subscription in rxjava -

usability: when user press button, search starts after 3000 msec. when search starts, progress bar should shown. i have delayed subscription: observable<searchresult> delayedsearch = search .delaysubscription(3000, timeunit.milliseconds) //not working .doonsubscribe(() -> log(should appear progress bar)) delayedsearch.subscribe(result -> log(should disappear progress bar)); problem: can't hook start observable's execution. how best way solve problem? or maybe solution? i found solution. create showprogress observable: observable showprogress = observable.create(subscriber -> { log("showprogress") subscriber.onnext(null); subscriber.oncompleted(); }).subscribeon(androidschedulers.mainthread()); and add before searching: observable<searchresult> searchwithprogress = showprogress.flatmap((func1) o -> search); so can use this: observable<searchresult> delayedsearch ...

javascript - AngularJS form not submitting when pressing enter -

i'm trying login-form submit when user presses enter. form works fine when "login"-button clicked, pressing enter doesn't work , furthermore, causes strange behavior: the function associated ng-submit not being executed the error message (login failed) never being displayed again after pressing enter here's markup: <form ng-submit="login()" class="login-form"> <div class="alert alert-danger" ng-class="{ 'display-hide': !showerror }"> <button class="close" data-close="alert"></button> <span> login failed </span> </div> <div class="form-group"> <label class="control-label visible-ie8 visible-ie9">username</label> <input class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="u...

php - MySQL Performance - "IN" Clause vs. Equals (=) for a Single Value -

this pretty simple question , i'm assuming answer "it doesn't matter" have ask anyway... i have generic sql statement built in php: $sql = 'select * `users` `id` in(' . implode(', ', $object_ids) . ')'; assuming prior validity checks ( $object_ids array @ least 1 item , numeric values), should following instead? if(count($object_ids) == 1) { $sql = 'select * `users` `id` = ' . array_shift($object_ids); } else { $sql = 'select * `users` `id` in(' . implode(', ', $object_ids) . ')'; } or overhead of checking count($object_ids) not worth saved in actual sql statement (if @ all)? neither of them matter in big scope of things. network latency in communicating database far outweigh either count($object_ids) overhead or = vs in overhead. call case of premature optimization. you should profile , load-test application learn real bottlenecks are.

php - Is there any easy code to convert hex string into ascii? -

i have used 1 code converts hex ascii below: <?php $convert = ''; function hexstr($hexstr) { $hexstr = str_replace(' ', '', $hexstr); $hexstr = str_replace('\x', '', $hexstr); $retstr = pack('h*', $hexstr); return $retstr; } $str2 = hexstr($convert); echo($str2); ?> it works before shows ascii converted output shows error above like: ( ! ) warning: pack(): type h: illegal hex digit in c:\wamp\www\project\hextostring.php on line 8 why so? mean showing error , correct output? problem in code? line 8 is: $retstr = pack('h*', $hexstr);

python - celery task doesn't return result to client -

i'm trying setup simple worker return result client. however, client blocks forever, , there's no indication of errors on server. the service: from celery import celery import logging logger = logging.getlogger(__name__) app = celery('service', broker='amqp://localhost', backend='rpc://localhost') @app.task() def operation(x): logger.info(x) return 1 the client: from celery_test.service import operation rv = operation.delay('foo') print rv.ready() print rv.get() server log: [2015-07-08 14:15:02,529: debug/mainprocess] | worker: starting pool [2015-07-08 14:15:02,645: debug/mainprocess] ^-- substep ok [2015-07-08 14:15:02,648: debug/mainprocess] | worker: starting consumer [2015-07-08 14:15:02,650: debug/mainprocess] | consumer: starting connection [2015-07-08 14:15:02,680: debug/mainprocess] start server, version: 0.9, properties: {u'information': u'licensed under mpl. see http://www.rabbitmq.com/', u...

sql server - Trial column in client statictics SQL -

Image
i start attach client statistics examinate queries. there "trial x" columns, mean? i use sql server 2014 trial x column specifies number of times execute query. trial column creates each time when execute query. maximum of last 10 trial statistics shown. average values of trial shown in average column. msdn says “displays information query execution grouped categories. when include client statistics selected query menu, client statistics window displayed upon query execution. statistics successive query executions listed along average values. select reset client statistics query menu reset average.”

php - using LIMIT 0, 20 for infinite scroll - how to limit the number of total results? -

i have query: select * table id not null order desc limit :start, :limit the start , limit there ajax infinite scroll / pagination work how can limit total results if im using limit pagination? i need query similar below: select * table id not null order desc limit :start, :limit limit 5000 you can calculate without query. if don't want more 5000 results, should work: if (($start + $limit) <= 5000) { // query } else { // don't query, maximum limit reached }

java - Wildfly 8.2/Undertow - properties placeholder does not seem to work for alias attribute in host configuration -

i'm trying generalize wildfly (8.2 final) xml configuration in order have single configuration xml file references of system properties ( ${what.ever.value.key.from.proerties} ) in order distinguish dev. , prod. env. different .properties-files. worked fine till i've rich undertow subsystem. when try reference value property alias attribute of vertual host configuration - doesn't seem recognize , resolve @ position key value .properties. a small snippet of wildfly xml configuration show mean exactly: <subsystem xmlns="urn:jboss:domain:undertow:1.2"> ... <server name="default-server"> ... <host name="default-host" alias="${undertow.virtual.host.alias.mydomain}"> ... </host> </server> ... </subsystem> and corresponding entries in dev.properties file: undertow.virtual.host.alias.mydomain=localhost and in prod.properties file: underto...

java - Dividing 1.0/0.0: output is infinity -

this question has answer here: why doesn't java throw exception when dividing 0.0? 4 answers double d=1.0/0.0; output infinity double d=1/0; output arithmeticexception . what difference between between these two? meaning of infinity here? the first case treated division on double , later division on int , hence arthimeticexception. here infinity means http://docs.oracle.com/javase/7/docs/api/java/lang/double.html#positive_infinity the division of doubles , floats per ieee 754 standards floating point match shouldnt throw exception.

java - What is a NullPointerException, and how do I fix it? -

what null pointer exceptions ( java.lang.nullpointerexception ) , causes them? what methods/tools can used determine cause stop exception causing program terminate prematurely? when declare reference variable (i.e. object) creating pointer object. consider following code declare variable of primitive type int : int x; x = 10; in example variable x int , java initialize 0 you. when assign 10 in second line value 10 written memory location pointed x. but, when try declare reference type different happens. take following code: integer num; num = new integer(10); the first line declares variable named num , but, not contain primitive value. instead contains pointer (because type integer reference type). since did not yet point java sets null, meaning "i pointing @ nothing". in second line, new keyword used instantiate (or create) object of type integer , pointer variable num assigned object. can reference object using dereferencing operator . (a dot...

POSTing Nested JSON in AngularJS [400 error] -

part of html <div>house details: <input type ="number" ng-model="house.totalarea" placeholder="total_area"> <input type="number" ng-model="house.cost" placeholder="cost"> </div> <div>address: <input type="text" ng-model="house.address.state" placeholder="state"> <input type="text" ng-model="house.address.city" placeholder="city "> </div> angular: $scope.house = {}; $scope.house.address = {}; $scope.processrentform = function () { console.log($scope.house); $http.post("http://localhost:8080/property101/house/addhouse", $scope). error(function (data, status, headers, config) {alert("submit failed!!"); code works fine $scope.house but i'm getting 400 eror ( syntactically incorrect) nested json f...

php - Redirect and URL Mask all non-existing/existing subdomains to homepage -

a website example.com has 1 subdomain a.example.com . point here want redirect existing , non existing subdomain (ex- b.example.com ) example.com without changing url(url mask). explain more further, when user enters b.example.com must see example.com on screen url must not change b.example.com --> example.com. think possible .htaccess file failed achieve it. do need configure virtual host. since have access .htacces, wish can done you need have 2 things configured correctly: a dns entry wildcard (*.example.com -> server ip) a virtual host wildcard alias ( serveralias *.example.com ) then there nothing in .htaccess. .htaccess alone can't want. , please note seo-toxic (duplicate content), depends on use case. as not have access virutal hosts config, may go subfolders instead of subdomains.

Laravel routing - shorten the urls upto only one URI segment -

i have following urls: 1.need change from: localhost/laravel/page/about-us/ to localhost/laravel/about-us/ laravel's routing 1 of primary functionalities of framework, if can't use suggest read documentation . i think first example explicit enough: route::get('/', function() { return 'hello world'; }); this route catches of requests sent / url (the base url) so, should have @ \app\http\routes.php file , replace line starts : route::get('page/about-us', function() ... with: route::get('about-us', function() ... and since seem using xampp or other easyphp friends, should rename base directory laravel laravelproj if want available http://localhost/laravelproj instead of http://localhost/laravel . defining the default .htaccess file should help: options +followsymlinks rewriteengine on rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^ index.php [l] if doesn't...

android - How to check if a view is of an appropriate type before using in Adapter getView -

i'm using adapter 3 types of views public class myadapter extends arrayadapter<myclass> { @override public int getviewtypecount() { return 3; } //... } and appears wrong types of views passed getview . indeed docs warn it: note: should check view non-null , of appropriate type before using. how should check if view of appropriate type before using? should check findviewbyid if contains id appropriate xml? check "if view of appropriate type"? edit: answers far seems not miss question clarify: yeah i'm using getitemviewtype have 3 types of views, convertview in getview has wrong type (not view inflated getitemviewtype ) , cannot converted right 1 - question not how check view should returned (and covered "bigdestroyer" answer), if view passed getview can reused (and in case cannot). "appropriate type" means have check in getview method type of convertview in order return custom view ...

java - select all the subchilds details in jpa self refence for dynamic hierarchy -

Image
i using play 2.3.x java jpa mysql , got stuck in database problem.i have entity executive self refrencing relation of one-to-many (i using because want create dynamic hierarchical database). executive.java model @entity public class executive { @id @column(name = "id", nullable = false) @generatedvalue(strategy = generationtype.auto) private long id; @constraints.required private string full_name; @manytoone private executive upperexecutive; @onetomany(mappedby="upperexecutive") private collection<executive> lowerexecutives; private string type; } so given id of executive want find subuser of did simple select like public static executive gethierachyuser(long id) { executive executive = (executive)jpa.em().createquery("select e executive e e.id=:id").setparameter("id",id).getsingleresult(); return executive; } but in view dont know how long hierarchy dont know how e...

php - Increment index on multidimensional array using AJAX in cakePHP -

first sorry if question isn't clear @ all. so, have app transaction module in cakephp. module (at least) have 3 chained dropdowns supplier > products > packages. user choose supplier, in products select box show result products selected supplier. packages, options show when choose products. simply, use this reference first chain. works. when going packages, isn't easy first lol. why? because second form products , packages element have more complex dimensional array first. in first form (supplier element), fetch data $this->request->data['order]['supplier_id'] but in second form, data passed ajax $this->request->data['orderdetail'][$index]['product_id'] index in second form have increment number. example: <select id="product0" name=data[orderdetail][0][product_id]></select> <select id="product1" name=data[orderdetail][1][product_id]></select> <select id="product2...

python - Plotting a second scaled y axis in matplotlib from one set of data -

Image
i have 2 views of same data, calls need have y-axis scaled appropriately first natural y-axis. when plot {x,y} data, left y-axis shows y, right y-axis shows 1/y or other function. not ever want plot {x, f(x)} or {x, 1/y} . now complicate matters using .plt style of interaction rather axis method. plt.scatter(x, y, c=colours[count], alpha=1.0, label=chart, lw = 0) plt.ylabel(y_lbl) plt.xlabel(x_lbl) is there way - plt? or case of generating 2 overlain plots , changing alpha appropriately? i had check previous (duplicate) question , comments understand want. secondary y-axis can still use twinx . can use set_ylim make sure has same limits first. put tick labels according function (in case 1/y ) can use custom funcformatter . import matplotlib.pyplot plt import numpy np import matplotlib.ticker mticker fig, ax1 = plt.subplots(1,1) ax1.set_xlabel('x') ax1.set_ylabel('y') # plot x = np.linspace(0.01, 10*np.pi, 1000) y = np.sin(x)/x ax1.plot(x, y) ...

oracle - SQL grouping on time interval -

i have data set based on timestamp. data set present record on every shut down occurrence in 5 minute time interval. if shut down occurred in specific 5 min, record added else no record. no record means system has recovered date 07-jul-15 12:05:00 07-jul-15 12:10:00 07-jul-15 12:15:00 07-jul-15 12:35:00 07-jul-15 12:40:00 07-jul-15 12:45:00 07-jul-15 12:50:00 07-jul-15 13:05:00 07-jul-15 13:10:00 07-jul-15 13:15:00 i query , return 1.number of shutdowns: number of shut down in case 3 based on between 12:15 12:35 12:50 13:05 the system recovered period between every shut down example: 1.from: 07-jul-15 12:05:00 to: 07-jul-15 12:15:00 duration : 15 mins 2.from: 07-jul-15 12:35:00 to: 07-jul-15 12:50:00 duration : 20 mins there similar question although different solution required one. would appreciate fiddle example with changes ( select "date", case when lag( "date" ) on ( orde...

python - Kivy - unable to run the game on widget that is added to second screen -

i have posted 2 posts same problem few days ago, still can't run. i have 2 screens. 2 buttons on first screen (play , how play). second 1 want, first 1 begin game when released, change screen second screen (this works okay). have tried lot of things , errors snakewidget not being defined, not containing self , on. that's error get: file "c:\users\lara\desktop\kivy\lara\poskus.py", line 33, in <module> class gamescreen(screen): file "c:\users\lara\desktop\kivy\lara\poskus.py", line 34, in gamescreen snaky_game = snakewidget() nameerror: name 'snakewidget' not defined .py file: import kivy kivy.app import app kivy.uix.screenmanager import screenmanager, screen, fadetransition kivy.uix.floatlayout import floatlayout kivy.uix.widget import widget kivy.uix.label import label kivy.uix.button import button kivy.uix.popup import popup kivy.vector import vector kivy.clock import clock kivy.lang import builder class rootscreen...

javascript - jQuery Resizable detect elements underneath? -

i'm using 48 column grid generated gridpak render out 48 1 "span" columns illustrate 15 minute chunks of time in 12 hour period. i want able drag 15 minute chunk increase time duration. i'm using jqueryui resizeable handle resize. problem need detect number of columns pass on when resize column. way when stop event fires can determine how many columns need span , remove them list prevent overflowing. in snippet below, i'm using elementfrompoint() determine element corresponds elements position returns jqueryui helper element because top element. is there better way return elements sit underneath resized column? $(".col").resizable({ helper: "ui-resizable-helper", maxheight: 20, minheight: 20, grid: 40, handles: 'e', resize: function(event, ui) { console.log($(document.elementfrompoint(ui.position.left + ui.size.width, ui.position.top))); console.log(ui.position.left + ui.size.width); ...

javascript - Apply css styling for page numbering -

Image
i need apply 1 css style number 2 using javascript. how can using javascript following html. <tfoot> <tr class="pp-pagenumber"> <td colspan="1"> <a data-swhglnk="true" href="#">&lt;</a> <a data-swhglnk="true" href="#">1</a> 2 <a data-swhglnk="true" href="#">3</a> <a data-swhglnk="true" href="#">4</a> <a data-swhglnk="true" href="#">&gt;</a> </td> </tr> </tfoot> finally following image as per govan suggested changed pure css. looks since number 2 want style not within tag difficult style element. can filter nodes type 3 indicate text nodes , wrap in tag specified class name. can style element class name <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min...

robotframework - How to click the link in email body and how to spot out the link using Robot Framework -

how spot out link , click link email body. ${field name}= imaplibrary.get links email ${latest} ${mailbody}= imaplibrary.get email body ${latest} ${html}= imaplibrary.open link mail ${latest} but when give "get email body", i'm able total content in email body. how spot out links there , how click there? to find links need use regexps. example stackoverflow question answers how find urls in text: regex find urls in string in python it looks in robot framework: *** settings *** library re *** variables *** ${mailbody} mail body http://www.stackoverflow.com/ foobar https://stackoverflow.com/questions/31288261/how-to-click-the-link-in-email-body-and-how-to-spot-out-the-link-using-robot-fra *** settings *** library re *** variables *** ${mailbody} mail body http://www.stackoverflow.com/ foobar https://stackoverflow.com/questions/31288261/how-to-click-the-link-in-email-body-and-how-to-spot-out-the-link-using-rob...

httpd.conf - You don't have permission to access / on this server : Apache 2.4 Mac os x mavericks -

i installed apache 2.4 on mac os x mavericks , when started server , navigated url localhost/. following error. forbidden you don't have permission access / on server. i tried googling , found many posts on same error. none of solutions helped. here's httpd.conf file # # main apache http server configuration file. contains # configuration directives give server instructions. # see <url:http://httpd.apache.org/docs/2.4/> detailed information. # in particular, see # <url:http://httpd.apache.org/docs/2.4/mod/directives.html> # discussion of each configuration directive. # # not read instructions in here without understanding # do. they're here hints or reminders. if unsure # consult online docs. have been warned. # # configuration , logfile names: if filenames specify many # of server's control files begin "/" (or "drive:/" win32), # server use explicit path. if filenames *not* begin # "/", value of ser...