Posts

javascript - Using cURL/php to get a page, but it's missing something -

I need to draw data from an external website (with a different domain) I'm trying to get data I do not see a large part of it until the user clicks on an element, or alternatively a cookie is set. I was trying to use curls with PHP, but I am open to other options. Is it possible to request programmatic GET to process JavaScript during the request? According to the post on this question you can pass curl cookies, but the resulting behavior will not be sent back because it ' any other suggestions would greatly appreciate Are there. As far as I can tell that too much to scrap data with a framework Can not be used, which can get JS-processed HTML output from public webpage, and thus has left the progress on it. If I get a framework then I will update this post which allows easy recovery.

Rails 3 + Select2 multiple ids + AJAX -

I use selection 2 to create an AJMX call to select users for simple messaging inside my app I am here. Everything seems to be getting the most out of work (even intense seals through ANACage), except that I am tearing off my hair to try to make my hair as an easy thing: everyone's To create a message again, run through several user ids. > The problem, apparently, is that Selection 2 returns several IDs in the form of a string that expects the rail. I have tried that a bunch of things do not seem to work .... How do I change the string? {"username" = & gt; "78,21,12"} to {"username" = & gt; [78221]} Here's a solution: h = {"username" = & gt; "78,21,12"} h.map {| A, b {One = & gt; B.split (',')}} Decrease (: merge) Product: {"user name" => ["78" , "21", "12"]} or if you want an integer instead of a string: h.map {| A, b {One =...

nant - Nantcontrib task -

I am trying to attach a log file to email. My code is: ** & lt; Loadtasks assembly = "... / tasks.dll" /> & Lt; Record name = "c: foo \ log.txt" verb = "start" /> & Lt; Target name = "email" & gt; & Lt; = "Abc@foo.com" from mail tolist = "xyz@foo.com" topic = "build" message = "build fail" mailhost = "smtp.anywhere.net" & gt; & Lt; Files & gt; & Lt; Include name = "c: foo \ log.txt" /> & Lt; / Files & gt; & Lt; Attachment & gt; & Lt; Include name = "c: foo \ log.txt" /> & Lt; / Attachment & gt; & Lt; / Mail & gt; & Lt; / Target & gt; & Lt; Record name = "c: foo \ log.txt" action = "close" /> gt; This is my commandment: nant -f: filename.build email -l: c: foo \ log.txt I get the following error: System.Security.SecurityException: Request ty...

javascript - Calling a mootools class method from another external function -

I have a legacy Mutulus class, which I am using in many tasks. Rather than expanding the classroom, I am trying to call only one of the class methods out of class. So if the class has seen something like this: var myClass = new class ({search: function () {this.searchSpinner.show (); this.request.send ({data: this .data});}, // many other functions}) I have to call the search method from other scripts loaded on the same page. I'm just trying this way: window.myClass.search (); But this is the result of a big hairy error that I can not understand, but that looks: Unkit type error: object function () {E (this); If (G. prototyping) {return;} it. $ Caller = null; Var i = (this.initialize)? Initialize it. Aponley (this, argument): this, it. $ Collar = this.caller = null; There is no way 'search' in return I;} Is there a 'right' way to call this method? A class defined by the use of Mootool's class behaves like a static In other langu...

How to write a link like which link to the same page in PHP? -

In HTML like I & lt; A href = "# id" & gt; Can I link to a place where I & lt; Id = "id" & gt; But it seems that it does not work in PHP. How to do this? The original code is from Bootstrap & lt; Div class = 'tabbable' & gt; & Lt; Ul class = 'nav nav-tabs' & gt; & Lt; Li class = 'active' & gt; & Lt; A href = '# tab1' Data-Toggle = 'Tab' & gt; Drink & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = '# tab2' Data-Toggle = 'Tab' & gt; Bread & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; Div class = 'tab-content' & gt; & Lt; Div class = 'tab-panel active' id = 'tab1' & gt; & Lt; P & gt; Some & lt; / P & gt; & Lt; / Div & gt; & Lt; Div class = 'tab-panel' id = 'tab2' & gt; & Lt; P & gt...

live - Roku Streaming Channel from Kit Digital -

I am developing a blocked channel mostly from tutorials and it is coming together well. Now my problem is that I am trying to connect the channel to a live kit digital live stream (a .m3u8 stream) and I do not know how to connect the stream to that stream rather than choosing your video stream regularly To do. Does anyone know how I can get this document or how to help that document? (I have already been on the developer guide and forum but no clue can be found) Look in the demo code: shows you how to use HLS and some other cool playback features. this.player.SetMessagePort (this.port) this.player.SetLoop (true) this.player.SetPositionNotificationPeriod (1) this.player.SetDestinationRect (this.layout.left) this. Player.SetContentList ([[stream: {url: "http: //ec2-184-72-239-149.compute1.amazonaws .com: 1935 / demo / smile: bigbackforean.php smil / playlist.m3u8"} stream format : "HSL" switching strategy: "full-customization"}]). Player. Play ...

python - multiplication of 3-dimensional matrix in numpy -

I think I had asked yesterday. What I really want is to change the two 2x2xN matrix a and b so that c [: For example, if I have a matrix I pre> A = N.P. range (12) .Reship (2, 2, 3 ) How can I get C = A x A Define the definition above? Is there an underlying task to do this? In addition, if I type with A (size 2x2xN) with B (in size of 2x2x1, N) , i Try to use div> numpy.einsum , it's a little bit in the learning curve, but You have to give an example that you want to get started here. Import like np a = np.random.random ((2, 2, 3)) B = np.random.random ((2, 2, 3)) C1 = NP (3,): (1,,,,,,,,,,, ) C2 = N.P.EnSam ('Aijan, JNAN- & gt; Icon', A, B) NP Oculus (C1, C2)