Tuesday, 1 October 2013

Can abstract nonsense be helpful here?

Can abstract nonsense be helpful here?

Here a question for those among you, who teach homotopics/Algebraic
Topology at University. I encountered some questions that were quite easy
to solve in category hTop instead of Top (example 1, example 2). In my
answers I said that familiarity with categories was necessary to
understand. Can answers like that really be helpful to the student? If not
then I should stop with it. The student must be central in my thinking
when I answer a question. It must be not be a way just to expose my
knowledge (my flesh is weak).
You know the best what is helpful for your students. So I ask you.

what is the best way to keep updated more than 75 windows servers?

what is the best way to keep updated more than 75 windows servers?

After virtualising our server infraestructure, in the last two years the
number of windows servers has grown from aprox. 20 to 75, mainly by
migrating every service of our corporation to his own vm, but we also are
deploying new applications that require one or more servers.
In the old times, keeping windows updated take me only 1 hour to do this
(boring) task, but now it's coming really time-consuming and also
error-prone (too many servers ,some of them are clusters or nbl, and
others have services that depends in other servers, that expect the other
server is online when it's restarted, so you can't reboot all at one
time).
Our workflow is the following:
1- Someone aproves in WSUS the updates of the month after little testing.
2- One time every month, on Friday evening, when almost isn't anyone
working, I start the boring task of log in every server, wuauclt
/detectnow, click to download updates, click to install, reboot (keeping
in mind what other servers are rebooting at the moment), log in again,
check if is any pending update after reboot, etc etc.
I searched in internet and I didn't find anything that can help me in this
task, I tried to make a c# app that manage all of this without manually
login every server, but wuapi.dll is unable to download/install in remote.
So, I think this has to be a common problem, what other people do? As you
can expect, we can't leave updates to install automatically or reboot when
automatic updates want.

Monday, 30 September 2013

How to specify the SSL port with command line curl?

How to specify the SSL port with command line curl?

I'm trying to test the SSL connexion on one of my servers. The server is
behind a LB so it's listening for SSL connexions on the port 8090.
I have use the --resolve option to test when talking to the LB which
listens on port 443.
curl --resolve 'myservice.com:443:1.1.1.1' 'https://myservice.com'
but when I do:
curl --resolve 'myservice.com:8090:2.2.2.2' 'https://myservice.com:8090'
curl simply ignores the port and goes with 443. Of-course, this causes the
DNS cache to miss and I end-up using the public DNS IP...
* Added myservice.com:8090:2.2.2.2 to DNS cache
* About to connect() to myservice.com port 443 (#0)
* Trying 3.3.3.3...
* Connected to myservice.com (3.3.3.3) port 443 (#0)
How can I force curl to use the port 8090 for an SSL connexion?
Thanks.

$m ( \{ x : f(x) > 0 \} ) = 0 \implies f = 0 $ almost everywhere

$m ( \{ x : f(x) > 0 \} ) = 0 \implies f = 0 $ almost everywhere

Suppose $f$ is non-negative measurable function. Put $E = \{ x : f(x) > 0
\} $.
Say $m(E) = 0$. In other words, $E$ is null set. Then does it follow that
$f = 0 $ almost everywhere ?

App crashes when switching between fragments - both have a GoogleMap

App crashes when switching between fragments - both have a GoogleMap

I managed to make it work, but when I switch the fragments the app crashes.
another thing that I want, Is to make the fragment show exactly in the
state the user left it.
What I mean is that I don't want to make a new instance of the fragment
every single time the user clicks the button that switches to it.
the FragmentActivity:
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
public class Fragments extends FragmentActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_fragments);
Add fragment = new Add();
FragmentTransaction transaction = getSupportFragmentManager()
.beginTransaction();
transaction.add(R.id.fragment_place, fragment);
transaction.commit();
}
public void onSelectFragment(View view) {
Fragment newFragment;
if (view == findViewById(R.id.add)) {
newFragment = new Add();
} else if (view == findViewById(R.id.map)) {
newFragment = new MainActivity();
} else {
newFragment = new Add();
}
FragmentTransaction transaction = getSupportFragmentManager()
.beginTransaction();
transaction.replace(R.id.fragment_place, newFragment);
transaction.addToBackStack(null);
transaction.commit();
}
}
The Logcat:
09-30 18:41:09.918: W/dalvikvm(18931): threadid=1: thread exiting with
uncaught exception (group=0x40ed5300)
09-30 18:41:09.968: E/AndroidRuntime(18931): FATAL EXCEPTION: main
09-30 18:41:09.968: E/AndroidRuntime(18931):
android.view.InflateException: Binary XML file line #255: Error inflating
class fragment
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.view.LayoutInflater.inflate(LayoutInflater.java:489)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.view.LayoutInflater.inflate(LayoutInflater.java:396)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
com.example.free.Add.onCreateView(Add.java:141)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.support.v4.app.Fragment.performCreateView(Fragment.java:1478)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:927)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1460)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:440)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.os.Handler.handleCallback(Handler.java:615)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.os.Handler.dispatchMessage(Handler.java:92)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.os.Looper.loop(Looper.java:137)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.app.ActivityThread.main(ActivityThread.java:4931)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
java.lang.reflect.Method.invokeNative(Native Method)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
java.lang.reflect.Method.invoke(Method.java:511)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
dalvik.system.NativeStart.main(Native Method)
09-30 18:41:09.968: E/AndroidRuntime(18931): Caused by:
java.lang.IllegalArgumentException: Binary XML file line #255: Duplicate
id 0x7f07001d, tag null, or parent id 0x0 with another fragment for
com.google.android.gms.maps.SupportMapFragment
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:290)
09-30 18:41:09.968: E/AndroidRuntime(18931): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:676)
09-30 18:41:09.968: E/AndroidRuntime(18931): ... 21 more
What's the problem here?

Javascript using xml in ckeditor

Javascript using xml in ckeditor

xml file: Common glossary sense would*7*having students read and write
blogs,suggest that the abundance of digital texts
My cursor points sense would7. 1) i want to take the length of para from
starting point(common) to sense would7. 2)i also have to take next paras
content and append to the previous onehaving students read and write
blogs,
Like This: Common glossary sense would7 having students read and write
blogs,suggest that the abundance of digital texts

Sunday, 29 September 2013

Centering navmenu within a div

Centering navmenu within a div

I have a drop down nav menu that I need to be centered within a div but
text-align: center isn't working for me.
The site is at http://www.joekellywebdesign.com/churchsample1/index.html
<div id="navmenudiv">
`<ul id="navmenu">`
`<li><a href="index.html">Home</a></li>`
`<li><a href="about.html">About Us</a>`
`<ul class="sub1">`
`<li><a href="introduction.html">Introduction</a></li>`
` <li><a href="whoweare.html">Who We Are</a></li>`
`<li><a href="staff.html">Staff</a></li>`
`</ul>`
`</li>`
`<li><a href="services.html">Services</a>`
`<ul class="sub1">`
`<li><a href="sundaymorning.html">Sunday
Morning</a></li>`
`<li><a href="sundayevening.html">Sunday
Evening</a></li>`
`<li><a href="wednesday.html">Wednesday Evening</a></li>`
`</ul> `
`</li>`
`<li><a href="resources.html">Resources</a></li>`
`<li><a href="contact.html">Contact Us</a></li>`
`<li><a href="news.html">News and Events</a></li>`
`</ul>`
`</div>`
The css is at http://www.joekellywebdesign.com/churchsample1/css/styles.css
navmenudiv {
z-index:60;
margin: -30px 0;
height:50px;
background-color:#5340BF;
top:40;position:
relative;
text-align:center;
}