Wednesday, 31 January 2018

intel core i7 - would ddr2 memory work in a motherboard with ddr3 standard?


I have a machine built with 4 x Mushkin Enhanced Blackline 2GB 240-Pin DDR2 SDRAM DDR2 1066 (PC2 8500) Desktop Memory Model 991599. I'm thinking of upgrading to an Intel iCore 7 CPU that requires a motherboard with a socket type LGA 1155. The problem is that neither of the available motherboards that I found with that socket type have a DDR2 standard.


I'm looking to save the most money possible with my current components and that means trying to avoid buying new memory. Would the DDR2 memory work on such motherboards?



Answer



Nope - DDR2 and DDR3 are electrically different and not cross compatible.


Pic: DDR3 on the top. DDR2 below.


enter image description here


Edit: Nice diagram in this answer too: Can you tell DDR and DDR2 apart visually?


windows - How to check whether the bootable one is MBR or GPT in the PenDrive?


I burned an ISO a long time back in a Pen Drive. How to check whether the burned one in the Pen Drive is MBR or GPT ? Is it possible to tell the partition scheme by the folder structure ?




What happens when we changing the partition scheme in Rufus ?



Answer



Use gdisk to know if usb is mbr or gpt first.. on windows if you have one hard disk and external usb connected you can use the command "gdisk 1:" from cmd ( don't forget to run cmd as administrator) if the result was that you have gpt with protective mbr your usb stick is using GPT , overwise your usb is using MBR .. you can enter p to check that it's your usb because usb stick partition table information will be shown. If you have GPT and want to check if you are booting from USB under UEFI Mode or legacy mode ( because gpt disks can also be booted from under legacy mode ) you can check usb file system if it's FAT32 and have EFI folder inside it then you are probably boot from it under UEFI but to be sure try entering your BIOS Setup and disable Legacy mode (CSM Mode) by choose only UEFI then boot your device from usb. It will boot using only EFI bootloader. Your computer must be UEFI compatible first to be able to boot using this way.


gaming - Bad performance and odd behavior since Windows 10 Creators Update

Recently I've had to update my PC to the new Windows 10 Creators Update.


After it was installed, I jumped right into a game and immediately noticed some low frames. I did a disk cleanup, hoping it would help, but no. Without further thinking I just did a complete clean install of the new CU. I thought problems would be fixed. I installed my programs, games and drivers and the first thing I noticed was odd behavior as regards to my overclocks. My GPU OC no longer worked at all; whenever I did the slightest OC I would instantly get weird screen tears on my desktop. My CPU OC also seemed a little unstable even though I haven't used different OC values.


So now to my real problem, the bad in-game performance. Even with the clean installation of the CU, I still have lower FPS than usual. Some games have more obvious performance decreases than others but it's definitely noticeable in most games. Overwatch used to stay completely locked at 60 fps but now it stutters pretty often with frames as low as 30.  GTA 5 ran with a nice 40/50 fps most of the time and never dipping below 30.  Now it's at 28 fps most of the time. DOOM may even be the worst since the update. That game ran 60 fps almost constant, even in the more demanding scenes. Now it runs 40 fps, even in the first mission which isn't demanding at all.


Now the reason I'm posting this is because I'm clueless on what to do. I've tried everything I could think of but nothing worked so far. These are the things I have already done:



  • Disabled Game DVR

  • Disabled Game Mode

  • Disabled Fullscreen Optimization (which seemed to make the FPS worse than it already was)

  • Used the default clock speed (which also made the performance worse (obviously))

  • Updated my graphics drivers

  • Checked for Windows updates (which where already up-to-date)

  • Used both the default Power Options and my own (which didn't make an obvious difference)

  • Did a Disk Cleanup

  • Did a disk defragmentation

  • Checked my temperatures (which were fine)


Again, nothing I've tried worked. The performance stays bad. I'm looking for a solution that doesn't require me to buy new hardware (obviously). Games have worked well before so I just ask for a solution to make my PC work as it used to. Going back to a previous build can't be done because I clean installed my OS which got rid of the Anniversary Update, so now Roll Back is not available.

linux - Windows 8 won't boot after Boot Repair

I've got a Sony Vaio laptop. Until yesterday I had Windows 7 and Ubuntu 12.04 installed. Today I upgraded to Windows 8, which killed my OS selection screen. So I booted to Ubuntu 12.10 from a USB stick and ran Boot Repair. This recovered the GRUB screen and let me boot into my Ubuntu 12.04 installation, but now I can' boot Windows 8.


When I select the option that booted Windows 7 before, it looks like it wants to start Windows 7 (sic) again (black screen, with the text "Windows is loading" or something), but then reboots the machine after a few seconds.


I'm sure Boot Repair can fix this, but I know far too little about the whole booting thing to know the right settings for it.


Here's my boot repair report thing.


Edit: I really want to emphasize that it seems to be trying to start Windows 7. I'm pretty sure Boot Repair selected some old Windows 7 backup files. I already ran Boot Repair once after I installed Ubuntu. Maybe it's using some files or configs it created back then.

windows 7 - Adding default command line options when opening a particular filetype


I'd like to make it so that whenever I open a particular file type (by double clicking it in explorer) it always opens the associated program with particular command line options.


So, for example, when double clicking a .tex file I want it to not only open it with emacs (which is easy to set up just by going into "Open With"), but run emacs with the command line option "-fs".


What's the easiest way to do this?


Thanks



Answer



I would say that the easiest tool is Nirsoft FileTypesMan.


Launch it and find the extension you want to modify.


In the lower pane, find the action and modify it to either emacs.exe -fs %1 or emacs.exe %1 -fs


... Assuming Emacs.exe is the program name. Also, having never used it, I am not sure what order to provide the arguments. %1 is the file name, so use whichever one works.


windows - How can I display all 8 NTFS timestamps?


I understand that there are 8 NTFS timestamps


http://www.governmentsecurity.org/forum/topic/30896-frustrating-ntfs-time-stamp-forensics/



NTFS MACE (Modified, Accessed, Created and MFT Entry modified ) values . NTFS comes with 8 time-stamp values 4 of which resides in $Standard_Information attribute (SI) and the other 4 in $FILE_NAME (FN) attribute of MFT entry.



How can I display all 8?



Answer



This command can do it


MFTRCRD.exe c:\crp\a.a -d indxdump=off 1024 -s


As for how I knew the parameters, well, doing MFTCRD said there are 4 parameters and gave an example of MFTRCRD C:\boot.ini -d indxdump=off 1024 -s so you can change for whatever filename/path.


C:\blah>MFTRCRD.exe c:\crp\a.a -d indxdump=off 1024 -s

Starting MFTRCRD by Joakim Schicht
Version 1.0.0.37

Target is a File
Filesystem on c: is NTFS
File IndexNumber: 64587
............................
$STANDARD_INFORMATION 1:
File Create Time (CTime): 2014-12-06 03:49:51:714:3290
File Modified Time (ATime): 2015-09-15 16:23:33:791:7170
MFT Entry modified Time (MTime): 2015-09-15 16:23:33:791:7170
File Last Access Time (RTime): 2014-12-06 03:49:51:794:3335
...........

$FILE_NAME 1:
Parent MFTReference: 80564
ParentSequenceNo: 10
File Create Time (CTime): 2014-12-06 03:49:51:714:3290
File Modified Time (ATime): 2014-12-06 03:49:51:794:3335
MFT Entry modified Time (MTime): 2014-12-06 03:49:51:794:3335
File Last Access Time (RTime): 2014-12-06 03:49:51:794:3335

(note those abbreviations from MFTRCRD of ATime for modified and others, like Rtime, look really absurd e.g. googling Rtime doesn't show anything. So you can ignore the abbreviations that that command gives you and go by the descriptions. But there are abbreviations that linux uses (MAC) and that windows NTFS uses (MACE) which I describe below)


Linux does not store the time the file was created. (updated- some modern linux file systems do, see note at the end) Windows does creation time.


It looks like Linux has 3 times. MAC time. mtime atime ctime . In Linux, ctime is changed time, rather than creation time, and the 'changed' time, in linux is different to the file being modified (the modified time). The changed time in linux is when the entry in the file system got changed e.g. when / even when, the file permissions change, then the ctime in linux changes.


Windows NTFS uses MACE and the C in MACE is creation. The E in MACE seems to be like the c in linux i.e. the E in MACE is the entry being changed.



http://forensicswiki.org/wiki/MAC_times MAC times The term MAC times refers to the timestamps of the latest modification (mtime) or last written time, access (atime) or change (ctime) of a certain file.


Unix systems maintain the historical interpretation of ctime as the time when certain file metadata, not its contents, were last changed, such as the file's permissions or owner (e.g. 'This files metadata was changed on 05/05/02 12:15pm').


Windows systems are the only systems that use birth (btime) or creation (crtime) time (e.g. 'This file was created on 05/05/02 12:15pm'). Hence MACB; Modification, Access, Change and Birth.



Further look at linux for contrast is beneficial.



http://www.linux-faqs.info/general/difference-between-mtime-ctime-and-atime


A common mistake is that ctime is the file creation time. This is not correct, it is the inode/file change time. mtime is the file modification time. A often heard question is "What is the ctime, mtime and atime?".This is confusing so let me explain the difference between ctime, mtime and atime. ctime


ctime is the inode or file change time. The ctime gets updated when the file attributes are changed, like changing the owner, changing the permission or moving the file to an other filesystem but will also be updated when you modify a file.


mtime


mtime is the file modify time. The mtime gets updated when you modify a file. Whenever you update content of a file or save a file the mtime gets updated.


Most of the times ctime and mtime will be the same, unless only the file attributes are updated. In that case only the ctime gets updated.


atime


atime is the file access time. The atime gets updated when you open a file but also when a file is used for other operations like grep, sort, cat, head, tail and so on.



cygwin can show 4 time stamps, as can timestomp


c:\blah>timestomp a.a -v
Modified: Tuesday 9/15/2015 17:23:33
Accessed: Saturday 12/6/2014 4:49:51
Created: Saturday 12/6/2014 4:49:51
Entry Modified: Tuesday 9/15/2015 17:23:33

-


$ stat a.a
File: 'a.a'
Size: 45 Blocks: 4 IO Block: 65536 regular file
Device: b411d580h/3021067648d Inode: 102738366499454027 Links: 1
Access: (0070/----rwx---) Uid: ( 1000/ harvey) Gid: ( 513/ None)
Access: 2014-12-06 03:49:51.794333500 +0000
Modify: 2015-09-15 17:23:33.791717000 +0100
Change: 2015-09-15 17:23:33.791717000 +0100
Birth: 2014-12-06 03:49:51.714329000 +0000

Apparently setMACE is like timestomp but better. However, I can't see it showing the 8 timestamps. And the setMACE description mentioned MFTCRD that shows the timestamps.


You can get MFTRCRD from here https://github.com/jschicht/MftRcrd


Github seems to be a bit odd, don't right click and save as, otherwise it's an HTML file with extension EXE. And when you try to run it on cmd you get an error on cmd about 64bit and 32bit. Try left clicking it then the next page gives you a download of the actual file. And you need to be in an administrative command prompt, otherwise you get a mesage about do you trust programs from this publisher, and if you say yes then a cmd window flashes up and goes(and whether cmd /k or not). But it works fine from an administrative cmd prompt.


ADDED


Some modern linux file systems store file creation time. (may be known as crtime. Definitely not ctime, for reasons mentioned above)


https://unix.stackexchange.com/questions/91197/how-to-find-creation-date-of-file


Pace Plc 5268AC how to change Router/Gateway Address


I have AT&T U verse with Router as


Manufacturer Pace Plc Model 5268AC


Default router address is 192.168.1.254


I would like to change it to 192.168.1.1


Regards



Answer



If what you have is the same Pace 5268AC described here then page 20 of the linked manual indicates that you can customize the LAN settings on the Settings / LAN / DHCP page:




  1. If you selected Configure manually, enter the following information:

    • Router Address. The LAN IP address of the gateway.

    • Subnet Mask. The subnet mask of the gateway (default: 255.255.255.0).

    • First DHCP Address. The first IP address in the DHCP IP address pool to be assigned on the local network.

    • Last DHCP Address. The last IP address in the DHCP IP address pool to be assigned on the local network.





In your case, change the Router Address from 192.168.1.254 to 192.168.1.1.


Should I get all drivers from third-party websites or Windows to do it?


I am on Windows 10. We have switched off Windows Update (via a registry key provided by Microsoft).


I have prepared an image and once installed (and I am off the network), I can see missing drivers and default drivers being used via Device Manager.


Now I connected to the network and even though a windows update has not occurred (due to key setting), I see the drivers updated (my Microsoft Display Adapter has changed to 'Intel Graphics'). And other drivers are up to date and there are no warning signs in Device Manager.


I was under the impression that the drivers would not update unless I did a Windows update or I installed third-party drivers via Device Manager.


Is this correct behavior?


Also, do I need to visit the third-party web sites to download drivers or is this not necessary as I do not see any issues in Device Manager?



Answer



Windows performs a routine maintenance check every so many hours. One of the tasks it does is checking if there is a problem with hardware. It will try to fix it automatically or, if not capable, inform the user.


One of the methods of fixing a driver issue, is by checking if a new driver is available online. If so, it will download the driver and install it.


The driverpool Windows uses may or may not be the latest driver available, but it will be a stable driver, unless it somehow is incompatible (usually happens just after a major Windows update). The driver may be a slimmed down version though, but most of the time, that is enough.


In any case, it is safe to use these drivers.


Updating to those provided by the web, can be beneficial, but it may also install a different version of the exact same drivers already installed (for example, Microsoft installed an English driver, and you downloaded the one native to your language).


The only time when using the drivers from the manufacturer website is important, is when you talk about graphics drivers, especially those by AMD and Nvidia, as they continuously tweak their drivers to give better performance.


Microsoft usually does not update the drivers in their driverpool that frequently. If you use hardware that is older, the drivers provided by Microsoft will likely be the latest.


So: Should you update every single device with new drivers from the manufacturer website? My advise is: only if you are missing features or noticing performance issues. When I format my Windows, I rarely install other drivers. Only for my video card and sound card, as they both require special drivers to access the hardware exclusively.


Windows 8.1: pagefile.sys disk response time > 1S

I'm having a problem with Windows 8.1 using 100% of my disk. I opened resource monitor and found that the disk response time for C:\pagefile.sys was regularly very high, usually around 500ms but sometimes around 1500 ms (1.5s). What could be causing this? Bad memory?

Automatically invite a specific person to every Outlook meeting

I use Outlook 2013 at work. I use outlook.com for my personal stuff. I also cannot have mobile phones at work, and I cannot access my work e-mail from my personal devices.


Currently, whenever I create an event on my calendar, I invite my outlook.com email to the meeting, so it shows up on my phone and my work computer. This way, I know what appointments I have, even if I'm not in the office.


Is there any way to set up Outlook to automatically invite my outlook.com email to EVERY event I create?


Please note: I cannot use any fancy smancy software or anything. My organization is pretty locked down.

Tuesday, 30 January 2018

is there a way to completely delete Chrome OS on a chromebook - and install linux (not dual boot)

I'm looking to buy the latest fanless HP or Samsung Chromebooks. However, I want to install linux on it and delete Chrome OS - is there a way to do this ?


I am familiar with Crouton and Chrubuntu - however, they seem only to provide dual boot solutions


many thanks

Headphone jack not working in Windows 7


My headphone jack doesn't work under Windows 7 64 bit.


I tried the following things:



  • 3 different headphones speakers

  • 2 different versions of the Realtek driver (2.7 / 2.6)

  • Standard Windows 7 drivers


I can't see anything apart from "Speakers" in the playback devices (I have enabled Show hidden / deactivated devices). Under Ubuntu there is no problem whatsoever!


When I used the Realtek configurator I wanted to disable the auto-detection of plugged in speakers, but the option (the little folder icon) wasn't there, in neither version.


I use HDMI to connect my screen from time to time. The audio jack from the screen does work (sometimes!). But I guess that's unrelated, because even when I boot Windows without the screen, it still doesn't work.



Answer



Try completely uninstalling the realtek drivers and then reboot and see if Windows propitery audio drivers detect.


Hopefully the audio device has been correctly detected by Windows, to check it go to "Device Manager"


usb storage - If USB sticks and/or external drives have limits, I mean on the number of writes and deletes, how about reads and copys?

If USB sticks and/or external drives have limits, I mean on the number of writes and deletes, how about reads and copys?


Are number of reads and/or copys also have limits in USB sticks or external drives?

microsoft outlook 2010 - Emails replied to by VBA script do not show reply icon with purple arrow


I have a VBA script that moves an email to a folder (dialog box) and generates a reply that will be saved in the same folder. The problem I am having is the original email never shows the reply icon with purple arrow. Any ideas what I am missing?


Sub FileAndReply()
'This subroutine will move the highlighted email to a user selected folder
'and generate a reply that will be saved in the same folder.
'PROBABLY: Must have Save copy of messages in Sent folder set.
'MAYBE: Must have When replying to a message that is not in the Inbox, save...

Dim olApp As New Outlook.Application
Dim olExp As Outlook.Explorer
Dim olSel As Outlook.Selection
Dim olNS As Outlook.NameSpace
Dim olFolder As Outlook.Folder
Dim olItem As Outlook.MailItem

Set olExp = olApp.ActiveExplorer
Set olSel = olExp.Selection
Set olNS = olApp.GetNamespace("MAPI")

'get folder user wants to put email in
Set olFolder = olNS.PickFolder

If TypeName(olFolder) <> "Nothing" Then
olSel.Item(1).Move olFolder
Set olItem = olSel.Item(1).Reply

'TO BE FIXED: reply object is created, but original message does
'not get the icon showing replied to purple arrow!

Set olItem.SaveSentMessageFolder = olFolder
olItem.Display
Else
MsgBox ("No folder selected. Script aborted.")
End If
End Sub

Answer



When you move an item a new item is created. You need to do the reply on the new item.


Sub FileAndReply()
'This subroutine will move the highlighted email to a user selected folder
'and generate a reply that will be saved in the same folder.
'PROBABLY: Must have Save copy of messages in Sent folder set.
'MAYBE: Must have When replying to a message that is not in the Inbox, save...

Dim olApp As New Outlook.Application
Dim olExp As Outlook.Explorer
Dim olSel As Outlook.Selection
Dim olNS As Outlook.NameSpace
Dim olFolder As Outlook.folder
Dim olItem As Outlook.MailItem

Set olExp = olApp.ActiveExplorer
Set olSel = olExp.Selection
Set olItem = olSel.Item(1)

Set olNS = olApp.GetNamespace("MAPI")

'get folder user wants to put email in
Set olFolder = olNS.PickFolder

If TypeName(olFolder) <> "Nothing" Then
Set olItem = olItem.Move(olFolder)

Set olItem = olItem.Reply

'TO BE FIXED: reply object is created, but original message does
'not get the icon showing replied to purple arrow!

Set olItem.SaveSentMessageFolder = olFolder
olItem.Display
Else
MsgBox ("No folder selected. Script aborted.")
End If
End Sub

security - Force Chrome to Ignore a "weak ephemeral Diffie-Hellman public key”

With the update of Chrome to v45, it's blocking access to pages with weak ephermeral Diffie-Hellman public keys. I understand that this is due to Logjam. I understand that switching from https to http is a "solution" in some cases.


However, I can not switch from https to http because I am auto redirected to https by the web-based software we use on our intranet.


Obviously, the solution would be to have security change the various intranet servers to be secure from logjam, I understand that, but that isn't an option right this minute, and I can not do any more work until it's fixed. Because it's an intranet and simply connecting at all requires that one be physically here, the risk is minuscule.


Is there any way that I can continue to access pages via https protocol, with weak ephemeral Diffie-Hellman public keys in Chrome version 45?

Windows 7 PC no longers goes into power saving mode

Recently, my computer stopped honoring the power saving settings. It stays on all the time, even though I have it set to go into sleep mode after 20 minutes of inactivity.


It used to work as expected, and now it does not. I only ever witnessed this behavior before if there were an open "save" dialog or some such thing. I don't see anything like that now, however.


Any tips for debugging this?


Thanks.

windows - How to connect to rootccmClientSDK (or other) namespace in WBemTest

This question is related to "this StackOverflow question": there's a WMI related problem on a customer's PC, how to tackle it? I'm trying different approaches solve this question:



  1. Take a dump of the WMiPrvSE.exe process, and check its contents (it should contain WMI queries' results, which I'm trying to read).

  2. Check the event logs, which contain the queries themselves, and see if I can learn anything from there.


The first approach is handled in the mentioned StackOverflow URL, while here I'd like to tackle the second approach, but also this is giving problems:


In the event log, I can see entries like the following:


Namespace = root\ccm\ClientSDK;
NotificationQuery = select * from CCM_InstanceEvent

In order to understand what this means, I try to launch this query on a local PC (Windows Server 2016, just like the customer's PC), but this seems not to work:



  1. I launch WBemTest


  2. I try to connect to root\ccm\ClientSDK namespace, but this namespace seems not to exist, as can be seen in following error message:


    Number: 0x8004100e
    Facility: WMI
    Description: Invalid namespace


For your information, the namespaces root and root\cimv2 are working fine.
Being completely ignorant about WMI, I decided to check the registry, where I've found the following key:


HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wbem\CIMOM\SecuredHostProviders

This contains entries, like root\cimv2:..., and also root\nap, but connecting to root\nap also not seems to work in WBemTest.


Does anybody know why I can't connect to the root\ccm\ClientSDK (or other) namespace? Is there somewhere a list of namespaces I can connect to?


As far as tagging is concerned: my customer is working with Windows Server 2016 but I don't know if my question only relates to this particular version or to the whole Windows platform series.


Edit after more insight


In the meantime I've downloaded WMI explorer and this shows me the following WMI namespaces:


root\accesslogging
root\appv
root\aspnet
root\cmiv2
root\cli
root\default
...

As you see, there's no root\ccm. Does this mean that the mentioned query is wrong and that I can remove that query from my application?

networking - How do I set up Windows 7 to stream media to my PS3?

I have a computer and a PS3 connected wirelessly to my router, but it seems no matter how hard I try I can not get my PC to show up on my PS3.


I've also tried setting up a media server with TVersity but my PS3 just won't find it. Any suggestions?

hard drive - Can I connect SATA harddrive to my laptop through USB port

I have 160 GB SATA harddrive in my PC, but my PC is not working. I want to copy my SATA hard drive data to my laptop. Is it possible to connect my pc hard drive to a laptop via USB?

On Windows XP - Change monitor resolution based on which user is logged in?


In Windows XP Professional, each of our family members are listed as icons at startup. Is there a way to have the system change the monitor resolution based on the family member? For example, if 'Dad' is clicked have it render 1028 x 768, if 'Mom' logs in have the monitor resolution set to 800 x 600. If 'Boy' logs in have the resolution set to 1280×1024 etc...



Answer



I found this program : "XP Keep per User Display Settings". I quote:



The program is launched for each and every user -- don't worry, it's rather small -- and monitors the following events:



  • switching among active users

  • users logging off


Each time such an event occurs the current user's display settings are saved in that user's part of the registry.
Conversely, each time a user logs in or becomes active, his/her saved settings are restored.



Monday, 29 January 2018

Clone bootable USB drives

I want to clone bootable USB drives (Windows 7 installation with image file). What's the fastest and easiest way to do this?

Permanently remove/disable Touch Keyboard in Windows 8 taskbar?

I have Windows 8 (final, MSDN) on my Macbook Pro Retina.


Windows 8's ongoing, continuous tantrum of insisting that it's on a tablet device is causing it to always have a touch keyboard 'icon' on the taskbar.


The 'icon' is actually a toolbar and I can temporarily disable it by right clicking the taskbar and DE-selecting it. However, upon rebooting the system, it always insists on coming back and activating itself.


Windows 8


How can I permanently disable the touch keyboard toolbar in the taskbar?

dell inspiron - Error 0xc0000260 when installing Windows 8 Consumer Preview on an old laptop


I'm attempting to install Windows 8 Consumer Preview on a Dell Inspiron 8600, and I am getting a 0xc0000260 error.


Googling around, I found that others get this error when installing on a Virtual Machine without the PAE/NX checkbox enabled. I'm pretty sure my processor doesn't support either one of those. (It is a Pentium M "Banias" 1.6.)


Other notes:



  • I'm trying to install the 32-bit version.

  • I meet the formal system requirements (1 GHz, 2 GB, 16 GB).

  • I've attempted to install from within Windows 7 as well as booting from a USB installer.


Am I missing some other, undocumented hardware requirement (e.g. PAE)? Is there another install method I should try?


error via install from windows
error via usb boot



Answer



Finally have a real answer - PAE/NX/SSE2 are required for Windows 8.


http://msdn.microsoft.com/en-us/library/windows/hardware/hh975398 :



NX requires PAE-capable processors on 32-bit version of Windows. All 64-bit processors support NX, as they are Address Windowing Extensions (AWE) aware. Therefore, the issue of old 32-bit processors that are not PAE-capable has no WOA implications or Windows Server (Windows Server 2012 is 64-bit only) implications. The processor requirement won't impact customers on modern systems, or on systems that meet logo requirements for Windows 7 because these systems have PAE-capable 32-bit processors that support NX and allow NX to be turned on. Only a small set of customers who have Windows 7 running on very old 32-bit processors without PAE/NX support will be impacted.


Windows 8 Consumer Preview and Windows Server 2012 Beta were released with the requirement for PAE, which impacted a small number of customers with old hardware that did not support PAE. Many of these installation failures occurred when installing Windows 8 on misconfigured Virtual Machines (VMs). Windows Setup would fail the installation with error 0xc0000260 and roll back to Windows 7.



bash - What does `>>` mean in terminal command?


I came across a command just now given below -


$ echo 'eval "$(jenv init -)"' >> ~/.bash_profile

From what i can guess, it is probably used for committing the changes in .bash_profile but what exactly is it used for?



Answer



It redirects the stdout of the program before >> and appends it to the given file after.


microsoft excel - Can I reactivate the cursor keys for modifying a cell reference in a formula?


When I enter an Excel formula by hand avoiding the mouse, I can conveniently reference cells by using the arrow keys (->,<- etc.). For example, I can enter the formula =A2&B2 in cell C2 by entering


=<-&<-<-


The result looks like this:


enter image description here


If I want to change from B2 to B3, I can just press the downward arrow on the keyboard at this time.


How do I do the same thing later, after having left this cell (e.g. by pressing Enter)?


In other words, how do I get the flashing dashed line back when re-entering a cell with F2?


enter image description here


Edit:


Why I want this


Imagine the formula was entered into cell B3000 or even on a different sheet, and now I want to correct a cell reference from B2 to something nearby, like A3. It would be nice if I could select the reference to B2, somehow get back into "Point mode" (see oldest two answers below) to quickly modify that reference with the arrow keys.



Answer



Do the following:



  1. Press F2 to edit the formula

  2. Cursor to the cell reference you want to change, shift+cursor to select (e.g. in your example press [Shift]+[Cursor left] twice to select "B2" within the formula)

  3. Press F5 to open the "Go To" box.

  4. Press Enter and you get the "marching ants" around the cell B2 as you wanted.

  5. Now use can cursor keys to change the cell reference, starting at the previous location.


If you want you can change the cell reference in the "Go To" box to something else before you press enter in step 4, but you specifically asked to start at cell B2 in which case you just press Enter immediately.


When did System Restore stop affecting Windows Updates?

Recently, I allowed Windows Update to install what it said were important updates. Immediately after the update, programs that were working fine just before the update were no longer working, crashing on startup every time.


I did a System Restore to a little while (hours) before the Windows Updates and restarted; System Restore reported that it had successfully restored to that selected restore point. However, the programs were still consistently crashing on startup. Opening Windows Update, it said that no important updates were available, Windows was up to date, and showed the update history including those that I thought would have been rolled back, especially looking at the accepted answer to this question. Right-clicking on anything in the update history, I can only View Details or Copy Details, but not roll back the change. So, those important programs just don't work any more (until such time as an update for the program is available) and I've learned my lesson about installing Windows Updates.


When did this behavior change, that System Restore no longer rolls back Windows Updates?

Exclude specific sites or urls from Google search results?




Possible Duplicate:
Is it possible with Google searches to ban any and all results from a domain?



When searching google a few sites constantly show up in my search results. However, these sites are never relevant to me. Is there a way to blacklist sites by domain, regular expression or other method? Preferably I would like to do this prior to any searching and not in the search string each time I need to Google something.


Each time I come across a new site that is spammy or otherwise not relevant I would like to be able to easily add it to the blacklist.


I use a mixture of Google Chrome and FireFox on MacOSX Snow Leopard. I am not opposed to using plugins if there aren't any settings that can be applied to the Google search engine itself.



Answer



Grease Monkey for Firefox is going to be the best place to start, as partially documented here. This is where you can find how to get those scripts running under Chrome.


Unfortunately, Google changed how they format the results page, and it broke a bunch of scripts, and I haven't seen any that now work.


windows 10 - How to pin some icons to the left side and rest to the right side of the taskbar?

How to pin half of the icons to the left side and the rest of the icons to the right side of the taskbar in Windows 10?


Like on this image:


As shown here

macos - Ubuntu purple terminal colors to iTerm2


I've been looking for a iTerm2 theme that resembles the default purple Ubuntu terminal but have had no success so far.


Does a theme for the standard Ubuntu terminal exist for iTerm2 or will I have to create my own? If so, does anyone know the complete list of colors used by the Terminal?


Note By "complete list of colors" I mean the foreground color, background color, bold color and the palette.


Here is a screenshot of the terminal in action.


Ubuntu default purple terminal



Answer



This is the palette


Background 300A24
Foreground FFFFFF (not sure, text is anti-aliased)
Color0 2E3436
Color1 CC0000
Color2 4E9A06
Color3 C4A000
Color4 3465A4
Color5 75507B
Color6 06989A
Color7 D3D7CF

Standard colors


Here is 256-color palette. Use colorpicker yourself xterm-256


hotkeys - Ctrl + Win + Num stopped working after Windows 10 updated to ver. 1803

Ctrl + Win + Num suddenly stopped working for me one day..


My Windows version is


Edition Windows 10 Home
Version 1803
Installed on 6/10/2018
OS build 17134.112

I am on a Dell laptop. I have confirmed that there is nothing wrong on hardware. This is merely a software issue. For example, Win + Num hotkey works just fine. Inspecting with Ethervane ActiveHotkeys shows that Ctrl + Win + Num is just inactive. I suspect somehow the setting is wiped from my windows registry. I am hoping to locate where it is from windows registry and manually restore it. Can anyone help?... enter image description here


Much thanks!


--- update: my work PC received an update today (2019Jan24), ALSO Ver 1803, OS 17134.523, and it's broken as well!! Ver 1803 looks suspiciously... suspicious!


--- update 2: I can confirm that it's due to Windows update now. Checked with a colleague that's on 1809, that this hotkey no longer works neither. Either Microsoft has had it removed or it's broken since the updates. I wonder how I can fix it.


--- update 3: Thank you everyone for the attention gathered, I think we created a lound enough voice that MS finally fixed it. It's finally again now at V1903. (But I don't know how to properly close this thread as it's fixed by a patch, if you know please leave comment or PM me.)

ubuntu - Gnome's shutdown menu disappeared


I'm using Ubuntu 10.04 and my shutdown menu
suddenly disappeared (the menu on the top where you click it
and get options such as "shut down" and "suspend"...)
how do I bring it back?



Answer



You need to add the "Indicator Applet Session" applet. It's in the "Add to Panel" list.


The "Shutdown" applet gives you a popup dialog with Shut Down, Restart, Suspend and Hibernate options.


The "Indicator Applet Session" applet gives you the drop-down menu with Log Out, Suspend, Hibernate, Restart and Shut Down options, as well as Lock Screen, Guest Session, Switch from... and other fast-user-switching options.


Convert PDF to Word document?



Any software/idea how to convert pdf document to word document?



Answer



PDF to Word?


Looks free, Just tried it and it works well for me.


text editors - In Notepad++, how do I split long lines in several rows?


I usually use Notepad++ for programming, but recently I started doing some writing in it as well.


Writing usually involves long paragraphs with no line breaks, and currently those are displayed in one row, which is extremely inconvenient.


How can I get N++ to to split lines? I believe that the option is called "split lines" in Gedit.



Answer



Go to View -> Word Wrap. Make sure that is checked.


64 bit - How many memory addresses can we get with a 32-bit processor and 1gb ram?


How many memory addresses can we get with a 32-bit processor and 1gb ram and how many with a 64-bit processor?


I think that it's something like this:


1GB of ram divided by 32bits or divided by 4? to get the number of memory addresses?


But i'm not sure. That's why i'm asking.


I red on wikipedia that 1 memory addresses is 32bits wide or 4 octets (1 octet = 8 bits), compared to 64bit a processor where 1 memory addresses or 1 integer is 64bits wide or 8 octets. But don't know if i understood it correctly either.



Answer



Short answer: The number of available addresses is equal to the smaller of those:



  • Memory size in bytes

  • Greatest unsigned integer that can be saved in CPU's machine word




Long answer and explaination of the above:


Memory consists of bytes (B). Each byte consists of 8 bits (b).


1 B = 8 b

1 GB of RAM is actually 1 GiB (gibibyte, not gigabyte). The difference is:


1 GB  = 10^9 B = 1 000 000 000 B
1 GiB = 2^30 B = 1 073 741 824 B

Every byte of memory has its own address, no matter how big the CPU machine word is. Eg. Intel 8086 CPU was 16-bit and it was addressing memory by bytes, so do modern 32-bit and 64-bit CPUs. That's the cause of the first limit - you can't have more addresses than memory bytes.


Memory address is just a number of bytes the CPU has to skip from the beginning of the memory to get to the one it's looking for.



  • To access the first byte it has to skip 0 bytes, so first byte's address is 0.

  • To access the second byte it has to skip 1 byte, so its address is 1.

  • (and so forth...)

  • To access the last byte, CPU skips 1073741823 bytes, so its address is 1073741823.


Now you have to know what 32-bit actually means. As I mentioned before, it's the size of a machine word.


Machine word is the amount of memory CPU uses to hold numbers (in RAM, cache or internal registers). 32-bit CPU uses 32 bits (4 bytes) to hold numbers. Memory addresses are numbers too, so on a 32-bit CPU the memory address consists of 32 bits.


Now think about this: if you have one bit, you can save two values on it: 0 or 1. Add one more bit and you have four values: 0, 1, 2, 3. On three bits, you can save eight values: 0, 1, 2... 6, 7. This is actually a binary system and it works like that:


Decimal Binary
0 0000
1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
8 1000
9 1001
10 1010
11 1011
12 1100
13 1101
14 1110
15 1111

It works exactly like usual addition, but the maximum digit is 1, not 9. Decimal 0 is 0000, then you add 1 and get 0001, add one once again and you have 0010. What happend here is like with having decimal 09 and adding one: you change 9 to 0 and increment next digit.


From the example above you can see that there's always a maximum value you can keep in a number with constant number of bits - because when all bits are 1 and you try to increase the value by 1, all bits will become 0, thus breaking the number. It's called integer overflow and causes many unpleasant problems, both for users and developers.


   11111111    = 255
+ 1
-----------
100000000 = 0 (9 bits here, so 1 is trimmed)


  • For 1 bit the greatest value is 1,

  • 2 bits - 3,

  • 3 bits - 7,

  • 4 bits - 15


The greatest possible number is always 2^N-1, where N is the number of bits. As I said before, a memory address is a number and it also has a maximum value. That's why machine word's size is also a limit for the number of available memory addresses - sometimes your CPU just can't process numbers big enough to address more memory.


So on 32 bits you can keep numbers from 0 to 2^32-1, and that's 4 294 967 295. It's more than the greatest address in 1 GB RAM, so in your specific case amount of RAM will be the limiting factor.


The RAM limit for 32-bit CPU is theoretically 4 GB (2^32) and for 64-bit CPU it's 16 EB (exabytes, 1 EB = 2^30 GB). In other words, 64-bit CPU could address entire Internet... 200 times ;) (estimated by WolframAlpha).


However, in real-life operating systems 32-bit CPUs can address about 3 GiB of RAM. That's because of operating system's internal architecture - some addresses are reserved for other purposes. You can read more about this so-called 3 GB barrier on Wikipedia. You can lift this limit with Physical Address Extension.




Speaking about memory addressing, there are few things I should mention: virtual memory, segmentation and paging.



As @Daniel R Hicks pointed out in another answer, OSes use virtual memory. What it means is that applications actually don't operate on real memory addresses, but ones provided by OS.


This technique allows operating system to move some data from RAM to a so-called Pagefile (Windows) or Swap (*NIX). HDD is few magnitudes slower than RAM, but it's not a serious problem for rarely accessed data and it allows OS to provide applications more RAM than you actually have installed.



What we were talking about so far is called flat addressing scheme.


Paging is an alternative addressing scheme that allows to address more memory that you normally could with one machine word in flat model.


Imagine a book filled with 4-letter words. Let's say there are 1024 numbers on each page. To address a number, you have to know two things:



  • The number of page on which that word is printed.

  • Which word on that page is the one you're looking for.


Now that's exactly how modern x86 CPUs handle memory. It's divided into 4 KiB pages (1024 machine words each) and those pages have numbers. (actually pages can also be 4 MiB big or 2 MiB with PAE). When you want to address memory cell, you need the page number and address in that page. Note that each memory cell is referenced by exactly one pair of numbers, that won't be the case for segmentation.



Well, this one is quite similar to paging. It was used in Intel 8086, just to name one example. Groups of addresses are now called memory segments, not pages. The difference is segments can overlap, and they do overlap a lot. For example on 8086 most memory cells were available from 4096 different segments.




An example:


Let's say we have 8 bytes of memory, all holding zeros except for 4th byte which is equal to 255.


Illustration for flat memory model:


 _____
| 0 |
| 0 |
| 0 |
| 255 |
| 0 |
| 0 |
| 0 |
| 0 |
-----

Illustration for paged memory with 4-byte pages:


 PAGE0
_____
| 0 |
| 0 |
| 0 | PAGE1
| 255 | _____
----- | 0 |
| 0 |
| 0 |
| 0 |
-----

Illustration for segmented memory with 4-byte segments shifted by 1:


 SEG 0
_____ SEG 1
| 0 | _____ SEG 2
| 0 | | 0 | _____ SEG 3
| 0 | | 0 | | 0 | _____ SEG 4
| 255 | | 255 | | 255 | | 255 | _____ SEG 5
----- | 0 | | 0 | | 0 | | 0 | _____ SEG 6
----- | 0 | | 0 | | 0 | | 0 | _____ SEG 7
----- | 0 | | 0 | | 0 | | 0 | _____
----- | 0 | | 0 | | 0 | | 0 |
----- ----- ----- -----

As you can see, 4th byte can be addressed in four ways: (addressing from 0)



  • Segment 0, offset 3

  • Segment 1, offset 2

  • Segment 2, offset 1

  • Segment 3, offset 0


It's always the same memory cell.


In real-life implementations segments are shifted by more than 1 byte (for 8086 it was 16 bytes).


What's bad about segmentation is that it's complicated (but I think you already know that ;) What's good, is that you can use some clever techniques to create modular programs.


For example you can load some module into a segment, then pretend the segment is smaller than it really is (just small enough to hold the module), then choose first segment that doesn't overlap with that pseudo-smaller one and load next module, and so on. Basically what you get this way is pages of variable size.


markdown - Why would RTF files created with Pandoc be opened as plain text?


I'm experimenting with Pandoc, in particular the markdown to RTF function. When I run the converter, the resulting RTF is opened in both Word and OpenOffice as plain text (where the text looks like RTF, but isn't treated as RTF). Converting to HTML works fine.


Here is the command I used:


pandoc -f markdown -t rtf -o sample.rtf sample.txt

Here is the short sample markdown I used:


# markdown example

- uli1

_em_

__strong__

Snippet of the contents of the created file:


{\pard \ql \f0 \sa180 \li0 \fi0 \b \fs36 markdown example\par}

Running on Vista 32-bit, using Pandoc 1.6 (from http://code.google.com/p/pandoc/downloads/list).


Does anyone know what the problem might be?



Answer



You just need to use the '-s' (or '--standalone') option when invoking pandoc. Otherwise pandoc produces a fragment, not a full standalone RTF file.


Sunday, 28 January 2018

networking - Limited connectivity issues in network, need help sorting out the root cause

I have an issue with our house network that I can't figure out how to solve. I'll try to detail the symptoms as best I can, but please feel free to ask me for clarifications and I'll try to find any data you need.


My issue is one of connectivity. I seem to be having trouble connecting to peers and certain servers. One symptom is the fact that torrents can literally take several days to start, but once they're connected to a peer it will stay connected and keep downloading at a fast and steady pace.


The other large symptom is the fact that Xbox Live is incredibly hard to use on my Xbox 360. Connecting to Live takes multiple attempts (sometimes 5, sometimes I give up after trying to connect for 90 minutes straight), as does every other connection step along the way; trying to join a chat party, getting into a multiplayer match, etcetera. For some reason, I'm disconnected every time I go to the dashboard too, so my connection doesn't like whatever it is the Live server is doing whenever you switch games. Additionally, I'm kicked off of Xbox Live every 2 hours. (However, this time limit fluctuates; sometimes I can be on for 6 hours straight with no issues and sometimes I'm thrown out after just 10 minutes. 90% of the time it's 2 hours though.)


A major problem on top of this is the fact that my entire apartment building is on one gigabit connection, routed through a NetGear ProSafe router owned by my landlord. I can't just sign up for my apartment's own connection, as the house is a converted office building and isn't wired with anything but CAT5 cables running from the basement.


One more detail is that this seems to be load-based. In early mornings, when people are still asleep, the issues are almost completely gone. In prime time evenings, though, trying to use the connection is a nightmare.


Is the issue that the ProSafe can't handle about 50 apartments trying to connect, or is there a setting that's too strict and ends up bottlenecking the house, causing these issues? Any tips or clues would be appreciated, as I can neither get my own connection nor move to a different place very easily and this issue is absolutely maddening for a huge gamer like myself.

Require user passwords on linux only on weekdays

Is it possible to make linux require user password only during specified time range, eg. from Monday to Friday? I want to set it this way on my Linux Mint, so that kids cannot access computer on school days without permission, but still allowing to login with password on school days...


EDIT: By login I mean logging in to system using gui

firefox - Select multiple tabs and close

In Chrome, I can shift+click to automatically select all tabs in between the tab I'm on and the tab I click on, and then press ctrl+W to close them. Is there any way I can achieve this with Firefox?

How to restore Visual Studio 2013 RC Start Menu shortcuts?


I had Visual Studio 2013 Preview installed. I uninstalled it. Then I installed Visual Studio 2013 RC but most of the Start Menu shortcuts are missing.


I tried repairing the installation but it did not create the icons.



Answer



I had the same problem. After a short search I realized they changed the name of the shortcut folder from "Microsoft Visual Studio 2013" to just "Visual Studio 2013".


See the following for details: https://connect.microsoft.com/VisualStudio/feedback/details/802119/missing-vs2013-shortcut-after-install


internet - Can my ISP monitor me?


I'm an atheist visiting a islamic republic where the punishmnent for apostacy may be high.


Is it possible for an ISP to see the websites I might browse or what kind of blasphemous conversations I might have with others over MSN/Yahoo, etc. (which may be related to the forementioned activities).


Is it something I should be concerned about, or is there a negligible chance of this happening? Is there anything I can employ to 'mask' this?



Answer



Why worry about your ISP? That's just a business trying to make some money, they probably won't bother. It might be much easier to reveal what you've been up to by examining your own computer. Like: which Flash-enabled websites has your computer visited since you bought it?


However, as for your current government administration things may be different. Just a few examples:




  • The Electronic Police State, 2008 National Rankings: 1. China, 2. North Korea, 3. Belarus, 4. Russia, 5. United Kingdom: England & Wales, 6. United States of America, 7. Singapore, 8. Israel, 9. France, 10. Germany, 11. Malaysia, 12. Ireland, 13. United Kingdom: Scotland, 14. Netherlands, 15. South Korea, 16. Ukraine, 17. Belgium, 18. Australia, 19. Japan, 20. New Zealand, 21. Austria, 22. Norway, 23. India, 24. Italy, 25. Taiwan, 26. Denmark, 27. Hungary, 28. Greece, 29. Canada, 30. Switzerland, 31. Slovenia, 32. Poland, 33. Finland, 34. Sweden, 35. Latvia, 36. Lithuania, 37. Cyprus, 38. Malta, 39. Estonia, 40. Czech Republic, 41. Iceland, 42. South Africa, 43. Spain, 44. Portugal, 45. Luxembourg, 46. Argentina, 47. Romania, 48. Thailand, 49. Bulgaria, 50. Brazil, 51. Mexico, 52. Philippines




  • Somebody in London is stopped and searched every three minutes, and while the number of arrests says nothing about the actual threat, so the number of arrests can hardly be used to calculate a "success rate": The Metropolitan Police used section 44 of the Terrorism Act more than 170,000 times in 2008 to stop people in London. [..] Of all the stops last year, only 65 led to arrests for terror offences, a success rate of just 0.035%.




  • New and worse secrecy and immunity claims from the Obama DOJ, Kevin Bankston of the Electronic Frontier Foundation, in an interview with Keith Olbermann: The Obama administration is embracing the same aggressive secrecy arguments that the Bush administration did, and is going them one better, by arguing this incredible immunity argument. By saying that despite the many laws that we have that are meant to restrict the government from wiretapping us or accessing our communications records without warrants, that the US government is immune from any lawsuit for violating those statutes, and essentially eviscerating the privacy rights of millions of ordinary Americans.




  • British cops identify 200 schoolchildren as potential terrorist: 200 children in the UK, some as young as 13, have had files opened on them by the British anti-terror cops as potential terrorists -- even though they have committed no crimes. The children were reported to the anti-terror squad by their teachers on the basis of school work, journals and conversations that, in the teachers' view, indicated that the children were susceptible to extremist beliefs. The programme is only 18 months old and has already identified 200 children who should be treated as terrorism suspects. At this rate, every child in Britain should be on the watch list by, what, 2018?




filesystems - Find out which process is locking a file or folder in Windows


How can I find out which process is locking a file or folder in Windows?


For instance, when trying to delete a folder, Windows reports this:



The action can't be completed because the folder is open in another program



Happens the same with a file, but how do I find out what program or application is currently using it and preventing me from deleting the file or folder?



Answer



PowerShell method:


IF((Test-Path -Path $FileOrFolderPath) -eq $false) {
Write-Warning "File or directory does not exist."
}
Else {
$LockingProcess = CMD /C "openfiles /query /fo table | find /I ""$FileOrFolderPath"""
Write-Host $LockingProcess
}

The openfiles command needs to have support for local files enabled, by running openfiles /local on and restarting.


More details How to find out which process is locking a file or folder in Windows


linux - How to cut video files by frame


Does anyone know of a software that could be installed/compiled for linux that is able to cut video by the frame? Thanks.



Answer



ffmpeg can do it. If the video codec is inter-coded and you want precise frame accuracy, you'll have to re-encode the video. If you need to not re-encode the video, then ffmpeg will cut from the nearest GOP boundary before the specified cut point.


Cut and stream-copy:


ffmpeg -i input -ss T -t D -c copy -fflags +genpts output

-ss T specifies the starting point expressed as timecode in the format of S+[.m...] e.g. 24 or 65.22 or [HH:]MM:SS[.m...] e.g. 02:34:11.644


-t D specifies the duration in the same format.


This won't be frame accurate if the start point isn't at a GOP boundary.


Cut and re-encode:


ffmpeg -i input -ss T -t D -fflags +genpts output

Same as above, but this will be frame-accurate.


If you need to specify in and out points by frame numbers:


ffmpeg -i input -vf trim=start_frame=n:end_frame=m -af atrim=start=s:end=t -fflags +genpts output

n and m are the frame numbers of the video in and out points. s and t are the timecodes for the corresponding audio.


The codecs chosen for the re-encoded videos will be according to whichever defaults ffmpeg has set for the output container e.g. H.264 and AAC for MP4.


display - How far from the computer screen is it recommended to sit?


I would like to know if there is any recommendations about how far from the computer screen it is good (healthy) to sit when I work in front of the computer long days. In an ergonomic perspective.



Answer



This page which turned up on a search for "ideal distance from computer monitor" states:



viewing distance - the monitor should be at a comfortable horizontal distance for viewing, which usually is around an arms length (sit back in your chair and raise your arm and your fingers should touch the screen). At this distance you should be able to see the viewing area of the monitor without making head movements. If text looks too small then either use a larger font or magnify the screen image in the software rather than sitting closer to the monitor.



Which isn't definitive, but does raise the good point about adjusting the screen resolution and/or font sizes rather than moving closer to (or further from) the screen.


linux - Is there yet a solution that affords collaboration with two users, two cursors, one monitor?

I am looking for a solution that is similar in some ways to multiseat, but with one important difference:


I want two (or perhaps n) users to be able to sit at the same monitor, sharing the same desktop environment, but be able to use their own keyboard and mouse, with their own cursor.


The basic use case is that I want my wife and I to be able to collaborate, mostly working on our own things, but occasionally directly collaborating. I want to be able to say, "hey, do you think this is right?" ...and for her to be able to jump over with her cursor, making corrections or copying-and-pasting.


Ideally, I want this to be a linux environment.


It seems that X11 provides for this possibility with a configuration called "Multi-pointer X," or "MPX." Here's the article about it on the X-wiki.


However, I'm surprised to find that, apparently, this solution hasn't been implemented by any window managers, at least in a documented way. Instead, they seem regard "the user" as owning all HIDs, and all working on a single cursor and focal point.


Here's a SuperUser question that contains an answer, but it is unsatisfying as it does not allow keyboard input to different window at the same time.


Since the architecture of GNU / Linux / X11 doesn't seem to preclude this configuration, so I'm surprised to see that it hasn't come of age, as it strikes me as of great use in a number of cases, personal and professional.


Or am I wrong and there's something right in front of me? :-)

remote control - Possible to continue runas /u:domainadmin cmd with followup commands in the new CMD window?


Is it possible to continue runas /u:domain\admin command with followup commands in a new CMD.EXE window?


I tried this but it didn't work: Runas different user to launch CMD and run command


What I want is to run msra /offerra using CMD.EXE, however I need to first run CMD as another user with admin privileges using runas as shown above.



Answer



Those instructions were wrong and have been fixed. Here's the usage for runas:


RUNAS USAGE:

RUNAS [ [/noprofile | /profile] [/env] [/savecred | /netonly] ]
/user: program

RUNAS [ [/noprofile | /profile] [/env] [/savecred] ]
/smartcard [/user:] program

RUNAS /trustlevel: program

Notice that in all three variations, you can specify only a program to be run, nothing else. They mean it: You cannot specify any arguments to the program as separate words. Any arguments must be embedded into the "program" string with surrounding quotes.


Also not made clear is that runas will not pass the current directories; it always starts in C:\Windows\System32. So any program you specify must either be in a PATH directory or given as a full path. You cannot use a relative path. And of course, any ACLs on that executable or the directories on its path must allow access by the user you'd like to run it as.


The good news is that runas will accept a .cmd file as a "program".


As a practical matter, what this means is that to do what you want, you'll probably want to create a .cmd file in a directory both users can access, then pass the full path. For example:


runas /u:Fred "C:\Users\Public\foo.cmd"

The final wrinkle is that runas can start a program as another user, but it can't elevate. There's no way to cause it to generate the UAC prompt. If you'd like to run something "as administrator" using runas, you'll have to enable the builtin Administrator account, which always runs elevated anyway, and specify that user name.


If that's not going to work for you and you need a generalized ability to pass arguments and/or current directories or if you need to run something elevated as something other than Administrator, you'll need a genuine su, like this one.


microsoft office - How to get multi-row sort/filtering headers in excel


I have a spreadsheet which uses 2 rows for header information. Filtering by selecting a column is implicitly assuming only 1 row of header information. Sorting has a header row checkbox but that only toggles treating the first row as a header.


Is there a way to make Excel treat the first two rows as headers?



Answer



No. Omit the first row from your range when you auto filter. This way the auto filter buttons appear only on your bottom header row and the data gets filtered. I expect that right now your second header row is getting pulled into your 'data'.


You can't select a single cell and have excel figure this out. You have to select the range of cells you want excel to include.


Why is gzip slow despite CPU and hard drive performance not being maxed out?


I have some JSON files, 20 GB each, that I want to compress with gzip:


gzip file1.json

This takes up one full CPU core, all fine.


It processes around 25 MB/s (checked in atop), my hard drive can read 125 MB/s and I have 3 free processor cores, so I expect to get a speed-up when compressing multiple files in parallel. So I run in other terminals:


gzip file2.json
gzip file3.json
gzip file4.json

Surprisingly, my throughput does not increase; CPU is around 25% on each core, and my HD still only reads at 25 MB/s.


Why and how to address it?



Answer



I found it out:


The reason is that gzip operates on (in terms of CPU speed vs HD seek speed these days) extremely low buffer sizes.


It reads a few KB from from the input file, compresses it, and flushes it to the output file. Given the fact that this requires a hard drive seek, only a few operations can be done per seconds.


The reason my performance did not scale is because already one gzip was seeking like crazy.




I worked around this by using the unix buffer utility:


buffer -s 100000 -m 10000000 -p 100 < file1.json | gzip > file1.json.gz

By buffering a lot of input before sending it to gzip, the number of small seeks can be dramatically reduced. The options:



  • -s and -m are to specify the size of the buffer (I believe it is in KB, but not sure)

  • -p 100 makes sure that the data is only passed to gzip once the buffer is 100% filled


Running four of these in parallel, I could get 4 * 25 MB/s throughput, as expected.




I still wonder why gzip doesn't allow to increase the buffer size - this way, it is pretty useless if run on a spinning disk.


EDIT: I tried out a few more compression programs behaviour:



  • bzip2 only processes 2 MB/s due to its stronger / more CPU intensive compression

  • lzop seems to allow larger buffers: 70 MB/s per core, and 2 cores can max out my HD without over-seeking


windows - Copy filenames from one folder to another



I have 2 folders with a lot of files.


First folder has image files with filenames:


0_01_23_982__0_01_26_692.jpeg 
0_01_26_985__0_01_29_987.jpeg
0_02_15_992__0_02_19_995.jpeg
etc.

Second folder has text files with filenames:


Untitled.FR12 - 0001.txt
Untitled.FR12 - 0002.txt
Untitled.FR12 - 0003.txt
etc.

Could anyone tell me, please, how can I copy filenames from first folder and rename files in second folder with them:


0_01_23_982__0_01_26_692.txt
0_01_26_985__0_01_29_987.txt
0_02_15_992__0_02_19_995.txt
etc.

Answer



Problem solved!
Here is the solution:


1) Create list with filenames from first folder (run in command window):


dir /b > output.txt

2) Open Rename Master program and switch to Textfile tab.
3) Press Run Text file Wizard.
4) Press button Next.
5) On Step 1 select output.txt file and press Next button.
6) On Step 2 press Next button.
7) On Step 3 press Next button.
8) On Step 4 select Replace entire filename option and press Next button.
9) On Final Step 4 press Finish button.
10) Press + icon and select Remove Beginning/Ending.
11) Set number of your old extention characters (5 for .jpeg)
12) In first drop-down list select Name's.
13) In second drop-down list select Ending.
14) Press button Rename.


That's All!


dell D520 vs D820 - need recommendation


i can receive from my work one of these: Dell D520 or Dell D820


same procesor, same memory, same HD


in D820 the screen 15.4 in D520 15


D820 weigh more


please advice me



Answer



My advice is get a D520 and an LCD monitor for the screen. My experience as that the more portable laptop is the more I like it, and the problem of a small screen is solver when you're at your desk by plugging in to a 19" LCD.


worksheet function - Why does =-x^2+x for x=3 in Excel result in 12 instead of -6?


Suppose my cell A1 in an Excel spreadsheet holds the number 3. If I enter the formula


= - A1^2 + A1

in A2, then A2 shows the number 12, when it should show -6 (or -9+3)


Why is that? How can I prevent this misleading behaviour?



Answer



Short answer


To solve this problem, just add a 0 before the equal sign


= 0 - A1^2 + A1

or add a couple of parenthesis to force the standard order of operations


= - (A1^2) + A1

or replace the minus sign by its common interpretation of multiplication by -1


= -1 * A1^2 + A1

In this particular case, where you have the extra term +A1, the best solution is that proposed by @lioness99a:


= A1 - A1^2

Detailed explanation


Under Excel's conventions,


= - 3^2

equals (-3)^2 = 9, while


= 0-3^2

equals 0-9 = -9.


Why adding just a 0 changes the result?


Not preceded by a minuend, the minus sign in -3^2 is considered a negation operator, which is a unary operator (with only one argument) that changes the sign of the number (or expression) that follows. However, the minus sign in 0-3^2 is a subtraction operator, which is a binary operator that subtracts what follows - from what precedes -. According to Excel's conventions, the exponentiation operator ^ is computed after the negation operator and before the subtraction operator. See "Calculation operators and precedence in Excel", section "The order in which Excel performs operations in formulas".


The standard mathematical convention is that the exponentiation is computed before both negation and subtraction or, more simply stated, ^ is computed before -. Shamefully, Excel chose different conventions from those of algebra rules, school textbooks, academic writing, scientific calculators, Lotus 1-2-3, Mathematica, Maple, computations oriented languages like Fortran or Matlab, MS Works, and... VBA (the language used to write Excel's macros). Unfortunately, Calc from LibreOffice and Google Sheets follow the same convention for compatibility with Excel. However, placing an expression in Google's search box or bar give excellent results. If you press enter, the order of computations will be given by using parentheses. A discussion where a mathematician kills the arguments of a "computer scientist" defending the precedence of negation over exponenciation: http://mathforum.org/library/drmath/view/69058.html


General Workarounds


If you want to compute


- Anything ^ 2,

add a 0 before the equal sign


0 - Anything ^ 2

or add a couple of parenthesis to force the standard order of operations


- ( Anything ^ 2 )

or replace the minus sign by its common interpretation of multiplication by -1


-1 * Anything ^ 2

Of the alternatives above, I prefer adding a 0 before de minus sign because it is the most practical. If the expression is already surrounded by parentheses, I avoid adding parentheses. Heavy use of parentheses makes expressions harder to read, debug and write.


If an extra term is added (or subtracted without the even-power problem),


- Anything ^ 2 + ExtraTerm,

the best solution is to place the ExtraTerm first,


ExtraTerm - Anything ^ 2.

A comment to another answer says that the only case you have to be aware of the the non-standard precedence rule is where a minus sign follows an equal sign (=-). However, there are other examples, like =exp(-x^2) or =(-2^2=2^2), where there isn't a minuend before the minus sign.


Thanks to @BruceWayne for proposing a short answer, which I wrote at the beginning.


You may be interested in According to Excel, 4^3^2 = (4^3)^2. Is this really the standard mathematical convention?


boot - Odd hardware problem that requires a power cycle


I've been having an odd problem intermittently every several weeks with my Windows 7 PC. If I put it to sleep, occasionally, when I try to wake it up, the monitor will receive no signal.


It seems that it is not waking properly because when it does, the fans spin up to full speed briefly but then return to a quiet idle. In these cases, the fans will continue on full blast indefinitely until the machine is powered off. If the machine is booted up again after this, it will display the same behavior every time it boots. If a key is pressed on the keyboard, the Num Lock light will flash briefly.


The only way to solve this problem has been to unplug the power cable from the PC for a few seconds and then start it back up. Then, it just boots as if it were waking from sleep! (Displays "Resuming Windows" and starts up with all my previously open programs running.)


I can't figure out what's causing this, but I figure it must be a hardware problem with the PC, because I've tried swapping video inputs, powering the monitor on and off at various points before, during, and after booting, and unplugging the PC is consistently the only thing that fixes it. Might have something to do with long uptimes because this seems to occur after a long time without restarting.


System:


Acer Aspire ASE700-UQ660A (Specs should be all factory defaults except:)
4 GB RAM
Nvidia GeForce 8600 GT with driver version 197.45


Windows 7 Professional 64 bit  



Answer



You might try to Disable Hybrid Sleep Mode in Windows Vista (is same for Win7).


Apart from this, the only advice possible is (in order of destructiveness) :



  • Fully patch the computer using Windows Updates including optional ones (especially pertaining to hardware drivers)

  • Update all possible drivers from the manufacturer's website (and especially the video)

  • Try turning off all antivirus and firewall programs and see if the problem persists

  • Examine all installed programs for doubtful cases

  • Run "sfc /scannow"

  • Reinstall Windows

  • Verify the hardware by a professional


windows 7 - How do I find the hex values that I need to use to hide a drive letter?


In this thread How to hide drive for specific users in Windows 7? it talks about how you can hide drive letters for specific users. I am trying to follow Nathan Hinkle's answer but I am stuck. I need to find 3 hex values that I need to use for 3 different users in the registry.


I need to know the hex values that I must use for:


USER 1: Disabling Drive N, leave every other drive alone


USER 2: Disabling Drive M, leave every other drive alone


USER 3: Disabling Drive N & M, leave every other drive alone


I know this is probably very simple but I just don't understand how to get the values. So please can someone respond with the 3 hex values I need? Also if you feel like you need to do a short tutorial (for future reference) on how you got those exact values then please feel free to do so.


Please refer to the thread link above to know how I need the hex values to look.



Answer




I know this is probably very simple but I just don't understand …



I feel your pain.  I would offer my opinion that the reason why you don’t understand nhinkle’s answer to that other question is because it doesn’t exactly make any sense.  I found this explanation at Microsoft TechNet, which says, in effect:



Take this template:


  **** **ZY  XWVU TSRQ  PONM LKJI  HGFE DCBA


Write ones below the drive letters that you want to hide.  Write zeros below the *s and the drive letters that you don’t want to hide.  You should now have 32 1s and 0s.  Convert to hex.



I’ll assume that you are asking about drives N: and M:, rather than N and M.  To hide drive N:, you would have


    **** **ZY  XWVU TSRQ  PONM LKJI  HGFE DCBA
0000 0000 0000 0000 0010 0000 0000 0000

which gives you 00002000 (i.e., 2000 hex).  By the same method, M: is 1000, and “User 3” (N: and M:) is 3000.


macos - How can I clean up my MacPorts installation?


Which command should I run to



  • delete all old port versions

  • delete downloaded files

  • temp files created during build

  • all other stuff which I don't need when I am sure that updated version works fine


I got a suggestion to use


port clean --all all

but it tries to clean ports I don't have, though I tried


port clean --all installed

but it did not delete old inactive versions, then


port -u uninstall

but it got stuck saying that py25-nose (which is active) depends on py25-setuptools (which is inactive).



Answer



The suggestions you received cover what you're after:


sudo port -f clean --all all
sudo port -f uninstall inactive

If you can't wait for the clean one to run in the background, there are a few commands you can run manually and faster.


Remove leftover build files (this is done automatically by default):


sudo rm -rf /opt/local/var/macports/build/*

Remove download files:


sudo rm -rf /opt/local/var/macports/distfiles/*

Remove archives (these aren't created by default):


sudo rm -rf /opt/local/var/macports/packages/*

Saturday, 27 January 2018

Windows 7 Copy File dialog keyboard accelerators


In Windows XP, when copying/overwriting multiple files, you could press Alt + A to copy/replace all. XP


These keyboard shortcuts don't seem to be available in Windows 7. I have to press Alt + D then Tab, Tab, Tab, Space to get the same effect with the keyboard. Win7


Does anyone know of a keyboard shortcut to press the giant "buttons" on these dialogs?



Answer



After thinking about it some more, I realized I could accomplish this with AutoHotkey.


Save the following into a script and run it with AutoHotkey. The key combination is Alt + A. It simulates pressing Alt + D, Tab, Tab, Tab, Space when a window titled "Copy File" is active.


NOTE: The IfWinActive function matches partial titles, so if you have this running and the title of the window has "Copy File" in the title, AutoHotkey will send the keys to that window as well.


;alt + a ... do replace all on select file dialog
#IfWinActive Copy File
!a::
SendInput !d
SendInput {Tab}
SendInput {Tab}
SendInput {Tab}
SendInput {Space}
return

windows - Live screen annotation?

I'm in need of some software that will allow me to make annotations on the screen to ease the frustration of using a piece of low-quality software to verify some data. I've tried a few programs out, but so far none of them have one essential feature: I must be able to switch between the annotation software and the program without losing the annotations that I've previously made. Every program so far has cleared my annotations when I switch out and then back in to it.


Running Windows XP.

unix - Pause all but x CPU-intensive tasks


I've got about 50 folders of data to process, and I've got a ruby script that processes a folder's files (which folder it processes is based on a .yml configuration file). And a computer with four CPUs in it.


I'd like to be able to start up the 50 processes, but have only 4 of them actively running at any time, and have the other 46 paused. Once one of the processes finishes, I'd like one of the paused processes to become un-paused, until all 50 are completed. That way, I can do


./super_script.rb > folder_1_log.txt
*edit config.yml*
./super_script.rb > folder_2_log.txt
*edit config.yml*
...

And focus on something else until the processing's done.


Is it possible to do this? Are there some terms for what I'm wanting that I can google?


(Another alternative would be to make super_script capable of multi-threading - maybe I'm a scaredy-cat for not taking that approach)


(The operating system is Ubuntu Linux, and most of the CPU time isn't taken up by super_script.rb, but by other ruby programs it calls via system())



Answer



Here's a bash script that looks as if it does something close to what you want to do -- it starts up a number of processes in parallel but makes sure that no more than n are ever running at the same time.


On the other hand, if what you're doing is disk-bound, rather than CPU-bound (I'm asking because you say you've got "50 folders of data to process"), then you may actually be better off running all of your processes serially to avoid contention for the disk between the processes.


imagemagick - How can I deskew and crop PDFs made from scanned pages *automatically*?


Possible Duplicate:
Which free software can I use to deskew scanned images



I have several PDFs made up of book pages' scans. The scans are made from two pages at a time and some of these scans are skewed, making text appear slightly tilted.


I'm looking for a tool that could allow me to do an automatic optimization by deskewing the scans without losing readability. I've found the GPL software Briss to crop the scans in order to have a 1:1 page ratio instead of 2:1, but I don't have any tool to deskew the pages.


I stumbled upon unpaper, another open source tool that seems perfect for what I want to do, but that tool is Linux only and it doesn't work on PDF files directly.


Any hint is appreciated.

windows 10 - UAC keeps resetting on Windows10


I have a Windows10 Enterprise machine on which I want to disable UAC completely in order to execute all applications as Administrator per default.
However, my UAC settings keep resetting every time after a reboot.


I tried the following solutions:



  • Setting the following values in the registry hive HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System:

    • EnableLUA to 0

    • ConsentPromptBehaviorAdmin to 0



  • I even made myself the effective owner of the registry hive above and denied every other user (incl. SYSTEM) to modify it.

  • Setting the following group policies:

    • Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options\Behavior of the elevation prompt for adminsitrators in Admin Approval Mode to Elevate without promting

    • Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options\Run all administrators in Admin Approval Mode to Disabled

    • There is an other setting somewhere around Computer Configuration\Administrative Templates\System\ ??? which disables the automatic overriding of Group Policy Settings.



  • Reinstalling a fresh copy of Windows10

  • Writing a script in C# executed on every boot which sets all these settings for me - it did not work as not even Admin Privileges apparently are high enough to change these settings...


None of the above solutions --including the Windows re-installation-- helped resolving the problem.


I am aware that Windows10 has trouble running the WindowsStore and MSEdge etc. when one has UAC completely disabled - but I do not care as I do not use any of these "features".


Does anyone have a solution which I have maybe not yet tried?




As a developer, this drives me completely nuts.




Edit:
Completely disable UAC in Windows 10 is not a duplicate of my question, as I have tested all the proposed solutions in the linked question and they did not work for me (as specified above).



Answer



The bug seems to have gone away in the Windows10 build 1803 / 17134.523.


I will close this question although this is technically not a valid answer to my question.


Where does Skype save my contact&#39;s avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...