Monday, 30 September 2013

please help me to prove this exercise in modern algebra

please help me to prove this exercise in modern algebra

Suppose $W$ be a free R-module with basis $X=\{x_1,...,x_n\}$ . If $\phi:
W \rightarrow W$ is an R-module endomorphism with matrix $A$ relative to
$X$ , then the determinant of the endomorphism $\phi$ is defined to be the
determinant $|A| \in R$ and is denoted $|\phi |$. How to show $|\phi |$ is
independent of the choice of $X$?
thanks in advanced..

IBM System X M4 Series Servers Oracle Linux Support

IBM System X M4 Series Servers Oracle Linux Support

Is Oracle Linux runnable/compatible with the M4 Series of the IBM System X
Servers?
In their compatibility website, most compatible machines listed are those
from Dell and HP..there are IBM system x..but all are of older models..
(This is the link of the tested configurations/compatible machines for
Oracle Linux:
http://linux.oracle.com/pls/apex/f?p=102:1:2850003747338068:pg_R_27262430945134281:NO&pg_min_row=1&pg_max_rows=20&pg_rows_fetched=20)
We currently have no machines to test the Oracle Linux if it will work...
If you guys could confirm for me if it will work on IBM System x M4 series
that would be great and appreciated :)
This is for one of our clients who would like to run Oracle Linux on one
of their machines that they will purchase from us.

Fibonacci Rabbits with life span 2.999

Fibonacci Rabbits with life span 2.999

I need the recurrence relation for Fabonacci with Life Span = 2.999
I think it will be
f(n) = 1 where n%2 = 0 & n > 2 and f(n) = 2 where n%2 = 1 $ n > 2
Thanks

Redirect after persist Symfony2 form and Doctrine

Redirect after persist Symfony2 form and Doctrine

on an web application based on Symfony2 I'm developing a page in which I
can insert a new record on my DB. The Insert operation works properly,
anyway actually after the confirmation the datas are correctly inserted
but the web application return me on the same form that I used to insert
the data. How can I redirect the page to another route, for example to the
page that show me new inserted data?
Here the action in my Controller used to create the new record:
public function newAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
$form = $this->createForm(new AnagraficaType(), new
Anagrafiche() );
if ($request->isMethod('POST')) {
$form->bind($request);
if ($form->isValid()) {
$anagrafica = $form->getData();
$em->persist($anagrafica);
$em->flush();
}
}
return $this->render('AcmeMyBundle:Anagrafica:new.html.twig',
array('form' => $form->createView()));
}
Here the part of routing.yml used for the page to create the new record:
AcmeMyBundle_newAnag:
pattern: /anagrafica/new
defaults: { _controller: AcmeMyBundle:Anagrafica:new}
Here the part of routing.yml for the page that permit me to show detailed
a single record of my 'anagrafica' objects in DB:
AcmeMyBundle_showAnag:
pattern: /anagrafica/{id}
defaults: { _controller: AcmeMyBundle:Anagrafica:show }
requirements:
_method: GET
id: \d+
Here the action in my controller that manage the page to show detailed a
single record of my 'anagrafica' objects in DB:
public function showAction($id)
{
$em = $this->getDoctrine()->getEntityManager();
$anagrafica = $em->getRepository('AcmeMyBundle:Anagrafiche')->find($id);
if (!$anagrafica) {
throw $this->createNotFoundException('Unable to find anagrafica
post.');
}
return $this->render('AcmeMyBundle:Anagrafica:show.html.twig', array(
'anagrafica' => $anagrafica,
));
}
This is the view new.html.twig:
{% extends 'AcmeMyBundle::layout.html.twig' %}
{% block title %}{% endblock %}
{% block body %}
{{ form(form) }}
{% endblock %}
This is the Form Type:
<?php
namespace Acme\MyBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class AnagraficaType extends AbstractType
{
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(array(
'data_class' => 'Acme\MyBundle\Entity\Anagrafiche',
'cascade_validation' => true,
));
}
public function buildForm(FormBuilderInterface $builder, array
$options)
{
// Create the form
$builder->add('nome', 'text', array('label' => 'Nome: ',
'required' => false));
$builder->add('cognome', 'text', array('label' => 'Cognome: ',
'required' => false));
$builder->add('data_nascita', 'date', array('label' => 'Data
nascita: ', 'required' => false));
$builder->add('luogo_nascita', 'text', array('label' => 'Luogo
Nascita: ', 'required' => false));
$builder->add('indirizzo', 'text', array('label' =>
'Indirizzo: ', 'required' => false));
$builder->add('telefono', 'text', array('label' => 'Telefono:
', 'required' => false));
$builder->add('email', 'text', array('label' => 'Email: ',
'required' => false));
$builder->add('save', 'submit');
}
public function getName()
{
return 'anagrafica';
}
}
I need to extract the id of the new persisted record, and automatically
redirect to the /anagrafica/$id route (AcmeMyBundle_showAnag) after the
confirmation of the form.
Suggestion? Thanks.

Sunday, 29 September 2013

How to embed the latest vine videos automatically?

How to embed the latest vine videos automatically?

How do I embed the latest vine videos automatically? I know you can embed
each video alone but I want to automatically embed it so that it is not so
inconvenient to have to copy and paste the code to my website everytime. I
found a website vinalwidget.com that lets you display the latest vine
video THUMBNAILS, but not videos, using an iframe code generated from that
site. Its kind of neat and convenient but like I said, it is only
thumbnails that links to a video page. If this can be achieved, then is it
possible to do it using videos instead??

wpf textbox errortemplates in a Managed Addin Framework Addin

wpf textbox errortemplates in a Managed Addin Framework Addin

I've created a textbox style to contain a validation.errortemplate for use
in a UserControl class. If the UserControl is loaded in the normal,
non-MAF way, I can see the validation rule kicking in and getting visual
feedback (thick red border, a circular bang to the right of the textbox,
and an error message-in-a-tooltip) -- everything works the way I expect it
to.
However... if I load that same UserControl in as an AddIn, I lose the
visuals. (I do see the error tooltip behaving correctly, so I know my
validation rule is firing; I just don't see the border and bang symbol.
My AddIn, by the way, is based on MSDN's example for an
'addin-which-provides-a-usercontrol.'
I know a few of the limitations of an AddIn (e.g., video won't play in an
AddIn UserControl); is this another limitation, or am I screwing up?
Thanks in advance!

Visual Studio 2012 Update 3 - initializer list & variadic templates

Visual Studio 2012 Update 3 - initializer list & variadic templates

Recently I have installed Visual Studio 2012. After the installation I
updated my IDE with update 3 to guarantee functionality of my programs on
Windows XP.
Everything is working well, but I still can not use initializer list and
variadic templates! Do I need any extra updates to get this working with
Visual Studio 2012?