{"id":1550,"date":"2022-09-05T00:29:08","date_gmt":"2022-09-05T07:29:08","guid":{"rendered":"https:\/\/gantovnik.com\/bio-tips\/?p=1550"},"modified":"2022-09-05T00:31:48","modified_gmt":"2022-09-05T07:31:48","slug":"210-parametric-curve-in-3d-2-2-2-2-2-2-2-2-2-2-2-2-2-3-3-2-2-2","status":"publish","type":"post","link":"https:\/\/gantovnik.com\/bio-tips\/2022\/09\/210-parametric-curve-in-3d-2-2-2-2-2-2-2-2-2-2-2-2-2-3-3-2-2-2\/","title":{"rendered":"#299 Closing Notepad++ tabs on closing application"},"content":{"rendered":"<p>Uncheck [Settings &gt; Preferences &gt; Backup &gt; Remember the current session for next launch]\n<p><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2022\/09\/2022-09-05_002955.png?resize=846%2C418&#038;ssl=1\" alt=\"\" width=\"846\" height=\"418\" class=\"alignnone size-full wp-image-1552\" srcset=\"https:\/\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2022\/09\/2022-09-05_002955.png 846w, https:\/\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2022\/09\/2022-09-05_002955-480x237.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 846px, 100vw\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Uncheck [Settings &gt; Preferences &gt; Backup &gt; Remember the current session for next launch]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_lmt_disableupdate":"yes","_lmt_disable":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[46],"tags":[],"class_list":["post-1550","post","type-post","status-publish","format-standard","hentry","category-notepad"],"modified_by":"gantovnik","jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8bH0k-p0","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":7979,"url":"https:\/\/gantovnik.com\/bio-tips\/2025\/02\/457-notepad-how-to-highlight-all-occurrences-of-selected-text-even-if-they-are-not-whole-word-only\/","url_meta":{"origin":1550,"position":0},"title":"#457 Notepad++ How to highlight all occurrences of selected text even if they are not whole words","author":"gantovnik","date":"2025-02-17","format":false,"excerpt":"Notepad++ Highlight all occurrences of selected text even if they are not whole words Settings -> Preferences -> Highlighting and uncheck the \"Match whole word only\" under Smart Highlighting.","rel":"","context":"In &quot;notepad++&quot;","block_context":{"text":"notepad++","link":"https:\/\/gantovnik.com\/bio-tips\/category\/notepad\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":544,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/05\/how-to-write-a-code-to-know-certain-elements-belongs-to-which-components\/","url_meta":{"origin":1550,"position":1},"title":"How to write a code to know certain elements belongs to which components ?","author":"gantovnik","date":"2020-05-12","format":false,"excerpt":"How to write a code to know certain elements belongs to which components ? set comp_id [hm_getvalue elems id=$elem_id dataname=collector.id]","rel":"","context":"In &quot;python&quot;","block_context":{"text":"python","link":"https:\/\/gantovnik.com\/bio-tips\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":867,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/02\/156-filtering-content-from-files-using-awk\/","url_meta":{"origin":1550,"position":2},"title":"#156 Filtering content from files using awk","author":"gantovnik","date":"2021-02-09","format":false,"excerpt":"#156 Displaying and filtering the content of files with awk Using the following command, we can print all lines from the file: [code language=\"python\"] awk ' { print } ' \/etc\/passwd [\/code] This is equivalent to using the $0 variable. The $0 variables refers to the complete line. [code language=\"python\"]\u2026","rel":"","context":"In &quot;awk&quot;","block_context":{"text":"awk","link":"https:\/\/gantovnik.com\/bio-tips\/category\/awk\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":851,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/01\/151-script-to-create-multi-volume-rar-archive-with-specific-size-of-each-volume\/","url_meta":{"origin":1550,"position":3},"title":"#151 Script to create multi-volume rar archive with specific size of each volume","author":"gantovnik","date":"2021-01-27","format":false,"excerpt":"#151 Script to create multi-volume rar archive with a specific size of each volume. I request 3GB for each volume. Create a bat file with the following code: [code language=\"python\"] SET WINRAR=\"C:\\Program Files\\WinRAR\" for \/D %%f in (\"D:\\create_rars\\*\") do ( %WINRAR%\\RAR.exe a -ep1 -r -v3G -idcdp -t -df \"D:\\create_rars\\%%~nxf.rar\" \"%%f\"\u2026","rel":"","context":"In &quot;batch&quot;","block_context":{"text":"batch","link":"https:\/\/gantovnik.com\/bio-tips\/category\/batch\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2241,"url":"https:\/\/gantovnik.com\/bio-tips\/2024\/07\/433-run-a-vba-macro-when-certain-cells-change-in-excel\/","url_meta":{"origin":1550,"position":4},"title":"#433 Run a VBA macro when certain cells change in Excel","author":"gantovnik","date":"2024-07-08","format":false,"excerpt":"When you type an entry in cells A1:C10 on Sheet1, a message box is displayed. In the module sheet behind Sheet1 add this script [code language=\"python\"] Private Sub Worksheet_Change(ByVal Target As Range) Dim KeyCells As Range ' The variable KeyCells contains the cells that will ' cause an alert when\u2026","rel":"","context":"In &quot;excel&quot;","block_context":{"text":"excel","link":"https:\/\/gantovnik.com\/bio-tips\/category\/excel\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1889,"url":"https:\/\/gantovnik.com\/bio-tips\/2023\/07\/361-print-the-number-of-fields-in-each-line-containing-more-than-10-fields-is-the-field-delimiter\/","url_meta":{"origin":1550,"position":5},"title":"#361 Print the number of fields in each line containing more than 10 fields. &#8220;,&#8221; is the field delimiter.","author":"gantovnik","date":"2023-07-15","format":false,"excerpt":"Print the number of fields in each line containing more than 10 fields. \",\" is the field delimiter. example.txt [code language=\"python\"] GAP,5000008,344229,-0.00000873,0.00000000,0.00000000 QUAD,5000009,389633,-62.98719000,4.20363900,-14.08507000,-5.83411800,-2.50325100,-4.89406400,14.13978000,1.43138700 TRIA,5000009,389634,-120.91420000,150.57080000,-76.72402000,0.96178280,-0.36827340,1.96346300,-1.02116100,-41.11020000 QUAD,5000009,389635,-15.21044000,0.99932950,3.18402900,-0.15678900,0.23568760,-0.34962440,0.21704630,-0.38061680 QUAD,5000009,389636,1.33232100,-65.55149000,11.67951000,-0.72253810,-0.16559730,0.68029730,-0.87976630,0.07846473 BUSH,5000008,377944,107.45720000,25.92157000,3.61063300,2.17414500,0.00000000,0.00000000 BUSH,5000008,377945,108.76870000,25.35708000,3.30875900,2.66002100,0.00000000,0.00000000 [\/code] ex361.txt [code language=\"python\"] awk -F\",\" '{if(NF > 10) print NF,\":\",$0}' example.txt [\/code] output: [code language=\"python\"] 11 : QUAD,5000009,389633,-62.98719000,4.20363900,-14.08507000,-5.83411800,-2.50325100,-4.89406400,14.13978000,1.43138700 11 : TRIA,5000009,389634,-120.91420000,150.57080000,-76.72402000,0.96178280,-0.36827340,1.96346300,-1.02116100,-41.11020000\u2026","rel":"","context":"In &quot;awk&quot;","block_context":{"text":"awk","link":"https:\/\/gantovnik.com\/bio-tips\/category\/awk\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/1550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/comments?post=1550"}],"version-history":[{"count":0,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/1550\/revisions"}],"wp:attachment":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/media?parent=1550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/categories?post=1550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/tags?post=1550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}