How to prevent OllyDbg from interpreting parameters? - configuration

How do you prevent OllyDbg from interpreting parameters and showing the registernames + offset instead?
Screenshot:

ALT+O (options)
Analyis
uncheck ahow recognized args
screen shot with show recognized args checked
screen shot with show recognized args unchecked

Related

Chrome debugger / breakpoint stops at wrong line

It's been from version 0.47 that my breakpoints in chrome developer tool, would technically stops at the right line but it's shown otherwise on the source code panel.
there would always be a 1 or 2 line shift between the actual breakpoint and the blue colored selected line. that makes it very difficult to debug as it's never shown right, does anyone heard of a solution?
if(true){
this.anyfunction();
debugger;
var toto = 10;
toto ++;
}
In this example the first selected blue line in source code would be toto++, while toto would be undefined if you'd add a watch on toto, that's why I assume the breakpoint is properly hit, but there's a display problem...
I have faced same problem, It's working fine after I change inspect tools settings in chrome..
Click three dot icon in right top corner of inspect tool and select Settings.
(or)
Click F1.
Uncheck the Enable JavaScript source maps checkbox under the Sources in Preferences.
Now it's working fine...
Is your expression spread across multiples lines? For example:
var x = 1 +
2 +
3 +
4 +
5;
This is known to cause wonky behavior. When I set the breakpoint on the 1st line and then run the script, DevTools pauses on the 4th line.
Solution: set the breakpoint on the line above the expression.
in "chrome developer tools"
in "source" tab
look for 'cr' text in RED
color!
if you find anything it's mean there is some ENTER at the end of some lines that is not compatilble with you current EOF setting.
replace 'cr' with ENTER and you should good to go
EOF: End-Of-Line
Unchecking the Enable JavaScript source maps

PhpStorm keyboard shortcut for code inspection recommended resolution?

If you run a code inspection, you might get something like this in the results panel:
Problem synopsis:
Traditional syntax array literal detected (at line 193)
Problem resolution:
Convert Array Syntax To Short
i.e. it's telling you to change array() to []
The 'resolution' is clickable and it'll fix it for you. But is a keyboard shortcut, or a way of shading identical problems (often you get a bunch of them) and having them fixed for you all at once?
You can use f2/Shift+f2 to jump to next/previous error, then hit Alt+Enter, Enter to apply suggested fixes.
Note that there is a Code | Code Cleanup... command that runs inspections against your code and applies quickfixes. But it only includes a small subset of available inspections that are considered 'safe', so that applying hotfixes automatically doesn't break anything
Use standard shortcut: same as for invoking intentions menu (Quick Fix menu) manually in Editor: Alt + Enter (for Windows/Linux, not sure what that would be on Mac)
Also you can take a look at this tool: https://github.com/fabpot/PHP-CS-Fixer

How to remove red border in phpStorm?

I have a little strange question, and I'm hoping you could help.
Cause, I've been searching for the answer in Google, in PHPstorm documentation and etc.
Here's what I need. Every time I type something in CSS or HTML with Zen coding, this Red Border appears to the value. When my mouse cursor is anywhere else and I hit "Enter", the cursor goes to the end of that red border.
So does anybody know, how to get rid of it? It drives me crazy..
Thanks.
pressing Enter (or Tab) is enough to remove the border :) See help:
"If the selected template is parametrized and requires user input, the editor enters the template editing mode and displays the first input field highlighted with the red frame. Type your value in this frame and press EnterEnter or TabTab to complete input and pass to the next input field. After completing the last input field, the caret moves to the end of the construct, and the editor returns to the regular mode of operation"
I have had the same unwanted behavior in PHPStrom with php.
For PHP the solution was to uncheck the following checkbox:
Go to Settings (ctrl + alt + s), then navigate to:
Editor -> General -> Smart Keys -> PHP
Uncheck checkbox: "Enable smart function paremeters completion"

Google Chrome information bar

I added an extra parameter to Chrome "--disable-web-security". After I add this the "same origin policy" gets disabled which is exactly what I want.
The problem is that when I start Chrome an yellow information bar appears at the top and says:
"You are using and unsupported command-line flag: --disable-web-security. Stability and security will suffer."
The weird thing is that the flag seems to be supported as I tested Chrome with and without it.
My question is: Can that information bar be disabled with another flag or any other way ?
Thanks in advance
Try going to about:flags in the address bar and disabling Native Client..

How to set the size of tk_messageBox?

I am using a tk_messageBox with a lage message, so I would like to configure the layout of that message dialog.
I am using tk_messageBox like this:
set status [tk_messageBox -type yesno -icon warning -message "Here goes a text with 50 words"]
How can I set the width and height of tk_messageBox here?
Maybe there are some better alternatives for tk_messageBox?
You can't set the size of a tk_messageBox (that's functionality which doesn't fit with the way those dialogs work on Windows and OSX). You can try putting some of the message into the -detail option, which usually uses a smaller font.
Or you can try looking in the file msgbox.tcl of your Tk installation for the Tcl code that implements the message box dialog on Unix/X11. Hint: on that platform only, tk_messageBox is really an alias for ::tk::MessageBox. The name of the widget created by that script depends on the -parent option, but if that's absent, it's .__tk__messagebox. Knowing that, you should be able to use clever event handling to configure the toplevel widget in question. But this is not a nice solution, and won't work on either Windows or OSX (when build for Aqua instead of X11).
Is this what you had in mind?
import Tkinter
import tkMessageBox
window = Tkinter.Tk()
window.option_add('*Dialog.msg.width', 50)
tkMessageBox.showinfo("header", "Hello, World!")
.option_add may only work for linux operating systems, but you can control font, where the lines wrap, and the width of the box:
root.option_add('*Dialog.msg.font', 'Helvetica 24')
root.master.option_add('*Dialog.msg.width', 34)
root.master.option_add("*Dialog.msg.wrapLength", "6i")
(where "6i" is the length of the line in inches)
I use these settings, but haven't tested on other platforms beside X11
option add *Dialog.msg.wrapLength 10c
option add *Dialog.dtl.wrapLength 10c
Of course you can try other sizes than 10c (which stands for 10 centimeters).