Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
30% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
8
Posts with Downvotes
6
Downvoting Members
6
0 Endorsements
Ranked #4K
~9K People Reached
Favorite Tags

47 Posted Topics

Member Avatar for shivensingh

Pretty much what debasisdas said.. You'll find msSQL's database creator easier to work with though. Oracle is usually used for mySQL and I get lost as hell in there.

Member Avatar for sathish_nadu
0
199
Member Avatar for persianprez

Hello all, I get the following error when hitting submit in my form to post to the spreadsheet: > Fatal error: Uncaught exception 'DOMException' with message 'Namespace Error' in /home/pedrum/public_html/Buzz25/Zend/Gdata/App/Base.php:220 Stack trace: #0 /home/pedrum/public_html/Buzz25/Zend/Gdata/App/Base.php(220): DOMDocument->createElementNS('http://schemas....', 'gsx:') #1 /home/pedrum/public_html/Buzz25/Zend/Gdata/Spreadsheets/Extension/Custom.php(64): Zend_Gdata_App_Base->getDOM(Object(DOMDocument), 1, NULL) #2 /home/pedrum/public_html/Buzz25/Zend/Gdata/Spreadsheets/ListEntry.php(77): Zend_Gdata_Spreadsheets_Extension_Custom->getDOM(Object(DOMDocument)) #3 /home/pedrum/public_html/Buzz25/Zend/Gdata/App/Base.php(329): Zend_Gdata_Spreadsheets_ListEntry->getDOM() #4 /home/pedrum/public_html/Buzz25/Zend/Gdata/Spreadsheets.php(336): Zend_Gdata_App_Base->saveXML() …

Member Avatar for Окна
0
227
Member Avatar for persianprez

I don't know why I cant find this anywhere online, it should be simple. I'm trying to GET event details based on the (given) event id. I'm looking for event title, description, image, etc... Does anybody know of a way to get these details with javascript? Facebook has posted this …

Member Avatar for Troy III
0
109
Member Avatar for persianprez

I made the following code to replace form fields in a page that I can't edit but only manipulate. However, the code does nothing. In chrome console when I print a variable it works fine. The code is below: //GET val from drop DROP DOWN var office_id = FieldIDs["OfficeName"];//Gets the …

Member Avatar for LastMitch
0
192
Member Avatar for Nathaniel10
Member Avatar for persianprez

So here is my current code that doesn't work for what I'm trying to do: <?php $urlp1 = "members/"; $urlp2 = 0; $urlp3 = ".html"; $url = $urlp1.$urlp2.$urlp3; $data = file_get_contents($url); ?> <script type="text/javascript"> var url = "<?php echo $url; ?>"; var temp = getElementsByClassName('daniweb'); document.write(temp); </script> <p style="margin-bottom: 50px;"></p> …

Member Avatar for AleMonteiro
0
337
Member Avatar for persianprez

Hi all, I'm new to xml and xslt. I'm trying to apply a stylesheet to my xml document but I keep getting no stylesheet available. Here is my code for my XSL document, XML, DTD, and CSS: XSL: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <style …

Member Avatar for Mike Askew
0
187
Member Avatar for persianprez

So I have a text file with sets of 4 items I want to go in different arrays. I've tried the following but without success. <?php $urls="list.txt"; $page = join("",file("$urls")); $kw = explode("|", $page); $count = 0; $links = array(); $images = array(); $widths = array(); $heights = array(); for($i=0;$i<count($kw);$i++){ …

Member Avatar for Bachu
0
182
Member Avatar for persianprez

Can someone please finish this off, i need the days to start going on the day specified [code=c] #include <iostream.h> int main() { int month;//asks for current month int days;//asks for day of start int numdays;//number of days in the month int monthstarter=1; //starts day count cout<<"Enter a month (1 …

Member Avatar for WaltP
0
260
Member Avatar for persianprez

Hey guys, I'm a noob in javascript and want to know what I'm doing wrong. What I'm trying to do basically is hava a select menu determine where my strings are to be stored. Here is what I'm doing: The code: <form id="form1" name="form1" method="post" action="push.php"> <select name="ga" id="ga" onchange="gameApp(this);"> …

Member Avatar for urtrivedi
0
291
Member Avatar for persianprez

I have a variable variable defined, suppose: $array[1] = Hello World; $i = 1; ${"name" . $i} = $array[1]; I then have the following: $val1 = "Hello World"; However when I try to compare $name1 to $val1, they are never equal. I've tried all of the following: if ($name1 == …

Member Avatar for persianprez
0
162
Member Avatar for persianprez

I have the following code: $filename = "raw_data.txt"; $fp = @fopen("$filename", 'r'); if ($fp){ $array = explode("(.)", fread($fp, filesize($filename))); } for ($i=0; $i<sizeof($array); $i++){ //name1 name2 name3 name4 } So what I want to do is initialize variables with $name and the current $i value Thanks in advance

Member Avatar for Atli
0
1K
Member Avatar for persianprez

Here is the code for my form: <form action = "index.php" method="post"> <!--the form is being submitted to the same page--> <button class="btn" name="button" onClick="submit()">Yes</button> <button class="btn btn-primary active" name="button" onClick="submit()">No</button> </form> And on the top of my index.php I have the following: <?php $refresh = $_POST['button']; ?> When I …

Member Avatar for lps
0
178
Member Avatar for persianprez

Right now I'm trying to get multiple callbacks from a single feed, however I keep getting "val parameter is undefined" Here is the code: var m,i=100,s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],b=["#","@","http","www","tweet","twit","Twit","TWIT","tweep","blog","text","follower","Follower","Text","Twee","txt",".ly","follow",".com",".COM",".net","yahoo",".org"," DM"," RT","RT:"]; var count = 0; var rand; u=function() { if (i--<1) { location.reload(); return false; } document.getElementById('w').innerHTML = "<h2><font color =\"red\">Error :(</font></h2>" ; …

Member Avatar for AleMonteiro
0
138
Member Avatar for persianprez

I dont know if this code actually exits, however I can't figure how to do it. You know how you can write javascript in a url of a website and write a command, I would like to do that except remotely. So something like this: >load website remotely (without loading …

Member Avatar for thing789
0
228
Member Avatar for persianprez

So I have a text file that has 4 items in each line. I would like to store these into an array. So this is an example of how they are stored: imgur.com | link.com | 60 | 468 Thanks in advance

Member Avatar for madCoder
0
121
Member Avatar for persianprez

So here is what I'm trying to do: I have a file with a list of ip addresses eg.(123.45.6.789:80) I have two arrays; ip and port, what I want to do is break the address and place the parts into the arrays. so 123.45.6.789 would go into the ip array …

Member Avatar for JamesCherrill
0
124
Member Avatar for showman13

if they are just images, you can try to do a float. It'll be a pain in the ass, but thats the easiest way of doing it without editing the flash file.

Member Avatar for showman13
0
91
Member Avatar for persianprez

So I have this small program that draws circles of different colors depending on "velocity" Below is my code, btw I haven't actually implemented velocity yet. When I run it, I get these"[CODE]Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException at Mouse.paintComponent(Mouse.java:35) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown …

Member Avatar for JamesCherrill
0
129
Member Avatar for jekMCMXC

do you mean a comment? whats a comment box? a text box? comment: <!-- stuff goes here and cancelled out --> text box: [CODE] <textarea name="comments" cols="40" rows="5"> Enter your comments here... </textarea> [/CODE] Google is your friend, but learn the actual names before anything else so you know what …

Member Avatar for stbuchok
0
421
Member Avatar for persianprez

I'm starting from the bottom of XML and all I want to do is display the elements of one tag. You'll understand what I mean if you look at the code. [CODE]<table> <script type="text/javascript"> if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code …

Member Avatar for niranga
0
119
Member Avatar for persianprez

I'm using the GapAppStarter (HTML5) to build a small app. I've ran into a problem though, the emulator won't parse PHP no matter what I do. Basically, I can't run any PHP through it. Whether its in the html document, in a PHP document, or if I run it through …

Member Avatar for peter_budo
0
69
Member Avatar for persianprez

So this is my assignment: Represent the concept of a Number. For this example a Number is a thing that can be added subtracted, multiplied and divided. Each of these operations is binary and produces a Number as a result. Encode the the Notion of of an Int (an integer …

Member Avatar for persianprez
0
145
Member Avatar for persianprez

Hi guys, I am in desperate need of help. I'm not exactly sure how to fix this or how to pass contentpanes correctly. Here is my code for gameboard.java: [CODE]import javax.swing.*; public class GameBoard implements ActionListener { private int[][] winSlots = new int[][] { {0, 1, 2}, {3, 4, 5}, …

Member Avatar for JamesCherrill
0
137
Member Avatar for persianprez

So, basically I'm trying to fetch part of a json feed and output just that. Example, theres a bunch of posts, comments, and an image on the post. I want to only fetch the image. I've started out with [CODE] document.getElementById('url').innerHTML= url.value; r=function(data) {url=data['results'];};[/CODE] html [CODE]<script type="text/javascript" src="http://www.com/search.json?q=word&callback=r"></script> <style type="text/css" …

Member Avatar for Pnorq
0
67
Member Avatar for persianprez

Hi guys, I just got a mac and don't have any knowledge at all about obj-c, was hoping you guys can point me in the direction of creating apps in html5. I already know how to write in html5, just wondering how to do it in the sdk. Any help …

Member Avatar for peter_budo
0
62
Member Avatar for persianprez

I'm sure this is simple but here is what I need to do: I want to change a variable within the source url. Heres an example of what I'm trying to say: [CODE]<script type="text/javascript" src="url.com?lang=en&X=word1&;"></script>[/CODE] This works fine, but I want the variable X to be elsewhere, like this: [CODE]<script …

Member Avatar for persianprez
0
343
Member Avatar for persianprez

Not really sure what a command line argument is, but here is an example question that I don't understand: "Write a program that gets 4 integers as command-line arguments, prints the values and their total." Can somebody show me how to do this? I have like 10 of these to …

Member Avatar for ultimatebuster
0
156
Member Avatar for persianprez

I was able to finish some: [CODE]def sieve( n, primes): numbers =[] # make a list of integers from 0 to n, inclusive for i in range(2, n+1): numbers.append( i ) # by definition, the first prime is 2 del(numbers[ _____________ ]) del(numbers[ _____________ ]) # while there are still …

0
56
Member Avatar for persianprez

For my extra credit, I'm supposed to generate the longest chain from 1-1000000, I wan't to know if it is correct..here is my code: the caller [CODE] start = 1 end = 1000000 longest, chain = -1, -1 #choiceX(start) for i in range((end-start)+1): if choiceX(start) > longest: longest=start chain=choiceX(start) start+=1 …

Member Avatar for persianprez
0
95
Member Avatar for persianprez

I have 3 functions working together, but I only have abundant returned every single time, I don't know what is wrong [CODE]def sumDivisors(n): total = 0 for counter in range(1, n): if (isDivisor(n, counter)): total += counter return total def checkForPerfect(n): total = sumDivisors if (total == n): return 'Perfect' …

Member Avatar for persianprez
0
204
Member Avatar for persianprez

I have something like 5 lists all containing different data. I have the user input into a list like so: [CODE]for i in range (0,completed): print 'Class: ', course = raw_input() course = course.upper() allcourses.append(course)[/CODE] now the list cmsc has as many courses in it as the user defined before …

Member Avatar for vegaseat
0
91
Member Avatar for persianprez

So for example, in the dictionary, the letter 'A' has a value of .8237 What I wan't to do is replace every letter with the value with .8237 to D in the string (not the dictionary) I've tried this without success and It's obvious why it wouldn't work: [CODE]if sorted(dictionary.values())>=.01: …

Member Avatar for Tech B
0
169
Member Avatar for persianprez

When running my code, I get a "substring not found" not entirely sure what that means..here is my code:\ [CODE]filename = open('code.txt','r').read() string = filename def decode(string): abc='ABCDEFGHIJKLMNOPQRSTUVWXYZ' n=1 result='' for rotate in string: result+=abc[(abc.index(rotate)-n)%26] n+=1 print result def main(): decode(string) main() [/CODE]

Member Avatar for persianprez
0
128
Member Avatar for persianprez

I'm trying to make the code able to post in here [url]http://spreadsheets.google.com/embeddedform?formkey=dEtSUVAtQVAtUVN1WDFPU3BEbm9yNkE6MA[/url] I've been successful in getting to read from the spreadsheet. With this code if you're wondering: [CODE] import urllib opener = urllib.FancyURLopener({}) f = opener.open("urlhere") print f.read() [/CODE]

Member Avatar for persianprez
0
172
Member Avatar for persianprez

Hey guys, I recently found out how to make .py an exe using py2exe and I also found another program called "Smart Install Maker." I bought the license and wanted to let you know if you want to send me your .py, I will package it for you for free. …

Member Avatar for snippsat
0
189
Member Avatar for persianprez

I want to use a proxy in my code. What I'm trying to do is open a list of proxies from a .txt and load them as the proxy. If I just can get the code to use proxy, I'm sure I can figure out the rest. Here is my …

Member Avatar for persianprez
0
86
Member Avatar for persianprez

I'm trying to figure this out, but every google I do just brings up garbage. What I'm trying to do is split a string at an * I want the string to be in 2 parts basically. So.. Say the string is 2478*72-432*823-74 What I want to do is split …

Member Avatar for persianprez
0
238
Member Avatar for gods_angel

Well, I don't know java too well, but you can try converting from python to java, should be simple enough: [url]http://pedrumgolriz.com/index/?p=82[/url]

Member Avatar for persianprez
0
118
Member Avatar for persianprez

I need to install these 3 tools in order to run Agriya Volume, but how do I? I'm running on a basic plan (linux) on securesignup. I don't have root access. Is there anyway? Or do I have to buy a VPS?? The three tools are: Mplayer + Mencoder Flvtool2 …

Member Avatar for persianprez
0
114
Member Avatar for persianprez

I know I can go back and edit all my output with %f.3 is there code to do this for all output?

Member Avatar for vegaseat
-2
87
Member Avatar for persianprez

I cannot find one example of somebody doing this, only sorting by the first item. Here is my code: [CODE] dict.sort() for key in dict.keys(): print key, "%8s"% dict[key] [/CODE] I'm only getting an alphabetical sorting of the left side of the dictionary.. like this: a:4 c:3 b:12 a 4 …

Member Avatar for persianprez
0
250
Member Avatar for persianprez

How do I center my text in python? I have a title and a description, and wan't to center it all in my output.

Member Avatar for Stefano Mtangoo
0
106
Member Avatar for persianprez

I should be getting this as my output, but it keeps going through each result: [CODE]10 -> 5 -> 16 -> 8 -> 4 -> 2 -> 1 ; length = 7 11 -> 34 -> 17 -> 52 -> 26 -> 13 -> 40 -> 20 -> 10 -> …

Member Avatar for persianprez
0
125
Member Avatar for persianprez

Hi, I'm brand new to Python and am completely clueless in this assignment. This is the 3rd assignment, but the first without hints on how to import, etc.. The objective of this assignment was to decode a file we are supposed to use the python hw.py < code.txt command with. …

Member Avatar for ov3rcl0ck
-1
291
Member Avatar for persianprez

I'm to have the user input what classes they have taken and tell them what they have left to do. I have my for loop done but I feel like I need an array or something because they should have entered requirement for 6 different class types. Here is my …

Member Avatar for d5e5
-1
135
Member Avatar for persianprez

[COLOR=Red]The problem is that i dont know where to put the array to keep inventory expanding...someone please help.[/COLOR] [code] #include <iostream.h> #include <lvp\string.h> #include <lvp\vector.h> struct rec{ long sku; String artist; String album; long quantity; double price; };//end struct struct inv{ inv();//constructer vector<rec>album; }; inv::inv() :album(0) {} ///////////////////////////////////////////////////////////////// void read(rec&rec);//reads …

Member Avatar for iamthwee
0
147

The End.