Programming :: Code Committed In Repository Does Not Work (Next Day)
Jan 3, 2011
It has happened with me before too! Few months back while working on Priority queue in C language, I successfully compiled the code and it gave the desired outputs, I showed the running code to my other seniors and committed it to the repository at 21:00 (I was in the office till late night), next day my boss asked to show the running code, and it didn't work!!! I updated from the repository whatever I had committed but still nothing worked? And then on this Saturday, my boss fixed a bug and committed to the repository and asked me to checkout which I did today morning, and when I ran the code it didn't work?
View 7 Replies
ADVERTISEMENT
Nov 8, 2010
Put simply, the following code compiles, but does not work, and I have no clue why (despite reading extensively about rand()). In the interest of full disclosure, this is for a school project.
Code:
/*
* Dice.c
[code]....
View 4 Replies
View Related
Jan 10, 2010
/* compile this program by "gcc -o syncLinux syncLinux.c -lpthread" command on Linux*/
/* and then run it using "./syncLinux -i<#of iteration>" */
#include <stdio.h>
[code]....
View 1 Replies
View Related
Mar 7, 2010
I have tried numerous versions of �Hello World½ examples over the web to display the text on a web page. All the examples work on my local machine in the application viewer, but they donït work when from a web browser. I have tried both Firefox and IE.Some of them include:[URL]
Code:
java.lang.reflect.InvocationTargetException
at com.sun.deploy.util.DeployAWTUtil.invokeAndWait(Unknown Source)
[code]...
View 14 Replies
View Related
Sep 25, 2010
I try to fetch links from a URL using HTML::LinkExtor, but it always return 0 links even if the status code is 200 OK. I am running the following code in Ubuntu 9.04, just curious if the module is too old and its ways of HTTP request is disabled by some platforms.
Code:
#!/usr/bin/perl
use HTML::LinkExtor;
[code]...
View 2 Replies
View Related
Aug 23, 2010
I got a legacy server, and through munin I notice that periodically commited memory keep on increasing. The chart looks like a spiky sine graph, but every cycle it increase both max and minimum. After few days it will go over my physical memory it will keep on growing until the machine crash... Usually I reset the memory by rebooting the machine which is not a solution at all. Is there any way to know what process(es) that took the committed memory? Is there any way to release the committed memory without rebooting the machine? Is there any way to cure my machine from this disease? as an information, I'm using CENTOS 5.5 i686, AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ this is what I get from /proc/meminfo
MemTotal: 3499776 kB
CommitLimit: 10023760 kB
currently
Committed_AS: 3972804 kB
which is bigger than my MemTotal
View 11 Replies
View Related
Mar 30, 2011
I need to rewrite the selenium java code into its equivalent php code.
View 5 Replies
View Related
Feb 18, 2011
We have documents on multiple workstations and want to collate them into a single repository to provide text search and download. So far we have implemented rsync to copy files from each workstation under a directory for each workstation on a server (incidentally providing a backup) and have set up text search using Xapian with Omega; users access it via a web browser. Still to do is to set up a system to copy files from each workstation's area on the server to the repository.
Many files are duplicated. In these cases we want to preserve the names but keep a single copy of the file;hard links can be used for that.For each file to be copied from a workstation's area into the collated area we need to check whether it is a duplicate (file size and, if same, MD5 sum) and if so, create a hard link to the original rather than create a copy.A system to detect and replace duplicates in the collated area has been written using ruby and postgresql but the developer cannot commit to continuing this work. It does mean we have a postgresql database populated with "fingerprints" of files in the collated area.My first priority is to get the system working; in the longer term whatever is developed must be maintainable; I do not yet know which language skills are available locally.
I am fluent in bash and competent with awk. Ruby looks nice but I have started to learn python and do think it prudent to learn both at the same time. Python's postgresql capabilities are not settled but may be fine for the simple usage required.What to do? A bash solution would run very slowly but could be developed quickly. Language knowledge aside, I have found it difficult to install ruby on the server (CentOS 5.5;installed rvm but "gem" still not installed; seems a very complex system with its own package management).
View 7 Replies
View Related
Aug 25, 2010
My hardware platform is an old laptop built on an ATI motherboard and chips. It has 1.9G of RAM and 80G Hd. After months of trying distros here and there I have settled on Ubuntu 6.06 Dapper drake because it has a built-in module for my ATI Radeon 200m, it uses the hardware good enough without necessarily setting some Grub-time parameters like noapic, noapci, etc.
But the LTS is already expired and I can no longer Synaptic for the applications that I am in dire need of. I have even tried to compile backward WinehQ 0.9.9 but it did not make, requiring me to update libs and gcc, which, aside from being over-engrossing I have no luxury of time for that. Also recent softwares are built upon newer kernels which Dapper cannot cope with.Is there a way to obtain a DVD containing all the software compatible to Dapper that I can use offline and include it in the source.list paths?
Or, is there an online repository STILL available today, canonical or not, that provides a key so that I can still apt-get or synaptic to it?Is there a work around that I can do of for my purpose?I have spent two days already thinking about and tinkering but the result of my labor is unsatisfactory
View 3 Replies
View Related
May 2, 2010
I was trying to install packages from the Kubuntu CD to get the Broadcom driver installed but when it tried to load any of the packages on the CD it said they couldn't be found. I ultimately ended up copying the packages from the CD and installing the packages and their dependencies by hand through the console.
View 2 Replies
View Related
Sep 30, 2010
I've installed a fresh Ubuntu 10.04 in a new dev machine and have been trying to update the package list only to be frustrated. After the install, I went to terminal and did:
Code:
sudo apt-get update
with this result:
Code:
rbsadmin@daredevil:/var/log$ sudo apt-get update
[sudo] password for rbsadmin:
Err [URL]
Unknown date format [IP: 91.189.88.40 80] ....
View 2 Replies
View Related
Dec 22, 2010
I'm involved in a project of porting Android to the Vodafone 360 Samsung H1!
compile all the work done in the Gitorious repository!
[URL]
View 1 Replies
View Related
Jun 6, 2011
I am working on a project with a lot of vector math and I'd like to find a way to speed it up.eading about SSE, but I've found no explanation on how to actually use it in code (was looking for some kind of hello-world example, complete with compilation instructions).Does the gcc compiler automatically make use of SSE, if you add the -sse(2,3) option on the command line? Or are their specific functions/libraries you need to call?
View 12 Replies
View Related
Jun 18, 2011
I have been using Linux for a number of years, and I am reasonably adept at installing, updating, using, and fixing problems in it. I am currently using Fedora 15 as I like the "bleeding-edge" stuff, but I have finally come far enough that I want to learn about writing and manipulating source code. I am trying to teach myself c++ and have all the necessary compilers librarys etc.
View 2 Replies
View Related
Jun 3, 2011
I installed Ubuntu Server 8.10, 9.04, 10.04, until I discovered that the packages of these versions to upgrade and install graphics settings are not available, then install the current version is 11.04 and there I found that repositories responded and set me right. Then the repositories of previous versions are not available? When I install the current version on all packages that I need to back packs and save it for if I need it later.
How do I get the packages and put together a repository itself if others were dashed this is still operating, and maintenance would be needed?
View 9 Replies
View Related
Apr 27, 2011
I wanted to create my own folder called /Softwares so that whenever i download a rpm i could place it there , run createrepo and then use yum install software_name.What am i doing wrong am i doing something wrong in the .repo file? The only way i could actually install sskype.rpm is to go in the directory where it was installed and type yum install sskype.But then whats the point of the repository.
View 1 Replies
View Related
May 23, 2011
Is there, by chance, a fancy name to describe code that must be in a program but will never be executed? In one of my (Haskell) programs, I have some error-handling code that must be in the program to keep the compiler happy (due to the type checking). However I know that, due to the logical structure of the program, it is impossible for the code to be evaluated. I am curious if there is a technical name given to code that must exist but cannot be executed.
View 6 Replies
View Related
Jan 14, 2011
I went to compile some "oldish" glx code. The code compiles great but when I go to run it I get a crash. With X Error of failed request: BadMatch (in .....running ddd causes my whole system to lock up when I call the glx function XOpenDisplay. After a few attempts I thought I'd download a demo from the net, I choose nehe opengl tutorial 2, I compiled and ran but even on a net tutorial I get the same error
./lesson02
XF86VidModeExtension-Version 2.2
Got Doublebuffered Visual!
[code]....
View 1 Replies
View Related
Jul 20, 2011
I have the following code:
Code:
#!/bin/bash
function dx {
[Code].....
So essentially, it finds dx files, sorts them by numbers at the beginning, then performs the dx function I made (loops over all of the #-protein.dx and #-water.dx files).
It works fine when I'm running it on Ubuntu 11.04. However, when I try to run it on OSX, I get the following error:
Code:
mh320m01:DA_R02 janickij$ ./MOD_Loop_Tuber_Script.sh
find: illegal option -- t
find: illegal option -- y
[Code]....
View 9 Replies
View Related
Jan 5, 2010
I work as a linux sysadmin, and are now and then developing scripts that might be of use for others. I'd like to be able to share these, and for less trivial projects maybe create a central repository or something that others may upload updates/patches to etc.
View 10 Replies
View Related
Apr 10, 2010
I have a little test program consisting of a NASM source file and a C source file.How do I turn them into a single program?
Code:
section .data
msg db 'Hello, World!', 10
[code]....
View 14 Replies
View Related
Feb 23, 2011
whichever source code I go through I find these three lines of code written what do they actually mean and what is their function?
[code]...
View 6 Replies
View Related
Oct 2, 2009
How to get the Autocomplete work for HTML code with geany IDE?
View 1 Replies
View Related
Aug 12, 2010
i installed F13 at work in VirtualBox to test Fedora features in order to have a web server under Linux. while playing aroung i run the yum command : yum info kernel and i got the following message:
Quote:
Loaded plugins: presto, refresh-packagekit
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
i've search on internet and after googling a lot, i tried several solution like:
- uncomment all baseurl and commenting mirrorlist
- disable networkManager
- add http_proxy in yum.conf
however, nothing works internet works well the proof is that i'm writting this thread thanks to F13 :-)
View 3 Replies
View Related
Sep 10, 2011
I seldom use my Labtec webcam but used to add the community repository and add gspca driver to make it work.I saw today that this repo only now have libv4l in it , is this enough to replace gspca driver? And if so is there and easy way to install it ? (apart from taking it on it's site : home ) (also i saw that qc-usb can be used for some models
View 5 Replies
View Related
Sep 23, 2010
I read that xinetd listens on the service port and passes incoming traffic to the service (ftpd) via stdin. However, the ftpd source code reads its input from a socket not from stdin.
Am I to conclude that in order to be managed by xinetd, the source code for ftpd (or telnetd etc..) must be modified or recompiled to take its input from stdin??
View 1 Replies
View Related
Apr 28, 2011
I'm using a hp dualprocessor athlon 11 g42-415dx notebook pc and my wireless wont work i put the passcode in wicd program and it says bad password. So i tried the pin code on the wireless router and that didnt work so am i doing something wrong or is there something wrong with the hardware? i got the wired connection to work but cant get wireless its a little more complex.
View 1 Replies
View Related
Feb 16, 2011
I want to write a c program with some shell scripts.Now For a simple C program. I am Setting a variable called val2 in bash, now I want to use bash variable val2 in C code. How do I do that?The above doesn't work (coz its spawning a different memory space and when shell script ends the variable dies with it as per my research but how do I keep them in same memory space)Also Is there any Good reference where they teach how to integrate C and Bash Together?
View 5 Replies
View Related
Mar 23, 2011
Can you find an alternative for Code: wc -l using grep?
View 1 Replies
View Related
Mar 28, 2011
Looking for code to add 5 numbers in assembly? I want to use array for input of those 5 numbers. No problem if the output is 1 digit(0....9).
View 3 Replies
View Related