editing

cameraOverlayView prevents editing with allowsEditing

时间秒杀一切 提交于 2019-12-03 13:03:09
Editing a photo after it's been taken (moving and scaling it) works fine in my app with this line: [imagePicker setAllowsEditing:YES]; But if I also use a cameraOverlayView, the editing mode doesn't work anymore. The screen comes up, but pan and pinch gestures don't make anything happen. I'm using your average image picker controller: UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; And I add a camera overlay view, created from a custom view controller's view: CameraOverlayViewController *overlayController = [[CameraOverlayViewController alloc] init]; UIView

Editing C# while debugging

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 10:50:05
问题 I know I've dealt with this issue before, but the settings to override this always seem to be changing. I have a C# project in Visual Studio 2008. While I'm debugging, VS won't let me edit my code. I don't want to Edit and Continue - I just want to make changes for my next build. Edit and Continue is disabled. When I try to edit a file while debugging my project, I get a little message that the files are now Read-Only. Anyone dealt with this recently in VS2K8? 回答1: Tools + Options, Debugging

Disabling user input for UITextfield in swift

六眼飞鱼酱① 提交于 2019-12-03 05:25:50
问题 pretty trivial question, I know. But I can not find anything online. I need to disable the user from being able to edit the text inside of a text field. So that when the click on the text, a keyboard doesn't show up. Any ideas? A programmatic solution or if it is possible through storyboards would be great. 回答1: Try this: Swift 2.0 : textField.userInteractionEnabled = false Swift 3.0 : textField.isUserInteractionEnabled = false Or in storyboard uncheck "User Interaction Enabled" 回答2: Another

how to edit a file in powershell remoting session (powershell)

五迷三道 提交于 2019-12-03 04:45:49
问题 I am connecting to another computer using powershell remoting, really nice. can do lots, but how do I edit a file? PS C:\Users\guutlee> Enter-PSSession -ComputerName appprod [appprod]: PS C:\Users\guutlee\Documents> cd \myapp [appprod]: PS C:\myapp> what can I do to open a file editor on a file on the remote machine? [appprod]: PS C:\myapp> edit app.config so edit "filename" just seems to hang, from powershell.exe or from powershell_ise.exe The only thing I can think of is back out of the

Improving the way we write code?

百般思念 提交于 2019-12-03 04:39:48
While thinking about software-engineering in general I came across the question why we don't see any improvements in the way we write/document code. Think about it: There has not been a revolutionary improvement since we've moved from punch cards to text editing. The last improvement I've seen is syntax highlighting and context sensitive help (e.g. Intellisense or ctags). Not something I would call revolutionary. That makes me wonder: Why is it so? I'll start with something I miss badly: Lots of my code deals with geometry. For documentation describing geometric relationships always ends up in

Emacs repeat string n times

眉间皱痕 提交于 2019-12-03 03:47:07
问题 I'm learning the basics of navigating/editing in Emacs and I'm curious how one could accomplish the following task: Repeat the string 'bla ' n times in normal text editing mode. Let's say I want to repeat it five times to generate 'bla bla bla bla bla '. I tried... C-u 5 bla ...but the command executes after the 'b' is entered, and I only get 'bbbbb'. I'm sure there's some basic command that can help me here...would somebody be kind enough to enlighten me :)? 回答1: One way is via a keyboard

bash script to edit xml file

雨燕双飞 提交于 2019-12-03 02:49:11
I want to edit the config file of a program that is an XML: <software> <settings> ... <setting name="local directory" type="string">/home/username/</setting> ... </settings> </software> What is the easiest way to do this from a bash script? Thanks Brian Agnew Depending on what you want to do, you may want to use some XML-specific tooling (to handle character encodings, to maintain XML well-formedness etc.). You can use the normal line-oriented tools, but unless you're careful (or doing something trivial) you can easily create non-compliant XML. I use the XMLStarlet command line set. It's a set

Editing C# while debugging

痞子三分冷 提交于 2019-12-03 01:19:30
I know I've dealt with this issue before, but the settings to override this always seem to be changing. I have a C# project in Visual Studio 2008. While I'm debugging, VS won't let me edit my code. I don't want to Edit and Continue - I just want to make changes for my next build. Edit and Continue is disabled. When I try to edit a file while debugging my project, I get a little message that the files are now Read-Only. Anyone dealt with this recently in VS2K8? Tools + Options, Debugging + Edit and Continue. Turn off the Enable checkbox. You can now edit the source code. You will get a warning

“Find next” in vim

霸气de小男生 提交于 2019-12-02 23:59:42
问题 To search forward in vim for cake , I'd type /cake , but the cursor jumps to the first match when I press return. Is there a vim command analogous to "find next"? 回答1: It is n for next and N for previous. And if you use reverse search with ? (e.g ?cake ) instead of / , it is the other way round. If it is installed on your system, you should try to run vimtutor command from your terminal, which will start a tutorial of the basic Vim commands. Rob Wells advice about * and # is also very

how to edit a file in powershell remoting session (powershell)

妖精的绣舞 提交于 2019-12-02 17:56:48
I am connecting to another computer using powershell remoting, really nice. can do lots, but how do I edit a file? PS C:\Users\guutlee> Enter-PSSession -ComputerName appprod [appprod]: PS C:\Users\guutlee\Documents> cd \myapp [appprod]: PS C:\myapp> what can I do to open a file editor on a file on the remote machine? [appprod]: PS C:\myapp> edit app.config so edit "filename" just seems to hang, from powershell.exe or from powershell_ise.exe The only thing I can think of is back out of the pssession and "start \webprod\c$\inetpub\myapp\web.config", which would open visual studio. [appprod]: PS