Posts

Showing posts from January, 2011

image processing - calculating the destination points for OpenCV's findHomography -

संपादित करें : मुझे अब एक बहुत ही विस्तृत उत्तर के साथ यह समान प्रश्न मिला है: मैं ओपनसीवी का ढूंढेंमॉोग्राफी () और warpPerspective () तरीकों का उपयोग कर रहा हूँ "de skew" कागज पत्र। मुझे यह काफी हद तक काम करना है, लेकिन मैं विस्तार पर फंस गया हूं। भाग मुझे समझ में नहीं आ रहा है कि यह कैसे तय करता है कि गंतव्य अंक के अधिकतम सेट को findHomography () / code>। मुझे पता है कि मैं अपना आउटपुट आयताकार होना चाहता हूं, लेकिन मैं आयत की चौड़ाई से ऊंचाई के अनुपात को नहीं जानता। मैं यह भी चाहता हूं कि आउटपुट आयत को आकार दिया जाए, जब कि मैं warpPerspective () के जरिए ट्रांसफ़र लागू करते समय आउटपुट छवि का न्यूनतम स्केलिंग करना चाहूंगा मैं सभी चार बिंदु हैं जो कि क्वाड्रेट्रैटल का निर्माण करते हैं, मैं स्रोत छवि में बदलना चाहता हूं। मैं इष्टतम आकार के गंतव्य आयत की गणना कैसे करूं? ढूंढेंमॉोग्राफी () विधि को चार अंक की आवश्यकता होगी (यदि डायरेक्ट रेखीय रूपांतरण का उपयोग कर रहे हैं) यदि आप इष्टतम सेट चाहते हैं तो आपको 4-बिंदु सेट की आवश्यकता होगी जो कि डीएलटी क...

c - How Copy frame to farme -

What is a duplicate in a frame in the second frame in a frame that is not a memory management problem For example: iplimage * frame = NULL; Iplimage * Temp_frame = NULL; While (1) {frame = cvQueryFrame (capture); If (! Frame) break; Temp_frame = cvcloneimage (frame); CvreleaseImage (& amp; Temp_frame); CvreleaseImage (& frame); } Error: Unassisted exception on 0x75b39673 in Open cv.exe: Microsoft C ++ Exception: Exception 0x0015f250 on cv :: memory location. Please help. iplimage * frame = null; Iplimage * Temp_frame = NULL; While (1) {frame = cvQueryFrame (capture); If (! Frame) break; If (! Temp_frame) // only temp_frame creates temp_frame = cvCreateImage (cvGetSize (frame), frame-> depth, frame-> nChannels); Cvcp (frame, temp_frame, tap); // cvQueryFrame () do not release the return! // I believe this is crashing your application // cvreleaseImage (& frame); } // Since the size of "frame" will not change, there is no need to create /...

- Where Developers Learn, Share, & Build Careers

Here's a question: I should know that the user has clicked on the OS X desktop twice, but the icon is not . Now, I have thought about the following solutions, although I'm not sure what they can do: Using the status of the desktop icon Receive them), and the size of the desktop icon, we can theoretically examine once click on the desktop, if this icon is within one of the areas. Contra: Probably can not be true because some symbols can be transparent or can not lift the entire icon size. Perhaps there is a variable that tells us that an icon is clicked from the desktop? So we can check that the variable has been activated when the user has double clicked on the desk for the last time. I still have open for other (better) solutions, but they should be sandboxable for the Mac App Store. This is probably not suitable for the Mac App Store, for several reasons. First of all, how do you stop clicking outside of your window? There are some different mechanism...

jquery - Determine what was parsed in JSON for IE8 and less -

After All, I have found the following code: onDone: function (e, data ) {Var results = jQuery.parseJSON (data.result); Var uploadtype = result.upload_type; Var filename = result.name; Var insert_id = result.insert_id; } When I run it, I get the following error from IE: Message: 'upload_type' is zero or object when I get console.log (data.result) in Chrome, I get the following data: [{"name": "1_3266_671641333369_14800358_42187036_5237378_n.jpg", "Size": 35535, "Type" : "Delete / url": "\ / web \ / upload \ /1_3266_671641333369_14800358_42187036_5237378_n.jpg", "thumbnail_url": "\ / web \ V / thumbnail \ /1_3266_671641333369_14800358_42187036_5237378_n.jpg", "delete_url": "\ / web \ /upload.php file = 1_3266_671641333369_14800358_42187036_5237378_n.jpg? "," delete_type ":" delete "," upload_type ":" video_montage "," in...

ajax - How can I post data as form data instead of a request payload? -

In the code below, AngularJS calls the $ http method URL, and the XSRF object Submits as "request payload" (as described in the Chrome Debugger Network tab) JQuery $. The Ajax method calls the same call, but submits XSR as "form data". How can I submit AngularJS to XSR as form data instead of a request payload? var url = 'http://somewhere.com/'; Var xsrf = {fkey: 'xsrf key'}; $ Http ({method: 'POST', url: url, data: xsrf}) Success (work () {}); $ .ajax ({type: 'post', url: url, data: xsrf, data type: 'jason', success: function () {}}); The following line must be added to the $ http object that has been passed: header: {'content-type': 'application / x-www-form-urlencoded'} and passed data should be changed URL-encoded string: & gt; $ .arm ({fkey: "key"}) 'fkey = key' So you have something like this: $ http ({method : 'Post', url: url, data: $ .human ({...

- Where Developers Learn, Share, & Build Careers

I am in the process of clearing databases; is. I have developed a program with Spring Data 1.1, which is the process of recording in batches. The problem arises with one association @ 2 entities in relation to the record for the unit B is not present, though it is in reference to Unit A. My job is to clear the references of entity B. If this is the case. The question is: Should I pre-process the data to clear it or can I adjust the Spring Data or JPA settings if the unit is not found? This is "normal" - with this data - in the unit A there is an FK which is not present in unit B, so I want to handle it in my code and an additional step or other tool Data is not pre-processed with data batches so that any pre-processing can make things more complicated for the user. In short, I want to set the Spring data field to blank and continue the process instead of being able to find a org.springframework.orm.jpa.JpaObjectRetrievalFailureException. . . Maybe...

- Where Developers Learn, Share, & Build Careers

After executing cmake cmakeLists.txt , which gives no error, Returns the following error: : / usr / local / src / llvm-3.1.src / tools / ccons $ sudo create [7%] Building CSF object CMakeFiles / ccons.dir / ccons. Cpp.o /usr/local/src/llvm-3.1.src/tools/ccons/ccons.cpp:1x: Error: Bad Value (x86_64) -march = to make swi tch [2]: *** [CMakeFiles / Ccons.dir / ccons.cpp.o] making error 1 [1]: *** [CMakeFiles / ccons.dir / all] Make Error 2: *** [All] Error 2 Is there any way to solve it is? First of all, why are you building software using sudo Are you He is asking for trouble when you are installing, then you should only need sudo (i.e., install sudo ). For whatever reason, your compiler flag -march = x86_64 , which thinks it is invalid. To see if I'm trying to compile with the blanket, do the following: Run edit . t> Code> Allows you to see additional cache variables to switch to advanced mode. Search for variables starting with CMAKE_CXX_FLAGS...

jquery - Setting href target dynamically for fancybox? -

OK, I've already used fancybox with some success, but I was thinking that Can I surrender a value? I have put together a friction solution in a little bit, but the box tells me "The requested content can not be loaded, please try again later." What I have done, a different function has been created to trigger the launch of fancybox .... First of all there is HTML of IFrame / Fancy Box (which does not see a user like a small button ): Here is my code: & lt; An id = "link2" href = "ContentPage.aspx" & gt; & Lt; Input id = "btn1" type = "button" value = "gate content" class = "small bitcnt ccls" /> & Lt; / A & gt; .. and javascript: function launch kant (get rid of {var lnk = 'ContentPage.aspx? Act = Add & amp; Id = '+ rid; $ ('# Link2') attr ('href', lnk). //alert($(''#link2').attr('href ')); $ ("# Btn1") fancybox () t...

c++ - Control multithreaded flow with condition_variable -

I have not yet wrapped my head around the C ++ 11 multithreading stuff, but I have tried several threads Wait till some event on the main thread and then all continue in one time (processed what happened), and wait re-process it ... until they are closed Pets. Not at all - this is a simple breeding of my problem: std :: mutex mutex; Std :: condition_variable cv; Std :: thread thread1 ([& amp;] () {std :: unique_lock lock (mutex); cv.wait (lock); std :: cout & lt; & lt; "GO1! \ N";}); Std :: thread thread2 ([& amp;] () {std :: unique_lock lock (mutex); cv.wait (lock); std :: cout & lt; & lt; "GO2! \ N";}); Cv.notify_all (); // something happened - thread can now process this thread1.join (); Thread2.join (); It works ... as long as I do not close some breakpoints and slower things. When I do this, let me go to Go1! appears and then waiting for thread2 for cv.wait . What's wrong Maybe I should not use any condition vari...

qt - Improper HTTP Content-Length in response from server causes different results on client side -

सर्वर मेरे पास एक बूस्ट है: Asio आधारित http WebService, जो एसिंक्रोनस क्लाइंट कनेक्शन को क्रियान्वित करता है और HTTP हेडर द्वारा पहले JSON सामग्री के साथ उत्तर देता है: std :: string response + = "HTTP / 1.0 200 ओके \ r \ n"; प्रतिक्रिया + = "सामग्री-लंबाई: 2000 \ r \ n"; प्रतिक्रिया + = "सामग्री-प्रकार: एप्लिकेशन / जेएसन \ r \ n"; प्रतिक्रिया + = "कनेक्शन: बंद \ r \ n"; प्रतिक्रिया + = "\ r \ n"; प्रतिक्रिया + = मेसेजबीडी; जहां messageBody आकार की एक JSON संरचना 500 से बड़ा नहीं है। प्रत्येक बार - प्रतिक्रिया के बाद ग्राहक को वापस भेजा जाता है - मैं नीचे अनुक्रम को कॉल करता हूं (मेरा विश्वास है) सॉकेट बंद: m_oSocket.shutdown (boost :: asio :: ip :: tcp :: socket :: shutdown_both, ec); m_oSocket.close (); सर्वर का परीक्षण करने के लिए मैंने क्यूटी में एक छोटा क्लाइंट एप्लिकेशन लिखा था जो सामग्री के लिए सर्वर को पूछता है और दिखाता है कि कोई त्रुटि है या नहीं। यदि सर्वर HTTP हेडर में "सामग्री-लम्बाई" मान के ...

html - Jquery selects wrong table's colgroup -

I have the following two tables: I should highlight colgroups with each mouseover for each, using jquery. & lt; Div id = "one" & gt; & Lt; Table border = 1 & gt; & Lt; Colgroup & gt; & Lt; Colgroup & gt; & Lt; Colgroup & gt; & Lt; Colgroup & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th & gt; & Lt; / Th & gt; & Lt; Th & gt; B & lt; / TD & gt; & Lt; Th & gt; C & lt; / Th & gt; & Lt; Th & gt; D & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; TD & gt; 1 & lt; / TD & gt; & Lt; TD & gt; 2 & lt; / TD & gt; & Lt; TD & gt; 3 & lt; / TD & gt; & Lt; TD & gt; 4 & lt; / TD & gt; & Lt; / TR & gt; & Lt; / Tbody & gt; & Lt; / Table & gt; & Lt; / Div & gt; & Lt; Div id = "two...

java - how to get POJOs from couchdb through lightcouch -

ublicwith सूची & lt; उपयोगकर्ता & gt; उपयोगकर्ता = client.view ("उपयोगकर्ता- fn / बाय-समूह")। कुंजी (समूह) .कुछ (उपयोगकर्ता। वर्ग); जहां क्लाइंट एक काउचड क्लाइंट है, उपयोगकर्ता- fn डिज़ाइन दस्तावेज़ है, उप-समूह दृश्य है, ... "उप-समूह ": {" Map ":" function (doc) {\ n अगर (doc.group) {\ n emit (doc.group, doc); \ n} \ n} \ n "... मुझे सूची में उपयोगकर्ता ऑब्जेक्ट की सही संख्या मिलती है, लेकिन सभी उपयोगकर्ता फ़ील्ड शून्य हैं I उपयोगकर्ता pojo bean पैटर्न (getters और setters के साथ) में होना चाहिए, या यह सिर्फ सार्वजनिक क्षेत्रों हो सकता है? मुझे लगता है कि यह मुद्दा लापता प्रम है, include_docs को सही पर सेट किया जाना चाहिए। रोशनी के अनुसार कोड पढ़ना चाहिए: सूची & lt; उपयोगकर्ता & gt; उपयोगकर्ता = client.view ("उपयोगकर्ता- fn / बाय-समूह")। कुंजी (समूह)। शामिल करें डॉक्स (सही) .कुछ (उपयोगकर्ता। वर्ग);

javascript - Troubleshooting Jquery Show/Hide With Nested Divs -

I have been able to work with it: and adding "load" = "resettoggle ()" to body tags Now I need help with only 2 things: I have the div set in feedin, but it seems like flying at the speed of light When the page loads, Before it disappears, you will see the flicker of slideshows. Not sure how to implement the rearrangement function so that the hidden device can be completely excluded? = "post-text" itemprop $ ("You" can use: #portfolio "). Click (function () {$ (" # imagecarousel "). FadeToggle (" slow ");});

php - Symfony2: Pass _route To Event Listener Service -

I have to pass '_route' from a container as an event listener, along with the route attribute. In other words, I need listener service in which container information needs to be created, the whole service_ container is being overheaded without having to pass in the event listener class. I have seen a code example like this: Services: root.path.locator: class: Acme \ bundle \ HelloBundle \ Util \ RootLocator Arguments: ['kernel .root_dir% '] In a controller I will use something like code below to capture "_route": $ request = $ This- & gt; Container-> Get ('request'); $ RouteName = $ request- & gt; Get ('_ path'); However, in the event listener, I am not available. How can I do the above? Thank you, JB set From the scope to request the service xml tag, it will automatically inject the requested object, then set @request as an argument in Yaml, area: request and set the argument: [@request] .

- Where Developers Learn, Share, & Build Careers

For some reason, I get pop-up warnings every time I start up the Apache Studio: A TIA! Internal error occurred during -Text" itemprop = "text"> Your project file is corrupt. I had only one problem after moving my workspace into a dropbox folder and accessing it with two computers. Solution: Within eclipse: Remove old project from eclipse (do not cancel files!) Within Finder / Explorer: Older Rename the Project folder for some backup names Within Eclipse: Create a new project under the old name Within the Fader / Explorer: .py-files (NOT .PYC !) And Supporting projects for your project The new project folder (3) / div>

java - Why isn't my object being displayed? -

Image
यहां एक 3D मॉडल है जिसे मैंने भ्रम की कला का उपयोग किया है: मैंने इस ट्यूटोरियल का अनुसरण किया है, जो रुचि रखते हैं उन सभी लोगों के लिए रेन-ग्लास बनाने के लिए: मैंने इसे hourglass.obj नामक एक फ़ाइल में निर्यात किया अब, यहां कोड है जिसे मैं ऑब्जेक्ट को प्रदर्शित करने के लिए प्रयोग कर रहा हूं: सार्वजनिक वर्ग LoadAnObject ऍप्लेट विस्तारित करता है {सार्वजनिक LoadAnObject () {setLayout (नया बॉर्डर लेआउट ()); ग्राफिक्स कॉन्फ़िगरेशन config = SimpleUniverse.getPreferredConfiguration (); कैनवास 3 डी कैनवास = नया कैनवास 3 डी (कॉन्फिग); जोड़ ("केंद्र", कैनवास); BranchGroup सामग्री = getScene (); content.compile (); साधारण यूनिवर्स ब्रह्मांड = नया सरलअनुक्रम (कैनवास); universe.getViewingPlatform () setNominalViewingTransform ()।; universe.addBranchGraph (सामग्री); } सार्वजनिक शाखा समूह को एससीन () {शाखा समूह समूह = नया शाखा समूह (); ऑब्जेक्टफ़ाइल ऑब्जेक्ट = नया ऑब्जेक्टफ़ाइल (); दृश्य दृश्य = नल; {दृश्य = ऑब्जेक्ट लोड करें। ("/ उपयोगकर्ता / जॉन / आर्टोफाइल्यूज़न / ...

- Where Developers Learn, Share, & Build Careers

I am writing a small test project to wet my feet with the EF code for the first time, unfortunately, when I try to compile, I get the following error: assembly uses backend, version = 1.0.0.0, culture = neutral, public key token = zero 'Entity Framework , Version = 4.3.1.0, culture = neutral, public key token = b77a5c561934e089 'which refers to the assembly The higher version is 'EntityFramework, version = 4.1.0.0, culture = neutral, public keynote = b77a5c561934e089' c: \ Users \ Kevin \ Documents \ Visual Studio 2010 \ Projects \ CFTest \ Backend \ bin \ Debug \ Backend.dll CFTest For some reason, a version is conflict, but I do not know how to fix it. Edit: My app .config: & Lt; / ConfigSections & gt; & Lt; EntityFramework & gt; & Lt; DefaultConnectionFactory type = "System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" & gt; & Lt; Parameters & gt; & Lt; Parameter Value = "Data Sour...

c++ - NSIS Plugin: Cant get HWND from parameter function -

I have made my own NSIS plugin DLL I. dll a function which takes a hwnd ID number as a parameter and then editboxes parents as hwnd that creates an edit box window with hwnd My problem :. can I'm in trouble to have Acdblyuendi my Ansais plugin DLL I get hwnd id and then real hwnd (identified I think) but I did not ever make your editbox its hwnd? Am I doing wrong? How do I correctly pass the hwnd parameter as it seems? extern "C" void __declspec (dllexport) CreateEditbox (HWND hwndParent, integer string_size, TCHAR __cdecl * variable, stack_t ** stacktop, extra_parameters * Extra) {g_hwndParent = hwndParent; EXDLL_INIT (); {Int hwndID = popint (); Acdbludbludbludbludbludbludbludblud = gate Delgitm (Acdbludeepiar, Acdbludiaidiaidi); HWND a = CreateWindowEx (WS_EX_TRANSPARENT, text ( "Edit"), text, WS_VISIBLE | WS_CHILD, 20, 20, 100, 20, hwnd, zero, GetModuleHandle (zero), null); }} My NSIS code: function page custom start start nsDialogs :: 101...

string - PHP Variable " How to copy specific data from variable" -

If I have mentioned the data in my php variable, how do I get from "any" to "wish" from centains I can copy. Data example: If you have any question about Macmillan you have to love to hear from you Thanks for the help. Kind regards, reel You can try: $ string = ' If you have any questions about Macmillan then we would like to hear from you. '; Preg_match ('/ (any) (. *?) (Will be) /', $ string, $ match); Match $ [0]; // Any questions about Macmillan we will match more than one result, if present: edit 1 preg_match_all ('/ (any) (. *?) (Will be) /', $ string, $ matches); Foreign currency ($ values ​​as $ 0 [0]) 'echo': '$ value' & lt; Br / & gt; ';

ruby on rails - redmine deploy on heroku cedar -

I am trying to deploy Redina 2.0.3 on Heroko Cedar. There are so many problems in deploying me with the silky gem, so I removed all sqlite references from my gemphile, removed Gemfile.lock, installed the bundle, and happily pushed my lock. . I have myoku run rake dB: Migrate and I browse in my app () and I see the following: UPDATE !! - & gt; When I run myoku run rake db: Migrate I get the following warning message: running dc db: migrate connected to terminal ... up, run 1 Dispute Alert: You have the Rails 2.3-style plugins in the Vendor / Plugins! Support for these plugins will be removed in Rail 4.0. Take them out and bundle them in your Gemfile, or keep them in your app as lip / malplugin / * and config / initializers / myplugin.rb. For more information about this, see the release notes: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released (from & amp;; left; Top (required) & gt; On / App / Rackfile: 7) Depression Warning: You have th...

html5 - Perfecting canvas mouse coordinates -

I am working on a function that I can use to get canvas coordinates. The part of the canvas works well until it disappears on the screen. When I shrink the window, and scroll down to the bottom right corner, the scene starts from the canvas. How can I decide to get the right coordinates? This is my code: function getMousePosition (event) {var mx = new number (); Var MY = new number (); If (event.x! = Undefined & event.y! = Undefined) {mx = event.x; MY = event.y; } Else {// Firefox method to get the status MX = event.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; My = event.clientY + document.body.scrollTop + document.documentElement.scrollTop; } MX - = canvas.offet left; MY - = canvas.offetoptop; Warning ("X:" + MX + "y:" + MY); } This is the function that I get Canvas coordinates are used: function getCanvasPos (el) {var canvas = document. GetElementById (el); Var _x = canvas.offsetLeft; Var _y = canvas.offsetTop;...

cocos2d iphone - Playing soundeffect on item touch -

In cocosdaddy for iOS, how do I make a click sound effect automatically whenever the user has a menu item ? My idea was to change ccTouchEnded in CCMenu.m: - (zero) ccTouchEnded: (UITouch *) document with touch: (UIEvent *) event {nsassart ( State_ == KCsenmenuastettrackingTouch, @ "[menu ccTechended] - invalid status"); [SelectedItem_unlected]; [SelectedItem_active]; State_ = kCCMenuState is waiting; // Click any effect when clicked on any menu item [MyMusicHandler playClick]; } It works and what I have to do. But this is "hacking source", and I love sub-closing ccmenu instead. However, if I keep that exact method in my sub-class of CCMenu, then it does not work. Suggestion: In this way I do this in my game: Init (GETextMenuItem subclasses CCMenuItemLabel): confirmMenuItem _ = [GETextMenuItem textMenuItemWithText: @ "Buy" dimension: CGSizeMake (9032) Alignment: UITextAlignmentCenter font: @ "Cochin-Bold" font size: 17 Goal...

c++ - What does frame_dummy mean in the context of profiling? -

In the process of using GIFF, I have written a C ++ program, I've found that the vast majority of the execution function "frames_dummy "The time spent is more precise, from the output of GPRF, calls a function with the frame in 76.38% of the sampling time and 24611191 in the first entry in the flat profile - _orama. In short, I am trying to understand both of the frame_dummy refers to - as I do not have such a function - as well as what it means for my optimization efforts. Although unlikely to be relevant, I should add that this program was designed to solve POSON's equation using multigrid algorithms, and employs MPI to parallel the work is. However, although MPI function calls are present, the above described GPRF output has been obtained from running only one process. I should also note that there is no dependency other than the MPI in my program and it has been compiled with G ++ 4.6.1. Here's a very good explanation: But I'm not sure why you...

asp.net mvc 2 - jQuery load url issue -

We have an issue with a sudden jQuery load function. Assume that we have a URL of the view / page which is "www.domain.com/register" and within that view we have scripts such as $ ('# div'). Load ('messages / pixeltracker.htm'); First, it always returns www.domain.com/messages/pixeltracker.htm , it always comes in a folder. But now, this is returning the wrong url www.domain Com / register / messages / pixeltracker.htm which will obviously return a 404 error and I have been informed on debugging that Before me / messages / pixeltracker.htm / code / $ ('# div') .load ('../message / pixeltracker.htm'); I'm just thinking this is a server or browser problem? I hope someone can explain it Regards Did you kill the page as www.domain.com/register / first? If you always use a backslash at the end, the message / pixeltracker HTM will work. Otherwise, it should not be right.

red5 - How to use streaming video in moodle 2.2 -

I used Moodle 2.2. I have a video streaming server that is used for Red5, I want to use this server to play video on Moodle. In Moodle 1.9, I found the WebClass plugin for streaming streaming video from Red 5 server to Moodle. But Moodle 2.2, I have not got any solution? How to use streaming video in Moodle 2.2 you

c# - Running Multi Startup Application does not stop the application on Release but stops them on Debug -

I have a question on the difference between debug and release build runs for Incomplete Studio 2010. I have a solution in which two projects depend on A and BAB and call the method of B through IPC interprocess of communication. Here are the scenarios: Case A: Only run B - prevents windows while clicking on the STOP button on both debug and release Case B: Multi startup run A Both are arranged for both actions ("action" and two): - Uncontrolled, in run order, A is closed on release run, but B is not closed on debug run, both A and B Has been stopped I am thinking that debug and release version What difference could funny thing is that I think that B is a Aipisissewa channel on startup when running multi-start Visual Studio issues. But the problem can be stopped properly when I run it myself. IpcServerChannel serverChannel = new IpcServerChannel ("Process name"); ChannelServices.RegisterChannel (server channel, true); How to fix any suggestions? ...

jQuery add variable -

I've found a script that equals the height of the divs (bootstrap) in a row, for example, 20's How can you add a new height to calculate? Here is the script and JS field: $ ('. OK, .alert'). Height (function () {var h = _max ($ (this) .closest ('. Line'). ('. Well, .alert'), function (elem, index, list) find {return $ (elem)) . height ();}); Refund $ (H). height ();}); Try the following snippet: var HeightIncrement = 20; // Increase the increment you need var h = _.max ($ ('. Line'). ('.info, .alert'), find function (emil, index, list) {return $ (elem). height () ;}); Var maxHeight = $ (HK) height (); $ ('OK, .lert'). Height (function () {max height + height increase;}); In short, it is already necessary to calculate the general height ( maxHyight variable), and then run . Highlight (...) function with an increased normal height value

java - Replacing newline character in UNIX -

I am making a code to replace a newline character with a string. In Windows, when I use string.resales (all. System.getProperty ("line.separator"), "\\ n"); This works fine, but it fails in Unix. What should I use in Unix? \ n is true for Unix Windows \ r \ N uses and uses the mac \ r \ / code> IIRC. The problem may be that Java is a multilingual language, automatically replaces \ n with the system's separator, I do not know Java but I think that it is a matter. EDIT: If the code you posted is what you are using, then I think I'm seeing the problem. string is a class. It is also irreversible in Java, it should be instead: string myStr = "abc \ ndef"; MyStr = myStr.replaceAll (/ * params * /);

eclipse - Can`t get JRebel to work -

Image
I decided to try social JRBell for an open source, personal project and I am not getting this work. I use the Eclipse Indigo IDE and I have downloaded JRBEL with Eclipse Marketplace and have activated JRBell with my free license. I set up the Glassfish application server with enabling JRBEL and auto-publishing. Here are my rebel.xml & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Application xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns = "http://www.zeroturnaround.com" XSI: schema location = "http: //www.zeroturnaround com http : //www.zeroturnaround.com/alderaan/rebel-2_0.xsd "& gt; & Lt; Classpath & gt; & Lt; Dir name = "D: / workspace / g / cati java / src / ro / cati / actions" & gt; & Lt; / Dir> & Lt; / Classpath & gt; & Lt; Web & gt; & Lt; Link target = "/" & gt; & Lt; Dir name = "D: / workspace / g ...

html - Is it possible to shrinkwrap wrapped contents? -

If you use & lt; Span & gt; tag and it will be display: inline-block , then the container compressed contents , until content will not wrap on many lines , in that case only the width of the container is omitted, is there any way to shrink a wrapped material up to 100%? Here is my code (): HTML & lt; Span class = "wrapper" & gt; & Lt; A href = "#" square = "block" & gt; & Lt; / A & gt; & Lt; A href = "#" square = "block" & gt; & Lt; / A & gt; & Lt; A href = "#" square = "block" & gt; & Lt; / A & gt; & Lt; A href = "#" square = "block" & gt; & Lt; / A & gt; & Lt; A href = "#" square = "block" & gt; & Lt; / A & gt; & Lt; A href = "#" square = "block" & gt; & Lt; / A & gt; & Lt; A href = "#" square = "block" ...

multithreading - How does Go handle concurrent request on Google App Engine -

I'm a little confused about how I run concurrent requests on Google App Engine. That's why I am hoping someone can provide some clarity. This is the fact that I have assembled: Go to App Engine is threaded single - If there is a single threaded app engine on the go then there is a 3 point seal. It leaves 1 and 2. If the app goes to the engine then there is a threaded and requires threads to continue execution while blocking for I / O, so it seems that while waiting on an app engine go installation I / O, all the gorants Will block. Is that correct? If not, does con's concomitant actually work on app engine? To help me measure things, if I had to keep a connection open for 30 seconds Edit: This feature is requested which Go Instance from 10 Will allow more concurrent requests to be handled. . Please star it. An app app engine example allows for 10 concurrent requests, but only runs a CPU thread , Multiple requests can be processed simultaneou...

- Where Developers Learn, Share, & Build Careers

I want to control the example running VLC (not a server with RC) under Windows, to do so Is COM Interface or other interface also? I have looked around, but I have come to know that some examples either mention or control about it. I have seen some ActiveX examples, am I confusing something? Or does VLC not support such a thing? Modify Just want to emphasize again I see how is already running VLC From my external process Please do not post about embedding in your application. As you mentioned yourself, the libvlc primary interface is that you must control VLC as follows There are some rappers ...

Javascript multiple slideshow -

I created an HTML file that uses javascript to display randomly displayed images in 3D tags is. Click on the images to move left or right until I use a slide show in the page, but when I try several slideshows on the same page, it works fine. Here is the code for a slideshow: ** & lt; Script & gt; Current index = 2; MyImages = New Array (); MyImages [0] = '1images2.jpeg'; MyImages [1] = '1images3.jpeg'; MyImages [2] = '1images4.jpeg'; MyImages [3] = 'artwork.jpg'; MyImages [4] = '1images5.jpeg'; ImagesPreloaded = New array (4) for (var i = 0; i & lt; MyImages.length; i ++) {imagesPreloaded [i] = New image (120,120) uploaded images [i] .src = MyImages [I]} / * We create the task to move forward and return * / function Nexter () {if (current index gt; 0) {--currentindx; Warning ("if in the back"); Document.rightimg.src = document.middleimg.src document. Middleimg.src = document.leftimg.src document.leftimg.src = imag...

- Where Developers Learn, Share, & Build Careers

I am using the paperclip gem to upload and resize images. This setup works fine. I am capable of displaying uploaded images. The problem comes when I try to resize the uploaded image Here is a snippet from the model file has_attached_file: picture,:. Size = & gt; {: Small = & gt; "150x150">.} When I try to upload the image I get this error photo / var / folders / gram / gram -SegRMHuOkSlYtTMkO8U +++ TI / -Tmp- / file.jpg Not recognized by the 'Identity' command. I'm sure the file is JPG image data, JFIF standard 1.01, comment: "Producer: using GD- jpeg v1.0 (IJ" file.jpg I'm not sure, but in our application we do the same thing and it works. Our code looks like this: has_attached_file: image ,: styles = & gt; {= small = & gt; "280x173 #" ,: Medium => "635x393 #"}, convert_options = & gt; all = & Gt; "-Quality 80"}, # ,: default_style = & gt; moderate: default_url ...

- Where Developers Learn, Share, & Build Careers

When I use this code in my master page, it can not be debugged. But before that, I did not use the master page, it worked perfectly. Is there anything wrong with my code? I have kept my code here for your reference. Too much appreciate. & lt;% @ page title = "" language = "c #" masterpagefile = "~ / masterpace.masters" autoinwareWireUp = "true" codefile = "User.aspx.cs" inheritance = "Admin_user"%> & Lt; Asp: Content ID = "Content1" content placeholder id = "head" runat = "server" & gt; & Lt; / ASP: Content & gt; & Lt; Asp: Content ID = "Content2" content placeholder ID = "content place holder 4" runat = "server" & gt; & Lt; / ASP: Content & gt; & Lt; ASP: Content ID = "Content 3" content playholder ID = "contentplayholder5" runat = "server" & gt; & Lt; / ASP: Content & gt; ...

- Where Developers Learn, Share, & Build Careers

I'm the original app with the bar for the iPad. I want to convert the app into a web app, I'm making an app. But the problem is how can I create a bar graph for the HTML5 app. There is a document in it or it has been made in the API. Like iOS, we are EasyGraph in this way you I can see basically I am creating the original bar graph using the divs and css

- Where Developers Learn, Share, & Build Careers

itemprop = "text"> I send a data in a special format like a C ++ / CLI TCP client application L , 20100930033425093, -5.929958, 13.164021 For a main application on port 9000. The main application is actually done by another vendor and I do not have the source code for that. The programmer who developed it and has no one else with it. Now, I can communicate with the desired application using IP and port number. But the data appearing on main application GUI is not showing up. But I used a different Socket Server demo application with the same IP which was getting the data I'm receiving as the main application. It works perfectly well. Now I do not know where this error is and what stream is received on the other side. How can I solve this situation effectively? Any suggestion or discussion will be helpful on this? You can use packet sniffers to find out what data is being sent (for TCP I suggest Fiddler), if you can try to modify it in some medium appli...

cakephp - Cake PHP parent/child/grandchildren menus -

I want to display the menu with my children and the output of grand kids will be like this Parents - Children Parents - Children My menu controller public function buildTree ($ arr, $ parent_id = 0) {$ op = array (); Foreach ($ item as $ item) {if ($ item ['parent_id'] == $ parent_id) {$ op [$ item ['id']] = array ('name' = & gt; $ item ['name '],' Parent '= & gt; $ item [' parent_id ']); $ Children = buildtree ($ arrival, $ item ['id']); If (children) {$ from [$ item ['id']] ['parent_id'] = $ children; }}} Return $ op; } My visual element app \ view \ elements \ navigation.ctp and ; $ Item ['menuItem'] ['name']. "& Lt; / li & gt;"; $ Child = $ menu_items-> Buildsubmenus ($ item ['MenuItem'] ['id']); Public relations ($ child); }? & Gt; & Lt; / Ul & gt; Your controller needs to pass the tree and pass it to see. How...

- Where Developers Learn, Share, & Build Careers

I am developing an application used by coffee shops that will provide audio streaming feature. Being a fan of the spreadsheet, I have to use my API, though I believe in the terms of service it has been said that it can not be used for business activities. My question is that it is possible to pay a monthly subscription fee to the owner of the coffee shop, for that, legally , do their customers stream the audio? Thank you in advance, JE Hope this is not currently possible There will be a licensing prospect for this in the future clarification, but I suspect it will have to do with their deals with publishers.

music - Use Spotify API on a commercial Project -

I am developing an application used by coffee shops that will provide audio streaming feature. Being a fan of the spreadsheet, I have to use my API, though I believe in the terms of service it has been said that it can not be used for business activities. My question is that it is possible to pay a monthly subscription fee to the owner of the coffee shop, for that, legally , do their customers stream the audio? Thank you in advance, JE Hope this is not currently possible There will be a licensing prospect for this in the future clarification, but I suspect it will have to do with their deals with publishers.

objective c - Photo Gallary for iPhone -

I am new to the development of iPhone. I want to create an image gallery similar to the Safari browser history displayed. How can this be possible? Use Cover Flow animation in your project This Safari History is similar to browser and see it

- Where Developers Learn, Share, & Build Careers

I am working with a lot of interfaces for the purposes of dependency injection (test-driven development). For this reason, a lot of my objects are indicated through std :: shared_ptr. I could use std :: unique_ptr but when Google requires joke, they do not have a copy constructor. Can they keep circular contexts with a view to the initial recognition if they exist? I am working on a Linux platform with Google testing. It is impossible to detect automatically circulated references with shared pointers, one The technique that I use to find circular references, it is clearly to do in the following ways: globally accessible std :: vector & lt; T * & gt; , add the object to the vector in all the CTOs, and then remove it in the DTOors. Then at the end of the main you want to see that the vector is empty, if it is not, then you have a circular reference somewhere, and the vector will help you track down if you have points that are statically owned by the allocated object...

How to update an existing excel file with pear library? -

Do I have an Excel file with some data? Can I update the second column (cell number may: b2 , B3, B4, B5 ....) that use the Pair Library? I've used Spreadsheet_Excel_Reader () to read Excel: $ xlsFormatFile = UPLOADS_DIR.DS. "My_xls_format.xls"; Need_once (EXCEL_LIB_DIR.DS. '[Excel_reader2.php] [1]'); $ Data = new spreadsheet_xcel_reader ($ xlsFormatFile); $ Data- & gt; Dump (true, true); // shows the excel file contents in the browser Now how can I update and save data please welcome me any sample code or any advice .... Thanks in advance. The spreadsheet_excel_reader package does what it does, it reads xls spreadsheet file, He can not write those files as well as the author too: Spreadsheets_excel_worter can be used to create a spreadsheet file but can not be read (although I have people who have told me). You can use both packages together, but you have to write the "Gum" code to take the reader's results and use that autho...

Grails redirect and spring security -

Calling a redirection within a control action always adds a strange piece to the redirect URL. Grails 2.1 .0 DIF index = {... ... Spring safety programmatic authentication ... redirect (Yuri: '/ m')} Redirect (Yuri: '/ m', piece: blank) / me # _ = _ or Redirect (uri: '/ me', absolute: true) Do not change from where did the # _ = _ come ??

entity framework - How to use Unicode string for primary key in SQL Server -

I am having trouble entering a record with a primary key that only changes according to certain Unicode characters. For example, if I already have a record in the database with the primary key of "test" and I try to insert another record containing the primary "test + '\ U13A4' + '\ u13B4' + '\ u13B9' " I get a duplicate key error I am using EF5 with SQL Server 2012. The primary key is defined as the nvarchar and the collation is set to SQL_Latin1_General_CP1_CI_AS . If the primary unicode characters are present then it can just take a look at the primary key, but if it is different in Unicode special characters (as in the example above), I get a duplicate key error when I insert it. How can you get this issue? SQL_Latin1_CP1 matched does not meet all Unicode codepoints. Select n'test 'collate SQL_Latin1_General_CP1_CI_AS union n'test' + nchar (5028) + nchar (5044) + nchar (5049) - Result: 1 row Use new...

How to make a full justify alignment in LaTeX article? -

I'm starting in latex. I tried some examples, but I can not make a perfectly justified alignment. Perhaps this question is not very annoying and you can help. My code example is: \ documentclass [10pt, a4paper] {article} \ usepackage [utf8] {Inputenc} \ usepackage [l7x] {fontenc} \ usepackage [Kochi] {Belt} \ usepackage {multicol} \ usepackage [left = 1.5 cm, right = 1.5 cm, top = 2 cm, bottom = 2 cm] {geometry} start {document} \ title {text text text text text text Text text text text} \ author {text text text}} \ date {} \ maketitle \ center {\ textit {text text text text text}} \ center {\ Textit {text text text text}} \\ \ Small \ textbf {abstract} An abstract of a research article, research, review, conference proceedings, or a summary of any particular subject analysis The appropriate summary or helping discipline, and often the reader is often explored the purpose of the paper. When used, an essence always appears in the beginning of a manuscript or typecript, whic...

android - How to get the fragment that spawned a View? -

लेआउटइनफ्लाटर वास्तव में एक शक्तिशाली उपकरण है जो वाकई शांत चीज़ों को करता है; जैसे कि एक लेआउट संसाधन से एक टुकड़ा बढ़ाना और उसके जीवन चक्र को ठीक से व्यवस्थित करें उदाहरण के लिए: & lt; खंड वर्ग = "com.test.TestFrag" ... / & gt; उपरोक्त लेआउट लेते हुए और इसे लेआउट इनफ्लाटर के माध्यम से चलाते हुए, आप देखेंगे जो कि खंड द्वारा उत्पन्न होता है इसके बाद आप इस दृश्य को किसी भी व्यू ग्रुप में जोड़ सकते हैं और इसके चारों ओर चल रहे एक टुकड़ा का एक उदाहरण है जो अभी भी टुकड़ा जीवन-चक्र का अनुसरण करता है मेरा प्रश्न यह है कि आप इस निर्मित व्यू से कैसे माता पिता के टुकड़े को प्राप्त कर सकते हैं? वास्तव में कोई तंत्र नहीं है , रन-टाइम में, एक खंड के लिए यह जानना कि व्यू ग्रुप क्या होस्ट कर रहा है ऐसा कहा गया है, क्योंकि आपका वर्ग बेस फ्रेगमेंट वर्ग को बढ़ाता है, इसलिए आपको अपने टुकड़े के आईडी का ट्रैक रखने के लिए एक आवृत्ति चर जोड़ने से रोकने के लिए कुछ भी नहीं है। अगर आपका टुकड़ा फ्रैगमेंट ट्रांजेक्शन के साथ दृश्य पदानुक्रम में जोड़ा जाता है, तो आपको यह निर्दिष्ट क...

visual studio - psuedo global variable in c -

The question of an interview was asked, but, I am not clear from the explanation, which I found on various websites. Because, when I'm trying to execute this code, it shows the _AX undeclared error. main () {int i; I = ABC (); Printf ("% d", i); } ABC () {_AX = 1000; } People say _AX is pseudo-global variable , this is the reason why this product shows 1000 * Note: - This error is showing unchecked _AX , but when I declare variable, it shows some garbage value * Does it often? This is absolutely nonsense probably for some compiler-specific marking "ax" register, which is used on x86 for return value. However, there is no reason to believe that the value in the register should not be covered between assignments and function returns. This program is implementing undefined behavior. If someone is giving you a job then you hope you know such kind of illegal practice. Fast. They are not capable.

php - How can I extend Quick Edit option with 2 more fields -

Image
I wonder if WordPress gives me the ability to add 2 fields (input and textarea) in Quick Edit Tags Code> Actually, you want to add these 2 fields to Quick Edit which edit tag pages , But I can use these 2 fields as quick edit so I can use them easily. code: // Add a dummy column 'Post' post for post type post add_filter ('manage_edit-post_tag_columns',' add_dummy_column ', 102); Function add_dummy_column ($ column) {$ columns ['headline'] = 'title'; $ Column ['intro-text'] = 'intro text'; Return $ column; } // But delete it again on the edit screen (on other screen?) Add_filter ('manage_edit-post_tag_columns', 'remove_dummy_column'); Function remove_dummy_column ($ column) {unset ($ column ['description']); Return $ column; } Function my_column_value ($ empty = '', $ custom_column, $ term_id) {include_once ('taxonomy-metadata.fp'); Return esc_html (get_term_meta ($ wo...

- Where Developers Learn, Share, & Build Careers

Our tag manager went down today, from which our site was crawled to an attack. As the code mission manager in the tag manager is not critical (analytics, etc ...), is there any way to do something like that? var extScript = document.createElement ('script'); ExtScript.type = 'text / javascript'; Extcript.src = 'http://third-party.com/scriptfile.js'; Var s = document.getElementsByTagName ('script') [0]; S.parentNode.insertBefore (extScript, s); Window.setTimeout (function () {// script is not loaded - "necklace"}, 3000); // 3 sec If this mission is not important, then you want to keep it The script is loaded at the end of the body tag, as soon as the document is fully loaded. window.onload = function () {var extScript = document.createElement ('script'); ExtScript.type = 'text / javascript'; Extcript.src = 'http://third-party.com/scriptfile.js'; Document.body.appendChild (extScript); }

- Where Developers Learn, Share, & Build Careers

What I would like to do is to add some more properties (fields) to a registered user, for example: by default Is a display name provided and I want to like something else, want to do birth place, birth date and so on .. I have created my own unit class and ZfcUser works with it Keep doing more specific: I have some protected variables, gates and sets Addres methods.) My problem is that I really do not know what to do next. I know that I must explicitly add some elements to the form and I can do it , But how can I "let's know" zfcuser that I have some other variables in the unit class so that this database can work well. btw I can not understand how this module is working for example where the scripts working with the databases are run properly This is an existing extension for ZfcUser with UserProfile support (and therefore custom properties). Check that code or use the module;)

Get binary image data from input type "file" using JavaScript/jQuery for use with picture preview with AJAX in WebMatrix -

I have a problem when researching or trying to figure out how to get binary image data using Javascript For (if it is possible) / from a HTML input element of jQuery type I am using WebMatrix (C #), but it may not be necessary to know that if the answers to the purposes of this question can be answered by javascript / jQuery alone. I can take the image, save it in the database (in the form of binary data), after the page on post, I show a picture with binary data. However, before uploading, I leave a picture without preview, for which I am almost certain that I have to use AJX. Again, this may not be possible, but as long as I have binary image data, I believe I can push it to the server with AJAX and in the same way I can process the image. , If I'm taking it from a database (note that I do not save the image files using GUID myself, I only save binary data.) If using input elements An easy way to show a photo preview It will work fine, of course, for the full consider...

- Where Developers Learn, Share, & Build Careers

I'm currently deploying a small # console application for 200 Amazon EC2 examples. Whenever the code is updated, what I am doing now eliminates all the examples, compiles the code and copies the executable file, copies the last AMI image, and then again creates 200 examples from the new AMI images. Could. I think this is really very inefficient and I want to find a better way of doing it. How can I apply these EC2 instances quickly? You can check to use the platform - A-A-Service Solution Allow the application to deposit the pajes and allow it to start machines and set their code on them. A Pass will allow you to update additional features such as monitoring, cross-cloud support and apps on the fly. Many PS sellers have been mentioned here: Disclaimer: I work for an open source, PASS.

c# - WCF Error : 'It is likely that certificate 'my cert' may not have a private key that is capable of key exchange -

I have a WCF service I am trying to host on my production web server (IIS 6). I set up the web and closed our circuit on the web when I try to browse service URLs, I get the following error in the event log: Exception Message It is possible that the certificate 'CN = . Maidommen, OU = Safe Link SSL Wildcard, OU = IT, C = US 'Can not have a private key that is capable of major exchange or the process does not have access to the private key. Please see the internal exception for the extension .. --- & gt; System.ArgumentException: It is likely that the certificate 'CN = .mydomain.com, OU = Secure Link SSL Wildcard, OU = IT, O = Maidoman, C = U.S.' Does not have a private key that is capable of key exchange or process can not have access rights for the private key Please see the internal exception for the extension. --- & gt; System.Security.Cryptography.CryptographicException: Handle is invalid. I have confirmed ASP.Net 1.1, 2, and 4 are set to 'All...

html - Is there a way to display a div (that is expandable) within a form block via css? -

I am trying to work around this issue where in the form of a form using the current cross browser compatible HTML Not possible. For my possible solution, there must be a div (with the contents of the other form) outside the form block and then using the CSS, it must be located within the form, is there a great way to go about this? Use the full position in the second form on the form elements.

iphone - Justify last line of UICollectionView -

Image
As far as I can see, UICollectionViewFlowLayout Correct all the rows. For example, if there are not enough items to fill more than 1 line, the result is not appropriate. either the configuration or subclass UICollectionViewFlowLayout that it will also justify the last line of a section? You move it to the last UICollectionViewFlowLayout subclassing and override layoutAttributesForElementsInRect: and layoutAttributesForItemAtIndexPath: For the Frame item of the UICollectionViewLayoutAttributes by changing the property of the property (except where the first is already true) first line.

java - Get a Request Attribute with jQuery -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मेरे पास निम्न कोड है मेरा सर्वलेट वर्ग: request.setAttribute ("myValueName", myValue); // नोट: myValue एक TreeMap है मैं इस विशेषता को jQuery के माध्यम से एक्सेस करना चाहता हूं। क्या किसी को भी यह करना आता है? var myNewVariable = ???; ध्यान दें कि यह विशेषता पृष्ठ के यूआरएल में नहीं है। सर्वलेट कोड response.setContentType ("text / html" ); Request.setAttribute ("myValueName", "myValue"); Request.getRequestDispatcher ("पुनर्निर्देशित पृष्ठ के लिए URL")। आगे (अनुरोध, प्रतिक्रिया); उदाहरण URL = "/ WEB-INF / Project / Update.jsp" jQquery में var myNewVariable = "$ {myValueName} "; चेतावनी (myValueName);

ganglia web frontend isn't working properly in debian lenny -

I have installed Ganglia Zytmood in a Debian take box. But I have come to know that there is no package installation support for my WebFindend package, so I'm manually copying some other PHP files, leaving the interface graph generation. I tried to find a PHP graphics package used there but no benefit till now. I am thinking that someone has some related experience and solutions. The code from Ubuntu installation for the / var / www directory of the Debian Lenny machine (Apache 2 of course After installing PHP) and then I modified the config.php file accordingly.

sql - Replace count 0 with 'N/A' in mysql? -

I count my last query, last column examples, for this example I would like to change it with count 0 With 'N / A'? This question does not seem to work Choose m.id, m.desc, count (if iid is NULL, 'n / a' M.ID = by MID as M.ID in the form of the above query output == ========================== m.id | C.desc | Qaunt ========================== 1234 | Shoes | 1 1235 Socks | 2 1236 Clothes | 0 =========================== Expected Result: ============================ MDID | MADCC | Qaunt ========================== 1234 | Shoes | 1 1235 Socks | 2 1236 Clothes | N / A =========================== Would you please please suggest me that (this has been tested) if your query is counting the results above, above the query, And I think that I want to reciprocate, I am using a pair of IFNULL and NULLIF, which say together, "If the count is zero, translate it into tap. If this is the tap, then this column For "N / A" use. MID, MDSC, IFNUL ...

- Where Developers Learn, Share, & Build Careers

Can someone explain to me what I do wrong? Example: I have no order array int [] uA = { 2, 9, 4, 13, 11, 7, 8 }; I take "9" as a pivot element and after the first repetition of the escape (quick sequence) I will have this array {2, 8, 4, 7, 11, 13, 9}. Where will the middle indicator be shown on "11" and what does it mean? Not all elements are bigger than 11 to 11. And 11 is not exactly the right place. But, for example, I want to return the 5th smallest element (11). is not right on the axis, you can see the position of the axis right at the end of the partition Pivot should be kept at the place. (You do not really need to pay attention to the medium element) then you can calculate the smallest element to use this information, assuming that at the end of the partition the axis is on xth index; of = x = & gt; The correct answer to the smoke is K & lt; X = & gt; The answer is in the left partition; search left partition K & gt; X = ...

Only getting one result from sub select in inner join in mysql -

Hello I'm in a dilemma, I am querying this: SELECT GROUP_CONCAT (DISTINCT (ca.category_name) SEPARATOR ',') categories, pr.promo_name, pr.add_value_text, c.contract_id, c.cmeal_plan, c.cmin_markup, c.civa, c.tax_include, c.hotel_id, hi. hname as well as, hi.hstars, im.image_file, pl.plan_name, as ra.price contract woe as C inner hotel_info which hi.hotel_id = c.hotel_id and hi.destination_id = '6460' Internal images included as im on im.foreign_id = hi.hotel_id Internal meal_plan included but only pl.plan_code = c.cmeal_plan and pl.lang = p L '1' internal hotel_categories join hc.hotel_id = hi.hotel_id intermediate categories when hc join ca.category_code = hc as CA Category_code and ca.lang = '1' Left Join (Select r.hotel_id, average (Arkdblukpi.al.) As of As Price R) RA as the value of ra.hotel_id = hi. Hotel_id as PROVENCE PRO. Hi.hotel_id and FIND_IN_SET (c.contract_id, pr.contract_id) & gt; 0 more P.Book_start & lt; = '2012-11...