I want to call the Image Importer patch every x seconds and updated the Sprite patch with a new image accordingly. I'm new to Quartz Composer and not sure exactly how one can implement this. Thanks!
But is the image itself, I mean the source changing ? Because the image importer patch will auto update.
You can
Output the image importer to the value input of a sample & hold patch
Bind a signal patch (hidden patch) to the "sampling" input of the sample & hold patch
Set the signal patch to sample every x seconds.
Related
OllyDbg - there are several patches applied but it still says that file was unmodified and doesn't save changes of patches to modded *.exe . Somehow before the addition of each new patch it saves ok with notice of changing the file, but with next it doesn't. And with the third I don't know how to overcome it. How to save them - am I doing something wrong?
The message
Basing on your comments - There is no such Save to file or Edit -> Save to file when you right click in the CPU window. You are doing somethng wrong.
The correct way to save the patches to new file is:
Open CPU window
Right click -> Copy to executable -> All modifications
Click Copy all in the new window
In the new window Right click -> Save file
I'm looking to see if there is a way to capture the entire output of a quartz composer scene, or it could even be a scene within a macro patch, and use it as the input to another patch that accepts an image. My use case is an image filter that overlays something dynamically generated based on the input image.
Yes, you can do it but not in QuartzComposer.app
To capture a video/audio/images from some QC patches you should use AVCaptureSession and AVCapturePhotoOutput classes from AVFoundation framework in Xcode. Then you can easily pass this data to another QC patches. Of course, you need to have a good knowledge of Swift or Obj-C.
I am integrating with the v2 Box rest api from an iOS app.
When I upload a file I cache it's modified date (as reported by Box in the return JSON)
Sometime later, I request the folder contents and check the modified date on the file (to see if it's changed since I last uploaded.) Depending upon how long I wait, the modified date changes - wtf!!!
If I request the folder contents immediately (msecs) after upload then the modified date is as it was after upload. If I wait 3 or 4 seconds then the date changes (by 1 second typically.)
Anyone from Box know why this might be - and how to fix it?
I don't know the answer to your particular question, but this caught my eye:
I ... check the modified date on the file (to see if it's changed since I last uploaded.)
If you're primarily concerned with detecting changes, then you might instead consider using the etag or version properties of the file object. They are designed for exactly this purpose.
Whenever I update my site with new files, I need to clear the cache every time to see the changes, which I don't want to do it...I have set expiration duration as 1 day,
Can anybody explain where is it going wrong and what's the solution?.
Thanks in advance
You need to add random (or version-like) parameter to your scripts/css/images, like:
<script>document.write('<script src="script_path?' + Math.random() + '"\><\/script>');</script>
wich makes browser to request like script_path?0.611818 so script will nave get cached (actually it will, but always would be requested a new copy).
Another way is adding version like parameter, e.g. current version of your web app is 5, so you do:
<script>document.write('<script src="script_path?' + your_version + '"\><\/script>');</script>
After each version you increase your_version parameter value by on or smth like that
p.s.
Examples are shown in js, but you will do it using your backend language
To make the browser load a file http://example.com/file.ext from server every time instead of from the cache, change the client code to point to http://example.com/file.ext?<random value>. Every time you change the file, change the random value in the link.
I have kind of an interesting problem...
So I'm trying to run a build every time I see a change on a directory in my SCM in Hudson. However, I don't need to pull the directory to run my script. Is there any way to check if there's a change in a directory, but don't pull it?
In addition, there is another directory which I do need to pull from Hudson at the same time. So basically I want something like:
On change of directory A or B:
pull directory B only
run script
I was told there was functionality like this in Hudson, but I can't find it. Any suggestions? Thanks for the help!
In case anyone is interested, I was able to accomplish this with just Hudson and Perforce.
When using Perforce as the SCM (don't know about the others) there is a 'Use View Mask' checkbox. Checking that give you the ability to choose which directories/files in Perforce to poll without actually pulling those files. For example, I had in my view:
//depot/my_script
I didn't want my script to run automatically when I had a new version, so I put it int o the "Poll Exclude File(s) text box:
//depot/my_script
Which pulls the latest version of my script. Then I checked the Use View Mask checkbox and put:
//depot/my_code_to_compile/
into the View Mask box.
To make Perforce poll for changes, I just checked the "Poll SCM" in build triggers and then made it check every minute. (by inserting "* * * * *" into the Scheduler box)
So to sum up, with the variables set as above, my Hudson job had the following behavior:
check for changes every minute
On changes to //depot/my_code_to_compile/, the Hudson job will run
On changes to //depot/my_script, nothing will happen
The job will pull changes to my_script, but will download nothing from //depot/my_code_to_compile/.
I think you need to install the FSTrigger Plugin for this functionality. To what the wiki pages show this is supported in Jenkins, I am not sure about Hudson compatibility.