LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

XML - beautifying

Posted 04-02-2014 at 07:19 AM by sashi_hc
Updated 04-02-2014 at 10:05 AM by sashi_hc

You want to make your XML more readable
You have just extracted an XML from a source and it is all un-indented and so not very readable. That happens in my workplace where a single XML can be many MBs in size.

Using xmllint
xmllint --format <your_existing_xml_file_name> > new_xml_file_name

If you do not have xmllint installed, you have the perl method. This is slower, but works the same. This is not my code but see the author info. Works good.
...
LQ Newbie
Posted in Uncategorized
Views 96 Comments 0 sashi_hc is offline
Old

New Computer Ubunting Away

Posted 04-01-2014 at 07:50 PM by zaivala

A friend of mine sent me a Dell Optiplex 740, complete with box only and no hard drive, only 1 Gb RAM. I happened to have two sticks of RAM in my dead HP which fit the bill, and an old hard drive which never too a liking to Windows XP. Turns out I was running Ubuntu 10.04 on it, in 64-bit flavor. Well, that works for me. I turned the computer on and it ran. That's all I wanted. I upgraded to the latest LTS of Ubuntu.

I have two problems. One is that it boots up with sound muted. I...
LQ Newbie
Posted in Uncategorized
Views 110 Comments 0 zaivala is offline
Old

Pyplate - a mini Wordpress written in Python now available for beta testing

Posted 03-30-2014 at 06:44 AM by Pyplate
Tags cms, python

I finally released a beta version of my Python CMS. You can check it out at www.pyplate.com. It's powered by an SQLite database, and it supports some useful features like page caching, SEO friendly URLs, a sitemap and RSS feed. The UI is simple, and easy to use.

I've tested Pyplate on a Raspberry Pi and a PC with Apache. I'll be doing testing with Nginx shortly.

I've set up a Pyplate forum at http://www.pyplate.com/forum/index.php where you can ask questions.
LQ Newbie
Posted in Uncategorized
Views 112 Comments 0 Pyplate is offline
Old

Simulator for network based mobility

Posted 03-29-2014 at 12:25 AM by Riaz Khan

Hello all,
I just want to know which simulator i should go with for simulating network based mobility. I installed OPNET 14.5 modeler and when i tried to run an example, it gave me an error " mspdb100.dll is missing". I have started working on Sensor node's mobility. Now i am at initial stage, so please suggest me the best simulator for network based mobility problems and also the OS platform for the same. Thank you, i will wait for your immediate response.
LQ Newbie
Posted in Uncategorized
Views 102 Comments 0 Riaz Khan is offline
Old

Gruesome PDF to JPG converter script

Posted 03-28-2014 at 08:57 PM by the dsc (linux-related notes)
Updated 04-10-2014 at 12:11 PM by the dsc (fixing a bug)
Tags pdf

Requires gs, imagemagick, jpegoptim, cpulimit, and "coolloop" (or maybe not).

Has no options or anything.

You run it like:

howeveryounameit.sh appropriate-filename portable-document-file-to-convert.pdf

The result will be:

appropriate-filename-001.jpg, appropriate-filename-002.jpg and so on.

So you don't add numbers or extension on the first parameter ($1). I guess it may not deal well with spaces...
Member
Posted in Uncategorized
Views 135 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 10:40 AM.

Main Menu

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration