Codekit 2 not refreshing browser - codekit

Codekit 2 does seem to be refreshing in any browsers. I've literally just installed it and been setting it up to my own preferences.
I use my Mac's hosts file to point http://localhost.sites to localhost. I've never had an issue with this in the past (I just set Codekit to refresh on any URL including the word localhost).
Now in the new settings file I'm slightly lost as to where to put it... after a load of mucking about I think I'm in a real state and here are my current settings:
Can anyone shed any light on this? Codekit is not refreshing the browser (all files are compiling fine).

I was having the same issue, #Djave.
Now, while I won't assume you make the same mistakes I do, I found that some errors in my
were causing Chrome to ignore the refresh. Specifically, the closing tag was missing. Instead, I had
<script... />
instead of
</script>
Hope you found the issue on your end.

As Bryan from Incident 57 told me, the refreshing process in Codekit 2 is totally different to the refreshing process in Codekit 1.
Codekit comes with its own server which you are required to run. You can click it in the top right hand corner of the program and it will launch.
You need to have this running to get going. If you have PHP files (or other server side code) Codekit won't run it – so this is where you need your external server running but it is important that you still view the site you're testing at the address given i.e. http://djave.local:5757.
For a far better explanation of all of this you can watch Bryan the creator of Codekit walk you through this in this video here.
https://www.youtube.com/watch?v=YUgH0jlYur0

Related

Is there a way to speed up TinyMCE placeholder load time?

I have recently upgraded TinyMCE to the latest version and the editor itself loads almost immediately. The issue I'm having is that the placeholder value takes up to 3-4 seconds to appear. I using the latest tinymce-django version and have gone through all of the docs and can't find a way to speed up the appearance of the placeholder. Has anyone else encountered this issue? I've attempted to turn on the compressor but it doesn't seem to make a difference. Because the interface loads right away it's hard for me to tell if the compressor is in fact turned on and if it's working.
So it seems to never fail....but after posting this question...I played with my init file....as it was giving me an error in the developer console....
I would up commenting out the line that was trying to reference my CSS file in the init and this seemed to speed up the load time even more. Now the placeholder loads instantly...This is the line that I commented out...
content_css: [
'//assets/css/mystyle.css'],
I don't appear to need this setting for now based on how I've used the source files to change my config appearance. I had an extra slash in front of the library and that seemed to be what was causing the placeholder load time delay. On to the next....

Many bugs and errors in 2SXC installation

Many bugs and errors in 2SXC installation
Can someone please give me some help?
This is supposed to be trivially easy.
I have spent 7 hours on this and got nowhere.
In deploying the module on new DNN install :
DNN PLATFORM
v. 09.02.01 (533)
Install 2SXC into the DNN - Successful
Deploy Content Module on to empty page: Successful
Click circular icon. Popup appears requiring Auto Configure button to be clicked.
Auto-Configure Content for 2sxc 11
Dialog Text:-
Auto-Configure Content for 2sxc 11? (Yes, I do)
install recommended content package? (Yes, I do)
Popup: Do you want to install these packages? (Yes, I do)
- Default content for 2SXC11
It takes about 10 seconds per package. Don't re-load the page while it is installing.
I click OK
1 second later
Popup: An Error occurred.
An Error Occurred
Spinner rotates ad infinitum
Try the help page: It says:-
"Run Auto-Configure and confirm the "are you sure" question, then wait a few seconds. Once you see the confirmation, everything worked". (Oh, No. It certainly did not!)
Installing default content templates
An error occurred.
Looked up the Wiki
Tried to upload the Content Templates .zip file into a Content Module Admin/App. An Error Occurred on the upload. Instruction says: See below for error. (There was nothing below).
Any advice welcome!
What you describe should be really easy - I agree.
My guess is that something has gone wrong in a way that's hard to spot. Maybe an installation once got interrupted or something like that. It should be easy, so I really suggest one of the following options:
Quickly replay the same scenario with a blank DNN to experience how it should work, and to ensure that your PC isn't doing something funny (for example, the file is downloaded by the DNN server, and if your PCs firewall would prevent the IIS from getting files, this would fail).
If that worked, probably just uninstall 2sxc completely and also uninstall the DB (that doesn't happen automatically, because you may just uninstall and want to keep the data) - use https://azing.org/2sxc/l/Kf5yDYQq/uninstall-2sxc - then try again
Ask a friend to play this through once with you
We just installed 2sxc on our development site, I’m super hopeful about it working - especially its ability to generate a json / json api. But! Today I used the Evoq page settings to delete “Content” instances on a test page - after that the “Add Module” to add a new “Content” instance fails - 2sxc’s javascript fails. Mysterious why just removing then trying to add “Content” instances would break 2sxc.

Userfrosting installation issues

I did installation of Userfrosting as per the steps - no errors and all went well (using ubuntu 16 command line).
When i loaded the site in browser, page did came but no CSS applied. Browser console said - failed to load resource. I checked and found that “asset-raw” folder is not there under userfrosting/public (this is my webroot).
Also when clicked on sign-in, it does not work. DO let me know if i missed anything.
Thanks
Rahul
If you're using Apache, you need to make sure Mod_Rewrite is enabled. asset-raw is not a real directory, it's an alias managed by the app.
See: https://learn.userfrosting.com/troubleshooting/common-problems#installation-went-fine-except-i-don-t-see-any-styling-on-my-home-page-i-am-using-apache-

Discrepency in "rake preview" vs. "rake deploy"

I am having an issue where I can "rake preview" and view the site in a browser on localhost:4000 and everything seems to be displayed properly (fonts, styles, posts, text, asides, etc). However, when I "rake deploy" (which I have set to sync to Amazon S3), the site displays in such a way that it almost appears as if the CSS is missing, mis-configured, etc.
I have verified that the path referenced for the "/stylesheets/screen.css" exists in S3 and that the browser can open it. I have even done a diff on both screen.css and the main index.html from both the "preview" and the "deploy" and don't see any differences.
I have tried the following as possible resolutions:
revert to a backup from prior to my most recent changes
purge everything in the S3 bucket and re-deploy
completely start over with a fresh installation of Octopress
of course clear browser cache, try from behind different firewalls, test in different browsers and operating systems, etc.
read through every question here tagged as 'octopress'
What may have triggered all of this was uncommenting the following line in sass/custom/_colors.scss:
$header-bg: #263347;
Before that the only other change was a "rake new_post" about a week ago. Un-doing either of those changes doesn't seem to help.
I'm at a complete and total loss as to what to try next. I'm sure this is something that will result in a face palm.
Here are links to some screenshots (I can't post inline because of insufficient reputation):
http://cdn.ihashacks.com/img/2013/06/preview.png
http://cdn.ihashacks.com/img/2013/06/deployed.png
Any help would be greatly appreciated. Thanks in advance!
Is your blog hosted at domain.com/blog? If so, ensure that the site variables url and root in _config.yml are set properly.
If that doesn't solve it, can you provide a dump of the browser console? This will help to debug.

CSS reload on IE7

It looks like IE7 doesn't reload the latest version of my stylesheet each time I upload a new version on the server.
This is annoying as I am debugging my .css file to make it work on IE...
Tried to empty the browser cache but still not working.
Thanks for your help.
Ctrl-F5 - forcible way to reload in IE
Include your version number in the file name. myfile_v1234.css
When testing, every time you do an update you can just wite "stylesheet.css?r=98123"
As long as the query string is different, it'll be downloaded again.
If you need, you can use javascript to append Math.random(), to get the random number. Not required on production though, when updates would be stable.
2 Questions:
Does IE eventually load with the newer stylesheet?
How are you saving the changes to the server (SSH, Web Interface, etc.)?
I ask because I ran into an issue with a web-based file management system a while back where one browser would show the CSS just fine, the other wouldn't, and we noticed the issue of which browser played nicely depended on which browser we used to upload the CSS.
The reason turned out to be that IE gave the CSS file a different MIME type than Firefox. If you continue to notice the issue even when you've cleared the cache, check the MIME type of the file using Firefox by going to Tools > Page Info.
Also, if it is simply a caching issue, consider turning caching off in IE. I believe this should be an Advanced Option under Internet Options.
Also, you may want to try creating a special developer environment for IE (if it comes down to it.) Perhaps have another machine with IE7 and no caching and any other features turned off (A kiosk mode, perhaps), and then previewing the page on that machine.
Thanks to you all!
I did manage to solve my problem with the "stupid" Ctrl+F5, and by changing the Internet Parameters of Windows to reload content every new visit.

Resources