Hi, As the title states... I am deleting a 'subject' from a 'classroom' I view classrooms, then can click on a classroom to view the subject for that classroom. So the link where I am viewing subjects looks like:
viewsubjects.php?classroom=23
When the user selects the delete button (in a row) to remove a subject from a class, I simply want the…
I need to take an array that looks something like ...
array( 11 => "fistVal", 19 => "secondVal", 120=> "thirdVal", 200 =>"fourthVal");
and convert it to...
array( 0 => "fistVal", 1 => "secondVal", 2=> "thirdVal", 3 =>"fourthVal");
This is what I came up with -
function compressArray($array){
if(count($array){
…
Hi,
I am a bit new to reusable plugins for jquery. I have ran across this code several times and can't figure out exactly what is going on.
(function( $ ){
...
})( jQuery );
Can any one enlighten me?
I am using a Dictionary to store data, and will be caching it. I would like to avoid server memory issues, and have good performance by limiting the size of the Dictionary<, either in size or number of entries.
What is the best method of doing this? Is there another class I should be considering other than a Dictionary?
I am trying to get my PCI Wireless Atheros 922 card to work. It is disabled in Unity: both the network utility and the desktop (see screenshot http://www.amisdurailhalanzy.be/Screenshot%20from%202012-10-25%2013:19:54.png)
I tried many different advises on many different forums. Installed 12.10 instead of 12.04, enabled all interfaces... etc. I…
Ubuntu 12.04 host – Virtualbox 4.1.12 Guest=Windows 7 – Network will not connect.
I'm using Ubuntu 12.04 on an Acer Aspire 5742-7645 laptop with 4GB memory, Intel Core i3 processor, Intel HD Graphics, DVD drive, 802.1 b/g/n, and 500 GB HD.
I connect to my router via a wireless connection.
I have installed Virutalbox 4.1.12 from the Ubuntu…
I recently installed a fresh Ubuntu 12.04 LTS on a desktop, and the installation itself was successful (other than 'grub rescue' issue that I encountered but fixed) but this connection problem is really giving me a headache.
Symptoms:
1. When I open the FireFox browser and try to connect to a website, it just hangs for a while saying…
I am working on a function that will give me a Kermit CRC value from a HEX string. I have a piece of code in DELPHI. I am a .NET developer and need the code in C#.
function CRC_16(cadena : string):word;
var
valuehex : word;
i: integer;
CRC : word;
Begin
CRC := 0;
for i := 1 to length(cadena) do
begin
valuehex…
Hi all,
How we can define JS function on inside ? I tried to load file javascript on the end tag , but I still can't call the function from javascript file.
Here the FBML tag
<fb:serverfbml>
<script type="text/fbml">
<fb:fbml>
<a href="#" id="this" onclick="do_colors(this); return false">Hello…
Recently I am trying to measure the effect of the cpu scaling. Is it accurate if I use this clock to measure it?
template<std::intmax_t clock_freq>
struct rdtsc_clock {
typedef unsigned long long rep;
typedef std::ratio<1, clock_freq> period;
typedef std::chrono::duration<rep,…
I recently setup a linux box running Ubuntu 8.04 (to match another server with 8.04). I need to insure that this box has a static IP address and I changed /etc/network/interfaces to set up the static IP address and when I run sudo /etc/init.d/networking restart it works fine for a while, but always reverts back to…
I'm trying to setup vpnc on Ubuntu. When I run vpnc, my resolv.conf file does not get changed. It still only contains my ISP's name servers:
#@VPNC_GENERATED@ -- this file is generated by vpnc
# and will be overwritten by vpnc
# as long as the above mark is intact
nameserver 65.32.5.111
nameserver 65.32.5.112
…
So here's my problem: I have some netbooks (ASUS eee, and ACER Aspire Ones) that I've been tasked to set up as kiosk machines, locked up tight
for normal users.
I am a command-line, server man, so this gnome malarkey is all a bit new to me.
I found a lovely 9.04 kiosk livecd that installs and runs exactly as I…
Hi,
I've just installed an Ubuntu server 9.10 on an EEEBox. This is my /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
auto wlan0 iface wlan0 inet static
address 192.168.48.16
netmask 255.255.248.0
wireless-essid mynet
auto eth0
iface eth0 inet static
address…
I have got two NICs configured on a VM - each is tied to a specific network, one is a DMZ, the other is an internal network.
I want MySQL to listen on the internal network only and Apache on the DMZ listening for HTTP and HTTPS. But as soon as I add the second interface I run into trouble. I can hit HTTP…
Some version info:
Operating system is Ubuntu 11.10, on EC2, kernel is 3.0.0-16-virtual and the application info is:
Version: 8.3.11 (api:88)
GIT-hash: 0de839cee13a4160eed6037c4bddd066645e23c5 build by buildd@allspice, 2011-07-05 19:51:07
Getting some strange errors in dmesg (seen below) as well,…
I'm running a backported KVM on a Debian Squeeze. ATM the KVM-Guest can't connect to the internet through the bridge I have set up. The guests can reach each other, the host but nothing outside. I can neither ping, nslookup or do anything to a remote address. The guest are configured to have a static…
I've just installed an Ubuntu server 9.10 on an EEEBox. This is my /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
auto wlan0 iface wlan0 inet static
address 192.168.48.16
netmask 255.255.248.0
wireless-essid mynet
auto eth0
iface eth0 inet static…
So here's my problem: I have some netbooks (ASUS eee, and ACER Aspire Ones) that I've been tasked to set up as kiosk machines, locked up tight
for normal users.
I am a command-line, server man, so this gnome malarkey is all a bit new to me.
I found a lovely 9.04 kiosk livecd that installs and…
I just installed Ubuntu 9.04 on a brand new Acer Extensa 5635Z laptop, but ethernet networking does't work (wireless doesn't work either, but I'd be happy with ethernet for now).
eth0 isn't listed in /etc/network/interfaces:
$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
…
I'm trying to configure two web servers for a load balancing server. The load balancing aspect works fine (it sees both server, kills 'em if it needs to, and seems to direct traffic fine). The only issue is with the servers looping:
/etc/sysconfig/network-scripts/ifcfg-lo:0
DEVICE=lo:0…