In ExtJS 5.1, I notice ext-all-debug,etc are in ext-5.1.0, where are /resources? - extjs

I want to create an ExtJS 5 app by just including the full library. Not using CMD. What should my headers look like? Where is the doc on that? Instead of the standard ext-all-dev.js I now see /build/ext-all-andbox-debug. Is that the new ext-all-dev.js? Also, where are the resources? Before I would copy over the resource/theme I wanted. Now I can't find the resources directory. Nothing in the release notes I can find about this.
What am I missing?

Peter, you probably know what you are doing and you have already read all warnings that discourage you from not using Cmd.
So, css is in packages/ext-theme-crisp/build/resources/ext-theme-crisp-all.css
See also this article: http://extjs.eu/single-file-extjs-5-application/

Related

Very fast files opening in Emacs similar to Sublime's Goto Anything

Is it possible to open files in Emacs in way that Sublime Text 2 does (Cmd+P or Ctrl+P)?
I miss this feature so much.
Have you tried Helm? It provides a unified history and buffer selector, which looks similar to what you want. You could bind the helm-mini command to a convenient key like F5.
You can check out Projectile. It was basically created to provide something similar to C-p, but has a lot of extra project level features as well. Projectile also has a Helm plugin to display project files and buffers with Helm.

How to get version of program in Vala?

I'm starting to learn Vala and after just a few lines of code, I just encountered my first problem. It should be kinda easy but somehow I can't find anything on Google ('vala version number' or 'vala get version number' or 'how to get version of program in vala' don't bring up anything useful).
The online documentation of Vala doesn't bring up anything useful, either. Throughout the web I find stuff on how to get Vala's version or GTK version or stuff like that.
edited stuff
What I want to get: The version of the program that is running. It should query itself to get it's own version number. I can set a version number for the project in the Anjuta IDE so I expect to be able to get that version information somehow. Since I can get the name of the application (via GLib.Environment) I should be able to get the version information, too.
edit end
May someone please be so kind and help me out here? It seems my GoogleFu isn't with me today.
If you use the autotools, the generated config.h header will contain your package version. The symbols can then be used from Vala via a custom config.vapi binding. You could check out sampala, it shows the trick.

Automate download of file dynamically generated by http request

I am trying to automate the download of a bunch of csv files that are generated from a database based on which checkboxes are selected on a form. The website generates the csv file with the click of a 'Download' button. I found the URL to the download prompt using Firebug (and determined how it changes based on checkbox selection), but am unsure how to use it since it is dynamically generated and does not contain a file path. An example URL is the following:
https://www.quantcast.com/download/plannerCSV?&d0Id=10&sc=1&mr=10000
What is the best way to go about doing this? I looked into the Python mechanize module and briefly glazed over pydermonkey, but had trouble finding documentation on downloading dynamically generated files. I also found some suggestions on other forums for using VBscript and Perl-- I prefer to use Python if possible since I am most familiar with it, but if another language is more appropriate, I will learn what I need in order to accomplish this task--I just hope to do it efficiently! Comments from anyone with experience/knowledge/insight on this topic would be appreciated.
Probably the easiest way for you to do this is to use the command line tool wget. If running a UNIX/Linux it's already there. If you're running Windows then a Win32 version can can be downloaded from: http://gnuwin32.sourceforge.net/packages/wget.htm
The you can use a shell/batch script that will download the file for you.
Example for Windows:
set id=10
set sc=1
set mr=10000
set my_url=https://www.quantcast.com/download/plannerCSV?&d0Id=%id%&sc=%sc%&mr=%mr%
set filename=planner.csv
wget %my_url% --output-document=%filename%
:
: do stuff with file
:

gedit plugin development in C

I'm Interested in writing gedit-plugins in C. I've checked Gedit/NewMDIPluginHowTo
...but haven't had any luck with it.
How can I get more information about writing gedit plugins in C?
If you're willing to use Python instead, here is a tutorial for writing gedit plugins in Python.
The only tutorial is the one you already found :
Gedit/NewMDIPluginHowTo
I know it can be hard to understand in a first view, but if you read it a few times and give it a try with a basic example, you should be able to achieve getting results quite fast.
Is there something specific that you don't understand?
You can also download some examples of plugins available in C:
https://gitlab.gnome.org/GNOME/gedit/-/tree/gnome-2-30/plugins
Well, you can always email some of the core Gedit developers about your question, I'm sure they have something to give. Try find them via Gedit: Help>About>Credits.
Good luck.

Is there something similar for emacs like vims's NERDtree

For vim there is a filesystem explorer called NERDtree: https://github.com/scrooloose/nerdtree
Surely an alternative or superior package exists for Emacs?
I prefer dirtree (screenshot below) by Ye Wenbin. It feels pretty close to NERDTree / the TextMate drawer.
It took me a few minutes of trial and error to figure out the dependencies, so take a look at the install instructions (and a few minor edits to the source) I've got in this repo.
You can try NeoTree .
https://github.com/jaypei/emacs-neotree
Screenshot:
Have you looked at Speedbar ?
The Sunrise Commander seems to be a well written package, and it has a tree extension. For a screenshot of the tree extension in action, follow this link.
Who needs any tree, when you have the mighty ido-mode . If you can train your mind to find the files, rather than just your eyes whilst visually finding it, you will win. NO need to tell me how biology works, i don't care :-) you get the point.
Personally, I prefer the ECB's tree mode.
http://ecb.sourceforge.net/
You should also check out the CEDET stuff.
http://cedet.sourceforge.net/
They contain a lot of other useful stuff that you can use for similar development needs.
I use a little of emacs-nav and a little of dired to navigate my projects' file trees. For file management tasks, I mostly use bash (often from within emacs).
(Shameless reanswer from A good project tree browser for Emacs? - Stack Overflow)
I just now did a word search for "explore" in package-list-packages, and discovered project-explorer. Seems to fit exactly what I want today (I don't code hardly, but getting a grip on the structure of my Jekyll site).
Keys include TAB for folding and unfolding directories. Open files with RET or f, but with prefix, it will prompt nicely for which window, and even from there allow you to decide to use window or open up a new one to any side (I didn't find the prompt string in the package code, so it seems to leverage built in Emacs functionality nicely; indeed it looks like dired even).
It's available on Melpa and Marmalade, and packaged description points to sabof_project-explorer ยท GitHub.
I include the site's image for convenience:
I don't use projectile or helm, but it has some integration.
Try out lusty-explorer. It's a well done plugin.
Get it here

Resources