Posts

cmake - OpenCV installation issue on mac mavericks -

Soon Clean Mimek destroyed some of Maverix's system files, I did the repair (re-installed) Mavericks and its Afterwards I got an error from XDODE "Assert.h" can not be found, so I thought I installed command line tools with "xcode-select -install", which I have no idea, if my problem is solved Has been or not, and then I found that not all OpenCiv libraries Can I find that I had uninstall OpenCV with "Brave Unicentral Open CV"? I was trying to reinstall it since then but I had no luck. Running "OpenCV Found Fluffy" tells me: ==> Making [2]: *** [module / core / CMakeFiles / opencv_core.dir / src / algorithm.cpp.o] error 1 1 generated error Making [2]: *** [module / core / CMakeFiles / opencv_core.dir / src / array.cpp.o] making error 1 [1]: *** [module / core / CMakeFiles / opencv_core.dir / all] Make Error 2: *** [All] Error 2 Unfortunately I do not know what to do with this error, I used the Semitic -J8 and I found: [6%] Bui...

doctrine2 - Symfony 2 : getReference and find -

इकाई प्रबंधक का उपयोग करना getReference () या ढूंढें () विधि डेटाबेस के कुछ अभिलेखों के लिए एक गैर प्रारंभिक ऑब्जेक्ट देता है क्या आपको पता है कि क्यों और क्या किया जाना चाहिए? getReference () करता है यदि वह अभी तक लोड नहीं हुआ है, तो ऑब्जेक्ट को लोड नहीं करेगा, यह केवल ऑब्जेक्ट पर एक प्रॉक्सी देता है ढूंढें () एक लोडेड ऑब्जेक्ट देता है सीएफएफ : // यह कॉल डीबी क्वेरी को ट्रिगर नहीं करता है, लेकिन ID $ objectA = $ this- & gt; इकाई प्रबंधक- & gt; getReference ('EntityName', 1) के साथ खाली प्रॉक्सी बनाता है ; $ This- & gt; assertInstanceOf ('सिद्धांत \ ORM \ प्रॉक्सी प्रॉक्सी', $ objectA); / / === सच // यह एक क्वेरी को ट्रिगर करेगा, जो कि स्थिति को लोड करने के लिए कॉन्फ़िगर किया गया है / लोड हो रहा है / क्योंकि यूनिटऑफ़वर्क पहले से प्रॉक्सी है, प्रॉक्सी को $ objectB = $ this- & gt; इकाई प्रबंधक- & gt; खोजें ('EntityName', 1); $ this- & gt; असाइन करें ($ objectA, $ objectB); विशेष उपयोग के मामलों के लिए मौजूद है, यदि आ...

security - Using the PHP built-in server in production -

I was recently curious about PHP 5.4's built-in webserver. On the surface it seems that, however, with enough work, it may be possible to distribute PHP applications which are traditionally dependent on a different web server, such as WordPress, the form of standalone scripts In that, you can only php -S localhost: 80 ap.php (or, more likely, '. Wordpress.sh' ). They can also ship from their own PHP interpreter, which requires application for all needs, which will repeat the need to target many different versions of the language. It is searching the wheel to some extent again, but it certainly reduces the increase in portability and complexity for the end user. However, I looked at the following: This web server was designed for application development support. It can also be useful for testing purposes or for applications running in controlled displays. It is not intended to be a full-featured web server, it should not be used on any public network. This w...

datetime - How to compare two times using php -

इस सवाल का पहले से ही एक उत्तर है: 11 उत्तर मुझे समय के साथ तुलना करना पड़ता है एक चर में एक समय मूल्य संग्रहीत मैंने तर्क तैयार किया है लेकिन यह समय पर विफल रहता है। निम्नलिखित तर्क है: $ diff = "22:32:53"; अगर ($ diff & gt; strtotime ("072: 00: 00")) {गूंजती "डीओ ए"; } और अगर ($ $ diff & lt; strtotime ("08:00:00")) {गूंज "DO बी"; } और अगर ($ एफ़आईएफ & gt; strtotime ("08:00:00") और amp; amp; $ amp; & lt; strtotime ("072: 00: 00")) {गूंज "DO सी"; } लेकिन यह "डीओ ए" को प्रतिध्वनित करता है, जबकि इसे "डीओ सी" प्रदर्शित करना चाहिए यदि आप समय (बिना दिनांक) की तुलना करना चाहते हैं, तो सबसे अच्छा तरीका उन्हें मैन्युअल रूप से सेकंड में रूपांतरित करना है, और सेकंड की तुलना करना है स्ट्रॉटोम काम कर सकता है, लेकिन तुलना करने से पहले आपको इसे $ diff पर चलाने की आवश्यकता होगी।

javascript - Clickable list item that select a radio -

I have this html ... when I click on the Li item, I want the radio input to toggle Know that you can wrap the whole thing in a label but I can not change the HTML (JS and CSS only). Any thoughts? & lt; Li & gt; & Lt; Input type = "radio" name = "KETELWIZARD_TYPE_WONING" data-label = "app" value = "Appartement | Appartement" & gt; Appartement & lt; Span class = "image" & gt; & Lt; Img src = "https://acceptatie.foursites.nl/feenstra-ketelkiezer/wp-content/uploads/appartement.png" height = "24" width = "23" alt = "" & gt; & Lt; / Span & gt; & Lt; / li & gt; If you want to click anywhere on the screen to check the radio : If you want to toggle it (I think you might want to): $ ("li "). (Function () (var $ radio = $ (this). Find (": radio") $ radio.prop ('checked',! $ Radio.prop ('checked'));}); ...

dart - How to convert DateTime into different timezones? -

How to change datetime in different timezones? There are two ways of datetime class .toLocal () and .toUtc (). But if I want to display time in a time zone. How can I do this? Time zone information in dateTime is not therefore a DateTime , only your system's timezone and UTC is available. You can add timing information by wrapping the datetime in a custom class. Cover You need a table of offset for each timezone and then add / subtract the offset from the UTC date.

spring - Should one close Hibernate Session object every time after performing any CRUD operation? -

I am working with an enterprise application that uses Spring 3.x with Hibernate annotated programming. . Working with the hibernate session object for the DB function in my XYZDaoImpl class. And I suspect "is the correct way to shut down the hibernate session every time after any kurt operation object?" If this is correct If not, please advise me to recommend opening / closing hibernate session objects. You can post a little bit of DOIPL code ...... If you use sessionFactory.getCurrentSession () , you can get current session..in. This case framework automatically flags and closes when the transaction ends (committed or rollback). If you use sessionFactory.openSession () , you have to conduct a session and flush it and close it manually.