Posts

rsync - How to exclude wildcard directory but include wildcard files using rdiff-backup? -

I'm using really awesome simple powerful backup tool though I'm fighting with Wild Card Globe Pattern. The structure is: / data / aaa / cache / data / bbb / cache / data / ccc / cache etc .... each cache directory The original files and cache files in the original files are named only 1.jpg , 2.png , 3.gif , and so on. is. The cache file contains a string connected to some basic file name. So I want to backup all / data / * / cache directories, but only include the original files, not the cache files. I am using this command: rdiff-backup --exclude ** / cache --include ** / cache / + ([0-9]). + ([Az]) / data / backup but rdiff-backup returns this and I'm lost: initial backup should be interrupted There are ... Fatal error: Final selection expression: The globe in the command line includes: ** / cache / + ([0- 9]). ([A-z]) Specifies that files must be included. By default all files are included, so the expression is meaningless because it's proba...

java - JSR 107 - Caching (JCache) vs CPU caching -

I have read about JSR 107 caching (jachet). I am confused: everybody who knows, every CPU manages its caching memory (with no help from the OS). So, why do we need a Java caching handler? Thanks There is a difference between CPU caching and memory caching. This will cache things in the zacate memory, so you do not have to get it from expensive resources on disk or network. Therefore, the cache is created in the CPU so that they can avoid going to memory. The CPU typically has three level caches and 8 MB around the store. CPU caching does not have to worry about anything because it has been taken care of for you. If some CPU is not in the cache, then it has to be taken out of memory. It is like avoiding caching in the memory in memory or avoiding slow resources. As I mentioned earlier, the mechanisms have control over the programs so if you want to constantly ask your DB for some object, then you It can store memory and return to the same object. This has left a littl...

terminal - How to show long git output in separate buffer with less? -

When I open less , then it is in a different buffer (maybe Is there another word for this?): The scroll bar of my terminal disappears and I can scroll with the mouse wheel. , it uses the same buffer as my session, the scroll bars of the terminal remain, scrolling with the mouse wheel scrolls the session and scrolling back and forth (with the keyboard) that's all It leaves something which is ever seen in the terminal. The last thing can be easily displayed by shooting from Jammu and Kashmir, while scrolling the terminal buffer, the first row will be repeated several times. Other devices that use less work, e.g., long output is shown from psql in a different buffer less ? says: core.pager GIT will use to output the page. GIT_PAGER can be overridden with environment variables Note that git sets the FRSX less environment variable if it pager runs, then it is not set. Important part is x lower variable consulting less' man page: -X or --no-init Dis...

How to use the Object Detection Bounding Box in a decision condition to turn on the LED on Raspberry Pi using C++ OpenCV? -

I am using OpenCV 2.4.8 to create an application that will detect guns. The application will be posted on Raspberry P. An LED / buzzer is also connected to Raspberry P. If the gun is detected, then the LED / buzzer should be turned on according to certain conditions. I have attached the relevant code. The problem is how to tell the code whether the gun is detected or not? I mean, the traced gun has been shown by a bounding box. Now, how to use that bounding box in IF-condition? I have commented on the desired lines in the code, like what I really want to do, can someone guide me how to do it? Any help is highly appreciated! Thank you. This is my code snippet: for (;;) {cap.retrieve (frame); Caps & gt; & Gt; Frame; Std :: vector & lt; Rect & gt; Guns; Mat frame_grey; CvtColor (frame, frame_grey, COLOR_BGR2GRAY); Equalize (frame_grey, frame_grey); // Address Guns gun_cascade.detectMultiScale (frame_gray, guns, 1.1, 2, 0 | CASCADE_SCALE_IMAGE, size (30, 30)); // Se...

ns2 code is not running giving some error can't figure out the error -

This is my code for SFQ.tcl. This code was going on completely when I worked on a college computer , When I'm trying to run it on my computer, I am giving some error. Please tell me if someone can tell me where the error is in the installation of NS2 as when I type NS, then I'll call % , but when I try to give errors to the program # simulation time set Val 60.0 (stop); # Prepare new simulator ns [new simulator] set set tracefile [open out.tr w] $ ns detect all $ tracefile namfile set [open out.Nnam w] $ ns namtrace- all $ namfile #create 6 nodes Set N0 [$ n2 [$ ns node ns node] n1 [set ns node set] set] set n3 [ns node] set n4 [ns node] set n5 [ns node] #create link between nodes specific bandwidth With, type the delay, queue & amp; Line size $ ns duplex-link $ n0 $ n2 10.0Mb 10ms SFQ $ ns queue limit $ n0 $ n2 50 $ ns duplex-link $ n1 $ n2 10.0Mb 10ms sfq $ ns queue limit $ n1 $ n2 50 $ NS Duplex Link $ n3 $ n4 10.0Mb 10ms SFQ $ NS Queue-Limit $ n3 $ n4 $ 50 NS Du...

css - Google Maps infobox close button -

I have a problem in my info box on Google Maps. I stole it as though I wanted to, but remove the close button Was given: / ... Does anyone know how to solve this problem? My code: & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" src = "http://maps.google.com/maps/api/js?sensor=false" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/src/infobox.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Function initialize () {var loc, map, marker, infobox; Loc = new google.maps.LatLng (-33.890542, 151.274856); Map = new google.maps.Map (document.getElementById ("map"), {zoom: 12, center: local, mappeople: google.maps.MapTypeId.ROADMAP}); Marker = new google.maps.marker ({map: map, position: loc...

ios - OS X server for launching Unit Test remotly -

हमारे पास रिमोट ओएसएक्स सर्वर जैसे मैकिन क्लाउड, मैकैटेडियम, वीएमओएसएक्स, एक्सक्लुड, एक्सकोडक्लबल P> मैं किवी का उपयोग करना चाहता हूं अगर कोई सुझाव दे सकता है कि मैं एपीरीसीएट होगा मैकिनक्लाउड की कोशिश करें, आपको आवश्यकता हो सकती है किवी चलाने के लिए उनका समर्पित सर्वर।