Array of css files being requested - html

Is there anyway to get an array of stylesheet being requested by the site. Like in module stage of loading.
The point is that i am making application cache for drupal site, and (captain obvious) i need css files also to be downloaded.
Drupal add's hahs(?) automaticly to some css and js files and i dont even know how, and i dont know how to turn it off, and there are over 15 css files. i could aggregate them, but still i am not able to get file name into variable or db.
Any good suggestions?

After a while of research, i managed to go look from api, and yea, there was drupal_get_css hook, that helped a lot. Then there was another problem. Dummy string, You know the ?=aslkd thing after filename. I strugeled sometime with it, and then i decided to turn it off. Now kid's, never do that! NEVER! I lost alot of my styles and things got broken.
I got desperate, and went to dig in to advgg's module and searched what i can find from there.
I got both js and css file from that module. Just go and find advagg_merge_plans and then
try this dpm($css_js_groups['0']['filepath']); with devel module, and wait for the magig!
Hope i saved some one's day of googling

Related

Make a single exe cefsharp application - embedding libcef.dll - costura.fody

I have tried many things before I found costura.fody and I were hoping that would be the solution to create a single file exe of a cefsharp application that I'm doing.
So the help file says set copy local to true of the file you want to embed in the solution explorer.
Done that.
So the exe got a little bit bigger when I did that but I notice that the size was not even close to cover libcef.dll so I suspected that this file was not embedded.
I tested this by renaming the dll in the output folder and yes I couldn't run the application.
I would really love for this to work but I'm kind of giving up.
I was struggling with AppDomain.CurrentDomain.AssemblyResolve to tap into that event but it was never called. Even when defining it in the static constructor to make sure it is started before anything else.
Can anyone please help me with this?
Kind regards
andla

Is there a way to trigger an error in Stylus when missing a variable?

I recently migrated from Sass to Stylus, and I'm loving it.
However, there is 1 thing that really made sense in Sass that doesn't exist in stylus. The compiler should yell at me if a variable is undefined, instead of just spitting it out as a string like nothing ever happened.
Is there a way to make the compiler yell at me ?
Assuming all options are in this page, you cannot do what you want at the moment.
You can still add this feature yourself or request it (by creating an issue) on the official github repo
By the way, this would be a good feature.

TYPO3 CSS file - css append every time different file

I took over a TYPO3 site...
I would like to edit css file, in the inspector it shows me that the file is located: /typo3temp/vhs-assets-portal-css.css?1481533219
The problem is that .css?1481533219 is every time different (dynamicaly generated).
I edit already vhs-assets-portal-css but it doesnt apply changes live...
I would appreciate if somebody can help me, and tell me how this is generated and how to change this css file.
Thanks in advance!
Denis
The number after the question mark looks like a timestamp which might be used to do a fresh fetching from the server. This could be done to avoid a caching in the browser. This can be helpful if the file is generated on the fly and could contain changed content for every access. Especially if you a logged in in the BE.
For FE you should avoid such constructs as they increase traffic.
The name of the file lead to the assumption there is a call of the assets-style-viewhelper of ext:vhs. Have a look in your templates to identify the call and check whether it needs avoiding cache or whether the CSS-include might be better configured in TS.

Magento theme mysteriously stops loading upon disabling (and then renabling) store view

I've been banging my head over the last day or so over a VERY WIERD issue I'm encountering with my Magento 1.9 site. All was working fine until I decided to add another language to the store (while disabling one of the languages already present). What I did was follow the same process I used to set up the language i.e. go to store view, and simply "disable" the language I did not want in the language selector drop down.
However, immediately after I did this, the theme I'm using stopped loading correctly. And no matter what I do (renable etc), it simply won't load any more. This is ALL I did BTW - I did NOT modify any other settings, code etc. . .
Is there something I'm missing here? Any input would be greatly appreciated!!
Did you tried to clean the cache? Any external cache?
Please check the other scopes. Perhaps you changed it.

How to compile the generated AS

hope you can help me with this question.
So, I've been working for a while with Flex, and had the crazy idea to create pure AS project.
If I compile a Flex app with the -keep flag, the generated actionscript gets generated.
Do you guys know of a way to make it compile, without going trough the code and gluing it all together?
Thanks.
Generated ActionScript is really only provided for reference; it's not really intended to be repurposed in that sense. Indeed, if you even have any, you've most likely compiled your project already anyway (unless you got it from somewhere else), so one might ask why you'd want to compile the generated stuff rather than your own source -- but nonetheless, although I haven't actually tried it, you should be able to point the Flex compiler mxmlc at your generated source to compile it, provided you're able to get all your dependencies to line up (which may be what you mean by "gluing it all together").
Just a thought, although again, I haven't actually tried it, so your results may vary. What is it you're trying to do, though? Just curious. :)
Like Christian mentioned, the generated AS code is pretty much there to serve as a reference. Just for fun, I tried compiling it from the command line using mxmlc, but part of the problem with doing that is that the class files generated don't match the classes they represent. So, you'd need to start renaming a bunch of your class files so that compiling those could even work. Many of the other classes in Flex won't be compiled in either, for the same reason.
As an example, the project I tested this with, had only one mxml file of source code in it. The generated output was 45 files. I'm sure that if you really wanted to do this, and were willing to invest the time in cleaning things up you could. But I'm curious too - why would you want to do this?
Actually it was just mere curiosity. I wanted to understand how the framework works and see how it merges it all together to make the final application, as I thought that the generated actionscript files were just a step in between the final SWF file, so I tought there should be a way for it to grab those files and generate the final application.
Eventually I would have tried to create a pure actionscript project just for the heck of it to see how complicated it was and what errors could happen when developing other stuff.
I know it sounds crazy, but I had some spare time, ha ha ha.