interactive

Tell if python is in interactive mode

In a python script, is there any way to tell if the interpreter is in interactive mode? This would be useful, for instance, when you run an interactive python session and import a module, slightly different code is executed (for example, log file writing is turned off, or a figure won't be produced, so you can interactively test your pro...

Interactive prompt in perl

What is an easy way to provide a string value to my user and let the user edit it... without him having to retype the whole string if it's not 100% correct. ...

Adding Completion to (interactive)

Is there any way to add my own completion to an (interactive) elisp function? Ideally, I'd like to pass it a list of strings that it would tab-complete from. I know that using (interactive "D"), (interactive "F") or (interactive "b") give you completion for directories, files and buffer-names respectively, but what about more general inp...

Does an updated 'vimtutor' exist?

vim comes with a nice built-in interactive tutorial. You can access this tutorial by just running: $ vimtutor It is very easy to use because it creates working cases for basic commands. Is there a more advanced tutorial? Has any one though to build one to help uses take their VIM skills to the next level. Most tutorial and cheat-s...

Is there a way to make python become interactive in the middle of a script?

I'd like to do something like: do lots of stuff to prepare a good environement become_interactive #wait for Ctrl-D automatically clean up Is it possible with python?If not, do you see another way of doing the same thing? ...

Python and Eclipse: How to use interactive console after running a module, with the module variables and functions

Let's consider 3 situations: 1) I write a pyhon module in Eclipse (pydev) and run it Ctrl-F11. The module runs and I don't have any control or access (AFAIK) to the module variables and functions. 2) I have defined a python interpreter as an external tool in Eclipse, so I can run it within Eclipse. It works fine, but it does not have t...

How do Ruby and Python implement their interactive consoles?

When implementing the interpreter for my programming language I first thought of a simple console window which allows the user to enter some code which is then executed as a standalone program as a shell. But there are severe problems: If every line of code the user enters is handled as a standalone program, it has to go through the tok...

interactive charting / reporting tool

Hi, Can you recommend an easy to use, stand-alone (not library), charting/reporting tool, providing the following interactive features for line charts: Zooming, scrolling Automatic value display when the mouse cursor is positioned on a serie’s line. Display of aggregated values (sums, averages) when the user selects an area of the cha...

How to create touch interactive charts for android

I need charts for my application where the user use gesture to redraw the charts in android. Could you suggest any charting API,tool or software which supports. ...

Matrix Interactive Sorting on Report Builder 2.0

Hello, I have been using Report Builder 2.0 for a little time now and I can't seem to get Interactive sorting to work on a matrix header. Here is a first image of the report design: ReportDesign The final report should look something like this: [FinalReport] The TextBoxProperties window of [Importanta] looks something like this [TextBoxP...

Linux C: "Interactive session" with separate read and write named pipes?

Hi all, I am trying to work with "Introduction to Interprocess Communication Using Named Pipes - Full-Duplex Communication Using Named Pipes", http://developers.sun.com/solaris/articles/named_pipes.html#5 ; in particular fd_server.c (included below for reference) Here is my info and compile line: :~$ cat /etc/issue Ubuntu 10.04 LT...

How to incorporate sound into a Javascript-based website without resorting to Flash programming?

Everything about this website affirms my decision to develop interactive websites with javascript and not flash. But one question though, how they do they incoporate sound effect into it? I check the page source and it's not HTML5. Source: nissanusa ...

Committing hunks from inside of git add -i?

Is this possible? It would be nice if I didn't have to switch back and forth between git-add -i and git commit when breaking apart hunks into different commits. Is there a better way to do this? Or am I doing something wrong? ...

jQuery Auto Add Text Field on Click

Does anybody know of a good solid plugin that allows a user to have an infinatly expanding list of text boxes. So here is an example: Col 1 - Col 2 Cheese - 150mg Cake - 20mg Cheese - 100mg New - New So when a user clicks on any of those (They will be in a table), they can edit it. And when New is clicked, New...

Program for viewing MATLAB figures without MCR library

I need to send a 3D .fig file to someone without access to MATLAB. I've already compiled an executable that will open a MATLAB figure, but it requires the MCR library to be installed, and the user does not have admin rights on their computer. Is there a simple program out there that can open a .fig file and allow the user to rotate/zoom/...

Show or hide elements in PDF via Javascript

In PDF files it is quite easy to interact with form fields via the Javascript API. Is it possible to do this (specifically showing/hiding) to arbitrary elements on a page? Say, not just form fields, but text, graphical elements, embedded images... Is there an API to interact with those? If yes, how do I identify an object? ...

SSRS 2008 Interactive Sorting in Sub-Report not working as expected

I have a (parent) report that has a list. The details group of this list contains one sub-report. So basically if the list has 10 records (rows) the sub-report is executed 10 times. The problem seems to be with interactive sorting in the Sub-Report. It has 4 columns with interactive sorting enabled. When I run the parent report and try ...

Regex to validate SMTP Responses

I'm writing a regular expression that can interactively validate SMTP responses codes, once the SMTP dialog is completed it should pass the following regex (some parentheses added for better readability): ^(220)(250){3,}(354)(250)(221)$ Or with(out) authentication: ^(220)(250)((334){2}(235))?(250){2,}(354)(250)(221)$ I'm trying to ...

interactive lua: command line arguments

I wish to do lua prog.lua arg1 arg2 from the command line Inside prog.lua, I want to say, for instance print (arg1, arg2, '\n') Lua doesn't seem to have argv[1] etc and the methods I've seen for dealing with command line arguments seem to be immature and / or cumbersome. Am I missing something? ...

Creating an interactive website

I want to create an interactive website using aspx and ajax, that there will be an option to create chess game room for example and other players will be able to join. I have 2 Questions: I wonder if you have any idea how can I make that after one player clicks on a button and finish his turn, the other player will be able to do a mo...