How to convert many HTML files to MediaWiki Pages on Windows? - html

I'm on Windows and I have an index.html in a folder and a huge set of html pages in subfolders.
How can I convert these html files to MediaWiki pages?

Check the Converting content from HTML text file section from the manual at mediawiki.org. Personally I would start with these two, and if that doesn't work I'd build something based on pywikibot. Any of these solutions can be made to work on Windows, though it is advisable to try it on Linux or OS X first, and if not install Cygwin.
You're unlikely to find any kind of streamlined GUI tool for such a specialized action. If you need more help with using the code available there you should hire a programmer or learn how to do it yourself.

Related

Is it right to use GIT for version control of HTML pages

I am working on an app that creates automatic blog HTML pages using JSON and also has to provide versioning for that blog.
Creating HTML using JSON files
Creating a GIT tag whenever User creates a version.
If the user wanted to see the previous version of that blog I am simply checking out that file to given tag and fetch the file and again creating HTML using that JSON file.
Questions
Is it right to use GIT for the above purpose?
If yes, Are there any precautions that I have to take?
If no, Is there any alternatives for saving the previous version of a file except saving each file for each version?
Note: I am using Node.js for creating GIT tags and checkout to tags
You should use git for every project, ask if it's right only if you have a ton of binary files.
I've seen people use git for content writing and articles, remember it is an efficient version control systems and as long as you wish to have past versions of your project( you always should), you should use git.
even if you are not pushing to a remote repository, it's better to have some VCS implemented in all your projects.

Linux or Windows Web Hosting and others

So I'm new to the web hosting thing. My website is made with HTML and CSS. It's going to go online soon but I'm stuck at two things.
Firstly, I'm using arvixe.com for hosting. I came across Linux and Windows based web hosting. What are the differences and which one should I choose?
Secondly, my website has this section that is the same across multiple pages so I got this general file with the code called "header.html". How do I put this across multiple pages?
Please help guys. Thank you
The main Difference Between Linux and Windows is Hosting si its usually its server side language and its cost. Usually windows is more expensive than linux hosting because the Windows Server license is not free.
Windows also used ASP.NET technology and LINUX is using PHP. so, it all depends about your necessity. If you use PHP use Linux, if you ASP.NET you use Windows. But judging by your header.html, it seems you doesn't use either PHP or ASP.NET. In that case either Windows or Linux doesn't have any difference.
Regarding including header.html, you have several options, it all depends what language you are using.
Include File in ASP
Include file in PHP
Include file in jQuery
Since you doesn't use PHP or ASP, I guess you need to use option number 3. Good Luck.
Edit :
To use jQuery you need to include it first, refer to w3school. And then you need to use this code
$(document).ready(function(){
$("#somediv").load('somefile.html');
});
change 'somediv' and 'somefile' according to your needs.

Compiling an external website to .chm using wget

There's a website, in particular http://thisquantumworld.com
It is a text-only site with inter-related links. I want to have the content on this site as reading material. I can(and I did) download the site as html using wget.
But, it would be good to have it as a .chm file. In that case, it will be easily redistributable too.
Can anyone suggest a way to download a website as .chm(maybe using wget)? I have no experience with .chm files and have no idea how do they work.
For such purpose (convert web-site to chm), I use Windows freeware tool Web2Chm.
It works perfectly, and I almost sure - it will work under the Wine in Linux too.
If you want to use only wget, I think your task can be solved using python scripts.

Support for live preview of Haml in Coda or Espresso?

I just discovered the beautiful Haml and Sass, and want to develop in these languages but with live previews. Coda and Espresso both allow for beautiful live previews of HTML files, but previews of an Haml file simply show it as plain text.
While there exist sugars for Espresso that add syntax highlighting, which is nice, I would like something that automatically compiles Haml files to HTML, and then lets me preview that instead of Haml.
Does anything like this exist for either Coda, or Espresso, or for any other web development tool out there?
(If it makes a difference, I'm not developing for Ruby on Rails, I'm making a static website, so the Ruby on Rails plugin shouldn't help AFAIK.
Software I tried out were StaticMatic and Middleman. StaticMatic's development seems discontinued, and for some reason MiddleMan refuses to work after creating my initial directory structure. Maybe I'm using it wrong.)
I don't use Espresso, so no comment there. However, Coda does not provide any support for Haml or Sass that I can find. I've been closely following the Coda forums, as I am a paid user, and it looks as though a 2.0 version is forthcoming. Who knows, perhaps that'll be included.
For now, since you're not using Ruby on Rails, I might suggest TextMate. It doesn't do Haml or Sass "right out of the box", but it can be configured to do so using "Bundles."
Installing HAML bundle for TextMate is a primer on how to setup TextMate for Haml/Sass, and I suspect there are others.
That said, for roughly the cost of TextMate you can purchase RubyMine ($69), which does both Haml (via RubyGem) and Sass (via Plugin), and can also handle running Sass --watch internally. I know you're not using Ruby, so maybe the idea of using a tool made primarily for Ruby doesn't appeal, but it does work in both the Haml and Sass environments very nicely.
The third option would be BBEdit, which can also handle both Haml and Sass. Some information on the plugin for BBEdit is in BBEdit-Codeless-Language-Module-for-HAML-SASS.
I hope this helps.
P.S.: I'm a paid user on all the platforms I mentioned. While I use RubyMine as my primary tool, I find that TextMate still gets a lot of use when I'm programming and need a quick, friendly window to examine code in. I used to use BBEdit when I needed to do complex regular expression-style search and replacements, but then I discovered how to do the same thing in TextMate, so BBEdit is sort of collecting dust. Coda? It looks pretty, but doesn't get the job done so much any more (though Panic's Transmit is still very much a core application).
There are two plugins for Coda 2 that I am aware of:
Coda-Sass-Plug-in is available from GitHub and allows you to save out your scss files to css. I worked for me though I wasn't completely happy with needing to refresh multiple tabs all the time.
LessCSS is available from incident57 dot com. Although I was never able to make it work, it lead me to CodeKit (CodeKit has been mothballed due to production of CodeKit).
CodeKit has the ability to watch folders and generate css files from sass or less when they are saved. It also has the ability to handle Stylus, Haml, Javascript, CoffeeScript, Jade, Slim and Kit.
OK, for anyone else looking for an answer to this, I decided to go along with a different solution. I'm using my normal editors, along with 'serve', a Ruby gem that runs a web server using WEBrick, and automatically compiles any files which it detects has changed. This includes HAML, Sass, Slim, Markdown, etc. files. I'm going to be using either Coda's live preview, or the minimalist browser called Playground, which eliminates the need to press refresh when the local file it is displaying changes.
This workflow is nice for now, although it doesn't have any built-in method to build the entire site into a static site when I'm done and want to deploy. This is a feature in middleman, but middleman still refuses to run because a dependency of it, thin, refuses to work on 64 bits. I might have to manually compile all the files using the terminal command, and hope the Haml interpreter can handle combining template files with each file, which I seriously doubt at this stage. This limitation and thus the continued dependence on 'serve' might force me to consider one of the other applications out there, listed on the page Haml Sucks for Content.

Downloading .net project from link

I found this site that has a link to a .Net project.
The link is to a folder structure.
How do I down load this project without SVN??
Is it specific SVN??
http://svn2.assembla.com/svn/nbdn_web_store/
Source Code
I would say that either you install svn (which is not a huge install), or you have a lot of clicking to do when you download each file separately using your web browser. Can't see any other alternatives, really.
install subversion and check out the file with e.g. the command
svn co http://svn2.assembla.com/svn/nbdn_web_store/trunk/ ndbn_web_store
First of all, I agree that installing svn is a good option.
If you don't want to do that (and don't like clicking tons of links to download each file) you can use an offline browser such as this one recommended by CNET