Showing posts with label IntellijIDEA. Show all posts
Showing posts with label IntellijIDEA. Show all posts
Friday, June 3, 2016
Thursday, August 6, 2015

Fast check of Cross-domain policy file that server sends to client via socket

Often the socket connection to the certain server or its ports can be restricted by the policy file. It could be also allowed only from the particular list of domains (where the client hosts). So, here the quick way to make a socket connection to the server, request & output the cross-domain policy file (it can be launched via Groovy console right from your IntelijIDEA->Tools->Groovy console):

import javax.net.ssl.SSLSocketFactory

SSLSocketFactory f =(javax.net.SocketFactory) SSLSocketFactory.getDefault();
c = f.createSocket("foo.bar.com", 4855);
c.startHandshake();
c.withStreams { input, output ->
    output << "\0"
    println input.newReader().text}
Here is the output:
@seeAlso Senocular - Cross-domain Policy File Specification
Tuesday, February 24, 2015

Intellij IDEA - Shortcuts Arcenal MAC OS

I noticed that in the most of cases it's more convenient to use the some Hot Key instead of Mouse (of course if u know such one for your mac):
* Verified with Intellij IDEA 14

* MAC OS Keymap Symbols meaning 
Navigation
Hot Key Action
⌃ ⌘ F Toggle Full Screen mode
⌘ ⇧ F12 Toggle Maximize editor
⌘ ⇧ A Find Action
⌘ , Settings
⌘ ; Project Settings
⌥ Tab Switch between Tabs
⌥⌂ or ⌥fn← Jump To Navigation Bar
⌘ 0...9 Open/Close to Corresponding Panel
Esc Go back to Editor
⇧ Esc Hide active or last active window
⌃ ←/→ Navigate via Opened Tabs
⌘ F4 Close Active Editor Tab
⌘ N Find a Class
⌘ ⇧ N Find a Source file
⌘ E Recent Files
⌘ ⇧ E Recently Edited Files
⌃ ↓/↑ Jump To Next/Previous method declaration
F4 or ⌘⌥B Jump To Implementation
⌘ ⇧ I Highlight Implementation
⌘ F12 Highlight Available Methods
⌥ F7 Find Usages
⌘ ⌥ F7 Highlight Usages
⌘ ]/[ Jump to Code Block end/start
⌘ ⌥ ←/→ Jump To Back/Forward
⌘ ⇧ ⌫ Jump To Last edited place
⌘ ⌥ B Jump To Type declaration
⌘ U Go to super method
⌘ G Go to line
⌘F11 or ⌃F11 Toggle Bookmark
⌃ ⇧ 0...9 Toggle Numbered Bookmark
⌃ 0...9 Go to Numbered Bookmark
⇧ F11 Show Bookmarks
⌘ ⇧ T Create or Navigate to Test

Intellij IDEA - Shortcuts Arcenal

I noticed that in the most of cases it's more convenient to use the some Hot Key instead of Mouse (of course only if u know such one):
Navigation
Hot Key Action
Ctrl+Shift+A Find Action
Ctrl+Alt+S Settings
Ctrl+Alt+Shift+S Project Settings
Ctrl+Tab Switch between Tabs
Alt+Home Jump To Navigation Bar
Alt+Number Open/Close to Corresponding Panel
Esc Go back to Editor
Shift+Esc Hide active or last active window
Alt+Left/Right Navigate via Opened Tabs
Ctrl+F4 Close Active Editor Tab
Ctrl+N Find a Class
Ctrl+Shift+N Find a Source file
Ctrl+E Recent Files
Ctrl+Shift+E Recently Edited Files
Alt+Down/Up Jump To Next/Previous method declaration
F4 or Ctrl+Alt+B Jump To Implementation
Ctrl+Shift+I Highlight Implementation
Ctrl+F12 Highlight Available Methods
Alt+F7 Find Usages
Ctrl+Shift+F7 Highlight Usages
Ctrl+]/[ Jump to Code Block end/start
Ctrl+Alt+Left/Right Jump To Back/Forward
Ctrl+Shift+Backspace Jump To Last edited place
Ctrl+Shift+B Jump To Type declaration
Ctrl+U Go to super method
F11 or Ctrl+F11 Toggle Bookmark
Ctrl+Shift#[0-9] Toggle Numbered Bookmark
Ctrl+#[0-9] Go to Numbered Bookmark
Shift+F11 Show Bookmarks
Ctrl+Shift+T Create or Navigate to Test
Monday, September 22, 2014

Don't worry - use Guava equals, hashCode and toString generator

Tired to override tones of toString, hashCode and equals methods?

Don't worry - install "Guava equals, hashCode and toString generator" plugin
for Intellij IDEA.


Friday, September 19, 2014

Save Your Eyes - Intellij IDEA Dark Theme.

No more tired eyes - use Dark Theme!

Why Dark Background is better?

Take a look on following eye diagram:


The color that invokes the less amount of your eye's cones (means that your eye will be less tired because of lack of work:) ) is the middle of color specter #5B5B5B (grey color).

It means that ideally the average color of  your screen should be grey color.
So if u are using the dark background (dark doesn't mean black) your average screen color much more closer to the middle of color specter than it's during the using of the white one.