In my attempt to learn (Iron)Python out in the open, here’s my solution for Project Euler Problem 11.
As always, any feedback is welcome.
# Euler 11
# http://projecteuler.net/index.php?section=problems&id=11
# What is the greatest product
# of four adjacent numbers in any direction (up, down, left,
# right, or diagonally) in…
Just a quick post I should've done yesterday but I was recovering from SQL Saturday #48 in Columbia, SC, where I went to some really excellent sessions by some very smart experts. If you have not yet attended a SQL Saturday, or its been more than 1 month since you last did, SIGN UP NOW!
While searching the OBJECT_DEFINITION() of SQL…
The pangolin has struck again. The bug of the day for today is Ubuntu taking away my permissions on my Data partition (NTFS). One moment everything worked fine, the next moment I couldn't chmod anything anymore. chown throws no errors or warnings at all, but nothing has changed either. chmod keeps saying Operation not permitted.
I've been…
In the dcoumentation I read
Format Notes For security reasons, starting with version 2.0.46, non-printable and other special characters in %r, %i and %o are
escaped using \xhh sequences, where hh stands for the hexadecimal
representation of the raw byte. Exceptions from this rule are " and \,
which are escaped by prepending a…
Is there a equivalent of this command; yum list kernel-headers --showduplicates on Ubuntu with apt-get, apt-cache etc. The above command lists various versions of the kernel-headers rpm available on F20/RHEL or installations.
Closet I can get using apt-cache showpkg, not sure if there is a better way ?
$ apt-cache showpkg…
I am working on a solitaire game in Java, and i need to implement sound when the desk is shuffled, card flipped, etc. I used the following sites as reference to try and get it to work, but i am getting Null Pointer Exceptions or mishandled URL exception (depending on what i tweak).
here
Also, i am using netbeans 6.7.1 as my…
Hi I would be very thankful if someone could help me on explaining this logwatch summary of my postfix installation on my ubuntu 10.04 vps. I dont really know if this might be a normal log file because of the many authentication failed entries and foreign IP addresses. Any advise for a novice? Thx!
****** Summary…
Hello,
I have an interesting situation.
I'm trying to us a Linux based machine to allow Mac's to Netboot (similiar to PXE boot) by running a DHCP service in parallel with the "global" DHCP server.
The local DHCP server hands out IPs in a private subnet, e.g., 10.168.0.10-10.168.254-254, while the "global" DHCP…
I am trying to setup IPSec between 2 VM launched by OpenNebula. I'm using OpenSWAN for that. This is the ipsec.conf file
config setup
oe=off
interfaces=%defaultroute
protostack=klips
conn host-to-host
left=10.141.0.135 # Local IP address
connaddrfamily=ipv4
leftrsasigkey=key
…
This might be a bit hard for me to explain - and it is a pretty individual situation.
I got a native server at Hetzner (www.hetzner.de). The public IP is 88.[...].12. I got ESXi running on this server. I can access the esxi console by the public ip, but none of the virtual machines. That's why I bought a public…
I am running debian server and i have received a strange email warning about ssh login
It says, that user mail logged in using ssh from remote address:
Environment info:
USER=mail
SSH_CLIENT=92.46.127.173 40814 22
MAIL=/var/mail/mail
HOME=/var/mail
SSH_TTY=/dev/pts/7
LOGNAME=mail
TERM=xterm…
I have a Centos 5.6 VM (Vsphere client) already responding to two different public IPs on eth0 and eth0:1 and I'm trying to add eth0:2. I copied the eth0 config file and restarted the network service.
I don't understand which other steps are needed...
ifconfig
eth0 Link encap:Ethernet…
While restoring files from a Time Machine backup, I got the error message "The operation can’t be completed because you don’t have permission to access some of the items." because of problems with files in one folder. What's the safest way to deal with this?
The folder in question has…
I created 3 virtual interfaces with different mac addresses all linked to the same physical interface. I see that they successfully arp for the gw and they can ping (the request is coming in the packet capture in wireshark). However the ping utility does not count the responses. Does…
I have a Windows NT Service in C# which basically wakes up every x seconds, checks to see if any mail notifications need to be sent out, and then goes back to sleep.
It looks something like this (the Timer class is from the System.Threading namespace):
public partial…
How to remove a special character(#) from a big file and insert that character to a particular line for example
input.tsv
$22 23 24 25 26
33 33 34 35 36
44 45 46 47 48
ID ID1 ID2 ID3 ID4
Output.tsv
22 23 24 25 26
33 33 …
I have a string (R(46 - 9900)) AND ( NOT (R(48 - 9900))) where R denotes Range . If you evaluate the expression it results in R(46-47) , considering the logical operators (AND,NOT).
I have a requirement where I need to parse such a string and evaluate it to a…
I use this mouse under archlinux x86_64 with 3.2.8-1-ARCH kernel.
I have some problems to select and then paste with the wheel-click in some applications like konversation, not in a terminal nor an editor.
I don't know if it's a hardware problem or a software…
I cant get my wifi card to work at all after upgrading to 11.10 Oneiric.
I'm not sure where to start to fix this. Ive tried using the additional drivers tool but this shows that no additional drivers are needed.
Before my upgrade I had a drivers working for…
After some partition shuffling, I've got a problem on my 11.10 system. The wired ethernet interface fails to come up, although the wireless interface is working.
I'm using NetworkManager. I thought this may be a problem with NetworkManager, so I checked the…
when i try to install or remove an application via either software center or apt-get install they both fail and give some debconf errors below is the log please help.Sorry some of the text is not english.
sudo apt-get install aptitude
Paket listeleri…
A common question since launching our Git support is whether there is a way to cache your username and password so you don’t have to enter it on every push. Well thanks to Andrew Nurse from the ASP.Net team, there is now a great solution for…
I am attempting to use ssh-agent on Ubuntu 13.10 so that I will not have to enter my passphrase to unlock a key every time I want to use ssh or git.
As you can see below, ssh-agent appears to be restarting for some reason. These commends were…