42 Topics

Member Avatar for
Member Avatar for happygeek

[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 …

Member Avatar for expertmagician
0
824
Member Avatar for cwarn23

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 …

Member Avatar for Schol-R-LEA
0
377
Member Avatar for eburlea

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 …

Member Avatar for eburlea
0
639
Member Avatar for Raisefamous

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. …

Member Avatar for tinstaafl
0
296
Member Avatar for gbarnas

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 …

Member Avatar for JorgeM
0
199
Member Avatar for HankReardon
Member Avatar for stultuske
-2
154
Member Avatar for happygeek

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 …

Member Avatar for dij_0983
4
554
Member Avatar for vampshay

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 …

Member Avatar for vampshay
0
453
Member Avatar for mkab

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 …

0
155
Member Avatar for shrikant_77

[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 …

0
160
Member Avatar for etm9413

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 …

Member Avatar for Aia
0
186
Member Avatar for deliezer

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 …

Member Avatar for deliezer
0
2K
Member Avatar for Voidz

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 …

Member Avatar for TrustyTony
0
1K
Member Avatar for echocoder

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 …

Member Avatar for thekashyap
0
297
Member Avatar for sarfrazashfaq

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 …

Member Avatar for BearofNH
0
2K
Member Avatar for happygeek

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 …

Member Avatar for Energy Saver
0
508
Member Avatar for Pinchanzee

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 …

Member Avatar for Pinchanzee
0
330
Member Avatar for TrustyTony

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 …

0
132
Member Avatar for phummon

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 …

Member Avatar for mitrmkar
0
267
Member Avatar for nerdthon123

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 …

Member Avatar for Ancient Dragon
0
133
Member Avatar for 333kyle333

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 …

Member Avatar for 333kyle333
0
172
Member Avatar for happygeek

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 …

Member Avatar for lapunluyang
1
444
Member Avatar for CatRambo

[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 …

Member Avatar for middleorder
0
493
Member Avatar for newsguy

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 …

0
204
Member Avatar for chen12m

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 * …

Member Avatar for chen12m
0
252
Member Avatar for QuantumMechanic

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 …

Member Avatar for QuantumMechanic
0
1K
Member Avatar for lastlight

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 …

Member Avatar for lastlight
0
409
Member Avatar for happygeek

[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 …

Member Avatar for Mike_M
0
352
Member Avatar for lonestar23

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 for lonestar23
0
166
Member Avatar for digikid

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 for FlamingClaw
0
171

The End.