Tuesday, 1 October 2013

How can I disable USB removable devices except mouse and keyboard [on hold]

How can I disable USB removable devices except mouse and keyboard [on hold]

I am the owner of a small company (4 employees) and I have Win 7 Ultimate
on my machine. My other PCs are connected via LAN and they too have
Windows 7 on their machine. My question is, is there any way to prevent
USB storage devices. Recently I found one of the employee cheating on me
and found he is taking away some important projects which he has access
too. I'd like to prevent that.
I read some tricks about changing values in registry but those are just
tricks. Changing it's value back again would bring back the USB access. I
need some genuine way to prevent access to USB. Only me when logged in as
Administrator account should be able to access USB storage devices.

what is multiplicative group of all integers coprime with $N$ called?

what is multiplicative group of all integers coprime with $N$ called?

what is multiplicative group of all integers coprime with $N$ called?
I am not sure the tags are correct or not!

Monday, 30 September 2013

Why is there no "remainder" in multiplication

Why is there no "remainder" in multiplication

With division, you can have a remainder (such as $5/2=2$ remainder $1$).
Now my six year old son has asked me "Why is there no remainder with
multiplication"? The obvious answer is "because it wouldn't make sense" or
just "because". Somewhat I have the feeling that prime numbers are a bit
like the remainders as you can never reach them with multiplication.
Is there a good answer to the question? (Other than the trivial ones?)

How much has Magnetic North shifted in the last few years and would this affect aeronautics=?iso-8859-1?Q?=3F_=96_skeptics.stackexchange.com?=

How much has Magnetic North shifted in the last few years and would this
affect aeronautics? – skeptics.stackexchange.com

I was talking to a contractor at a major U.S. airport, a Project Manager
who told that they were moving the runways due to the shifting of
'Magnetic North'. I have heard that the poles have shifted …

Load Tweets in random places in Wordpress posts loop

Load Tweets in random places in Wordpress posts loop

I am trying to incorporate tweets in a masonry layout in random places. I
don't know how to incorporate it into a Wordpress loop without breaking
the loop though... Here is a fiddle of the code I am using (code too long
for here). For reference, here is the code for the query.
<?php
define('WP_USE_THEMES', false);
require('wp-load.php');
query_posts('cat=technology');
if ( have_posts() ) : while ( have_posts() ) : the_post();
$feat_image = wp_get_attachment_url(
get_post_thumbnail_id($post->ID) );
?>
<div class="masonryImage" style="width: 300px; height:250px;">
<img width="300" height="250" src= "<? echo $feat_image ?>" alt="<?
echo the_title(); ?>" />
</div>
<?php endwhile; endif; ?>
Any ideas how to put tweets in between posts in a Wordpress loop? Here is
an example of what I am ultimately trying to achieve.

What could be causing my app google engine cron job not to work?

What could be causing my app google engine cron job not to work?

I've the following in cron.xml on my WEB-INF directory:
?xml version="1.0" encoding="UTF-8"?>
<cronentries>
<cron>
<url>/?brtyuioacdwer</url>
<description>Load datastore</description>
<schedule>every monday 06:17</schedule>
<timezone>America/New_York</timezone>
</cron>
</cronentries>
But when the time comes to execute the shown URL nothing seems to happen
as my datastore keeps the same, of course I've tested to call the URL from
browser and it does its work nicely and I've uploaded new version of the
app several minutes before it should be automatically executing. I don't
know if there might be some problems with cron jobs when they try to write
on datastore or if they are not the default version af the web
application, so I'm asking for some guide.
Thanks for your attention.

Sunday, 29 September 2013

Building PHP soapClient array not working

Building PHP soapClient array not working

I have a successful soapClient that generates content from the following
XML sample
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<ActivityId
xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics"
CorrelationId="f62a50bd-af24-4719-acca-fcfb8770028d">ebc35110-673d-4d15-aacd-020e14a8d62b</ActivityId>
</s:Header>
<s:Body>
<GMDataResponse xmlns="http://xx.com/xx">
<GMDataResult xmlns:a="http://xx.com/xx/GMData"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:Users>
<a:MData.UserData>
<a:ProjectId>37199</a:ProjectId>
<a:Name>Hilda Smith</a:Name>
<a:Number>101</a:Number>
<a:First>Hilda</a:First>
</a:MData.UserData>
<a:MData.UserData>
<a:ProjectId>37199</a:ProjectId>
<a:Name>John Smith</a:Name>
<a:Number>102</a:Number>
<a:First>John</a:First>
</a:MData.UserData>
I use the following to build the loop and it works:
$UsersAr = is_array( $res->GMDataResult->Users )
? $res->GMDataResult->Users
: array( $res->GMDataResult->Users );
foreach ($UsersAr as $Users) {
foreach($Users as $UserSet) {
foreach($UserSet as $u) {
echo $u->Name ."<br>";
}
}
}
I try:
foreach ($UsersAr as $users) {
$user = $users->MBData.UserData;
echo $user->Name;
}
and it fails (Notice: Undefined property: stdClass::$MBData) Seems like
the period in MBData.UserData is throwing an error? I'd like the cleanest
code since this is a high volume process.