Saturday, September 2, 2017

windows - All my pen-drive content appear inside a single shortcut



I have been noticing this problem in a few pen-drives for quite a lot of time, and now this has occurred to mine.


When I double click on the pen-drive icon, I find a pen-drive short-cut icon to %windir%\System32\rundll32.exe  \~$n.dqu,cxcxcscxgxcbgpzm.


Here is a screen-shot:
problem1


When I open it, this appears:
problem2


What is the problem? Is it safe? And how can I make it normal?


If it helps, I am using this pen-drive on Windows 8.1 and 7 laptops. The problem started after plugging it to the Windows 7 one (not immediately after plugging it, but after a few weeks).


Answer



I bet this is a virus. This occurs when you plug your USB on a system that has this virus. It just hides all the files in the drive, and creates a shortcut to a virus exe. That shortcut surprises the users of other systems, and when they run it, it's activated.


You can simply get rid of this with a boot time antivirus scan, and WinRar (Trial version works) or also 7-zip if you want opensource free tools. Using it, type the drive letter in the address bar, you can see all the files, and the shortcut along with the virus executable.


Delete all of them, un-hide your files (right-click and properties). Now do a boot scan (scanning before the OS boots, avast supports this in the free edition) to prevent any other viruses that might be crept in.


EDIT: I have got this virus again when I used my pendrive in a cafe, so I made a video showing how to recover the files.


https://www.youtube.com/watch?v=jyf1U1uSx2E


How to copy multiple-line-regex outputs into clipboard using Notepad++



I have a fasta file containing genome sequences of multiple viruses.



Example:



>gi_138375030_Human_papillomavirus
GAAAGTTTCAATCATACTTTATTATATTGGGAGTAAAAAAAA...


>gi_94481944_Human_herpesvirus_3
GGCCCAGCCCTCTCGCGGCCCCCTCGAGAGAGAAAAAAA...


I want to extract only herpes virus entries, including the actual sequence, which is (in this file) always the line folowing the description.



The folowing regex works:



>.*herpes.*\n.*\n



It selects the description and the sequence lines.



I have found similar questions but all make use of the "bookmark line" function:
Export all regular expression matches in Textpad or Notepad++ as a list



However, this only bookmarks the first line of the regex output, so I am unable to use the described solutions. If I use "find all in current document", it also only lists the first lines.



All I want to do is copy the output of regex into a new file. It is especially frustrating since it finds just above a hundred entries, which is just above the margin under which I would be willing to do it manually.




I would prefer a solution in Windows OS.


Answer



You could make a copy of the file and then, on the copy, search and replace the negation of what you want:



(?!>.*herpes.*)^(>.*\R)([ATGC]+\R)



The above will (or ought to) find paired lines that do not have herpes. Couple this with a blank replace field, you will wind up with a file that has only what you are looking for.


Why does Windows 10 need Message Queuing service and why the service is installed by default?


I've upgraded two systems from Windows 7 to 10 and both have the MSMQ service installed after upgrade. None of those systems had it installed before.


The presence of the service is not a problem in itself, but it or a dependency service is listening on TCP port 80 via Microsoft HTTP API (System process PID 4) and I can't start Apache because of that.


So far my searches for answers have been fruitless, because most results I find are dealing with setup and configuration of MSMQ but not it's purpose on a freshly installed Win10 system.


I have two questions:



  1. What is the purpose of MSMQ service in Windows 10 systems?

  2. Can the service(s) be disabled (or set to manual start) without any ill side effects?


Answer



What is MSMQ?


From Microsoft:



Microsoft Message Queuing (MSMQ) technology enables applications
running at different times to communicate across heterogeneous
networks and systems that may be temporarily offline. MSMQ provides
guaranteed message delivery, efficient routing, security, and
priority-based messaging. It can be used to implement solutions for
both asynchronous and synchronous messaging scenarios.



From a user on Stack Overflow:



It's just a queue manager.


You can Send objects (serialized) to the queue where they will stay
until you Receive them. It's normally used to send messages or objects
between applications in a decoupled way.


It has nothing to do with webservices, they are two different things



Can you disable it? What happens?



When the MSMQ service is uninstalled the following actions are also
carried out:



  1. All existing queues and queue configuration information is deleted

  2. All messages contained in those queue and the system dead letter queue
    (DLQ) is deleted


(Source)



In a nutshell


The service started coming installed on Windows 8 and up systems (to my knowledge), which may be why you didn't see it on 7. Removing it only affects itself, and if you aren't using it then nothing should be affected.


Disabling the service you know how to do, but you can also remove it using Add & Remove Features



windows 10 - services.msc - access denied: How can I activate this?

The image should explain the problem quite well: Access denied services.msc


This system of me is in german but I guess you should understand the problem. I try to set "start type" to automatic for aswbiDSAgent which is my current Anti-Virus program (Avast Anti-Virus). I always have to start it manually which obviously makes it quite useless.


When I try to do this I get an access denied message (I started services.msc as an administrator). What can I do about that?

windows 7 - Have MSDN Ultimate 7 installed by company. Want to convert to personal Ultimate 7. Can I?

I purchased a used development PC with Ultimate 7 MSDN version on it. I own a laptop with Ultimate 7 full, installed over XP. I also own a 3 user Home 7 with only one install (2 left). Yes, it's messy. I also own unused copies of XP (2 or 3, not new, but not installed on anything at this time).


So, I think I'm legal to buy an Ultimate 7 Upgrade, or an Ultimate 7 Anytime Upgrade!


The Anytime Upgrade is cheapest!


Can I purchase an Anytime 7 Upgrade, and just enter the new key to turn the MSDN into a personal Ultimate 7?


Gee, I hope you can follow that!

Friday, September 1, 2017

Can I use Notepad++ to selectivelly merge two text files?


I have a two lists of words, one per line, each list in a separate file and I need to do two things:



  1. Merge the two lists but excluding the duplicates.

  2. Remove all words, that are less than 5 characters long.


For example: First list:


apple
banana
orange

Second list:


apricot
avocado
lime

Merged list:


apple
banana
orange
apricot
avocado

How to do this task with Notepad++?


Answer



Merging:


The easiest way to merge two files is to copy and paste. Notepad++ has no build-in file merging feature.


You can, however, install a plugin for this. See Combining files in Notepad++.


Another solution would be the command line's copy. See Need to combine lots of files in a directory


Replacing line breaks:


Removing duplicates will be trickier than removing short words since Notepad++'s search does not search over multiple lines at once, so we will have to convert the line breaks into something else.


To achieve this, you can perform an Extended replace, finding all \r\n (DOS line break) and replacing them by # (or any other character that does not appear in your list).


If the last line was not blank, append a # to the end of the resulting string.


Removing duplicates:


Now perform a Regular expression replace, finding all ([^#]+)#(.*#)\1# and replacing them by \1#\2.


If there were duplicates in a single file, you might have to do that more than once.


Removing words of 4 or less characters:


This one is easy. Just perform a Regular expression replace, finding all #.?.?.?.?# and replacing them by #.


Line breaks:


Now you can get rid of the line break hack. Just perform an Extended replace, finding all # and replacing them by \r\n.


Finally, delete the last line as it will be blank.


Windows Vista Home Premium -- Show Last Logged On User

Is there a way in Windows Vista Home Premium to show the last logged on user's account at the log in screen instead of having to click on the user's icon (if there are multiple users)?

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...