How to increase size of text editors inside Google-Cloud-Shell? - google-app-engine

I first open Google-Cloud-Shell from clicking console image on top right.
Welcome to Cloud Shell! Type "help" to get started.
Your Cloud Platform project in this session is set to citric-yen-197207.
Use “gcloud config set project” to change to a different project.
user_name#cloudshell:~ (citric-yen-197207)$ emacs -nw helloWorld.txt
user_name#cloudshell:~ (citric-yen-197207)$
At cloudshell, when I open emacs or other text editors whole screen is filled.
Later, I am connecting into my google-instance with following command: gcloud compute connect-to-serial-port 'INSTANCE_NAME'. After connection is completed (user_name#instance-3:~$), when I try to opened emacs, vi or nano or any other text editor their size is around 80x32, which is pretty small. I am not sure what causes this problem.
Example view could be seen as follows:
And console location is messed up as well. I am writing in one point but the character show up some other point. So text editor environment does not allow me to any adding text, after a while all characters merge together, previous lines pop up at the courser point I am writing text.
[Q] Is there any way to increase the width and height of the any text editors in Google-Cloud-Shell on a web-browser?

Related

What does the number beside the icon represent?

What does the number mean in read and why does it increment from 1 to 2? It looks similar to firebugs error count, but there are no errors here.
The badge will show different information depending on your settings.
To see the current behavior (and change it):
Go to Tampermonkey settings
Make sure Config Mode is set to Beginner or Advanced as you will not be able to change the setting when in Novice mode
Find Icon Badge Info on the settings screen and set it to your liking.
In Novice mode this is showing the number of "running script instanced". E.g. if you're on a page where you have a script running and that page also has an iframe with the script running the badge will say 2.

Filter text copied from PDF

I'm having a problem while copying text from a pdf to MS SQL Server. This pdf contains a query, which I'd like to copy to my MS SQL Server but when I do this he copies the text including some invisible symbols.
Here the first part of the query, copied from my PDF viewer:
IF​O​BJECT_ID​(​'​trgAantalIU',​'​TR')​​I​S​N​OT​N​ULL
D​ROP​T​RIGGER​trgAantalIU;​ GO
CREATE​T​RIGGER​trgAantalIUO​N​bezettingsregel AFTER​U​PDATE
AS
BEGIN
When I view this copied query in SQL Server it doesn't get the correct syntax highlighting and I discovered that there is an invisible symbol between the 'B' and the 'E' (it requires two backspaces to delete the B while the cursor was in front of the 'E', is why I know this).
My question is: how can I delete those invisible symbols? I cant find an option in MS SQL Server to do this for me.
I'm using OS X 10.11, and the included 'preview' app as pdf-viewer. MS SQL is running in a VM (Parallels Desktop, latest version).
There are a few things you can do to remove all the weird characters.
By far the easiest way to get rid of all these invisible characters is by using another application to paste text into without the actual formatting.
On Mac OS X you can use any text editor and paste the copied part into it with Shift-Option-Cmd + v to remove formatting.
If you are on windows you can copy/paste the code into notepad and it will lose all it's formatting (same thing works with mousepad, or leafpad) under Linux.
For Windows there is also an application which you can use known as "PureText".
A short description about puretext:
PureText only removes rich formatting from text. This includes the font face, font style (bold, italics, etc.), font color, paragraph styles (left/right/center aligned), margins, character spacing, bullets, subscript, superscript, tables, charts, pictures, embedded objects, etc. However, it does not modify the actual text. It will not remove or fix new-lines, carriage returns, tabs, or other white-space. It will not fix word-wrap or clean up your paragraphs. If you copy the source code of a web page to the clipboard, it is not going to remove all the HTML tags. If you copy text from an actual web page (not the source of the page), it will remove the formatting.

Displaying Specific Lines From a Text File on Console - Batch Files

Okay So I have a text document displaying various logs. An example of one of these logs is as follows:
Session Begin: 11/04/2013 - 1:36:52.87
10002,CREATE,100
LIST
10002,DEPOSIT,100
10002,DEPOSIT,250
10002,DEPOSIT,150
Session END: 11/04/2013 - 1:37:23.95
What I'm trying to accomplish is displaying all the lines that have '10002' in them onto the console. There are more numbers (or in my case account numbers) and theyre all set to a variable %AccNum%. Simplicity would also be helpful here, Thanks.
find "10002" yourlogfile.txt
would probably be the easiest way.

Issue with configuring conTEXT to compile for Unrealscript

I have been going through Rachel Cordone's Unreal Development Kit Game Programming with UnrealScript Beginner's Guide book and having an issue using the conTEXT text editor.
As per instructed through the book I have followed all the steps to configure it but it won't compile once I press F9 - considering the last step to configure is to set the Enivronment Options/Execute Keys section. Here are the steps the book lays out (just that certain tab):
7) Now we are going to set up the conText to compile code. On the Execute Keys tab, click on Add, then type .uc into the Extensions field that comes up.
8) Once that's done four keys, F9 through F12, will show up in the User Exec Keys window. Let's click on F9 to make it convenient. Once clicked the option on the right become available.
9) For the Execute line, click on the button to the right of the field and navigate to out UDK installation's Binaries\Win64 folder, and select UDK.exe. For Start In, copy the Execute line but leave out UDK.exe.
10) In the Parameters field, type "make" without the quote marks. This tells UDK.exe that we want to compile code instead of opening the game.
11) Change Save to All Files Before Execution.
12) Check Capture Console Output and Scroll Console to the Last Line...
Then all I have to do is press F9 and it will compile - but it doesn't! It gives me:
No user command associated with extension '.uc'
Use 'Environment Options/Execute Keys' dialog to assign commands.
It seems it is not registering the changes no matter what I do (yes I clicked apply before saying okay but even still nothing). Any ideas?
The instructions may be out of date. You'll need to select your ".uc" entry, hit "Edit", and change it to just "uc".
Also, if you use UDK.com instead of UDK.exe the console output will go directly into Context instead of going to a separate popup.

How to start the associated program when selecting more than one files?

I have set .jpg file associated to my own program. I want to add the context menu to .jpg files, so I set the entry of HKCR.jpg\shell\open\command to "myProg.exe %1". After associating, there will be an item on the top of the context menu saying "Open image with myprog". This works right when I select a single .jpg file, but when I selected more than one file and click the top item of the context menu, nothing happended. How can I solve the problem?
Thank you very much
Each selected file will be sent to a new instance of your application. Your application should check if a previous version exists, or not. If a previous instance exists, it should sent its parameters to it (e.g. using Windows Messages) and then terminate.
Another approach is to use DDE (Dynamic Data Exchange), an old method used by Shell to send all files to one instance of your program.
You might need double quotes around the "%1".
Read this article for much more detailed information about how all this works.
http://msdn.microsoft.com/en-us/library/bb776883.aspx
Also, this blog entry talks about what you need to do specifically for multi-select command execution: http://blogs.msdn.com/pix/archive/2006/06/30/652889.aspx

Resources