Find files by date modified in Windows

Yes finaly i instaled Windows 10

Using datemodified: in Windows File Explorer in Windows Vista, Windows 7, and Windows 8 allows you to find any files that have been modified by a date of your choice. Using this tip can be helpful for anyone who has lost a file but know when they last modified the file. Follow the steps below to get the date or date range window shown in the picture.

  1. Open the Windows File Explorer

  2. In the search box, in the top right corner of the window type datemodified:

  3. After datemodified: has been typed the “Select a date or date range” window will appear, select the date or date range for when you believe the file was last modified.

  4. Depending on the dates this search may take a few seconds to a minute to complete.

Source: Find files by date modified in Windows

“A Guide to Becoming a Full-Stack Developer in 2017”

Being a Full-Stack Developer doesn’t mean that you have necessarily mastered everything required to work with the front-end or back-end, but it means that you are able to work on both sides and understand what is going on when building an application.

Full-Stack Web Development, according to the Stack Overflow 2016 Developer Survey, is the most popular developer occupation today. It’s no wonder then that there are dozens of online and in-person programs that will help people become Full-Stack Developers and then even assist these new developers land high-paying programming jobs.

Some popular online programs can be found on Lynda, Udacity, Coursera, Thinkful, General Assembly, and so much more. Aside from these online programs, there are also in-person coding bootcamps that are teaching people the skills required to become web developers.

In this article I won’t be discussing which websites or coding bootcamps have the best web development programs, instead I will be providing a definitive guide to what I believe are the most important skills required to become a Full-Stack Web Developer today and land a job if you’ve never coded before. I will be basing the list off of three things:

  1. A combination of what most programs in 2017 are teaching students.
  2. My own personal experiences from interviewing at companies for developer positions in the past and also interviewing potential candidates for current Full-Stack Developer positions at my current company.
  3. Stories and feedback from people on Coderbyte who have been accepted to coding bootcamps and then proceeded to get programming jobs (see below).

 

“A Guide to Becoming a Full-Stack Developer in 2017” @borowskidaniel https://medium.com/coderbyte/a-guide-to-becoming-a-full-stack-developer-in-2017-5c3c08a1600c

The best code editors for WordPress developers

Hello! Since you are reading this article, it means that you are a WordPress developer, just like me, and strive to make your work with WordPress as productive as possible.

What do we have to do when creating sites on WordPress? We do not just edit PHP files. We should be a programmer and WEB-designer, have the skills to work with HTML, CSS and JavaScript, as it is necessary for a successful WEB-programming.

And a modern IDE or text editor that wants to win the favor of users should provide support for all the necessary languages and technologies.

As a rule, to manage several projects you need a full PHP development environment, such as PhpStorm or CodeLobster. But I also use text editors too, for example if I need to quickly correct a template or modify the code of my function.

Creators of code editors are constantly working on adding new and expanding existing capabilities of their products to support CMS WordPress. Because the community of programmers understand the importance of implementing WordPress support in their software.

I had to spend a lot of time to pick up several IDEs and text editors with advanced features and convenient functionality for WordPress developers.

I suggest you to discover these wonderful programs.

SublimeText

Sublime Text is a fast text editor with a fashionable user interface. It perfectly supports HTML, CSS and JavaScript syntax without additional plug-ins.

To expand the functionality and add tools for WordPress developers, you need to install special packages.

Run the program and go to the main menu “Tools” -> “Install Package Control …”. Package Control is a package that allows you to manage other plug-ins.

After that, you can download, install and remove plug-ins. To start the Package Control, go to the main menu “Preferences” -> “Package Control”.

In order for the program to load the list of available modules, it is necessary to select from the list or enter from the keyboard the command “Install Package”.

Let’s enter “WordPress” in the search bar to filter out the plug-ins specific to this CMS.

From the list, you can immediately select the first “WordPress” package and install it by double-clicking it. This package adds a set of snippets and the ability to auto-complete the functions of WordPress.

Sublime Text

The next plugin we select from the list is called “Search WordPress Codex”. Using it, you can search the official WordPress online help directly from the editor.

For example, right-click on the function and select “WordPress Codex” -> “Search Selection” from the context menu to view online help on it.

Sublime Text

Also there are several popular extensions that you should pay attention to, for example:

  • WordPress snippets – provides a collection of snippets for WordPress programmers.
  • WordPress New Project Config – helps you to create and configure a new project for WordPress CMS.
  • Genesis – facilitates the work of the creators of themes for WordPress, which use the child themes of Genesis.

Atom

Atom is another text editor with a lot of advanced functions and beautiful design. It positions itself as an IDE and successfully competes with other similar programs, such as Sublim Text and Rapid PHP.

Atom is based on themes and packages, so it has a wide range of functions and is flexibly configured. It has its own package manager, which we will use to install WordPress support.

Launch Atom and go to the main menu “File” -> “Settings”. In the opened settings tab, click on “Install”.

Now, to find new packages, enter the keyword “wordpress” in the search field and press “Enter”. You can also click on the “Packages” button.

In the list that appears, let’s choose one of the popular packages, for example – Autocomplete WordPress Hooks. This extension will help the developer by providing the completion of WordPress Actions and Filters.

Find this package in the list and click the “Install” button. After a minute we will see that the package is installed.

Now check the functionality of the just added module. Start type the name of the function and press Ctrl + Space.

Atom Now check the functionality of the just added module. Start type the name of the function and press Ctrl + Space.
Atom

After that, we can also use the hints on the parameters of the function.

Atom

The algorithm for working with other packages is the same. Just read the description, and if the functionality is suitable, install it.

For example, you can install the following add-ons:

  • WordPress API – this add-on greatly speeds up the development process, offering useful WordPress snippets.
  • WordPress Dictionary for Atom – adds snippets for all WordPress functions, including Actions and Filters.

Rapid PHP

Rapid PHP is also a good editor with support of PHP, HTML, CSS and JavaScript. It successfully combines the functionality of the real IDE with high speed.

It is not resource-demanding, has a built-in PHP debugger, supports HTML5, CSS3 and several frameworks, including WordPress.

For higher performance, ability to work with frameworks is disabled by default. To enable WordPress support, go to the main menu “Options” -> “Frameworks”.

In the list that appears, you can select one or more libraries that you want to work with. In this case, choose WordPress and click “OK”.

In the next step, let’s create the project, for that we go to the main menu and select “Project” -> “New Project”.

Now enter the project name and path to the project files. In this example, specify the folder with WordPress installed.

When the project is created, you can view its contents in the right pane of the program using the file browser.

Rapid PHP provides the programmer with ability to use the autocompletion feature when pressing the Ctrl + Space keys.

Rapid PHP
Rapid PHP

You can also trigger an instant prompt on WordPress functions by pressing Shift + Ctrl + Space.

Rapid PHP
Rapid PHP

If in the process of work you need to use the online help for any PHP function, just place the cursor on its name and press the F1 key. The page with online help will be displayed in the browser installed on the system.

CodeLobster

CodeLobster is a functional IDE that provides a complete set of tools for the web developer.

It has an editor of PHP, HTML, CSS and JavaScript with suggestions and autocompletion.

CodeLobster allows you to work with databases directly from the IDE, edit PHP files on the local computer and on a remote server using FTP.

Among other things, you can use PHP debugger, contextual and dynamic help.

There is a convenient function of installing WordPress directly from the program. In addition to that the CMS is installed and configured instantly, much faster than via the WEB-interface.

For example, to create a project, go to the main menu “Project” -> “Create Project …”.

Then in the dialog box, you can specify the type of the project, which will be created using the framework or one of the popular CMS.

Select “Create Empty WordPress Site”, enter the name and specify the location of the directory for installation. Then the New WordPress Site Wizard will run.

It will take only a few steps to configure the connection to the database and at the last step specify the parameters of our blog.

After clicking the “Finish” button, the fresh WordPress distribution will be installed and a new project will be created, you can immediately start working.

If we move the mouse pointer to any function name, we get information about it in a tooltip.

CodeLobster

For full information about this function from the official WordPress documentation, it is enough to select it and press the F1 key.

To use autocompletion, just start typing the name of the function and press Ctrl + Space.

CodeLobster

CodeLobster includes the WordPress plugin in its professional version. That allows the developer to quickly start working with this CMS, since no additional installation is required.

PhpStorm

PhpStorm is a PHP IDE with many convenient features for the web developer. This programming environment is built on the IntelliJ IDEA platform and inherited all the capabilities of the parent platform.

For WordPress programmers, the distribution of the IDE comes with a special plug-in for integration with WordPress.

To start working, you need to register WordPress in the program. Start PhpStorm and go to the main menu “File” -> “Settings …”.

In the settings we will find the section “Languages & Frameworks” and select the “PHP” item. Then in the “Include Path” tab we press the plus button and specify the path to the installed CMS.

The directory with the installation will be indexed, this will allow us to use the WordPress source code when navigating through functions and showing dynamic help.

In addition, you can set the WordPress coding style, which for sure has already became familiar to WordPress developers.

In the program settings window, go to “Editor” -> “Code Style” -> “PHP”. Click on the link “Set from …” and select “Predefined Style” -> “WordPress” from the drop-down list.

Click “OK” to save the settings.

Now consider the process of creation of a new project. In the main menu, select “File” -> “New Project …”.

In the opened dialog, go to the “WordPress Plugin” section and specify the directory for the project and the second one – there the WordPress is installed.

Choose the location of the project in the folder with WordPress. Then click “Create” – so we create a project based on the existing source files.

You should wait a few seconds while PhpStorm scans the files. After that the project is opened and we can continue to study the functions of the program.

To use auto-completion, start entering the name of the function and press Ctrl + Space.

PhpStorm

It is enough just to set the cursor to the function name and press Ctrl + Q to get dynamic help on this function.

PhpStorm

IDE also supports WordPress Actions and Filters. When you press Ctrl + Space, you can quickly get a dynamic hint about the existing parameters.

This review can be completed for now. As you can see, all of the programs in this article have their advantages.

Which one to choose? A simple and lightweight text editor, such as Rapid PHP, or a complex IDE, such as PhpStorm?

I chose CodeLobster, that combines the speed of work, functionality and ease of setting up WordPress projects. I’m happy to add it to my set of web development tools.

It’s very interesting to know what your favorite editor is? Do you create sites on WordPress, or use another CMS? I suggest sharing your experience with other readers. I really look forward to your comments.

 

Python rename special characters in filename

Problem

When upload files to One Drive i have problem with files contain special characters. Below you found Python script witch remove any special characters form filenames. Change

lv_path = "D:\\Netbeans Projects"

and enjoy!

Solution

rename spec characters (Python 3+, W7)
#!/usr/bin/env python
#
# wychwytywanie i zmiana nazwy plików
#
import os
import string
import re
import sys

delchars = ''.join(c for c in map(chr, range(256)) if not c.isalnum())

# paths = (os.path.join(root, filename)
#          for root, _, filenames in os.walk('.')
#          for filename in filenames)

# print(paths)
lv_path = "D:\\Netbeans Projects"

paths = (os.path.join(root, filename)
         for root, _, filenames in os.walk(lv_path)
         for filename in filenames)

print ("Search at " + lv_path)

for path in paths:
    newname = path.replace('#', '')
    newname = newname.replace('%', '')
    newname = newname.replace('*', '')
    newname = newname.replace('<', '')
    newname = newname.replace('>', '')
    newname = newname.replace('*', '')
    newname = newname.replace('?', '')
    newname = newname.replace('$', '')
    #newname = newname.replace('!', '')
    #newname = path.replace('\'', '-')
    newname = newname.replace('"', '')
    newname = newname.replace('\'', '')
    newname = path.replace('Å', 'ś')
    newname = path.replace('Å', 'ń')
    #newname = path.translate(str.maketrans("","",delchars))

    #re.sub('[^\w\-_\. ]', '_', newname)

    if newname != path:
        # print(path)
        print(os.path.dirname(path.encode('utf8').decode(sys.stdout.encoding)) + "\t" + os.path.basename(path.encode('utf8').decode(sys.stdout.encoding)) +
              "\t\t\t -> " + os.path.basename(newname.encode('utf8').decode(sys.stdout.encoding)))
        os.rename(path, newname)

Source(s)

How to Open Magnet Link In Browser – Make Tech Easier

If you are a frequent torrent user, you will come across magnet link. Magnet link has been around for quite some time, but it is only recently when the Pirate Bay confirmed that it would switch to DHT, PEX and magnet links that makes people start to wonder what magnet link is all about. You can read about the full explanation of DHT, PEX and Magnet Links here. In short, it is a method for you to download files without having to first download the .torrent file. You can start the download with just a link (or URL).

Best Sublime Text 3 Themes

Boxy theme

Boxy Tomorrow ★ Numix

Boxy Tomorrow ★ Numix

The screenshot above shows next options in action:

// Activation
"color_scheme": "Packages/Boxy Theme/schemes/Boxy Tomorrow.tmTheme",
"theme": "Boxy Tomorrow.sublime-theme",
// Settings
"theme_accent_numix": true,
"theme_autocomplete_item_selected_colored": true,
"theme_dropdown_atomized": true,
"theme_find_panel_materialized": true,
"theme_grid_border_size_xs": true,
"theme_popup_border_visible": true,
"theme_quick_panel_border_visible": true,
"theme_quick_panel_item_selected_colored": true,
"theme_scrollbar_colored": true,
"theme_scrollbar_line": true,
"theme_sidebar_disclosure": true,
"theme_tab_selected_transparent": true,
"theme_tab_selected_underlined": true,
"theme_tab_size_lg": true,
"theme_unified": true,

The operating system is Ubuntu. The font used for the code is Fira Code. The UI font is Fira Code (via addon)

Installed packages:

Nice themes for my liked editor it is: https://packagecontrol.io/search/boxy

https://github.com/ihodev/sublime-boxy

ctrl + shift + p or cmd + shift + p Look for Package Control: Install Package Search for the theme and hit enter Set the theme in Preferences -> Settings – User by editing the json property called theme

Source: Best Sublime Text 3 Themes of 2015 and 2016 ― Scotch

DA UI

DA UI is a set of beautiful, clean, elegant interface and syntax themes for Sublime Text 3. It brings you the most flexible way to customize the look and feel of your text editor.

The font used for the code is Operator Mono.

Get It

  1. Choose Command Palette › Package Control: Install Package.
  2. Find DA UI and hit Enter.
  3. Choose Command Palette › UI: Select Theme.
  4. Find DA.sublime-theme and hit Enter.
  5. Choose Command Palette › UI: Select Color Scheme.
  6. Find your favorite one.
  7. Enjoy!

Install A File Icon package for support of the file-specific icons.
An alternative icon pack will be available in the next release

 

Sublime Text 3 Keyboard Shortcuts

Source: https://www.cheatography.com/tdeyle/cheat-sheets/sublime-text-3/

General

Command Pallete
CTRL + SHIFT + P
Show­/Hide Console
CTRL + `
Show­/Hide Sidebar
CTRL + K, B
Redo Last Keyboard Shortcut
CTRL + Y
Select Autoco­mplete Sugges­tion
CTRL + SPACE

Window Manipu­lation

Full­scr­een
F11
Dist­raction Free Mode
Shift + F11
New Window
CTRL + SHIFT + N
New Tab
CTRL + N
Select A Tab
ALT + TAB NUMBER
Close Tab
CTRL + W
Move Tab to Pane
CTRL + SHIFT + PANE NUMBER
Switch to Pane
CTRL + PANE NUMBER

Layout

2, 3, 4 Column
ALT + SHIFT + 1/4
2 or 3 Row
ALT + SHIFT + 8/9
4 Grid
ALT + SHIFT + 5
Split Pane in Half
CTRL + K, CTRL + SHIFT + UP

Pane Manipu­lation

Move to Panel
CTRL + PANEL NUMBER
Move File to Panel
CTRL + SHIFT + Panel Number

Navigation

Quick Open File
CTRL + P
Open File, Search Symbol
CTRL + P, @
Go to Symbol
CTRL + R
Go to Line
CTRL + G
Go to Next Tab
CTRL + PGDOWN
Go to Previous Tab
CTRL + PGUP
Jump to Closing Parent­hesis
CTRL + M

Find & Replacing

Find
CTRL + F
Find Next
F3
Find Previous
SHIFT + F3
Replace Every Select­ion
After selecting, ALT + F3
Repl­ace
CTRL + H
Incr­emental Search
CTRL + I
Find in Files
CTRL + SHIFT + F
Find then Multi-­Edit
CTRL + F, ALT + Enter
Use Selection for Find Field
CTRL + E
Use Selection for Replace Field
CTRL + SHIFT + E

Selecting Text

Line
CTRL + L
Word
CTRL + D
Quick Select Next Iterat­ion
CTRL + D
UnSelect Next Iterat­ion
CTRL + U
Skip, and Select the Next Iterat­ion
CTRL + K, D
Pare­nthesis Content
CTRL + SHIFT + M
Inde­ntation Content
CTRL + SHIFT + J
Column Selection Up
CTRL + ALT + UP
Column Selection Down
CTRL + ALT + DOWN
Mult­i-S­elect Editing
CTRL + CLICK

Editing

Delete Line
CTRL + SHIFT + K
Delete From Cursor to EOL
CTRL + K, K
Delete From Cursor to BOL
CTRL + K, BKSP
Delete Word Forwards
CTRL + DEL
Delete Word Backwa­rds
CTRL + BKSP
Move Line Up
CTRL + SHIFT UP
Move Line Down
CTRL + SHIFT + DOWN
Insert Line Before
CTRL + SHIFT + ENTER
Insert Line After
CTRL + ENTER
Indent Current Line
CTRL + ]
UnIndent Current Line
CTRL + [
Dupl­icate Line
CTRL + SHIFT + D
Join Line Below Current Line
CTRL + J
Paste With Proper Indent­ation
CTRL + SHIFT + V
Tran­spose
SELECT ITEMS, CTRL + T

Transform

To Upperc­ase
CTRL + K, U
To Lowerc­ase
CTRL + K, L
Increase Font Size
CTRL + PLUS
Decrease Font Size
CTRL + MINUS

Bookmarks

New Bookmark
CTRL + F2
Next Bookmark
F2
Previous Bookmark
SHIFT + F2
Clear Bookma­rks
CTRL + SHIFT + F2

Code Folding

Fold Select­ion
CTRL + SHIFT + [
UnFold Select­ion
CTRL + SHIFT + ]
Fold All
CTRL + K, 1
UnFold All
CTRL + K, J
Fold Level
CTRL + 2/9

Commenting

Comment Line
CTRL + /
Block Comment
CTRL + SHIFT + /

 

Sigmajs Exporter – Gephi Marketplace

Very interesting program for visualization networks in 3d.

Export your network from Gephi to a predefined Sigma.js template. Choose to include search, group selection, explanatory text, etc. without having to do any HTML/JavaScript coding. Upload the output to any webserver and enjoy a rich HTML5 interactive visualization of your network.

Example output is available at: http://blogs.oii.ox.ac.uk/vis/?page_id=115 More features are coming and better validation is needed, but I’m making this alpha version of the code available quickly because of the demand I’ve received for it. More information on the project is available on our blog. The underlying HTML5/CSS/JS framework used to render the graphs is also available on GitHub as a separate project and changes / pull requests are welcome.

Once installed, restart Gephi and you will see a Export to sigma.js option on the File->Export menu. Choose a location to export to, set export customization options, and click OK. The resulting folder can be uploaded to any webserver to showcase your network. Please note, due to browser security restrictions in Chrome you will not be able to view the result without a webserver (Other browsers may work locally).

Please report any issues or feature requests on the GitHub page.

 

What are the best programming fonts?

The choice the font in Firefox or Sulbimetext it is always hard decision….

As much as choice of a font is subjective there are important criteria to consider when choosing a programming font. The characters should be clear, easy to read, in cases of clashing ones such as 1, l, i or O, o, 0 easily distinguishable, differences between different kinds of brackets, quotes and parentheses should be clear, punctuation should be emphasized and they shouldn’t break up words or sentences due to uneven character widths. There are two ways fonts are drawn – as bitmaps or as vectors. Vector fonts allow more efficient scaling, but for screens with resolution below 720p it might be worth considering bitmap fonts as they are generally more legible at smaller sizes on low-resolution screens.

Source: What are the best programming fonts? – Slant

RegEx never endig story….

It is example of use RegEx to prepare SQL data for SELECT/UPDATE operation.

/^.*/gm and substitution: '\0',

Explanation

  1. ^ asserts position at start of a line
  2. .* matches any character (except for line terminators)
  3. * Quantifier — Matches between zero and unlimited times, as many times as possible, giving back as needed (greedy)
  4. Global pattern flags
    1. g modifier: global. All matches (don’t return after first match)
    2. m modifier: multi line. Causes ^ and $ to match the begin/end of each line (not only begin/end of string)

Example

This example simple replace MBS to ,'MBS'. For example when you have many selected values SQL (in one column) and need convert it to running query.

SELECT * FROM TABLE WHERE ID IN(...)

AAA
AAB
AAC

Convert it to:

SELECT * FROM TABLE WHERE ID IN(
'AAA',
'AAB',
'AAC')

Very good tools for testing: https://regex101.com/ and here is this example: https://regex101.com/r/34repv/1

other good option to test yours regex query is:

  • https://www.regextester.com/
  • https://www.freeformatter.com/regex-tester.html

How its run?

Simple by Sublimetext, Notepad++, Visual Code –> Find/Replace command

Regular Expressions Cheat Sheet

A regular expression specifies a set of strings that matches it. This cheat sheet is based off Python 3’s Regular Expressions (http://docs.python.org/3/library/re.html) but is designed for searches within Sublime Text.

Special Characters

  • \ Escapes special characters or signals a special sequence.
  • . Matches any single character except a newline.
  • ^ Matches the start of the string.
  • $ Matches the end of the string.
  • * Greedily matches 0 or more repetitions of the preceding RE.
  • *? Matches 0 or more repetitions of the preceding RE.
  • + Greedily matches 1 or more repetitions of the preceding RE.
  • +? Matches 1 or more repetitions of the preceding RE.
  • ? Greedily matches 0 or 1 repetitions of the preceding RE.
  • ?? Matches 0 or 1 repetitions of the preceding RE.
  • A|B Matches A, if A is unmatched then matches B, where A and B are arbitrary REs.
  • {m} Matches exactly m many repetitions of the previous RE.
  • {m,n} Greedily matches from m many to n many repetitions of the previous RE.
  • {m,n}? Matches m many to n many repetitions of the previous RE.

[…] Indicates a set of characters to match.

[amk]

Matches ‘a’, ‘m’, or ‘k’.

[a-z]

Matches ‘a’ through ‘z’.

[a-f0-7]

Matches ‘a’ through ‘f’ or ‘0’ through ‘7’.

[a\-z]

Matches ‘a’, ‘-‘, or ‘z’.

[a-]

  • Matches ‘a’ or ‘-‘.
  • [-a] Matches ‘a’ or ‘-‘.
  • [(+*)] Matches ‘(‘, ‘+’, ‘*’, or ‘)’. [] matches special characters literally.
  • [\w] Matches the character class for ‘\w’. See character classes.
  • [^5] Matches anything other than ‘5’. ‘^’ forms the complementary set only as the first character in a set.
  • []()] Matches ‘]’, ‘(‘, and ‘)’. ‘]’ is taken literally only as the first character in a set.
  • [()\]] Matches ‘]’, ‘(‘, and ‘)’.

(…) Matches the RE inside the parenthesis and assigns a new group.
(?P…) The RE matched is accessible by the group indicated by name.

  • (?…) Extension notation which changes a RE’s behavior. These do not assign a new group.
  • (?aiLmsux) Sets the corresponding flag to each letter. Does not work within Sublime Text.
  • (?:…) A non-capturing version of parenthesis. The matched substring cannot be retrieved later.
  • (?P=name) Matches the substring matched by the group named name.
  • (?#…) A comment, the contents are ignored.
  • (?=…) Lookahead assertion, the preceding RE only matches if this matches.
  • (?!…) Negative lookahead assertion, the preceding RE only matches if this doesn’t match.
  • (?<=…) Positive lookbehind assertion, the following RE will only match if preceded with this fixed length RE.
  • (?<!…) Negative lookbehind assertion, the following RE will only match if not preceded with this fixed length RE.
  • (?(id)true|false) If group id exists then uses the true RE, else use the false RE.

Character classes

  • \1 Matches the contents of the group labelled by the same number. Acceptable numbers are 1-99.
  • \A Matches at the start of the current string.
  • \b Matches the empty string at the beginning or end of a word. \b matches the boundary between \w and \W.
  • \B Matches the empty string not at the beginning or end of a word.
  • \d Matches any Unicode decimal digit, including 0-9.
  • \D Matches any Unicode non-decimal digit.
  • \s Matches any Unicode whitespace character, including ‘ ‘, \t, \n, \r, \f and \v.
  • \S Matches any Unicode non-whitespace character.
  • \w Matches any Unicode word character, including a-z, A-Z, and 0-9.
  • \W Matches any Unicode non-word character.
  • \Z Matches at the end of the string.
  • \a Matches the ASCII Bell ().
  • \f Matches the ASCII Formfeed ( ).
  • \n Matches the ASCII Linefeed.
  • \r Matches the ASCII Carriage Return ().
  • \t Matches the ASCII Horizontal Tab.
  • \v Matches the ASCII Vertical Tab ( ).

SublimeText 3 tips and customization

I think that is one of best text editor for Linux and W$. Bellow I add some tips and usefully configuration.

Regexp conversion to Wiki links

Conversion to Wiki links add [ before and ] after text.

Find what: (http.{2,})
Relpace to: [\1]

Polish letters in Sublimetext 3

Polskie znaki diakrytyczne w Sublime Text 3 – dodanie wpisów do Key Bindings – User (na platformie Windows jest to plik Default (Windows).sublime-keymap):

[
{"keys": ["control+alt+a"], "command": "insert", "args": {"characters": "ą"}},
{"keys": ["control+alt+c"], "command": "insert", "args": {"characters": "ć"}},
{"keys": ["control+alt+e"], "command": "insert", "args": {"characters": "ę"}},
{"keys": ["control+alt+l"], "command": "insert", "args": {"characters": "ł"}},
{"keys": ["control+alt+n"], "command": "insert", "args": {"characters": "ń"}},
{"keys": ["control+alt+o"], "command": "insert", "args": {"characters": "ó"}},
{"keys": ["control+alt+s"], "command": "insert", "args": {"characters": "ś"}},
{"keys": ["control+alt+x"], "command": "insert", "args": {"characters": "ź"}},
{"keys": ["control+alt+z"], "command": "insert", "args": {"characters": "ż"}},
{"keys": ["shift+control+alt+a"], "command": "insert", "args": {"characters": "Ą"}},
{"keys": ["shift+control+alt+c"], "command": "insert", "args": {"characters": "Ć"}},
{"keys": ["shift+control+alt+e"], "command": "insert", "args": {"characters": "Ę"}},
{"keys": ["shift+control+alt+l"], "command": "insert", "args": {"characters": "Ł"}},
{"keys": ["shift+control+alt+n"], "command": "insert", "args": {"characters": "Ń"}},
{"keys": ["shift+control+alt+o"], "command": "insert", "args": {"characters": "Ó"}},
{"keys": ["shift+control+alt+s"], "command": "insert", "args": {"characters": "Ś"}},
{"keys": ["shift+control+alt+x"], "command": "insert", "args": {"characters": "Ź"}},
{"keys": ["shift+control+alt+z"], "command": "insert", "args": {"characters": "Ż"}}
]

Adding comma to each line using sublime text

To add comma to any line

  1. Select the lines you want to modify
  2. CTRL + SHIFT + L
  3. RIGHT_ARROW
  4. COMMA

Using ctrl + shift + L is how you can modify all selected lines. Very handy 🙂 Make batch edits with Multiple Selections.

Column Selection can be used to select a rectangular area of a file. Column selection doesn’t operate via a separate mode, instead it makes use of multiple selections.

You can use additive selections to select multiple blocks of text, or subtractive selections to remove a block.

‘Find What’: $ // matching all ends of your lines
‘Replace With’: , // replaces all line ends with a coma

MXU20623GAD
MXU20899GAA
MXU20975GAA
MXU24246GAD
MXU29901GAA
MXU30079GAA
MXU30090GAA
MXU34015GAA
Sublimetext array

Solve this problem

Source: Best of Sublime Text 3: Features, Plugins, and Settings | Scotch

Emmet is usefull

Emmet is an absolute time saver. You can build HTML on the fly easily and quickly.

To Use: ctrl + alt + enter and start typing your Emmet styled HTML

  • ctrl + d: Select the current word and the next same word
  • ctrl + click: Every place you click will create a cursor to edit
  • ctrl + shift + f AND alt + enter: Find a word in your files and then select them all
Emmet in sublimetext

Check out our Emmet Interactive Guide to learn more and try out Emmet for yourself.

DocBlockr

A really great way to easily create doc blocks for many languages including JavaScript, PHP, and CoffeeScript. Just type in /** above your function and press tab. Watch the magic as DocBlockr takes the function name and variables and creates your doc block.

sublime-docblockr-example-start
sublime-docblockr-example-finish

BracketHighlighter

This plugin provides bracket highlighting for all sorts of brackets.

brackethighlighter

Sublime Text 3 is an amazing piece of software. To start, it is a clean, functional, and fast code editor. Not only does it have incredible built in features (multi-edit and vim mode), but it has support for plugins, snippets, and many other things.

Source: Best of Sublime Text 3: Features, Plugins, and Settings | Scotch

Reference links

5 Best Eclipse Plugins: #1 (Eclox with Doxygen, Graphviz and Mscgen) | MCU on Eclipse

5 Best Eclipse Plugins: #1 (Eclox with Doxygen, Graphviz and Mscgen)Posted on June 25, 2012 by Erich Styger 24 VotesThe #1 award in my list goes to Eclox+Doxygen+Graphviz+Mscgen. Yes, it is a single Eclipse plugin (Eclox) for Doxygen, and with two other powerful tools. It solves a typical engineering problem: “How to document my project? And how to keep it up-to-date?”. Like many other engineers, I do not like to write documentation. Because it is painful. I want to write code and program. Writing documentation for it should be fun too. And it should solve the problem that the documentation does not match what has been implemented. I’m a big fan of the ‘single source’ concept: information has to be in a single place, and not copied and distributed among different places. And here my #1 helps me doing this.In a traditional way the following flow is used: Create a design, specify and document the API Implement the software Write the user documentation Ship it Maintain and ship and again, and again, and

Source: 5 Best Eclipse Plugins: #1 (Eclox with Doxygen, Graphviz and Mscgen) | MCU on Eclipse

Usefully for write and maintenance plugin for Eclipse…

  1. Doxygen: http://www.stack.nl/~dimitri/doxygen/ or www.doxygen.org
  2. Graphviz: http://www.graphviz.org
  3. Mscgen: http://www.mcternan.me.uk/mscgen/

after this article i use all of them.

Narzędzia to projektowania baz danych

GNU-GPL

Multiple versions/licenses (each has a “free” and a “not-free” version)

  • DBVisualizer
  • Toad http://www.toadsoft.com/

Not-free

  • Microsoft Visio – (If you already have it, it does work quite well)
  • DataStudio – 30 day trial http://www.aquafold.com
  • DBWrench – 30 day trial http://www.dbwrench.com/

ER diagram tool

  • http://druid.sf.net/
  • http://schemaspy.sourceforge.net/
  • http://uml.sourceforge.net/index.php

Java – przykład z konstruktorami

Przykład na dedykowany konstruktor

Zadeklaruj klasę Sloik zawierającą pole Dzem dzem, dedykowany konstruktor inicjujący wszystkie zadeklarowane pola i metody:

  • otworz
  • zamknij
  • czyOtwarty

Następnie utwórz obiekt klasy Sloik i napełnij go wybranym rodzajem dżemu, operacje powtórz dla wszystkich rodzajów dżemów.

Uwaga: nakładanie dżemu do zamkniętego słoika lub pozostawienie słoika nie zamkniętego może prowadzić do zepsucia się produktu!

Oryginał zadnia

Zadeklaruj klasę Dzem zawierająca prywatne pola:

  • String smak,
  • double waga

Utwórz konstruktory przyjmujące jako parametry zmienne:

  • (String smak, double waga),
  • (double waga),
  • (String smak).

Dostarczone parametry konstruktorów powinny znacjonalizować pola klasy. W przypadku gdy konstruktor nie dostarcza niezbędnego parametru należny przyjąć, ze pole smak musi przyjąć wartość “No name”, natomiast waga – 100.0.

Przedstaw wykorzystanie wszystkich konstruktorów tworząc obiekty reprezentujące co najmniej trzy rodzaje dżemów.

Uwaga: należny założyć, ze tylko konstruktor z dwoma parametrami możne przypisać wartości polom klasy.

Zadanie trochę zmodyfikowane

Zadeklaruj klasę Sloik zawierająca pole Dzem dzem (lub konstruktor klasy pochodnej), dedykowany konstruktor inicjujący wszystkie zadeklarowane pola i metody:

  • otworz
  • zamknij
  • czyOtwarty
  • napełnijSloik

Wymagane pola:

  • klasa Dzem

Następnie utwórz obiekt klasy Sloik i napełnij go wybranym rodzajem Dzem.

Resources czyli od czego zacząć

Przykład konstruktora - definicja
class Programming {
  //constructor method
  Programming() {
    System.out.println("Constructor method called.");
  }
 
  public static void main(String[] args) {
    Programming object = new Programming(); // Creating an object
  }
}

Przeciążanie konstuktora - Overloading
class Language {
  String name;
 
  Language() {
    System.out.println("Constructor method called.");
  }
 
  Language(String t) {
    name = t;
  }
 
  public static void main(String[] args) {
    Language cpp  = new Language();
    Language java = new Language("Java");
 
    cpp.setName("C++");
 
    java.getName();
    cpp.getName();
  }
 
  void setName(String t) {
    name = t;
  }
 
  void getName() {
    System.out.println("Language name: " + name);
  }
}

Dziedziczenie konstuktora


class GrandParent {
  int a;
 
  GrandParent(int a) {
    this.a = a;
  }
}
 
class Parent extends GrandParent {
  int b;
 
  Parent(int a, int b) {
    super(a);
    this.b = b;
  }
 
  void show() {
    System.out.println("GrandParent's a = " + a);
    System.out.println("Parent's b      = " + b);
  }
}
 
class Child {
  public static void main(String[] args) {
    Parent object = new Parent(8, 9);
    object.show();
  }
}

Czyli w naszym zadaniu mamy kilka konstruktorów Dzem

	Dzem(String smak, double waga) {
		this.smak = smak;
		this.waga = waga;
	}

	Dzem(double waga) {
		this.smak = "Nieznany";
		this.waga = waga;
	}

	Dzem(String smak) {
		this.smak = smak;
		this.waga = 100.0;
	}

	Dzem() {
		smak = "no name";
		waga = 100.0;
	}

oraz kilka konstruktorów Sloik

	Sloik() {
		System.out.print("Konstuktor Słoik(): ");
		this.print();
	}

	Sloik(Dzem p_dzem) {
		System.out.print("Konstuktor Słoik(Dzem): ");
		// sprawdzemnie czy dzem jest otwarty
		this.otworz();
		// napełnienie dzemem
		this.napelnij(p_dzem);
		this.print();
		this.dzem.print();
	}

Inicjalizacja konstruktora Dzem następujące “jawnie”

przeciążenie (overloading) napelnij() Sloik klasa Dzem

Rozwiązanie zadania

Wynik działania programu:


run:
Smak dzemu: agrestowy, waga dzemu: 1111.11kg
Smak dzemu: porzeczka, waga dzemu: 100.0kg
Smak dzemu: Nieznany, waga dzemu: 1111.11kg
-> Konstuktor: Tworzę słoik dzemu porzeczka
Smak dzemu: porzeczka, waga dzemu: 100.0kg
Słoik dzemu: porzeczka jest zamkniety
Słoik dzemu: porzeczka jest zamkniety
Otwierma słoki dzemu: porzeczka
Słoki dzemu: porzeczka jest otwarty
Słoki dzemu: porzeczka jest otwarty
Napełniam słoik dzemem o smaku truskawkowy i wadze 10.0kg

Słoik dzemu: truskawkowy jest zamkniety
Słoik jest zamknięty nie można go napełnić

Kompilator online: http://tpcg.io/XWuGkR

Tools: Konwersja mp4 do mp3 na Linux (Ubuntu 14.10+)

Prosty skrypt (converter) do konwersji mp4 na mp3 na Linuxa. Wymagane zainstalowanie biblioteki ffmpeg lub Cygwin na Windows.

Requrements install:

sudo apt-get install ffmpeg && sudo apt-get install ubuntu-restricted-extras
sudo apt-get install ffmpeg libavcodec-unstripped-52

niestety wersja 14.10 Ubuntu nie zawiera tej biblioteki ffmpeg. Należy dodać nowe repozytorium.

sudo add-apt-repository  ppa:kirillshkrogalev/ffmpeg-next && sudo apt-get update && sudo apt-get install ffmpeg

Skrypt który konwertuje pliki *.mp4 na mp3 może wyglądać tak:

ffmpeg -i video.mp4 -f mp3 -ab 192000 -vn music.mp3

wersja skryptu konwertująca wszystkie pliki z katalogu:

#!/bin/bash
for i in *.mp4; do
    ffmpeg -i "$i" -vn -acodec libmp3lame -ac 2 -qscale:a 4 -ar 48000 "`basename "$i" .mp4`.mp3"
done

For FFmpeg with

Constant Bitrate Encoding (CBR)

ffmpeg -i video.mp4 -vn \
       -acodec libmp3lame -ac 2 -ab 160k -ar 48000 \
        audio.mp3

Variable Bitrate Encoding (VBR)

Example to encode VBR MP3 audio with ffmpeg using the libmp3lame library:

ffmpeg -i input.wav -codec:a libmp3lame -qscale:a 2 output.mp3
ffmpeg -i video.mp4 -vn \ -acodec libmp3lame -ac 2 -qscale:a 4 -ar 48000 \ audio.mp3

Links

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑