I'm trying to use turbo-flask in my python flask application. It tries to download turbo.js but failes because I'm not working with an internet connection.
I thought about inserting the js file directly into my project but couldnt find it anywhere.
Is it possible to use it offline?
Short answer: YES.
You can install Turbo as instructed in Turbo Handbook
But that's without turbo-flask package, which uses CDN version as default.
But it seems like you can do (for example) this:
{{ turbo(url=url_for('static', filename='js/turbo.js')) }}
and then your app uses this downloaded js.
That's if you just download current version of turbo js by hand.
If you are using other ways (such as npm), then your file will be somewhere else and you need to edit code accordingly.
Related
Since wkhtmltopdf is not using up-to-date version of webkit, I tried to search for another option.
I have found slimer which is a headless browser based on Gecko, and it gives pretty good result but is not really headless and the project is a bit immature.
One option that I want to try is using Chromium Embedded Framework to render pdf. I read the sources and find out it can run headless, and since it's using blink, the result are pretty good and can use recent html/css/javascript features.
One drawback is the size. After compiling I got a libcef.so file of 92mo.
So my question is: Is there a way to lighten in size compiled binary of CEF for pdf generation ?
(Except from manually removing all non desired part from source code... Which would be quite long and painfull...)
I'm using the web server Lighttpd and I'm absolutely new to it. I managed to install and get in running in CentOS 6.2. I now want to make a plugin for lighttpd using Cpp, but I couldn't find any helpful tutorial at all and totally confused now. Could anybody help me with clear info?
You won't be writing a plugin in C++, you'll be using straight C. There aren't any tutorials in the sense of building a Hello World application, but there is some documentation. http://redmine.lighttpd.net/projects/lighttpd/wiki#Developing-Information is the place to start. Read the links there in order, especially http://redmine.lighttpd.net/projects/lighttpd/wiki/HowToWriteALighttpdPlugin and mod_skeleton.c in the lighttpd source.
Once you have those, the only thing to do is start experimenting!
I moved from Dreamweaver to cfBuilder about 12 months ago, and now work almost exclusively in cfBuilder. On the whole, I find it very good.
One thing I don't like though is that it isn't very good for editing Javascript, CSS and HTML (great for CFML though). I remember when reviewing Eclipse some time ago that you can setup Eclipse (using plugins ??) too work with different languages, such as CSS, HTML, SQL, Java, PHP .. whatever..
I assume this can be done with cfBuilder as well... how do I setup these different eclipse environments in cfbuilder?
Many Thanks in advance
EDIT: for example.. can I load this eclipse IDE into cfBuilder?. http://www.eclipse.org/downloads/packages/eclipse-ide-javascript-web-developers/indigosr1
That to me looks like a complete Eclipse install with embedded plug-ins, rather than just a plug-in. So it would be to Eclipse what CFBuilder is to Eclipse; so you'd install it as well / instead of CFB, not as a plug-in within it.
Your question probably needs retagging: it's nothing to do with ColdFusion (which is the server end of things), and more to do with just "Eclipse" than "ColdFusion Builder", because the question is more "how does the Eclipse plug-in architecture work".
Perhaps the best way to start understanding how Eclipse plug-ins work would ebt o take a step back and have a look at vanilla Eclipse, and have a look at how CFEclipse installs (instructions here: http://trac.cfeclipse.org/wiki/InstallingCfeclipse). This'll give you an idea about how Eclipse plug-ins work, and they work exactly the same way if your Eclipse install happens to have CFB wrapped around it.
I'm not sure if that suggestion is any help, but it is how I would approach solving this problem if I had it.
I'll begin with an apology since I am new to c++ and maybe my questions make no sense.
I have a c# app, unfortunately it requires .Net framework to be installed on the machine.
I'd like to make a c++ application that will copy a .Net installer from a cd, and run the installer on quite mode.
The c++ app must be hidden, no console or what so ever, and also the most important thing is: it must run on a clean install of windows xp/
Please help me :)
I have no idea how to approach this, since I've never used c++ before.
P.S. (if it's possible to run a c# app that can do the above, saying how would be appreciated).
I tried googling but failed to get an answer
I dont know why you want to have a c++ app to launch the dot net installer. This can be achieved from within DOT NET env itself.
Add a Setup project to your current solution. It can detect installed .net framework and depending on your application's dependencies can offer to install one automatically.
However by default it will try to download the framework but if you intend to supply it on your CD you can configure it to pick up the installer from a local location as well.
Refer here to get you started
http://support.microsoft.com/kb/307353
This is my first question after leeching over here for some time.. So spare me.
I need to apply the iZotope Vinyl VST effect to some audio files via CLI or C++ (so language doesn't really matter), it has to work on a Mac or on a Unix based system. I've researched all over the webs and can't find any working solution.
I've tried using MissWatson, a command line utility, this works but my result audio files are silent...
./MissWatson -plugin=Vinyl -input-file="/Users/Sjaq/Desktop/test.wav" -output-file="/Users/Sjaq/Downloads/MissWatson-v1.0-mac/res.wav" -parameter=1:0.6,2:0.6,11:0.4
Then I tried using the Steinberg VST SDK by creating a host application, starting from the vstvalidator provided by the SDK. But when I try to load the VST I get this error:
2010-12-01 16:57:40.774 vstvalidator[4654:903] Error loading /Library/Audio/Plug-Ins/VST/Vinyl.vst/Contents/MacOS/Vinyl: dlopen(/Library/Audio/Plug-Ins/VST/Vinyl.vst/Contents/MacOS/Vinyl, 262): no suitable image found. Did find:
/Library/Audio/Plug-Ins/VST/Vinyl.vst/Contents/MacOS/Vinyl: no matching architecture in universal wrapper
And I don't know what to do. I'm pretty new to C++ and and made a few apps without any issues, but this time I've hit a dead end.
I've read about pyvst but it seems to need a DLL for the VST so that didn't work either.
I'm the author of MissWatson, and as you probably noticed on the webpage, I unfortunately was required to close-source the code, so I can't really ask you for more diagnostic information, since I wouldn't be able to patch MissWatson if it's a bug there. However, I would recommend running MissWatson with the -verbose switch and perhaps logging that output to file if that floods your terminal. You might find something in that output which helps you to diagnose the problem.
Anyways, as for the error in your VST host, I have a feeling that you are compiling your app as a 64-bit executable and trying to load a 32-bit plugin. Since hardly any VST/AU plugins (and also sequencers, for that matter) have made the leap to 64-bit, you'd be better off just compiling your app as a 32-bit x86 binary.
By default, the "debug" configuration in Xcode only builds your app for the native architecture of your machine to save time during compilation. I would advise that you disable this feature in your project's build settings and always build with the architectures you plan to ship with. This will prevent weird cross-architecture types of errors like the one you saw above.
Edit: I have since started a new command-line VST host to replace MissWatson which is called MrsWatson. You should try using this tool instead.
Perhaps you can port the source code of this open source vst host to match your platforms?
http://www.hermannseib.com/english/vsthost.htm
Scroll down to the bottom of the page.
Hope it helps.