[attach=right]13756[/attach]Portable gizmos that claim to charge your cellphone or iPod on the move are two a penny these days. Solar powered portable charging gizmos are not such a common sight, it has to be said, especially if we are talking about ones that actually work. Which is why I was excited at the prospect of having a real world out in the field play with the [URL="http://www.solartechnology.co.uk"]Freeloader Pico[/URL], but at the same time bracing myself for disappointment. It's not that I am not a fan of the solar power concept for mobility, just the opposite in fact. Over the years …

Member Avatar
Member Avatar
+0 forum 2

Hi, recently I have wanted to learn how to write Windows native binary code to make a binary script which in one form or another will display hello world. I am hoping to eventually create a more efficient compiler using this method but as you should understand already, this is a rather undocumented section of programming. So basically I need to know for the gcc compiler, how did they manually set the ones and zeros in accordance to the execution environment when you need to know how the execution envirment executes binary. Like is there any docs for how windows …

Member Avatar
Member Avatar
+0 forum 3

Hello. I have created a new Zend project, created a new model class to get some data from the database. If the environment is set to 'development', the data from the database are displayed properly in the browser, but after setting the environment to 'production', the following error appears: **An error occurred** **Application error** Can anybody please help to find out the problem?

Member Avatar
Member Avatar
+0 forum 3

Hey, I want to build some form application for Windows and i have tryed usind VS2010 but because IntelliSense is disabled for C++ i'm not able to work normaly as i'm fairly new to programming and i need to see the drop out menus after i use the "->" operator. Before i was using Borland Delphi, but i would like to switch to something else like VS. Can somebody please suggest a good dev. environment for c++ to run on Windows? Thank you

Member Avatar
Member Avatar
+0 forum 10

At a client with 100+ workstations, all running a simple logon script, two workstations are experiencing a strange problem. For testing and as an example, a simplified logon script is used: net use T: \\server\public set > C:\Temp\LoginEnv.txt This works on all but the two workstations, mapping the drive and filling the text file with the environment settings. On the two problematic workstations, the NET USE command returns error **10 - The environment is invalid**, and the text file is empty. To troubleshoot further, I added a command to return a list of specific DNS SRV records, which should list …

Member Avatar
Member Avatar
+0 forum 7

compare and contrast the latest versions of eclispe, netbeans and jgrasp integrated development environments.

Member Avatar
Member Avatar
-2 forum 3

It's taken a while, but computing has finally gotten the green message. Many of the biggest IT vendors now ensure that they are being environmentally friendly in terms of the recyclablity of both components and packaging of the products they sell. But are you doing your bit once you get that kit home and plug it in? Perhaps more to the point, as well as wasting precious energy are you paying more than you need to when it comes to powering your tech? [attach]19438[/attach] The chances are that, like most of us, you could do more to help the environment …

Member Avatar
Member Avatar
+4 forum 4

How many child command could be added to a Parent command? I already have one Parent and child relationship in my data environment but when I try to add another child, the data report will not print. My problem is that I need to incorporate three tables in that data report. Hoping for a reply soon. Thanks.

Member Avatar
Member Avatar
+0 forum 2

Hello everyone. I am to program a simple shell in C for my project. So far my shell can execute simple commands and now I want to implement enviroment variables. I looked up on how to use the getenv, setenv, putenv. So far so good i've tried to use the getenv to show the shell variables... with some succes . But I have a feeling that my reasoning is flawed. I have a char** cmdArgv which contains parsed input from the user input. I now check if cmdArgv starts with the command "echo" and then if any of the following …

Member Avatar
+0 forum 0

[CODE]if(isset($_POST['listingType'])) { ini_set('magic_quotes_gpc', false); // magic quotes will only confuse things like escaping apostrophe //Get the item entered $listingType = $_POST['listingType']; $primaryCategory = $_POST['primaryCategory']; $itemTitle = $_POST['itemTitle']; if(get_magic_quotes_gpc()) { // print "stripslashes!!! <br>\n"; $itemDescription = stripslashes($_POST['itemDescription']); } else { $itemDescription = $_POST['itemDescription']; } $itemDescription = $_POST['itemDescription']; $listingDuration = $_POST['listingDuration']; $startPrice = $_POST['startPrice']; $buyItNowPrice = $_POST['buyItNowPrice']; $quantity = $_POST['quantity']; if ($listingType == 'StoresFixedPrice') { $buyItNowPrice = 0.0; // don't have BuyItNow for SIF $listingDuration = 'GTC'; } if ($listingType == 'Dutch') { $buyItNowPrice = 0.0; // don't have BuyItNow for Dutch } //SiteID must also be set in the Request's XML …

Member Avatar
+0 forum 0

Hi all, this is a quite simple question. In windows, I wan't to set an environment variable to contain a cmd prompt command that will open an explorer window from the command prompt current directory. I am aware of the >explorer <path> command and want to make use of the %cd% variable wich contains current work directory. So >explorer %cd% does the job, so I want to store it as a string in an environement variable. If I do >set e=explorer %cd%, %cd% will be replaced with its current value when the >set is performed, which is no good because …

Member Avatar
Member Avatar
+0 forum 1

Hi I am trying to write something that compiles and runs correctly on both Linux and Windows. I am running bash in Ubuntu on Linux, and I try to set environment variables in the makefile just before the compile lines. I then write something in the code like [CODE] int main() { #ifdef UBUNTU std::cout << "Ubuntu = true\n"; #else std::cout << "Ubuntu = false\n"; #endif return 0; } [/CODE] No matter what variant of this I try (#if vs. #ifdef, UBUNTU vs $UBUNTU, setting the environment variable on the command line before the make command, etc. I always get …

Member Avatar
Member Avatar
+0 forum 4

Hi DW(DaniWeb) - I hope that's the correct term, since I'm a total Python/DaniWeb noob. I [B]think[/B] Python doesn't have a RE(Runtime Environment), but Python has the option for one. [URL="http://www.python.org/download/"]http://www.python.org/download/[/URL]. So, basically what I want to know is, do you [B]have[/B] to have a RE(Runtime Environment) or anything like a RE(Runtime Environment) [B]for developing Web Application's especially[/B], or just executable application's. Thanks so much, sorry I'm a noob.

Member Avatar
Member Avatar
+0 forum 8

I am using the following string and Java code to create a user on a Linux box via Java. [CODE=java] ... String x = "/usr/sbin/useradd -g users -s /bin/bash -c 'FIRST M LAST, STERK,DIV-DIS-OFF,123-456-2913' -p 2342asdfa231rcawef09 -d /home/flast -m flast"; RunCommand(x); ... [/CODE] However, upon execution it spins a list of the usage of useradd... It has something to do with the spaces in the comment field I think. Anyone have any insight as to a solution to this problem? [CODE=java] public static String RunCommand (String cmd) { String s = null; String results = null; try { // run …

Member Avatar
Member Avatar
+0 forum 2

HI All! I am creating a Python function that should set environment variable. My simple code is [I]#!/usr/bin/python import os os.environ['FK_DBO_PASS']="12345" print "After setting Environment Variable is ",os.environ['FK_DBO_PASS'][/I] When i execute this code file in command prompt it is giving me this result [I]After setting Environment Variable is 12345[/I] But when i run this command in command prompt SET FK_DBO_PASS The result is [I]Environment variable FK_DBO_PASS not defined[/I] My code is not setting environment variable .Can some one help me how i can fix this code? and how i can set temporary environment variable through python code just for my …

Member Avatar
Member Avatar
+0 forum 5

Having returned from a pleasant family vacation where the main topic of conversation was a huge tanker being split in two by controlled explosions off the East Devon coast in England, it was nice to get back to reality and discover the nerdfest surrounding how much power could be saved globally if Google switched from a white background to a black one. Of course, this discussion has all the usual scientific merit of previous debates involving improving the audio quality of a CD by using green marker pen along the rim or leaving a window open during a hurricane will …

Member Avatar
Member Avatar
+0 forum 13

I'm looking to create a 3D environment for an escape-the-room game that I'm making with Flash. I'm hoping I'll be able to do it with the 3D features of Adobe Illustrator but am unsure. I need to be able to move the view-point angle in the pictures to take the screenshots from different perspectives. So ideally I'd like to make an entire room model which I can move the "camera" around at my will to position it [B]for taking screenshots, not for gameplay[/B]. I'll just be using importing the image screenshots into Flash, so after the game is made the …

Member Avatar
Member Avatar
+0 forum 2

I write usually many versions of the functions, sometimes writing functions from scratch again. Sometimes the parameters change from version to version, sometimes they are refering to library of functions that also has multiple versions. Has somebody advice on how to manage best this kind of situation? Should I define some tests and run them against each file to find which files are compatible with which libraries?

Member Avatar
+0 forum 0

Hi everyone, I'm a moderately experienced C coder trying to figure out the [B]execve()[/B] command. Here's the basic problem: My program takes a command from the user, loaded into the string UsrCmd. The string is tokenized and each token is loaded into ParaArray[]. Then ParaArray[] is used as arguments to call execve(). I think I also pass in the user's environment variables with envp[]. But here's the problem: If the user inputs a command without the full path to that command, execve() cannot find the associated system call and fails. It is obviously too cumbersome to ask the user to …

Member Avatar
Member Avatar
+0 forum 1

Hi Daniweb, I'm having a little problem here. I was trying to set up a path correctly (you know the one that's in the environment variables) and i messed it up. I was just wondering if anybody could tell me what should be the value for the Path under system variable, or if there needs to be anything there at all. I'm running windows 7. Thanks, ~XxNedrthon123xX~

Member Avatar
Member Avatar
+0 forum 3

I asked this before, but I have to ask again considering I still haven't found a way to do this. I need to know if there's a way to take a variable inputted into a C++ program and pass it to the terminal as an environment variable. Again, I'm running Ubuntu if it matters.

Member Avatar
Member Avatar
+0 forum 2

Despite [URL="http://www.daniweb.com/news/story292997.html"]the ongoing signal strength problems displayed by the new iPhone 4[/URL], there can be no denying that the latest Apple gadget has been a runaway success. With Apple claiming 1.7 million units sold in just the first three days it would be hard to argue. One of the not often discussed implications of that kind of sales surge is what happens to the previous model? It can now be revealed that Apple users are environmentally friendly types, you could call them green Apple users I guess. The iPhone 3G is now officially the most recycled mobile phone in the …

Member Avatar
Member Avatar
+1 forum 1

[ATTACH=right]16070[/ATTACH]A new smart phone application, Virtual Test Drive, from [URL="http://www.vevdrive.com/"]Virtual Vehicle Company (VEVco)[/URL] will allow a phone to track the user's driving patterns in order to help them improve their mileage. The application uses the phone's GPS chip in order to track factors like when a user starts and stops driving, their customary speed, and the length of the the trips they take. The application requires no manual data input from the user. When logging into the Virtual Test Drive site, the user is shown routes for previous trips with factors such as hills, acceleration points, and distance, along with …

Member Avatar
Member Avatar
+0 forum 1

Since the BP-contracted Deepwater Horizon oil rig exploded in the Gulf of Mexico on April 20th, killing 11 workers and sending tens of thousands of barrels of oil into the sea every day, the oil industry has been subject to an understandable barrage of bad press. Finding a good news story amongst all of this environmental doom and gloom is, to be fair, pretty tough. However, I think I might just have managed it courtesy of that most unlikely of environmental heroes: the data centre. It would appear that a data centre which was designed and built by Keysource for …

Member Avatar
+0 forum 0

I have to finish this project for tomorrow-so I'll Appreciate quick reply. I need to do reports in my projects. now I've created Data Environment and all that but in the SQL the only thing that work is if I select the entire table from the database. (like "select * from tbl_table" the problem is, I have one Variable that I need from another table(because it appears as a number in table1 and the name is written in table2-and I need the name. so I tried to write "select tbl2_name from tbl2 where tbl1_number=tbl2_number" well..something like that.. I got here …

Member Avatar
Member Avatar
+0 forum 3

I am hoping someone here can help me with a little bit of trouble using the execve() call. I have some code that needs to call an external script under CNL (Compute Node Linux, [I]i.e.[/I] - Cray XT4/XT5). CNL is [B]extremely[/B] lean and is missing enough libraries to make using something as common as /usr/bin/env impossible. I'm trying to use execve() to pass the arguments to the script and a custom (read stripped-down) set of environmental variables as we want very tight control over these. (Many of the paths in $PATH are not available to the file system on the …

Member Avatar
Member Avatar
+0 forum 4

Newbie problem. For some reason, I can't get this to work: [CODE] FOR /L %%A IN (1 1 23) DO ( if %%A==1 set drive=C: if %%A==2 set drive=D: if %%A==3 set drive=E: if %%A==4 set drive=F: if %%A==5 set drive=G: if %%A==6 set drive=H: if %%A==7 set drive=I: if %%A==8 set drive=J: if %%A==9 set drive=K: if %%A==10 set drive=L: if %%A==11 set drive=M: if %%A==12 set drive=N: if %%A==13 set drive=O: if %%A==14 set drive=P: if %%A==15 set drive=Q: if %%A==16 set drive=S: if %%A==17 set drive=T: if %%A==18 set drive=U: if %%A==19 set drive=V: if %%A==20 set …

Member Avatar
Member Avatar
+0 forum 2

[URL="http://www.google.co.uk"]Check it out[/URL] Google has turned the lights out and gone black, but it is only for today it seems. Apparently it is all in a good cause: Earth Hour which invites people around the world to switch off their lights for an hour during the course of Saturday 29th March. That hour is between 8pm and 9pm in whatever your local time zone is. "Given our company's commitment to environmental awareness and energy efficiency, we strongly support the Earth Hour campaign, and have darkened our homepage today to help spread awareness of what we hope will be a highly …

Member Avatar
Member Avatar
+0 forum 2

I have file 123.php which produces dynamic information upon excecution and need 123.php to copy it's output to file "abc.txt" How would I go about this in a unix environment? Thanks in Advance!

Member Avatar
Member Avatar
+0 forum 3

I use Delphi 7 and just installed Win 7, 64 bit When I try to set an environment variable, it does not get saved to the OS. In XP, these same functions would save environment variables just fine. Does anyone have any knowledge to this issue? Thanks, Joe

Member Avatar
Member Avatar
+0 forum 2

The End.