As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
In what ways are scripting languages (especially bash) is used to manage large C++/C programming projects?
It will be helpful if someone can list some clever uses of scripts in their programming projects at automating certain tasks.
I personally used shell scripting to invoke my program multiple times for different inputs, for loading the necessary modules before I try to run my program, for automatic graph plotting with gnuplot etc. When I was working on huge clusters I also found a script very useful when I had to set/query some runtime settings to launch my tasks on the cluster. I always use GNU Make to build my programs, but if you have extremely small non-critical projects, you can use scripts to even build your code.
I am sure that there are a lot of other innovative ways to use bash scripts, but whatever I just said is from the perspective of an ordinary developer who does a lot of (almost) mundane stuff everyday. And bash scripts have made my life a lot easier, to say the least.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am starting a project with 2 friends, we all are software developers and we want to do things in a safe and right way. That's why we decided to use some software development methodoly that fits our needs. I would like to know which could be a good starting point for us, and these are the variables:
We are a team of 3.
We are friends.
This is a new company.
We want to do things in the right way.
We are looking to generate clean code.
I would also like to know of software that could help those methodologies.
A couple must have's to start the right way:
Continuous Integration - use a continuous integration server to build your code and run automated tests. Jenkins is a great opensource example
Version Control - Git is the trendy new (and better) choice, but SVN works too. FWIW, the organization where I work is moving from SVN to Git
Write lots of tests - It will save you time and headache in the long run
Work on something you are interested in.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Is still worth learning expect? Because I have not seen any new books on this topic? What would anyone recommend for a good book on this?
expect is best used for controlling scripts that output queries and require a response. Many other languages struggle with this and create deadlocks on stdin/stdout when trying to use both. Expect also overcomes some issues with password entry (like when scripting SSH).
Having said that it isn't necessary to know expect because many other languages have an expect module (tcl and python come to mind) which provide the same behaviour.
I would have to say it depends on your job. If you spend a lot of time interacting with repetitive commandline scripts or FTP then expect is well worth adding to your scripting arsenal.
SpliFF wrote above about "... interacting with repetitive commandline script or FTP ..." While I'm all for automation, and regard Expect as indispensable, Expect is NOT necessary in 2010 for FTP or many other roles where it once was necessary. Fifteen years ago, for example, Expect was an appropriate way to automate FTP; now, most scripting languages already build in capabilities sufficient to replace Expect's use with FTP. Many, many automations can be done with what Perl, Python, Tcl, ... already build in, and Expect is not essential for these applications.
It never hurts to have another tool in your kit. Expect really does fill its niche extremely well.
The quintessential Expect book is Exploring Expect. It's the only Expect book you need.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
From the extense list of Quantum and Molecular Dynamics packages, which ones can be easily "interconnected" to a cluster which works with the queueing systems PBS and Sun Grid Engine?
Or is it there some program or method that allows "packing" all jobs in a PBS or SGE way?
Thanks
I'll be very surprised if many of the packages on your list cannot be easily run on a cluster under PBS, SGE or both. At their simplest they are just batch job managers so if you can write a command line to execute your chosen program you can write a job script for submission. With SGE, I'm not so familiar with PBS, you can even run interactive jobs on a cluster.
You probably want to know about executing parallel versions of your packages under PBS and SGE. Again, very straightforward if (a) the package is parallelised and (b) the cluster has the right parallelisation system configured.
If you have any more specific questions about particular packages perhaps, you could try posting again, though I suspect that the producers of the package, or their website, is a better place to start than SO.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
As a learning exercise I'm building a basic scientific computation environment based on .NET. I'd like the GUI of the app to be much like matlab, in that I have an interactive window, an objects window and the facility to spawn visualisation windows. Intellisense in my command window would be very nice. It seems visual studio itself could almost be used in this manner, is this a viable option? Creating the visualisations within the VS environment seems like the only hurdle. What could I do here?
Eclipse is also an option I suppose but I'd prefer to stay totally with .NET if possible.
Any other suggestions?
You could take a look at MonoDevelop here to provide some help. It is open-source and one of the nicer IDEs.
You could also build something based on GEdit, as it is very pluggable.
Those are the two tools, plus the CLI that I use for .NET development, but I am entirely on Linux/Unix using the Mono tools.
Hope that helps!
I've just discovered VSlab. Its specific to F#, however its a good demonstration of what I would like to be able to do with my own DSL in terms of visualisation and an interactive editor.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I've recently began using dTrace and have noticed just how awesome it is. Its the perfect tool for profiling without placing the burden on programmers to set up hundreds of probes in their applications.
I've found some nice one liner and sample scripts here and there, but I was wondering about what scripts, tools and links others might want to share.
BTW Anybody tried Chimes?
Here are some links I've found useful
A Powerpoint presentation about dTrace:
http://www.nbl.fi/~nbl97/solaris/dtrace/dtt_present.pdf
200+ useful scripts:
http://www.brendangregg.com/
I attended Theo Schlossnagle's Full Stack Introspection Crash Course talk at OSCON this year. In that presentation he gives several examples of using the D-Trace language and at the above link there are some additional utilities.
It's worth noting that because of the differences in Apple's and Sun's implementations, dtrace scripts from Solaris may not (likely won't) work on Leopard, and vice-versa. I'm not sure about FreeBSD's version.
The main problem is a different set of probes made available by the OS. Sometimes the probes will be provided under a different name. Sometimes they'll be more or less specific from one OS to another. Just a gotcha in case you come across a script that, for some reason, won't work.
Unfortunately dTrace is only implemented in/for Solaris OS. People from sun are recommend me to port all my php applications to Solaris, and "dtrace" them. After optimizing to again port them on my previous OS.