Supose you have something like:
x = "something"
b = x
l = [b]
How can you delete the object only having one reference, say a?
del a won't do the tric; the object is still reachable from b, for example.
I am trying to scp a file but it returns immediately with the DATE and not file is copied:
[cosmo] Downloads > scp V17530-01_1of2.zip bryan@elphaba:Downloads
bryan@elphaba's password:
Sat Apr 10 13:35:41 PDT 2010
I have never seen this before. I have confirmed that I have the sshd running on the target system and that the firewall is…
Let's say you have a parent domain:
parent.com
and children subdomains under that parent domain:
child1.com
child2.com
child3.com
Is there a way to use just the following within parent.com:
User-agent: *
Disallow: /
Considering each child has their own robots.txt stating:
User-agent: *
Allow: /
Or is the parent robots.txt still…
I am trying to scp a file but it returns immediately with the DATE and not file is copied:
[cosmo] Downloads > scp V17530-01_1of2.zip bryan@elphaba:Downloads
bryan@elphaba's password:
Sat Apr 10 13:35:41 PDT 2010
I have never seen this before. I have confirmed that I have the sshd running on the target system and that the firewall…
Hello,
I have a problem with DNS servers. My master dns server runs on Microsoft DNS server and now I want to start slave DNS server on Linux Bind9. The problems is that master MS DNS server can't validate slave DNS server (bind9) and can't resolve FQDN. Maybe, I missed something... firewall, dns configuration and network looks like ok.…
I need higher precision on a few values within my vertex and pixel shaders...I'm currently using floats, so I would like to use doubles...I've read that HLSL Model 4 has two functions to convert a double into two unsigned integers and back again( asuint() and asdouble() ). These functions are only supported on HLSL 4 and I am using…
I've used the following command to create my vm:
vmbuilder kvm ubuntu --verbose --suite=precise --flavour=virtual --arch=amd64 -o --libvirt=qemu:///system --tmpfs=- --ip=192.168.2.1 --part=/home/shared/vm1/vmbuilder.partition --templates=/home/shared/vm1/templates --user=vadmin --name=VM-Administrator --pass=vpass…
My envvar files has these lines in it:
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
My apache2.conf has these lines in it:
# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
But when I run apache2 -M I get this:
apache2: bad user name…
I'm trying to parse a .x file using SlimDX. I can create the XFile object and register templates but I'm having problems with the enumeration object. The enumeration object has a child count of 0 for a file I know to have valid data. Here is code to create file, enumeration, and data objects:
public void…
I'm working on a radiosity processor in DirectX 9. The process requires that the camera be placed at the center of a mesh face and a 'screenshot' be taken facing 5 different directions...forward...up...down...left...right...
...The problem is that when the mesh face is facing up( look vector: 0, 1, 0…
My VM has already been started via virsh start chameleon.ootbdev. When I do a virsh console chameleon.ootbdev I get the following output:
Connected to domain chameleon.ootbdev
Escape character is ^]
error: internal error cannot find character device (null)
Doing a google search on this led me to…
I'm generating light maps for scene mesh objects using DirectX's UV Atlas Tool( D3DXUVAtlasCreate() ). I've succeeded in generating an atlas, however, when I try to render the mesh object using the atlas the seams are visible on the mesh. Below are images of a lightmap generated for a cube. Here is…
I'm working on a radiosity processor. I'm projecting scene geometry onto a hemisphere at a high order of tessellation during a visibility pass onto a 1024x1024 render target. The problem is that the edges of certain triangles are not being rendered to the item buffer( render target )...so when I…
I have my computer connected to a college network, and right now files that belong to other individuals on campus are showing up under Shared in rhythmbox. This is driving me up the wall, I absolutely despise the idea that files are being thrown around on the network and that other people's s***…
I've got a simple function to get the rendertarget data of an RT( w/default pool ). This particular RT has a resolution of 1x1( it's the 10'th and final mip of a texture ). Here is my code to get data for IDirect3DSurface9 *pTargetSurface:
IDirect3DSurface9 *pSOS = NULL;…
I'm replacing test fixtures with Machinist. But using Machinist to set up test data is very slow, because whenever a test method is run some new data are made by Machinist and saved to database. Is there any way to cache the data in memory so that using Machinist isn't so…
Hi all,
I want to prevent mysql from starting in ubuntu 10.04
I have used
update-rc.d -f mysql remove
and confirmed that there is no link to the /etc/inid.d/mysql script from any of the rc?.d directories.
I also ran sysv-rc-conf and it shows me that mysql is being…
function canlink() {
echo '<link rel="canonical" href="http://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] . '" />';
}
Need one version that removes just & and everything after and another that removes ? and everything after, I've been looking for a…
function canlink() {
echo '<link rel="canonical" href="http://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] . '" />';
}
Need one version that removes just & and everything after and another that removes ? and everything after, I've been looking for a…
I have been doing some reading lately one article I read was from Opera.
http://dev.opera.com/articles/view/javascript-best-practices/
In that article they write this:
Another common situation in JavaScript
is providing a preset value for a
variable if it is…
Im having a problem with a typedef below, I can seem to get it right:
template <typename T>
struct myclass1 {
static const int member1 = T::GetSomeInt();
};
template <int I>
struct myclass2 {
typedef myclass1< myclass2<I> >…
I'm writing a custom web part that extends DataFormWebPart.
public class MyCustomWebPart : DataFormWebPart{
// other methods
public override void DataBind()
{
XmlDataSource source =
new…
I'm writing a custom web part that extends DataFormWebPart.
public class MyCustomWebPart : DataFormWebPart{
// other methods
public override void DataBind()
{
XmlDataSource source =
new…
Hello,
I have some forms that have inlined labels. I have some javascript (jQuery) that detects when focus has changed or when a user is entering text that changes the class so that the inlined label disappears and isn't blocking the user's…