Bash shell file Convert XML to CSV [closed] - shell

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed yesterday.
Improve this question
I want create file Shell/Bash ot convert file XML to CSV.
For example this site work, https://codebeautify.org/xml-to-csv-converter, but i have work on server phpmyadmin with cron.
Hi team,
I want create file Shell/Bash ot convert file XML to CSV.
For example this site work, https://codebeautify.org/xml-to-csv-converter, but i have work on server phpmyadmin with cron.

Related

How to make the path generic (RUBY)? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
This is how I am changing the directory path to the download folder.
Dir.chdir("C:/Users/abcd/Downloads/")
But this specific to a user. Is there is any way to make it more general?
Use home method for Dir
Dir.chdir(Dir.home + '/Downloads')
The "C:/Users/abcd/Downloads/" looks like the user directory for user abcd on windows. So I think this is a windows related question.
The Dir.home on my Windows-PC is U:/, not the user-directory.
But you can make use of ENV:
Dir.chdir(File.join(ENV['USERPROFILE'], 'Downloads'))
Just to be aware of: This changes the directory for the rest of your script. There is also a block-version of Dir.chdir.

How to create an executable for Ruby console application [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I'm writing a simple console app, but instead of distributing it as a script (somefile.rb), I want it as a binary file, like an executable.
Any idea?
Embedded Ruby (or better mruby) into C or C++
Simple one file with script as text.
Here is example for mruby mruby.

How dynamically change feature file path in cucumber testrun command? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm working now with cucumber project and I face with a small problem and need help)
I run some feature using commend:
cucumber features/path_to_feature/some_feature.feature
How can I dynamically change some_feature.feature to other_feature.feature?
Not entirely sure what exactly you are looking for.
If you are running the command from the command line interface, you can wrap your execution commands in a standalone ruby / shell script and pass the feature names dynamically.
OR
You could also use the cucumber config file (cucumber.yml) if you want to execute particular feature files.

Compiling dojo into a single build file [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Does any one has idea to compile a dojo into a single file. I am trying to host the project into a website, and dojo has 100's of files to be uploaded.. if any one got idea. please share.
As addition to the answer of Craig of following the build tutorial, I also want to add that there's a web builder that can help you with it.
With this tool you can specify the modules you need and create a single JavaScript file of it.

Which is the best way to add a profile picture code for users in a website [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Hi I'm creating a website which has many users, I would like add a profile picture for every user and display it. Which is the best way to add either using server scripting (Ruby) or via HTML and java scripts?
One of the easiest way to do this (independently of any technology) is to have your website use Gravatars ("Globally Recognized Avatars") when available. You can then use a simple img to show it in any size you want :
<img src="http://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50" />
See here for more information.

Resources