Tuesday, 15 March 2011

jmeter use multiple BeanShell PostProcessor parametrs in http request -


Can anyone explain how to do such a thing?

I have a Beanshell post processor in my test phase. It gives a list of n elements (each time the number of elephants is different) I wonder, is it possible to run some exact http requests? Which will use that element? For example, the processor returned var1, var2, var3, then this three Http request:

  ... / get-smth $ var = var1 ... / get-smth $ var = Var2 ... / get-smth $ var = var3  

I realized that I use a size to keep the variable in the loop controller, but for http request How to implement variables?

Leo, possibly an array + a foreach controller can solve your problem

< Take a look at p>, you can include almost anywhere ... For example, if you want to include the VERS1 in your life; Just look at it as $ {var1} Note the multidimensional variable (array) like $ {Var1}; That means var1_1 will give you the first element


objective c - iOS app crashes "tcpConnWorkQueue" -


Is anyone else experiencing this problem?

  Thread: Fixed a crash: tcpConnWorkQueue 0 libsystem_kernel.dylib 0x000000019344f270 __pthread_kill + 8 1 libsystem_pthread.dylib 0x00000001934ed228 pthread_kill + 112 Turn off 2 libsystem_c.dylib 0x00000001933c6b18 between + 112 3 libsystem_malloc.dylib 0x000000019348a3e4 _nano_malloc_check_clear 4 libsystem_malloc.dylib 0x00000001934892f8 nano_free + 192 5 CoreFoundation 0x00000001825c9a04 CFRelease + 1064 6 CFNetwork 0x000000018203f5dc SocketStream :: ~ SocketStream () + 472 7 CFNetwork 0x000000018203f3ec SocketStream :: ~ SocketStream () + 28 8 Korfoundeshn 0x00000001825c9724 CFRelease + 328 9 libdispatch.dylib 0x000000019330d49c _dispatch_call_block_and_release + 24 10 libdispatch.dylib 0x000000019330d45c _dispatch_client_callout + 16 11 libdispatch .dylib 0x0000000193317554 _dispatch_queue_drain + 1216 12 libdispatch.dylib 0x0000000193310564 _dispatch_queue_invoke + 132 13 libdis Patch.dylib 0x0000000193319224 _dispatch_root_queue_drain + 656 14 libdispatch.dylib 0x000000019331a75c _dispatch_worker_thread3 + 108 15 libsystem_pthread.dylib 0x00000001934e92e4 _pthread_wqthread + 816  

/ / main thread

  Thread: com.apple.main-thread 0 libsystem_kernel.dylib 0x000000019872ce7c ​​mach_msg_trap + 8 1 libsystem_kernel.dylib 0x000000019872ccf8 mach_msg + 72 2 Korfoundeshn 0x0000000l8794l808 __CFRunLoopServiceMachPort + 200 3 Korfoundeshn 0x000000018793f75c __CFRunLoopRun + 940 4 core Fundeshn 0x000000018786d664 Sifarn Luprinspeshik + 396 5 Ufoundeshn 0x0000000l948l7500 - [ NSHMLReader Loading WebSite] + 1988 6th Foundation 0x00000001948188C - [NSHTMLReader attributedString] 32 7 U IFoundation 0x00000001947b65e4 _NSReadAttributedStringFromURLOrData + 5804 8 UIFoundation 0x00000001947b4e80 - [NSAttributedString (NSAttributedStringUIFoundationAdditions) initWithData: Options: DocumentAttributes: error:] 148 9 Application 0x00000001000b27b0 - [LAItem setItemDescriptionHtml:] (LAItem.m: 108) 10 Test app 0x00000001000b1e80 - [LAItem initWithDataDictionary:] (LAItem.m: 46) 11 Test App0x00000001000b25dc + [LAItem itemsWithDataArray:] (LAItem.m: 93) 12 Test App0x00000001001394f4 - [oldest updateDidadataMeM] (Latest M: 234) 13 Test App0x000000010015Feb 8_____ [Details View Controller getTestDetailFeed] _block_invoke (TestDetailViewController.m: 165) 14 Test App0x00000001001843dc __86- [Data Centers sendGetRequestWithUr Lendpoint: Urlprmetrs: Sukkessblok: Faalurblok:] _ Blok_invo of (Ldatasentrkm: 163) 15 Libdispatchkdilib 0x000000019860549c _dispac_col_blok_and_riliz + 24 16 Libdispatchkdilib 0x000000019860545c _dispac_claint_colut + 16 17 Libdispatchkdilib 0x0000000198609a70 _dispac_man_kueue_kalbak_4CF + 932 18 CoreFoundation 0x00000001879418dc __kfruँlup_is_srvising_the_man_dispac_kueue__ + 12 19 CoreFoundation 0x000000018793f984 __CFRunLoopRun + 1492 20 CoreFoundation 0x000000018786d664 CFRunLoopRunSpecific + 396 21 Graphics Services 0x00000001909a75a4 GSEventRunModal + 168 22 UIKit 0x000000018c172984 UIApplicationMain + 1488 23 Test App0x00000001001375d0 Main (Main. M: 16) 24 libdyld.dylib 0x000000019862ea08 start + 4  

I f1networking for API hit kit. I can not find the exact scenario It crashes very often, I got a trace from the Crichistic framework.

Thanks in advance.


zend framework2 - Dynamically Render jpg/png from string inside php page -


I need to render an image (PNG) from a string (a user's telephone number) when the page is presented goes. Is it possible to present the image within the PHP page? Or should I have to create a page specifically to render the image and I will include it?

If I use this code inside my php page, it does not work properly

  & lt ;? Php // Create a 100 * 30 image $ im = imagecreate (100, 30); // White's background and blue text $ BG = Size of image ($ im, 255, 255, 255); $ Text color = picture calculator ($ im, 0, 0, 255); // Write the string on the upper left commenting ($ im, 5, 0, 0, 'hello world!', $ Text color); // Output image header ('content-type: image / PNG'); Imagepng ($ im); Imagedestroy ($ im); ? & Gt;  

I have to declare "header-type: image / PGN" or another way of rendering PNG because if I I declare this, then the other parts of the page are not presented.

I am using Zend Framework 2

As he suggested me, I used Base 64 mode Tried to use and works fine

  & lt ;? php ob_start (); $ im = @imagecreate (110, 20) or die ("new gd image The stream can not be initialized "); $ Background_color = imagecolorallocate ($ im, 0, 0, 0); $ Text_color = imagecolorallocate ($ im, 233, 14, 91); Imagestring ($ im, 1, 5, 5 , "A simple text string", $ text_color); imagepng ($ im); $ Image_data = ob_get_contents (); Ob_end_clean (); $ Image_data_base64 = base64_encode ($ image_data);? & Gt; & lt; img src = "data : Image / png; Base64, & lt ;? Php echo $ image_data_base64 ;? This is an exam, do not compete with and use this code on your site;  It is unsafe. 

With all web pages - Images are not part of HTML - they are separate So if you have files, you have to create a separate file and set the appropriate headings for your image, and then just add the URL of the file to the source of your image

Keep in mind that if your Url "file.php? Number = 123456 ", robots are easy to find phone numbers and it will only beat the purpose of the image (if I believe this purpose correctly).

Alternatively, You can create an image, change it to base 64 and embed it in the actual HTML source as a data-uri. I do not recommend it, but if you are interested, just "html data -uri "google - You will find many examples.


ViewState, Session, Hidden Form Fields, and QueryString for state management ASP.NET -


I am learning asp.net and c # and I have some questions because reading msdn page was confusing.

I should know when and how to use the viewstat, session, hidden form field and quizstring for state management.

viewstate:

If you only assign objects If you want to live for the life cycle of the current page, then a viewstation is right.

Session State:

For the data that a user needs to remain on multiple pages for the entire session,

Hidden form fields:

Hidden fields can be used to store data, which are several post backs Have to stay in, when your viewerast is disabled

Use with Javascript (because it is a plain text)

/ P>

Question paper:

Pass, which is not confidential

More information:


youtube - Is there any well-defined way to programmatically create a user? -


I am researching YouTube to support our video system. We have many clients and they want their accounts if they want to use the client system. Seeing YouTube APIs does not appear that I can manipulate user information. Is it possible for YouTube to programmatically create users through any other Google API or Youtube API? No, customers will have to manually create accounts. Programmatic account creation will be ready for abuse.


agda - Flattened matrix vs 2D matrix lookup equivalence (proof) - seeking more elegance -


I have a clear evidence (statement) that the elements in the form of a meter * n in the flat representation of a matrix Seeing length vector is similar to vector-of-vector representation. But my evidence seems terrible. [I will not give it proof here, doing so would be a prerogative!]. To make this question self-reliant, I give some self-contained Egga modules below, which are helpful. [Some of these limas should be in the standard library, but not.]

Actually, I'm looking for a great way to fill the hole below, proof of lookup concat . If you can make my lames more elegant, feel free!

  Module NN where open import data Net Open ImportDetate Properties Simple Open Import Data met. Open Properties, Import Data. Import Import Open. Open (Fin; inject≤; fromℕ; toℕ) Import data. Finn Open import data using properties (bounded) The product to be used (_ _ _ _ _ _ _ _ _ _) Open Import Relationship Binary.PropositionalEquality - Some useful lemurs cong + r≤: ∀ {ij} → i ≤ j → (k: ℕ) → i + k ≤ J + k cong + r≤ {0} {j} z≤nk = n ≤m + njk cong + r≤ {suc}} {0} () k - absurd cong + r≤ {suc i} {suc j} (Sssi≤j) k = s≤s (cong + r≤) {I} {j} i≤jk) cong + l≤: ∀ {ij} → i ≤ j → (k: ℕ) → k + i ≤ K + j cong + l≤ {i} {j} ijjk = start (k + i ≡⟨ + -comm key⟩ i + k ≤⟨ cong + r≤ i≤jk⟩ j + k ≡⟨ + -comm jk⟩ K + j ∎) where open ≤-recieving cong * r≤: ∀ {is} → i ≤ j → (k: ℕ) → i * k ≤ j * k cong * r≤ {0} {j} z≤nk = Z≤n cong * r≤ {success}} {0} () k - absurd cong * r≤ {suc i} {suc j} (s≤si≤j) k = cong + l≤ (cong * r≤ I≤jk) k sinj≤: ∀ {ij} → success i Suc j → i ≤ j sinj≤ {0} {j} _ = z≤n sin ({iSP) = p * n + kmm * n: ∀ {mn} → (ii: fin m) → (k: fin N) → (success (toe i * n + toℕ k) ≤ m * n) i * n + k≤m * n {0} {_} () _ i * n + k≤m * n {_} { 0} _ () i * n + k≤m * n {success meter} {success} Ik = start (success (toℕ i * suc n + toℕ k) ≡⟨ cong suc (+ -comm (to ii)) ( ℕ k))⟩ suc (tok k + toℕ i * suc n) ≡⟨ refl⟩ suc (toℕ k) + (to ii) * n) ≤⟨ cong + r≤ (bounded k) (to ii) success n +⟩ Suc n + (to ii) * ≤⟨ cong + l≤ (cong * r (sin i) (success n)) (success n)⟩ success n + (m * success n) ≡⟨ rifle Success M * success n ∎) where open ≤-logic fwd: {mn: (I) + Kmm * nik) Lookup: Context: ∀ {mn} {A: Set} (Lookup J (Lookup IXSS) LookupCanc ij xss = {Lookup Lookup (XML)) (XMC) !!}   fwd  by induction, then it follows the rest: pre> 

  Open import data.Note. Open the banner import data. Hide Fine (_ + _) Open import data. Import Import Open. Open properties import relationship Binary.PropositionalEquality fwd: ∀ {mn} - & gt; Fin M - & gt; Fin N - & gt; FIN (M * N) FWD {Successful M} {N} Zero J = Inject + (M * N) JFWD {N = N} (Success I) J = N (FWD ID) - It should be Standard in Library . Lookup - ++ - raise: ∀ {m}} {a} set} (j: fin n) (xs: vac am) (ys: vac an) - & gt; Lookup (increase MEG) (XS ++ YS) ≡ Lookup which YS Lookup - ++ - h raise J [] ys = Rifle lookup - ++ - h raise J (x ∷ xs) ys = lookup - ++ - jacks xs Increase YS Lookup∘concat: ∀ {mn} {A: Set} ij (xss: VAC AN) M) - & gt; Lookup J (Lookup I xss) LookupCanChat Zero J (xs ∷ xss) = Lookup - ++ - Inject + X (Context XSS) J LookupConChat (Seu-i) J (X  Strong proof for fwd : << code>   : - 

  Module soundness where open import data .net properties. Open import data. Finn Properties Voice: ∀ {mn} (i: fin min) (j: fin n) -> toe (fwd ij) ≡ to ii * n + to jj soundness {suc m} {n} Zero j = sym (inject + -lemma (m * n) j) Increase the sound of {n = n} (suc i) j rewrite to-n (FWD IJ) | Strength I am Jammu = SMM (+ -sok n (toℕ i * n) (toℕ j))  

linux kernel - ARM: May I do direct memory accesses to a range returned by ioremap_nocache() [without using ioread*()/iowrite*()]? -


I am using a TI AM3358 SOC running an ARM Cortex-A8 processor, which runs Linux 3.12 is. I have enabled a child device of the GPMC node in the device tree, which checks my driver, and there I provided the device tree node to get an unwanted area of ​​ ioremap_nocache () Calling with the resource I got. / P>

The reason for this is that I am not asking for any cash, that it is not a real memory device connected to a GPMC bus, which will definitely benefit from the processor cache, but an FPGA device. Therefore it is necessary to always go through the actual wires.

When I do this:

  u16 __iomem * addr = ioremap_nocache (...); Iowrite16 (1, and eder [0]); Iowrite16 (1, and Eder [1]); IORIT 16 (1, End And [2]); Iowrite16 (1, and Eder [3]); Ioread16 (& amp; addr [0]); Ioread16 (& amp; addr [1]); Ioread16 (& amp; addr [2]); Ioread16 (& amp; addr [3]);  

I think 8 access is done on the wires using a logic analyzer. However, when I do this:

  u16 v; Editor [0] = 1; Edit [1] = 1; ADR [2] = 1; Copula [3] = 1; V = addr [0]; V = Eder [1]; V = Eder [2]; V = addr [3];  

I look at the four writing accesses, but there is no access to reading later.

Am I missing something? Knowing the difference between ioread16 () and a direct memory access, knowing that the GPMC range is completely similar to memory?

Could this behavior be the result of any compiler optimization that can be avoided? I have not seen the guidelines that have come so far, but by then, maybe something interesting is enough to give someone enough answers to be experienced.

ioread * () and iowrite * () , at ARM, after blocking a data storage, unstable access, e.g. :

  #define readb (c) ({u8 __v = readb_relaxed (c); __iormb (); __v;}) #define readw (c) ({u16 __v = readw_relaxed (C) ; __iormb (); __v;}) #define readl (c) ({u32 __v = readl_relaxed (c); __iormb (); __v;}) #define writeb (v, c) ({__iowmb (); writeb_relaxed (v );) Written in #define (v, c) ({__iowmb (); writew_relaxed (v, c);}) #define writel (v, c) ({__iowmb (); writel_relaxed (v, c) ;})  

__ Raw _read * () and __ raw_write * () (where * The b , w , or L ) can be used to read / write directly to the exact instructions necessary for those tasks. Do the address indicator a variable For casting, do castings. Examples (store register, half word):

  #define __raw_writew __raw_writew static inline zero __raw_writew (u16 val, unstable) Zero __iomem * ADR) {ASM WaterLeil ("SBR% 1,% 0": "+ Q" (* (fluctuations, 16 __forbs *) edit): "R" (val)); }  

Be careful that these two functions do not contain any constraints, so you should read rmb () (read the memory barrier) and Wmb () (type memory block) anywhere you want your memory to be accessed.