Posts

Errors with selenium & python, selenese commands throwing errors -

the errors i'm seeing: ====================================================================== error: test_1 (__main__.test1) ---------------------------------------------------------------------- traceback (most recent call last): file "test1.py", line 23, in test_1 driver.find_element_by_link_text("login").click() file "/library/python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 282, in find_element_by_link_text return self.find_element(by=by.link_text, value=link_text) file "/library/python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 712, in find_element {'using': by, 'value': value})['value'] file "/library/python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 201, in execute self.error_handler.check_response(response) file "/library/python/2.7/site-packages/selenium/webdriver/remote/errorhandler....

google analytics - ga:productCategoryHierarchy vs ga:productCategoryLevelXX -

i'm having trouble understanding difference between ga:productcategoryhierarchy , ga:productcategorylevelxx. unfortunately the documentation doesn't tell either, imho. i'm trying represent product in category taxonomy, e.g.: product a: category 1 -> category 1.1 -> category 1.1.2 product b: category 1 -> category 1.2 -> category 1.2.1 i tried separating categories / in ga:productcategoryhierarchy field, didn't work (i.e. showed whole string in ga reports, no possibility drill down individually). i've somewhere read can use ga:productcategorylevelxx (and substitute xx number between 1 , 5) , pass category names that. is there best practice? variant using? when using enhanced ecommerce send in full product category delimited / , example: apparel/men/t-shirts . when using core reporting api can query both category hierachy ga:productcategoryhierarchy return full string apperel/men/t-shirts or can query ga:productcategorylevelx...

ios - Fastlane, Pilot - Automatic Team Selection -

i m using pilot via fastfile: desc "build , upload new build apple testflight" lane :betatest testflight end but it's asked me choose team every time multiple teams found, please enter number of team want use: 1) "team 1" (000000) 2) "team 2" (111111) i tried use testfligh bellow, gives me error: testflight( username: "raed@gmail.com", team_id: "xxxxxx" ) error: [20:16:59]: variable dump: [20:16:59]: {:default_platform=>:ios, :platform_name=>:ios, :lane_name=>"ios betatest"} [20:16:59]: getaddrinfo: nodename nor servname provided, or not known +------+-------------------------------------+-------------+ | fastlane summary | +------+-------------------------------------+-------------+ | step | action | time (in s) | +------+-------------------------------------+-------...

ember.js - View Ember App on Remote Server -

i'm attempting develop ember.js app. required tools (node, ember-cli, bower, etc.) installed on remote machine. can create app no problems, , run ember server, unable access app through browser on local machine. ember server appears run on localhost:4200, meaning have view in browser on remote machine. know how open being viewable outside localhost? have firewall setup on remote machine, , configured allow connections on port 4200. have configured hosts file on local machine can access content served remote server using server's hostname instead of ip address. i've been using $hostname:4200 try access app, connection doesn't go through. best of knowledge, remote machine isn't accessible outside of network it's on (my local machine , remote machine on same network). i've used --proxy option ember serve , didn't work. essentially, know of way can view app through browser local machine? i able see ember application served ember s command o...

objective c - Xcode 4 / iOS - Send an email using SMTP from inside my app -

i've been looking around framework allow me send email inside app. have tried mailcore, pantomime , skpsmtp no luck. can't them compile in xcode, presumed outdated. there way can this? if so, how? thanks. you can send emails ios device. no need implement smtp , all. best thing using inbuilt emailing facilities in ios gives access address book! auto-completes names, email addresses. yaaiiii!! include, addressbook , addressbookui , messageui frameworks , code this. note can choose send content html too! #import <messageui/messageui.h> #import <addressbook/addressbook.h> #import <addressbookui/addressbookui.h> mfmailcomposeviewcontroller *mailcomposer; mailcomposer = [[mfmailcomposeviewcontroller alloc] init]; mailcomposer.mailcomposedelegate = self; [mailcomposer setmodalpresentationstyle:uimodalpresentationformsheet]; [mailcomposer setsubject:@"your custom subject"]; [mailcomposer setmessagebody:@"your custom body content...

c# - Generating a Tree Structure From Table -

i have excel document below +-------+-------+-------+ | col1 | col2 | col3 | +-------+-------+-------+ | item1 | | | | | item2 | | | | item3 | | | | | item4 | | | item5 | | | item6 | | | | | item7 | | +-------+-------+-------+ in table; item1 parent of item2, item3, item5 item3 parent of item4 item6 parent of item7 i want generate tree structure table couldn't figure out how do. how can using c#. thanks keep list of parents columns. parent first column tree root. when treat row, append item resecive parent. (it's error when there no such parent, foe example if item4 in column 3.) add added item list , remove lower items. to illustrate: current item col pnt parent list | | | | [root] | item1 | | | 1 0 [root, item1] | | item2 | | 2 1 [root, item1, item2] | | it...

sql - Adding a computed column in mysql -

i'm trying add column called 'price' order_details table. want calculate price different prices of products other tables. alter table order_detail add column price decimal(5,2) (case (order_detail.item_id, item.item_id, bagel.item_id, bagelfilling.item_id, item.price, bagelfilling.price, order_detail.quantity, order_detail.discount, drink_sizes.price, drink.item_id) when (order_detail.item_id = item.item_id) , (item.item_id = bagel.item_id) , (bagel.item_id = bagelfilling.item_id) ((item.price + bagelfilling.price)*order_detail.quantity)-order_detail.discount when (order_detail.item_id = item.item_id) , (item.item_id = drink.item_id) ((item.price + drink_sizes.price)*order_detail.quantity)-order_detail.discount when (order_detail.item_id = item.item_id) , (item.item_id = bagel.item_id) (item.price*order_detail.quantity)-order_detail.d...