Tuesday, 1 October 2013

Mint 15 Stopped connecting to new wireless networks [on hold]

Mint 15 Stopped connecting to new wireless networks [on hold]

I know this is Ubuntu forums, but I'm not receiving any answers from the
Mint community... I am a fresh migrant from Ubuntu 12.04 to Mint 15, and I
am having a wifi problem. I have two saved networks that I connected to
within the first couple of days of having mint, but upon trying to connect
to new networks in the following days, I'm having problems. In the network
manager screen, I can click on a network all day, but it never brings up
the password prompt or anything. On the network I'm on right now, I can go
to details, then when I click settings it says "error initializing editor:
insufficient privileges." This tells me I probably chmod'd something along
the way that no longer allows me to edit my wireless networks. I have
internet on the two that are saved, and I can connect to wired networks no
problem. I'm at a loss here and have found no similar problems on google.
Here is the output of mintwifi:
[code]* I. scanning WIFI PCI devices...
-- Atheros Communications Inc. AR928X Wireless Network Adapter
(PCI-Express) (rev 01)
==> PCI ID = 168c:002a (rev 01)
-------------------------
* II. querying ndiswrapper...
-------------------------
* III. querying iwconfig...
eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11abgn ESSID:"java"
Mode:Managed Frequency:2.437 GHz Access Point: 00:18:39:4A:2A:54
Bit Rate=54 Mb/s Tx-Power=16 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=70/70 Signal level=-35 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:4 Invalid misc:283 Missed beacon:0
-------------------------
* IV. querying ifconfig...
eth0 Link encap:Ethernet HWaddr c8:0a:a9:84:af:71
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1210 errors:0 dropped:0 overruns:0 frame:0
TX packets:1210 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:253047 (253.0 KB) TX bytes:253047 (253.0 KB)
wlan0 Link encap:Ethernet HWaddr 70:f1:a1:7f:92:85
inet addr:192.168.1.107 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::72f1:a1ff:fe7f:9285/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13482 errors:0 dropped:0 overruns:0 frame:0
TX packets:12584 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12190123 (12.1 MB) TX bytes:2188578 (2.1 MB)
-------------------------
* V. querying DHCP...
[sudo] password for hollis:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service smbd reload
/etc/init.d/smbd: 58: /etc/init.d/smbd: awk: not found
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the reload(8) utility, e.g. reload smbd
RTNETLINK answers: File exists
-------------------------
* VI. querying nslookup google.com...
Server: 138.47.18.130
Address: 138.47.18.130#53
Non-authoritative answer:
Name: google.com
Address: 173.227.93.123
Name: google.com
Address: 173.227.93.84
Name: google.com
Address: 173.227.93.88
Name: google.com
Address: 173.227.93.89
Name: google.com
Address: 173.227.93.93
Name: google.com
Address: 173.227.93.94
Name: google.com
Address: 173.227.93.98
Name: google.com
Address: 173.227.93.99
Name: google.com
Address: 173.227.93.103
Name: google.com
Address: 173.227.93.104
Name: google.com
Address: 173.227.93.108
Name: google.com
Address: 173.227.93.109
Name: google.com
Address: 173.227.93.113
Name: google.com
Address: 173.227.93.114
Name: google.com
Address: 173.227.93.118
Name: google.com
Address: 173.227.93.119[/code]
I don't know if that does any good since I'm connected to java, but it's
there. Thanks for any help!

Monday, 30 September 2013

WiFi on WPA2: Can't Access Internet, Can Access LAN

WiFi on WPA2: Can't Access Internet, Can Access LAN

The WiFi in my laptop seems to be having a problem with WPA2. I can
connect to my network without issue and everything works fine for up to 5
minutes, but then I can't access the Internet. The network configuration
still thinks all is well, but I can't reach any hosts. I can, however,
reach anything inside my LAN.
Switching to my open guest network allows me full access to the internet
with no interruptions indefinitely.
lspci reports the following about my wireless adapter:
Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron]
Network Connection (rev 61)
Any suggestions?

Why was this very low quality flag declined=?iso-8859-1?Q?=3F_=96_meta.stackoverflow.com?=

Why was this very low quality flag declined? – meta.stackoverflow.com

Question: Cyrus beck line algorithm program in c or c++. I know about the
specific meaning of VLQ flags, and I can't fathom why anyone would think
that question wouldn't be a candidate for removal. …

Ball Dropping Simulation Program, simulating a random direction bounce in C? [on hold]

Ball Dropping Simulation Program, simulating a random direction bounce in
C? [on hold]

This is in C only, not C++
The entire program is supposed to ask the user how many balls to drop,
make sure that number is at least one. And then simulate dropping the
balls, and allowing them to "bounce" ten times each, and then keep track
in an array how many balls landed in each array. Each bounce allows the
ball to either go left once or right once. This is all I have so far, any
tips?
When I go to print out the final product it should look something like
this. With each 'o' representing one ball dropped in that place
-10:
-8:
-6: o
-4: ooooooooo
-2: oooooooooooooooooooooo
0: ooooooooooooooooooooooooo
2: oooooooooooooooooooooo
4: ooooooooooooo
6: ooooooo
8:
10: o
Code:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int drop_balls(int); /* Prototype for drop_Balls, int parameter is number
of balls being dropped */
int get_num_balls(int); /* Gets the number of balls that need to be
dropped by the user */
int main()
{
get_num_balls();
drop_balls(num_balls);
}
int get_num_balls()
{
printf("How many balls should be dropped? ");
scanf("%d", num_balls);
while(num_balls <= 0)
{
printf("You have to drop at least one ball! \n ")
printf("How many balls should be dropped? ");
scanf("%d", num_balls);
}
return num_balls; /* Return the number of balls that will be dropped */
}
int drop_balls(num_balls)
{
int ball_count[21]; /* Keeps track of how many balls landed where */
int ball_num = 0; /* What number ball are we on */
srand(time(NULL)); /* Seed the generator */
for(ball_num; ball_num < num_balls; ball_num++ ) /* Do the correct #
of balls */
{
int starting_point = 10; /* Start at 10 since its the middle of 21 */
for(starting_point; starting_point >=0; starting_point--) /*
Bounce each ball 10 times */
{
int number;
number = rand() % 100;
if(number > 50)
{
starting_point++;
}
else
{
starting_point--;
}
}
ball_count[starting_point] += "o"
}
int j;
for(j = 0; j < 21; j++)
{
if(ball_count[j] != 'null')
{
printf("'%d :'", ball_count[j]);
}
}
}
}

getString() method for a class which extends from LinearLayout

getString() method for a class which extends from LinearLayout

I have a class which extends from LinearLayout. I want to use a string
from string.xml . Normally I use the following code:
this.getString(R.string.xxxx);
But since my class extends from LinearLayout I can't call getString()
method. How can i access those strings which are in my string.xml from my
class?

Sunday, 29 September 2013

How to copy a certain data from multiple excel file with diffrent name into one master excel file

How to copy a certain data from multiple excel file with diffrent name
into one master excel file

I need help to compile a certain data from multiple excel file with a
different name onto one sheets (excel file located at certain location
folder). The data from each file that i want to grap :
1) B69 until E69 & I69
2) B75 until E75 & I75
And compile it into below format (summary) file: each row differentiate by
diffetrent excels file name :
Title Title Title Title Title Title Title Title Title Title B69 C69 D69
E69 I69 B75 C75 D75 E75 I75 B69 C69 D69 E69 I69 B75 C75 D75 E75 I75 B69
C69 D69 E69 I69 B75 C75 D75 E75 I75 B69 C69 D69 E69 I69 B75 C75 D75 E75
I75 B69 C69 D69 E69 I69 B75 C75 D75 E75 I75
I do this by daily basis & the data that i need to compile 100+ excel file
a day. Really hoping if some one could provide me a script to run macro on
this precedure

If total is between two numbers echo statement, else if between different set of numbers echo a different statement, etc

If total is between two numbers echo statement, else if between different
set of numbers echo a different statement, etc

I am terrible with figuring out if/else statements. I have looked at
multiple tutorials and just can't get what I'm trying to do work. I need
this: If total amount of points is less than # state that no title is
achieved If total amount is between # and # state what title that would be
If total amount is between higher # and # state what title that would be
etc.
The adding of total points works just fine but I can't figure out how to
get the correct title for the total points to show. I have included the
code for getting totalpoints as well in case it can be combined with what
I am trying to do. Any help greatly appreciated
This works just fine:
<?php
$query = "SELECT points, SUM(points) AS totalpoints FROM competition WHERE
id = $id";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)){
echo "<b>";
echo $row['totalpoints'];
echo "pts</b>";
}?>
This does not work:
<?php
$query = "SELECT points, SUM(points) AS totalpoints FROM competition WHERE
id = $id";
$result = mysql_query($query) or die(mysql_error());
while($titled = mysql_fetch_array($result)) {
if ($titled <= 999)
{echo ", not titled";}
elseif (($titled == 1000) && ($titled <= 1999))
{$titlename = ", Champion";}
elseif (($titled >= 2000) && ($titled <= 2999))
{$titlename = ", Grand Champion";}
elseif (($titled >= 3000) && ($titled <= 3999))
{$titlename = ", Honor Champion";}
elseif (($titled >= 4000) && ($titled <= 5999))
{$titlename = ", Regional Champion";}
elseif (($titled >= 6000) && ($titled <= 7999))
{$titlename = ", State Champion";}
elseif (($titled >= 8000) && ($titled <= 9999))
{$titlename = ", National Champion";}
elseif (($titled >= 10000) && ($titled <= 19999))
{$titlename = ", World Champion";}
elseif ($titled >= 20000)
{$titlename = ", Hall of Fame";}
}?>