I am trying to zip some files with an unknown file type individually. I am using the following code in a batch script to do that:
@ECHO OFF
FOR %%A IN (bestbuy*nat*component.cpi*) DO "C:\Program Files\7-Zip\7z.exe" a -mx9 -m0=lzma2:d256m "%%~nA.7z" "%%A"
The code will compress files individually ONLY if the file has an extension. Unfortunately…
I need to be able to export user name or email address (doesn't matter which), company (from the company field under the organization tab in a user account of the exchange admin console), and license type (e.g. exchange online e1, exchange online kiosk etc...)
I am able to export both values in two statements into two separate files but that…
I am using a shell and editing a file in nano (similar to pico). A short while ago, it started doing this thing where if I type:
$query = "select" * from topics where id='' ";
and then I hit Backspace and try to stick the letter 'a' into the id='' part, it changes it to:
$query = "select * from koala_topics where id='a='' ";
and the…
I use a Mac with French keyboard, and I have installed a Windows 7 as virtual machine. Now I would like to type Chinese in this Windows 7.
The normal input method for Chinese within Windows 7 allows me to input Chinese, but does not work perfectly, because it does not recognize I am using a French keyboard - it presumes I am using a…
My keyboard has been acting up from time to time. It's wireless so this may be a wireless issue.
What happens is I will be typing and then all of a sudden it seems to stop responding.
If I type out this sentence it may show up like so
If I ttennnnnnnnn it may ssssssp so
While typing that sentence I may have to mash on a key…
I have been asked to find out when a user has logged on to the system in the last week. Now the audit logs in Windows should contain all the info I need. I think if I search for Event ID 4624 (Logon Success) with a specific AD user and Logon Type 2 (Interactive Logon) that it should give me the information I need, but for the…
i am running centos 6.2
recently i noticed that apache was running with selinux enabled
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled…
I've bought a new optical drive. It's a Samsung SH-S223C with SATA connection. Since it is OEM with no box, no cable came with it, so I need two cables now. Since I have an extra SATA power cable, it's OK, but I have to buy the data cable. What type of cable should I buy? If you please give a picture of it besides its type as…
About 30% of the time, when I click on the searchbox and type in a query, it clears everything I typed half way through. For example, if I type "super user", it will clear at "super " so all I see is "user". It seems like something is stuck, but I'm not sure what. It doesn't always happen, but it seems that the…
I have a strange trouble with my Sony Vaio VPCCW21FX. My laptop has a Turkish Q keyboard and I'm using TR keyboard layout on Windows 7 x64 Home Premium. The problem is, I cannot find a usual way to type less than or greater than signs unless I switch to EN keyboard layout. These signs are showed on the keyboard…
when I try to authentication with heimdal-kdc ,I get this error in kdc log :
(enctype aes256-cts-hmac-sha1-96) error Decrypt integrity check failed for checksum type hmac-sha1-96-aes256, key type aes256-cts-hmac-sha1-96
and authentication failed!!!
but authentication with kinit is correct!!
my kerb5.conf…
I'm trying to recover a deleted file on an ext3 file system using the foremost utility. The file I want to recover is a hpp C++ source code file. However, foremost does not automatically support the hpp file extension, so I have to add it to the config file. So, following the instructions on the man page,…
I have a powerful home PC, and I've used VirtualBox to run Linux distros in Windows (and vice versa).
I'm interested in trying out a lightweight type 1 hypervisor to run all my operating systems (Windows 7, Debian, Arch) and was looking for suggestions of which to pick and how to implement this.
From what…
I need help pointing me in the right direction for setting the ContentType returned by Apache for content produced by WordPress. I'm having trouble figuring out why WordPress is returning incorrect headers.
Issue
The specific problem is that our Wordpress blog pages are being downloaded as a file rather…
I'm currently trying to connect 2 USB devices together, but both ends are typeA plugs.
Before I buy a physical extension cords with 2 typeA receptacles, I'd like to know if I can connect these 2 devices together at all by passing data "transparently" through a Linux box with = 2 USB ports.
I'm…
I've been trying to programmatically copy custom content type and its custom columns from one web to another for some time now, and I always get different errors or exceptions every time. After yet more tries, I received more strange and cryptic exception from Sharepoint after clicking onto a…
In response to the earlier SO question "Enumerate over an enum in C++", I came up with the following reusable solution that uses type-safe enum idiom. I'm just curious to see the community feedback on my solution. This solution makes use of a static array, which is populated using type-safe…
In some data entry contexts, I've seen data typists, type really fast and know so well the app they use, and have a mechanic quality in their work so that they can "type ahead", ie continue typing and "tab-bing" and "enter-ing" faster than the display updates, so that in many occasions they…
I bought a branding new Galaxy Note II and I tried to mount its storage to my ubuntu laptop.
As you know, Android 4.0+ uses MTP by default. Android 4.1 doesn't support USB Mass Storage anymore! So I have to use MTP to open my files via USB.
I followed this article to get it work.
It…
Sometimes working with the js Serializer is easy, sometimes its not. When I attempt to serialize an object that is derived from a base, the serializer decided whether or not to include the type name. When its present, the type name is represented by a ___type attribute in…
Hi,
I've got a web page with a jqGrid that uses am xmlreader to populate itself with data that is spat out by a RoR service. The page loads fine in firefox and safari. In Chrome however I get a blank grid. Only when I change the sort order by clicking on the columns does it…
Hi,
I've got a web page with a jqGrid that uses am xmlreader to populate itself with data that is spat out by a RoR service. The page loads fine in firefox and safari. In Chrome however I get a blank grid. Only when I change the sort order by clicking on the columns does it…
I'm trying to come up with an implementation for NotOfType, which has a readable call syntax. NotOfType should be the complement to OfType<T> and would consequently yield all elements that are not of type T
My goal was to implement a method which would be called just…