Automatic Generate Input without shift+enter Mathematica 10 - wolfram-mathematica

I have a little problem with my program. I have a function which is call funkcja where I do some small operations and at the end an output is show by Graphics function.
Then, in function Manipulate, I use my funkcja and some boxes to manipulate in parameters of my function.
The issue is that I can't make it automatically show output of funkcja when I open my project, without pressing SHIFT+ENTER.
Is there any way to make this automatic when I open my project?
Currently I have this when I open my project:
http://postimg.org/image/5o1qcxkjb/
This is what I want to have when I open my project:
http://postimg.org/image/f3kxhlosf/

To my understand, you have to press keyboard to run the code in Mathematica .nb file.
However, if you want to be automatic without press the keyboard, you can export your Mathematica .nb file to .CDF standlone file(under menu there is a export). As a .CDF you dont need to press keyboard to run the code.
Hope this would help.

Related

How to use "marker" in R-studio

I found that by using mouse click, we can create a red dot as a "marker" in R-studio. This is very nice. But how to simply go to this line with a marker?
I use SAS also. In SAS, it is like pressing Ctrl+F2 to create a marker, and press F2 to go to the next marker.
Anyone use this before? Thanks!
That isn't a marker but rather a breakpoint. When you run a script with a breakpoint, execution will stop there. Unfortunately there isn't currently a way to jump to breakpoints.
You can get similar behavior by inserting sections: use Code -> Insert Section to add a section, then Code -> Jump To to jump to any section quickly (there are hotkeys for these as well).

Type a pre defined text when a shortcut key is pressed in Windows 7

I work on mainframes and don't have much knowledge about windows other than playing warcraft :-) hence pardon me if I ask something nooby/silly.
I have a requirement to enter a particular long-text in the current position of a cursor whenever a shortcut key is pressed.
I am thinking of creating a bat file and assigning a windows keyboard shortcut to the bat file and whenever I have requirement to enter the long text, I press the windows shortcut key
and the long text gets typed in the current position of the cursor.
The current position of the cursor can be in any application, like Excel, Word or notepad or Windows dialog prompts.
Could you please let me know if this is possible and point me where I could get some information about this "technique".
Thanks & Regards,
Vasanth.S
To make a single key combo do what you are asking, you may need another program. You can make a link to a batch file, hook up a shortcut and then use the clip command to copy text from a file onto the clipboard. That would require the shortcut and then a Ctrl+V to paste. The batch file would look like this:
clip < c:\SomeDir\sometext.txt
You might like to look at using a clipboard manager - which saves a history of clipboard entries, can search for an entry, and paste it at the cursor.
Ditto and CLCL are both useful and free - which one you use depends on your windows version.
They are hotkey driven for ease of use, but mouse can be used.

Configure a code snippet to auto-expand? (Extensions are fine)

Is it possible to create a code snippet that expands automatically the instant I type the last letter of its "shortcut" (without requiring me to press Tab twice, etc.), and if so, how do I do that? Right now I'm getting by by having configured a more convenient keystroke for Edit.InvokeSnippetFromShortcut, but it's still a keystroke I don't feel the need for (for a small set of snippets).
(I have no problem installing an extension if necessary to make snippets better, including something I'd have to buy.)
What you are looking for is probably a Macro - MSDN Info on Macro Usage.
You can either create a macro which types the snippet and press tab twice, or create the snippet code through it.

Using Accessorizer doesn't paste generated code

I'm trying to get into Accessorizer, but every time I am trying it, I run into the same problem. I select some code (for example, multiple #property statements), hit cmd-c and move my cursor to the place I want the generated code to be.
I now use Accessorizer's menu, select Implementation and my copied properties are pasted in, instead of #synthesize statements. As far as I can see, I followed the setup instructions precisely. I don't like the difficult to use shortcuts, so I would like to use the system menu, at least for now.
Ah, so you need to invoke the Accessorizer text service by pressing shift-alt-cmd-0 instead of cmd-c. That sends the text to Accessorizer. Only after you've done this, you can use the Action Menu / press shift-ctrl-cmd-0.

Textmate tab and de-tab selected block

Recently switched to Textmate on Mac for coding. On PC when ever I want to tab in or out a block of code I just highlight and press tab or shift+tab to move it in our out. It's very useful when you are adding an extra loop or conditional statement to a block of code to keep everything tidy and neatly indented.
On Textmate however when I try this it just replaces my selected text with a tab. So is there a way to do tab and de-tab lines of code in textmate?
Indent: Alt+Tab
Un-Indent: Shift+Alt+Tab
the hotkey is command-left bracket to move left and command-right bracket to move right
(the buttons next to 'p')
heres a link to more hotkeys and such
http://projects.serenity.de/textmate/tutorials/basics/
You can use Shift+Tab to decrease indent; You just need to make and assign a macro. You can reuse this technique to accomplish a great many things.
Enter some text, and intend them, this is mostly for feedback.
Click the Record Macro Button
Use ⇧+⌥+⇥ (aka; Shift + Option + Tab) to decrease the indentation.
Click the record button to stop recording the macro.
Use the Edit menu or ⌃+⌘+M to save your macro;
Saving will prompt you to create a new bundle*, or add your macro to an existing bundle.
Add a Key Equivalent by clicking in the field and pressing ⇧+⇥
Your bundle-macro should look like the one below, simply Save and you're done! TextMate will now decrease indent on ⇧+⇥
*: (as noted by u/PatrickT) Sadly the create new bundle functionality has not yet been implemented, and you must choose to add to an existing bundle. You can still create a bundle via Bundles -> Edit Bundles then Command + N.
As an alternative, you can change the keybindings, see Link
Here is what I did:
Install Link
Go to File -> Open -> User Key Bindings, this will create/edit ~/Libary/KeyBindings/DefaultKeyBinding.dict
Add a binding, for the action enter shiftRight: (indent) manually (this is a TextMate specific action and not in the pre-populated actions list)
Choose a shortcut, I used cmd+alt+right
Do the same for the action shiftLeft: (un-indent, I used cmd+alt+left)
Save and then restart TextMate
I used a shortcut with arrow keys as my right hand is already on the arrow keys when I am selecting multiple lines, so this is a good fit.
The reason why I did it was because I have a german keyboard and alt+tab/alt+shift+tab don't work for me since I am using Witch for app-switching using these exact shortcuts.
EDIT: cmd+alt+left/right don't work when you have multiple tabs open, as they are used for navigate to next or previous tab in TextMate... seems this cannot be changed or overridden (I tried Setting Shortcut Keys in Textmate). Looking for an alternative shortcut now.

Resources