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.
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.
Can I create a custom operating system that supports both Windows and Linux applications?
How can I do that and what knowledge should I have?
Is this a good start?
Thanks.
This can kind of be done though using Linux and Wine however it is not perfect.
The issue is Windows is not open source and is VERY big so it is not very easy to perfectly emulate what that operating system is doing behind the scenes. This is especially hard with undocumented API calls many programs like to use on Windows.
I do not know of anything that lets you run Mac on Linix without using a VM.
It is very unlikely there will ever be "one OS to rule them all" but with tools like Wine and using virtualization with things like VMWare's Unity Mode to give the affect of another OS's program running on your system.
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 there any good equivalent debugger for Mac OS X?
Something that allows patching and saving of the assembly as well (with graphic interface?)
Thanks!
GDB is the gold standard for debugging on *nix. GDB has all of the debugging features you would expect in a modern debugger. For example, reverse debugging is the best feature to have if you are modifying the binary in memory, when you make a mistake just step back and try again. DDD is a popular front end, but seriously you should learn GDB's CLI. It has bit of a learning curve, but once you learn it you'll never go back. Its a lot faster.
Saving a modified binary isn't that great of a feature. Just open the binary with a hex editor like Hex Fiend and modify it directly, not a big deal.
I'm not a OSX person, but you might find IDA useful, however, you will probably need to pay for the linux/osx versions, as there is only a free version for windows.
Have a look at the lldb debugger (http://lldb.llvm.org/) and of course gdb is available.
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.
What publicly available open source Ruby applications (not frameworks) exist apart from web applications?
This question is similar to Ruby off the rails , except that's about anecdotes of what Ruby applications they've created, which aren't necessarily publicly available.
These applications should be non-trivial: ideally multiple committers, with well-designed code to handle the complexity of their task.
One example would be the Metasploit Project.
Background: Asking in response to Framework for non-web Ruby project, where I realised that I haven't seen any examples of Ruby applications that aren't one-person projects.
Take a look at Chef. This Ruby project is becoming the de-facto tool for managing cloud architectures.
Have you seen hackety hack? Non-trivial, but you will find plenty of interesting ideas in the source code if you're adventurous. Being written by _why, it's pretty fanciful.
There are a number of Mac OS X applications written in Ruby-Cocoa (LimeChat is an example; I think Colloquy used to be, though its website implies that that may have changed).
As far as not seeing Ruby projects by more than one person...huh? True, most open-source Ruby development these days seems to be in the Rails world, but within that community there are lots of huge projects with many developers.
You might ask this question on the Ruby mailing list; you'll almost certainly get more good answers.
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'd love to do some stuff in Prolog. Just need a good IDE for the Mac to make it not a pain in the butt. Which IDE do you recommend?
There is also a free Prolog IDE based on Eclipse, PDT, available from:
https://sewiki.iai.uni-bonn.de/research/pdt/start
Along the lines of "not really an IDE" answers, Textmate seems to be a favorite of OS X developers.
There seems to be some Prolog community support for it as well.
https://github.com/textmate/prolog.tmbundle
http://calltopower.wordpress.com/2009/01/23/prolog-textmate-plugin/
Not exactly about IDes but the current Logtalk distribution includes support for several text editors and syntax highlighters that can also be used for Prolog programming:
http://trac.logtalk.org/browser/trunk/wenv
The Prolog FAQ also contains useful information about editing and publishing Prolog code (sections 15 and 16):
http://www.logic.at/prolog/faq/
There are several plugin's available for Eclipse which work rather well with prolog. Theres a SICStus plug in which we use in Uni, although I dont believe its free, theres also a few other options in the Eclipse Marketplace (Under the Help menu)
Try CiaoDE plus GNU Emacs. CiaoDE is a state of the art prolog system with lots of libraries that runs in OS X, Linux and Windows.
You can try to use XGP for this.
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.
Where can I find resources related to the design and development of text-based user interfaces (e.g. interfaces exported via serial port from embedded devices to VT100 terminals)? I am interested in any material available - best practices, style guides, frameworks, etc.
Note that I am asking about resources related to the design and development of 'TUIs' rather than command-line interfaces (the thrust of Text User Interface Design Reference?). Wikipedia differentiates TUIs from CLIs (and GUIs) as follows:
TUIs are different from command-line
interfaces in that, like GUIs, they
use the entire screen area and do not
necessarily provide line-by-line
output. However, TUIs only use text
and symbols available on a typical
text terminal, while GUIs typically
use high-resolution graphics modes.
I don't have any experience with VT100 and that kind of stuff, but I know that Turbo Vision is still around and kicking on quite a few platforms, DOS and Linux included. And back in its day, it was used to write some of the better TUI applications (Borland C++ and Borland Pascal DOS IDEs come to mind), and I've seen it used in LOB applications back then quite often as well.
Screenshot:
(source: sourceforge.net)
Perhaps take a look at ncurses? It's a GNU library specifically designed for writing terminal-based UIs.
For best practices and style guides, the IBM Common User Access (CUA) defines a "text subset" that should be helpful especially if your users are used to GUIs. Details are in Chapter 3 of:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/F29BDG00/CCONTENTS
Additional CUA guidelines and standards are in:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/F29AL000/CCONTENTS?DT=19921204095534
http://petesqbsite.com/sections/express/issue21/tuiseriespart1.htm
http://en.wikipedia.org/wiki/Text-based_user_interface
Hope it helps... I still make programs in TUI (www.harbour-project.org)