Ubuntu Multimedia :: XDisplayHeightMM() Return Unexpected Value?
Aug 4, 2011
I'm using XDisplayHeightMM function from X11/Xlib.h, on one machine and it returns 203,while another machines returns 41351.why the second machine returns such a bigger value? does it have to do with the configuration?
View 1 Replies
ADVERTISEMENT
Nov 8, 2010
I am trying to build an array with the column headers and the data like so:
PHP Code:
function query($query) {
$data = array();
$q = "$query";
$this->log->message("Manual query [$q], returning columns...");
$result = @mysqli_query($this->dbc, $q);
$this->selected_rows = mysqli_num_rows($result);
while($meta = mysqli_fetch_field($result)) {
while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
echo "meta [{$meta->name}]"; $data[$meta->name][] = $row[$meta->name]; } }
echo "DATA ["; print_r($data); echo "] <br />";
return $data; }
So I can select the data from the array like so:
PHP Code:
echo $data[col_name][row_num];
However when I dump the array I dont get the data I am expecting:
Code:
running select * from users:
meta [company_name]meta [company_name]
DATA [Array ( [company_name] => Array ( [0] => My company [1] => My details ) ) ]
View 6 Replies
View Related
Oct 4, 2015
This issue is similar to thread [URL] .... and it goes like this:
Eterm can be started either from the menu or from the command line, but it returns no prompt. It just hangs there, displaying a backdrop within the terminal, pressing <Enter> just moves the block cursor down and other input keys appear normally in the terminal, there is just no response or interpretation from the shell.
It seems that for some reason the shell (bash in my case) just does not interact with Eterm application.
One more point is that if the Eterm is terminated by the Close (X) Button, it seems to go in some kind of loop and needs to be killed from the command line (killall Eterm), whereas SIGINT (<Ctrl>+<C> inside the Eterm window) exits properly with no leftover zombies.
View 5 Replies
View Related
Oct 16, 2010
I'd like to edit a few frames from some videos, and then return them to the video stream for playback. What are the best tools to do this with?
I tried exporting a frame with Kino, editing with GIMP, and then re-inserting it into Kino, but Kino rejected the attempt.
Will Kino do this, or do I need to be using something else?
View 3 Replies
View Related
Sep 26, 2010
I took my Dell Netbook and built some kind of networkstorage around it, with an external USB-HDD.
So far everything is working as expected, the only hassle is that the netbook tends to go to sleep unexpected, for example while playing music, running streamripper or downloading a linux distro.
I couln't find any hints in the syslog or the PM logs what is causing the system to go to sleep.
View 9 Replies
View Related
Apr 13, 2010
I'm having problems logging on to ICQ. This is the error I get:
Received unexpected response from [URL] : useTLS=1 is not allowed for non secure requests.
My pidgin seems to be the latest one. The only thing I have changed is I have upgraded to 64 bit OS.
View 3 Replies
View Related
Aug 27, 2010
One reason I left Windows behind, particularly with a 3GB a month download limit, was that Linux generally only downloads files when you expect it to. Having the cap on downloads I run Netmeter in Wine. Now if like today I see a large unexpected download (pic) which is even in red to increase the paranoia, how can I find out what it is preferably while it is happening? It does not seem to be an email with attachment (I run Thunderbird); Nothing in Downloads, and as far as I knew application updates only happen after confirming permission in update manager?
View 6 Replies
View Related
Oct 15, 2010
We are testing Ubuntu as the base for our products, we create custom Karmic installations (debootstrap + some extra packages) and then deploy our software, these systems can start in two different modes: "normal" and "read-only". We must say the system works quite well, but after some time, several systems are showing a common error: they don't start or fail showing an unexpected inconsistency for one of the partitions (every system has one hard disk with four partitions), the message refers to an unexpected inconsistency. When this error appears, a recovery console is started and I can run fsck and answer "yes" to its recommendations, after this the system runs again without errors. The problem is that this error can appear again at a random time and we need to avoid this "manual fixing" process, I've searched the web and found some references to a bug? in an early Karmic version: [URL]
Besides ALSA 1.0.23, we use only standard Karmic tools (all from the official repositories), we are running the latest kernel update available for Karmic, and don't know whether this inconsistency is caused by our software or by the system itself, or maybe because of incorrect shutdown?
At the moment, I'm setting a new test system using Lucid. Does anybody know if this is a "common" error in Karmic?
View 3 Replies
View Related
Feb 14, 2010
I had created a tar ball of my home folder. But after formatting the system when I tried to untar it, it is showing the following error:
Code:
How to somehow recover my home folder!
View 3 Replies
View Related
May 14, 2011
I'm trying to make a fresh install on my desktop computer and I got this error on boot:
Code:
udevd-work[155]: '/sbin/modprobe -bv pci:<followed by some numbers>'
unexpected exit with status 0x0009 and it stuck there.
Note that I'm trying to install from a usb stick.
View 9 Replies
View Related
May 23, 2011
I am facing the following error while running the newly installed software ZEKR. I have already installed the latest version of Java.
java.lang.UnsatisfiedLinkError: no pulse-java in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1681)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
[code].....
View 3 Replies
View Related
Jan 27, 2010
From last few days i am getting some log messages in /var/log/messages. The log is .... unexpected rcode (SERVFAIL) from master 192.168.110.8#53 I am not sure what is it.
View 8 Replies
View Related
May 18, 2011
I'm trying to edit the bash_profile but I'm getting this error."/.bash_profile: line 46: syntax error: unexpected end of the file"Here is my bash_profile.
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
[code]....
View 3 Replies
View Related
Sep 8, 2010
while doing socket/network programming, i am getting SSH-2.0-openssh4.7 error, instead of showing day time of server.general description i have Linux Box, with the help of putty i am connecting from windows system to Linux box,no problem in loging,after typing program, i am running the program with gcc. when typing ./a.out, it is showing SSH-2.0-openssh4.7, actually it should display daytime from linux box in both tcp and udp.
View 1 Replies
View Related
Mar 1, 2010
I just upgraded from jaunty and somewhere in the process (or just after, I'm no longer sure just when it started) I started getting this error whenever I try to install or upgrade a package. Some of my software isn't working properly - some won't even load - so I'm not sure if the installations are actually succeeding, or not. But apt-get install -f shows nothing but a list of stuff I need to autoremove (mostly dev files). This particular message is the output of the details tab in synaptic, but I've gotten the same thing in terminal from apt-get. Quote:
dpkg-deb: --control /var/cache/apt/archives/dpkg-awk_1.0.3_all.deb /var/lib/dpkg/tmp.ci
Selecting previously deselected package dpkg-awk.
(Reading database ... 415515 files and directories currently installed.)
[code]....
View 3 Replies
View Related
May 16, 2010
I install nfs-common,nfs-kernel-serverNow I can not use
PHP Code:
# home 192.168.1.10(ro,no_root_squash)
I get
Quote:
bash: syntax error near unexpected token `('
when I want to share a folder
View 2 Replies
View Related
Sep 17, 2009
1 Choose install to free space on HD where Lenny was the only other OS. No windows this unit.
2. Progressed through disk one and 2 and at end of 2 when no question was asked concerning MBR I knew I had lost dual boot.
3. Fedora booted and I thought the first thing I will do is contact forum and see if I can correct these shortcomings. No internet access in Fedora and that was due I am sure to a choice at setup I did not realize.
4. So I put gparted live CD in, deleted that partition, rebooted to a black screen with word grub flashing cursor and sorry I forgot the text.
5. Went back with gparted to look over the partition and all I could see was the boot flaf was gone (If I remember right that is not a necessity as long as there is /. But I went to flags checked it again rebooted same screen. Obviously Fedora did something to MBR?
6. Deleted Lenny, reinstalled and here I am so someone satisfy my curious nature.
View 2 Replies
View Related
Apr 15, 2010
when i try to update f12 it said there is and unexpected internal problem:
Code:
Error Type: <class 'yum.Errors.RepoError'>
Error Value: Error getting repository data for installed, repository not found
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3125, in <module>
[code].....
View 1 Replies
View Related
Jun 8, 2011
RHEL 5.4. I'm facing the following error after rebooting the server:
/dev/VolGroup01/u04: UNEXPECTED INCONSISTENCY Run fsck Manually"
*** An error occurred during the file system check.
*** Dropping you to a shell: the system wil reboot
*** when you leave the shell.
give the root password for maintenance:
-Previously I performed a lvreduce command on a LV, after the lvreduce, I reboot the server.
-After login as root I run:
e2fsck -f /dev/VolGroup01/u04
But, it shows:
The filesystem size (according to the superblock) is 5218304 blocks
The physical size of the device is 1310720 blocks ...
either the superblock or the partition table is likely to be corrupt
abort<y>? no
pass 1: cheking inodes, blocks, and sizes
error reading block 1310722 (invalid argument) while doing inode scan
inore error <y>? y
-Additionally, trying to lvdisplay, it shows:
Locking type -1 initialization failed
I have no important data on that LV, but I can not boot the server properly.
View 4 Replies
View Related
May 4, 2010
find /opt/postfix/mail/email.com/~spam/~quarantine/ ( -iname * -o -iname .* ) ! -type p -exec grep -i -c admin@email.com {}; -xdev -print
When I do this command I receive this error message:
-bash: syntax error near unexpected token `('
View 2 Replies
View Related
Dec 1, 2010
I wrote a script to start portal.
Its start portal (not a problem)
Only getting following message:
This is the else before second logic
View 32 Replies
View Related
Aug 12, 2010
Code:
$ ls -l
-rw-r--r-- 1 username vuser 35553 Aug 9 18:15 note.20100809_1815.sql
[code]....
View 3 Replies
View Related
May 14, 2010
Can't install linux on PC. Get the massage "Starting udev... udevd-work[137]: 'sbinblkid -o udev -p/dev/tmp-blo k-7:14' unexpected exit with status 0x000b.
View 3 Replies
View Related
Jun 7, 2010
I sorted a large mailing list and the result is in almost sorted order, but not quite.The sort was invoked in the default manner, just "sort".See (below) a segment of the output file.(Note: the actual files have a street address following each name.I have omitted the addresses to avoid complaints about disclosing personal information on-line.) I expect all people named KATZ to be grouped together, but they aren't. This phenomenon occurs elsewhere in the output file, so it has nothing to do with surnames beginning with the character string KATZ.
View 5 Replies
View Related
Jun 28, 2011
I'm trying to install the Sun Java plugin to use in Chrome. The installation seems to have gone well, but I have hit an error trying to create a symbolic link of the libnpjp2.so library in the plugins directory of Chrome.
When typing in "in -s /opt/java/jre1.6.0_26/lib/i386/libnpjp2.so" I get "Syntax error near unexpected token `in' ". I'm not sure what could be wrong, I'm in the right directory.
View 2 Replies
View Related
Apr 30, 2011
For some reason we have some network storage not mounted properly after an unexpected restart (ie OS or memory issue) and the subsequent reboot. Has anyone come across this before? It's a bit strange that certain disks are not mounted.Anyway, to detect this, can we insert an extra line into the /etc/inittab to perform post start checks. For example, I have inserted an extra line before the runlevel scripts in /etc/inittab file.
The line will call /usr/local/fstab-check.sh to perform a check on the disks mounted via /etc/fstab. Am thinking of comparing the output from the command "df" versus the content of /etc/fstab.
View 3 Replies
View Related
Feb 16, 2010
I am trying to build a script that runs on AIX, Solaris, and various flavors of Linux as well. It is very simple, or so I thought. I have the AIX and Solaris servers working well. Next I tried to get my workstation to run the script and it bombed. I am running Fedora 12 x86_64, but that isn't really important. I have various flavors of Linux. Some CentOS, RH, and even a Gentoo server. The script I have runs every hour on all servers. I can push out changes and install software with it, but the Linux WS won't run it.
Here is my script:
And here are the errors:
Is this just an issue with going between ksh and bash?
View 4 Replies
View Related
Nov 23, 2010
Now I'm porting a WIFI driver to my platform, MIPS little endian, Linux-2.6.18, uClibc environment for STB. And I'm experiencing some strange symptom. As you know, there are some kind of include files that system provides such like GCC-provided(usually in /usr/include), LIBC-includes(/usr/include), Linux-includes(${LINUX}/include/linux), ASM-includes(${LINUX}/include/asm) and so on, and there are many files resides different directories as the same name (e.g. time.h, types.h, limits.h ...) and many of them has
different contents.
I'm confusing because that some include files are read from unexpected directories.
The command line is like following. $ cross-gcc -o Target -I$(GCC_INC) -I$(LIB_INC) -I$(appl_inc) -isystem $(LINUX)/include -isystem $(LINUX)/include/linux Source.c
And some symbol means:
GCC_INC: directory for GCC include files.
LIB_INC: directory for LIBC include files.
LINUX: Linux kernel directory.
[code]....
As shown above, some include files are read from unexpected directory. This causes some severe compile errors. I've verified these by adding '-E' to the command line. How can I order GCC to read files from where I'm expect?
View 1 Replies
View Related
Mar 6, 2010
stat is (generously) giving twice the expected output:
Code:
c@CW8:/tmp$ touch foo
[code]...
View 2 Replies
View Related
Mar 9, 2011
#by executing bash file
#!/bin/sh
sed -i 's/if (IEexec || domExec) document.write('<iframe id="IdMyIframe" '+IframePropriedades+'></iframe>');//g' *.php
Output is:
line 4: syntax error near unexpected token `<'
line 4: 'sed -i 's/if (IEexec || domExec) document.write('<iframe id="IdMyIframe" '+IframePropriedades+'></iframe>');//g' *.php'
View 6 Replies
View Related