Vote count: 0 I want to add an whole object to my listview using Firebase. Have been illustration this with a image because sometimes an image is just easier than text. Firebase tutorials show how to retu each child as an item and display it with Firebase UI and I want to almost do the same thing but the difference is that I want the whole object to be the child and the childs inside that object will be additional information for each listitem. So in my image I have object Camping and the "Mount...
ادامه مطلبVote count: 0 I am having some difficulty coming up with an efficient way of taking a list of strings and converting it to tuple pairs. I have a list similar to: listOfNames = ['red-l','blue-l','green-s','red-s','blue-s'] Every color in this example (red, blue, and green) has either a '-l' or '-s' entry or both. I need to convert this list of strings into tuple pairs such as: tupleOfNames = [('red-l','red-s'),(None,'green-s'),('blue-l','blue-s')] I think regular expressions is needed but I am no...
ادامه مطلبVote count: 0 I have some imports : gi.require_version('Gtk', '3.0') from gi.repository import Gtk from gi.repository import Gdk, GdkPixBuf An error (maybe 2) is raised : WAING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files Traceback (most recent call last): File "", line 2158, in _find_spec AttributeError: 'DynamicImporter' object has no attribute 'find_spec' During handling of the above exc...
ادامه مطلبVote count: 0 See the code mult = [lambda x, i=i:x*i for i in range(4)] for v in mult: print(v) But my retu value is: can i get a real value? asked 42 secs agoGuilherme Almeida Let's block ads!...
ادامه مطلبVote count: 0 I am trying to write some code to scrap the website of a UK housebuilder to record a list of houses for sale. I am starting on the page http://www.persimmonhomes.com/sitemap and I have written one part of the code to list all the urls of the housebuilder developments and then the second part of the code to scrap from each of the urls to record prices etc. I know the second part works and I know that the first part lists out all the urls. But for some reason the urls listed by the f...
ادامه مطلبVote count: 0 For example testList0. If I run sapply(testList,function(x)is.list(x) & x[[3]]>1) I get Error in x[[3]] : subscript out of bounds. But really the problem is that the x[[3]]>1 should only be applied to the lists, not the vectors. The boolean needs to be of length testList. Any simple way of doing this? asked 40 secs agoColinTea Let's block ads!...
ادامه مطلبVote count: 0 Is there an existing test suite I can make use of to test an implementation of IOBase? If possible, I would like to exhaustively test a new implementation, but there are a lot of tests that would need to be manually written. For instance, say I have a non-seekable, non-writeable stream. I want to validate that my implementation of read is compliant and that all other methods raise the right kinds of errors. Such a class might look like this: import io class NonSeekableReader(io.Raw...
ادامه مطلبVote count: 0 What I want to do I've got only the first animation: and it makes my list view item being removed and scaled. However, what I didn't figure out yet is how to build the second animation what push the rest of the items up. This is what I built:What I reached to do Thanks ahead! asked 1 min agoAssaf Zfani Let's block ads!...
ادامه مطلبVote count: 0 i want to make a responsive navbar that is collapsed according to the number of items "li" not according to the width of the window i will attach some images to describe what i want to do. 1-case1:number of item not exceed the navbar width 2-number of item exceed the navbar width 3-if i collapse the window , the item in navbar must be added in dropdown list 4-if mobile ( less than 320) add all nav item in dropdown menu "bootstrap style} asked 30 secs agoGeorge Samuel Let's block ad...
ادامه مطلبVote count: 0 i'm working with python 2.7 on a linux environment, my app working with the ebay trading api with the sdk: ebaysdk-python. My goal is to list a fixedpriceitem, i didn't found a correct way to do it ... It seems the example on the ebay website for the developer isn't working also. Someone out there can post a full working code written in python, to publish a fixedpriceitem with the ebaysdk-python api ? Thanks. asked 21 secs agoilmetu Let's block ads!...
ادامه مطلبVote count: 0 i am trying to write python functions to parse list or array of dates and sort it and then get max or min value from it. I have to call this functions around 4 million times and input to it will be passed from Amazon Redshift Database, for performance reasons i want to do this in Amazon Redhsift Database user defined functions. Below is Java Code needs to be converted into Python/Amazon Redshift user defined functions. public String doItMin(String v_effect_date){ java.util.List arr...
ادامه مطلبVote count: 0 While create the skeleton for an HTML 5 game (using canvas), I noticed an interesting quirk about the JS language that I don't seem to quite understand! Specifically, I created an array of objects (nodes) which I have no problem passing through functions (as "node"), but even after confirming that said object is recognized in the console log, the .indexOf() method doesn't seem to recognize said object as an item in the array (giving me the generic "-1" output). function StartGame()...
ادامه مطلبVote count: 0 importing procedure in python - utina@utinax55:~$ python Python 2.7.11+ (default, Apr 17 2016, 14:00:29) [GCC 5.3.1 20160413] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import lal Traceback (most recent call last): File "", line 1, in File "/home/utina/.local/lib/python2.7/site-packages/lal/__init__.py", line 2, in from .lal import * File "/home/utina/.local/lib/python2.7/site-packages/lal/lal.py", line 28, in _lal = swig_import_helper() Fi...
ادامه مطلبVote count: 0 I have set up a Userform which saves data to the Incident Details data sheet and also saves data temporarily to a worksheet called 'Email Form' and laid out like a form so that the 'email form' is copied into the body of a MS Outlook email. This works perfectly, and with the current coding I was provided sends one email To 1 recipient and CC'd to another, but I need to send same email to multiple recipients. I have created another sheet called ‘Email Recipient List (same workbook) ...
ادامه مطلبVote count: 0 For example, I called a listener once with a .ChildAdded event type but later I want to call that same listener again with a .ChildRemoved listener. asked 15 secs agokeyhoffman Let's block ads!...
ادامه مطلبVote count: 0 I have two lists and i like to browse them to get the matchs and the difference but i don't understand why my index don't reach the end of list there is my code: recordedEvents=[u'/app//wakeup', u'/app/hdmi/state', u'/homepage/ws/view', u'/homepage//activate', u'/live//activate', u'/live//zap', u'/live/ctazap/view', u'/live/ppluspminus/zap', u'/app//keypress', u'/app//keypress', u'/app//keypress', u'/app//keypress', u'/app//keypress', u'/app//keypress', u'/live/virtualzappinglistba...
ادامه مطلبVote count: 0 I am trying to use HTMLUnitDriver in my selenium test to understand how HTMLUnitDriver works. Kindly help me with resolving the issue. I have added the below jars to the build path in eclipse selenium-java-2.53.0 jars TestNG jar Added the below jars as these were mentioned in other posts as a solution to the error I encountered. However, the issue remains. selenium-htmlunit-driver-2.52.0 jar selenium-server-standalone-2.53.0 Hi, I am trying to use HTMLUnitDriver in my selenium test...
ادامه مطلبVote count: 0 What is the correct css for the list of results to show correctly? Here are the steps to view the results: 1) Navigate to http://mypubguide.com/good-pubs/east-region 2) Type "Hull" in the search input on the navigation bar and enter 3) Check: You see a list of results but the styling is incorrect, e.g., the anchor tag is not showing the text correctly and other elements look badly formatted. How I resolve this? asked 40 secs agoCaotaurus Let's block ads!...
ادامه مطلبVote count: 0 I have dataframes with a varying amount of header data. I need to remove the header data, (ie. create a new dataframe containing only the data that comes after this header) I have used the following code to find the row where the header data ends. df = xlsx_file.parse('ActualSheet',header= None) value_list = ['var1','var2'] df_Header = df[df[0].isin(value_list) & (df[1].isin(value_list))] The above code works and creates a dataframe of the final row of header data. I am having trou...
ادامه مطلبVote count: 0 I have a function in c++ who retus a list of complex: #include std::list< std::complex > func(...); what should i do in the '*.i' file ? asked 34 secs agoxhao79 Let's block ads!...
ادامه مطلب