search for: get_el

Displaying 10 results from an estimated 10 matches for "get_el".

Did you mean: get_elt
2006 Jul 18
9
Simple Array Issue - HELP
...#39; response = http.request(request) response.value response.body end @links = Array.new http = Net::HTTP.new(''api.del.icio.us'', 443) http.use_ssl = true http.start do |http| xml = get_authenticated(''/v1/posts/recent?count=10'', http) REXML:ocument.new(xml).root.get_elements(''post'') .each do |post| link = post.attributes[''href''] @links = link end end See where I''m saying "@links = link"? I''m trying to get that into an array. Then iterate over the array in the view, but it''s not working. It...
2019 May 10
2
ALTREP: Design concept of alternative string
...internal representation, but rather about how we design and use the ALTREP API. I might do not state the workarounds clearly as English is not my first language. Please let me explain them again in detail. 1. Update the existing R functions. When the ALTREP API Dataptr_or_null returns NULL, use get_element instead(or as best as we can). I have seen this pattern for some R functions, but somehow there are still some functions left that do not follow this rule. For example, print function will blindly call Dataptr (It even did not call Dataptr_or_null first) and forces me to allocate a large chunk...
2019 May 08
2
ALTREP: Design concept of alternative string
...ing a large R object. An allocation of the memory is undesired especially when the data is read-only in the code(eg. print function). I'm not sure if there are any solutions existed in the current R version, but I can imagine three workarounds: 1. Change the behavior of the R functions and use get_element function instead of Dataptr function. This would make the problem more memory-friendly but still cause the allocation. 2. Return a vector of const char* in Dataptr method. It would be very efficient and consistent with the return values of the other ALTREP types. 3. Provide an alternative CH...
2019 May 10
0
[External] Re: ALTREP: Design concept of alternative string
...ther > about how we design and use the ALTREP API. > > I might do not state the workarounds clearly as English is not my first > language. Please let me explain them again in detail. > > 1. Update the existing R functions. When the ALTREP API Dataptr_or_null > returns NULL, use get_element instead(or as best as we can). I have seen > this pattern for some R functions, but somehow there are still some > functions left that do not follow this rule. For example, print function > will blindly call Dataptr (It even did not call Dataptr_or_null first) and > forces me to al...
2019 May 09
0
ALTREP: Design concept of alternative string
...dug around R's low-level string handling a ton. Either way though, this would be a much much larger change than just changing the ALTREP API (which for things like this explicitly and intentionally matches how the C api behaves for non-ALTREP SEXPs for compatability). Likewise the reason that get_element is going to return a CHARSXP, is because that is what STRING_ELT(x, i) returns (equivalent to (SEXP) DATAPTR(x)[i] ), so I don't think that can be changed either. One other thing to note, though, is that if your'e asking for the dataptr (and it isn't read only) then you're bas...
2018 Mar 02
0
Wine release 3.3
...needed document node reference in HTMLDOMChildrenCollection. mshtml: Get rid of no longer needed document argument from script_elem_from_nsscript. mshtml: Get rid of no longer needed document argument from create_all_list. mshtml: Get rid of no longer needed document argument from get_element. mshtml: Use get_element helper in IHTMLElement::get_offsetParent implementation. ntdll/tests: Added pipe security descriptor tests. mshtml: Use get_element helper in IHTMLDocument2::elementFromPoint implementation. mshtml: Get rid of no longer needed document argument...
2006 Jul 18
0
del.icio.us links in the layout - HELP
...@descriptions = Array.new @times = Array.new @i = 0 http = Net::HTTP.new(''api.del.icio.us'', 443) http.use_ssl = true http.start do |http| xml = get_authenticated(''/v1/posts/recent?count=10&tag=rpheath'', http) REXML::Document.new(xml).root.get_elements(''post'').each do |post| link = post.attributes[''href''] @links << link desc = post.attributes[''description''] @descriptions << desc time = post.attributes[''time''] @times <&l...
2006 Jul 21
1
What''s wrong with this code?
...path = "/services/rest/?api_key=API_KEY&method=flickr.photos.search&user_id=USER_ID&tags=TAG" http = Net::HTTP.new(''flickr.com'') @photo_ids = Array.new http.start do |http| xml = get_response(path, http) REXML::Document.new(xml).root.get_elements(''photo'').each do |photo| id = photo.attributes[''id''] @photo_ids << id end end #Application.rhtml layout <% for p in @photo_ids %> <%= p %> <% end %> This just doesn''t do anything. It doesn...
2011 Mar 04
0
Wine release 1.3.15
...ed simple filter parser to support opacity. mshtml: Added IHTMLFormElement::onsubmit implementation. mshtml: Fixed memory leak. mshtml: Added support for canceling default event behavior. mshtml: Added onsubmit and event canceling tests. mshtml: Added IHTMLFormElement::get_elements implementation. mshtml: Added IHTMLLocation::replace implementation. mshtml: Correctly handle NULL BSTR in VARIANT in IDispatchEx implementation. mshtml: Reuse attribute objects. mshtml: Use our IDispatchEx-based attributes implementation instead of nsIDOMAttr. m...
2009 Jan 30
0
Wine release 1.1.14
...of crashing (Coverity). riched20: Handle cp NULL more gracefully (Coverity). riched20: Handle NULL fp more gracefully (Coverity). riched20: Handle more missing allocs gracefully (Coverity). server: Handle NULL thread in send_hardware_message (Coverity). msxml3: Handle get_element returning NULL (Coverity). xcopy: Handle return from vsnprintfW (Coverity). Mario Kacmar (4): comdlg32: Update Slovak translation. comctl32: Added Slovak translation. setupapi: Added Slovak translation. shlwapi: Added Slovak translation. Michael Gruber (1):...