222 Archived Topics

Remove Filter
Member Avatar for riahc3

This a followup to these two threads: http://www.daniweb.com/software-development/java/threads/438729/recursive-ftp-listingmakingcreatingetc-access http://www.daniweb.com/software-development/java/threads/439941/recursive-ftp-listingmakingcreatingetc-access...-part-2 For the "real thing" Ive decided to break it to two function: Insert file and make directory. Ill reexplain what I am trying to do. Im going to go a folder called "webfolder". If it isnt found, it is created. If …

Member Avatar for riahc3
0
324
Member Avatar for riahc3

Hello Im looking for a good date picker and easy to implement. HTML, PHP, and/or Javascript. Since this is professional, I need also several things: 1: Language support. 2: If I pick Feburary, it doesnt show a legal day as 31 3: 3 dropdown boxes: One for month, another for …

Member Avatar for pritaeas
0
112
Member Avatar for riahc3

Hello I want to remove this: > As you see it is a blank but the regular variable.replace(/\s+/g,''); does not work. I generate this character with Alt+0160 The best way would be its ascii code so how do I do it?

Member Avatar for riahc3
0
235
Member Avatar for riahc3

Hello First off the server is running Windows 7 32bits. I have the following code: <?php $fp = fopen(getcwd()."/test.txt", "w"); fwrite($fp, "hello"); chmod(getcwd()."/test.txt", 0777); unlink(getcwd()."/test.txt"); fclose($fp); ?> It creates the file perfectly but afterwards I cannot delete it. Giving me this error: Warning: unlink(C:\test.txt) [function.unlink]: Permission denied in C:\writeanddel.php on …

Member Avatar for Ezzaral
0
1K
Member Avatar for riahc3

Hello I want to do a indexOf but of certain special characters such as variable.indexOf(''')==-1) variable.indexOf('/')==-1) variable.indexOf('')==-1) variable.indexOf('"')==-1) etc, etc. How can I do this?

Member Avatar for pritaeas
0
74
Member Avatar for riahc3

Hello I want to make a simple bat file in Windows 7 but the command (route) only works in admin mode so I would have to ask for admin premissions. How do I do this in a bat file? Thank you

Member Avatar for riahc3
0
112
Member Avatar for riahc3

(The answers for getting a reply for this HERE are near null but might as well give it a shot....) Hello My products have a item option that is stored in “sales_flat_quote_item_option”. This happens when I select this option for the product and I add the product to that cart. …

Member Avatar for riahc3
0
74
Member Avatar for riahc3

Hey I want to Load/read/write a big file (ISO) in C#. Ive tried various combinations (FileStream, BinaryStream, etc) but all of them give me a "OutOfMemory" exception. What is the best way to load a big file into C# to work with it? Ill be using the DiscUtils library if …

Member Avatar for BobS0327
0
402
Member Avatar for riahc3

This is a continuation of the last thread. I insert 3 files: Two bins (path and a number) and either a jpg or a bmp This does the following. 1: Connects to FTP and changes to C:/ (/) 2: It checks if a webfolder exists. If it is, goes to …

Member Avatar for riahc3
0
461
Member Avatar for riahc3

Hello Im trying to do some basic FTP work. What I am trying to do is: 1: Search for a folder named "hi" in "C:". If hi exists, enter it. If it doesnt, create it THEN enter it. 2: Inside hi, count FILES and see if there is greater or …

Member Avatar for Taywin
0
485
Member Avatar for riahc3

Is there any easy IDE that lets you build a easy GUI with Java? I wish you could comply native Java using VS! :P

Member Avatar for ~s.o.s~
0
300
Member Avatar for riahc3

Hello I have the following: String somestring="203/9834/345"; somestring.replace("/",""); System.out.println(somestring); But it does not remove the slashes. How can I remove them? Thanks

Member Avatar for riahc3
0
143
Member Avatar for riahc3

Hello Why does my cookie work offline but not offline? It simply stores text, nothing else. Is there some limit that can be blocking it or something?

Member Avatar for riahc3
0
118
Member Avatar for riahc3

Hey I want to do something like this: <script language="javascript"> function calculatesha() { var name = document.getElementById("firstname").value; var last = document.getElementById("lastname").value; var complete = name+last; var hash = <?php echo(sha1(?>complete<?php));?>; } </script> I hope the code is understood even if it is wrong. Thanks.

Member Avatar for riahc3
0
311
Member Avatar for riahc3

Hello Im using org.apache.commons.net's FTP object to make FTP transfers. The problem is that when the IP is down (example, the PC is turned off) a exception saying "No route to host" pops up and not only delays my program but gives a nasty error. How can I avoid this? …

Member Avatar for Taywin
0
263
Member Avatar for riahc3

Hey I want to make a website lets say http://www.mysite.com but before they view it, they have to login with username and password (those are stored in a DB). It doesnt matter if they access http://www.mysite.com/hello http://www.mysite.com/hello.html or http://www.mysite.com/hello/something/j.php ect the first time they access, they have to login, else …

Member Avatar for Dragennd
0
391
Member Avatar for riahc3

I was going to start Apache/Tomcat as root but Ive rethought it and have gone against it. How can I make my web service read/write from "/"? I keep getting permission denied exceptions...

Member Avatar for riahc3
0
195
Member Avatar for riahc3

Hey How do I run my web service as root? Yes, I know the security implecations of this. Thanks

Member Avatar for Irina54
0
163
Member Avatar for riahc3

Hey Im looking for a easy and fast way to install Apache Tomcat and Axis 2 on a Ubuntu box. I followed a guide but it left my PC a mess (I couldnt get updates correctly) Thank you

Member Avatar for riahc3
0
343
Member Avatar for riahc3

Hello Im posting this in C because Arena is highly influenced by C.... Im trying to open a file using fopen but I cant get it to work. Ive made the permissions on the file 777 (all) just in case but it doesnt work. Can someone please test that it …

Member Avatar for Ancient Dragon
0
131
Member Avatar for riahc3

Hello I want to run a command as sudo (to be especific open a file) but I dont want to run the entire program as sudo obviously. How do i do a fopen with sudo previlges? I dont mind hardcoding the password (eg, so it wont ask me for my …

Member Avatar for L7Sqr
0
152
Member Avatar for riahc3

Hello I want to make two shell scripts but they shell scripts isnt exactly my language :P The following is all pseudocode The first script will run every say 5 minutes: if /tmp/media/sda1 exists or /tmp/media/sda2 exists or /tmp/media/sda3 exists or /tmp/media/sda4 exists then do variable storage=what ever above first …

Member Avatar for riahc3
0
184
Member Avatar for riahc3

How do i make a autorun usb that executes a shell script that is on the USB drive? This would be only for my system so if there is something i have to enable, no problem (i imagine something like this would be disabled for security reasons) I believe the …

Member Avatar for riahc3
0
282
Member Avatar for riahc3

Hey I want to make a multithreaded and multiuser web service in Java. Where do I even start looking? Currently I have a web service that is one user and one thread. I think Ill problably have to completely rewrite it from almost scratch so.... Where can I see some …

Member Avatar for JamesCherrill
0
1K
Member Avatar for riahc3

Hey This is a stupid and very noob question but lets say I have something like: <script type="text/javascript"> /*javascript up here*/ var variable = new object("bla", "morebla"); variable.dosomething("evenmorebla", function(key, value) { alert("key is '" + key + "' and value is '" + value + "'"); }); alert ("alert 2 …

Member Avatar for riahc3
0
3K
Member Avatar for riahc3

I have this line: document.cookie =textbox+this.getParameterByName("idProd")+'='+document.getElementById('name').value+'; domain=mydomain.com; expires='+dia.toGMTString()+'; path=/'; This cookie should work on the mydomain.com and all of its subdomains to read and write, correct??? Doesnt work online but works on local thats why I ask. Thanks!

Member Avatar for pritaeas
0
75
Member Avatar for riahc3

Hey Im using Web Storage for my website and it seems to work locally but not online. Ive tried different thigns (which I shouldnt because it should just work) but it seems not to work. The only conclusion I can come to is that it has been disabled server side. …

Member Avatar for riahc3
0
111
Member Avatar for riahc3

<?php foreach ($_options as $_option) : ?> <input id="xyys" type="hidden" name="xyys" value="<?php echo($_option['value']);echo ($_option['option_id']);?>" /> <?php if($_option['label'] != 'Corte'): ?> <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?> <dt><?php echo $this->htmlEscape($_option['label']) ?></dt> <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?> <?php if (isset($_formatedOptionValue['full_view'])): ?> <div class="truncated_full_value"> <dl class="item-options"> <dt><?php echo $this->htmlEscape($_option['label']) …

Member Avatar for riahc3
0
6K
Member Avatar for riahc3

Hey When I try to interpret thru PHP, a Java web service that returns a boolean type, this error (more like a warning) pops up: Notice: Object of class stdClass could not be converted to int in C:\testing\page.php on line 29 How can I make the PHP page understand true …

Member Avatar for pritaeas
0
399
Member Avatar for riahc3

I have this code: <?php foreach ($_options as $_option) : ?> <input id="xyys" type="hidden" name="xyys" value="<?php echo($_option['value']);echo ($_option['option_id']);?>" /> <?php if($_option['label'] != 'Corte'): ?> <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?> <dt><?php echo $this->htmlEscape($_option['label']) ?></dt> <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?> <?php if (isset($_formatedOptionValue['full_view'])): ?> <div class="truncated_full_value"> <dl …

Member Avatar for McLaren
0
297
Member Avatar for riahc3

Hey How do I correctly validate that a email is in the correct format? I tried using the Apache Commons Validator library but, since Im using a web service, it seems not to want to fix it up and use it. I comply the code, make the aar, put it …

Member Avatar for riahc3
0
178
Member Avatar for riahc3

Hey I have this code........ /*MORE THINGS ABOVE*/ <?php foreach ($_options as $_option) : ?> <?php print_r($_option);?> /*MORE THINGS BELOW*/ That print_r gives me this (the first time around, other times its the same but it just gives me different Xs and Ys which is expected): Array ( [label] => …

Member Avatar for riahc3
0
179
Member Avatar for riahc3

Hey I tried to access a cookie that has a [object HTMLImageElement] but when I try to echo it, it simply prints that out: [object HTMLImageElement] I want it to display the picture. How can I do this? Thanks

Member Avatar for riahc3
0
4K
Member Avatar for riahc3

Hey When I try to interpret thru PHP, a Java web service that returns a boolean type, this error (more like a warning) pops up: Notice: Object of class stdClass could not be converted to int in C:\testing\page.php on line 29 It seems this is something PHP related. How can …

Member Avatar for riahc3
0
726
Member Avatar for riahc3

Hello Im trying to make a internal site (Called test.dev) but I cant get it to be viewed internally. I made a A record on the DNS server point "test.dev" to my IP which would be for example 192.168.1.45 but I try to access it on a client PC and …

Member Avatar for riahc3
0
172
Member Avatar for riahc3

Hey I tried to access a cookie that has a [object HTMLImageElement] but I found out that cookies have a limit on size so Im trying to do this with pure Javascript I can store the value of what I want in a hidden div and now I want to …

Member Avatar for riahc3
0
173
Member Avatar for riahc3

Hey Im seeing that I need to learn Javascript and using its classes, functions, declaring it, etc so I need something. What is a good way to learn Javascript (besides practice, because basically its all copy-paste so Im not learning what anything means)...... Thanks!

Member Avatar for riahc3
0
219
Member Avatar for riahc3

Hey I have the following: <?php echo $_COOKIE["name"];?> <?php echo $_item->getId();?> With the $_COOKIE["name"] having a value of "hi" and the $_item->getId() having a value of "5" (or 5, irrelevent as it is all strings) what if I want to do something like (fake nonworking code): concat joins 2 strings. …

Member Avatar for vibhaJ
0
149
Member Avatar for riahc3

Hey I want to declare a variable that is global that I can use (and modify) all over my website. Ive read that I may be able to do it with jQuery but not sure how to (more importantly, where). Its a simple text field, nothing else. Specifically it must …

Member Avatar for fobos
0
637
Member Avatar for riahc3

Hey Let me see how I describe this.... I have a textbox (inside of a form) and that form also has a button that calls a Javascript function that does some unrelated stuff. This is all inside of Lightbox. I want to be able to type in text in that …

Member Avatar for emclondon
0
187
Member Avatar for riahc3

Hey I have the following code private void buttonInicio_Click(object sender, EventArgs e) { MySql.Data.MySqlClient.MySqlConnection conn; String constring = "server=localhost;database=bd;uid=user;password=pass;"; try { conn = new MySql.Data.MySqlClient.MySqlConnection(constring); string query = "COUNT (*) FROM table WHERE usuario=" + Globales.usuario + " AND pass=" + Globales.contra; MySqlCommand cmd = new MySqlCommand(query,conn); cmd.CommandType = CommandType.Text; …

Member Avatar for riahc3
0
5K
Member Avatar for riahc3

Hey I want to search for a text string but I dont know what table or column it is in. I just know the database that it is in. I know also that the type is a text type. Any query I can do or in MySQL Workbench? Thanks!

Member Avatar for smantscheff
0
438
Member Avatar for riahc3

Hey What is the easiest way to read and write XML file to my C# program? Im looking for Localiziation Configuration I imagine that the only difference is that I have to load the localization as soon as I load the program.... Thanks! :)

Member Avatar for skatamatic
0
744
Member Avatar for riahc3

Hello Im making a application which needs some administrator priviliges. The thing is that this besides 7 will also run on XP. Ive been told that changing in the app.manifest the requestedExecutionLevel is one step as this basically will require a admin <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> <!-- UAC Manifest Options If you …

Member Avatar for riahc3
0
132
Member Avatar for riahc3

Hello Im doing this code for every form Ive doing (you have have seen it so I wont explain it) protected override void WndProc(ref Message m) { const int WM_MOVE = 0x0003; switch (m.Msg) { case WM_MOVE: return; default: base.WndProc(ref m); break; } } How can I do this so …

Member Avatar for riahc3
0
90
Member Avatar for riahc3

Hey That topic title was difficult to write. Lets say Provider A has the domain name of example.com and hosts a webpage with links such as example.com/aboutus, example.com/wherearewe, etc. Thats all great. But I want Provider B to host a online store with links such as example.com/store, example.com/storename/shirts, example.com/storename/pants, etc …

Member Avatar for eltonpiko
0
145
Member Avatar for riahc3

I have this: [code] DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `linkacorte`(vid_pedido int(11), vid_producto int(11),vtiempo varchar(50),vid_pastelero int(11),vcorte varchar(200),vnum int(2)) begin declare campo varchar(20); DECLARE EXIT HANDLER FOR SQLSTATE '42000' SELECT 'Ha introducido un campo incorrecto. Solo se permite 1,2 o 3'; if vnum=1 then set campo='programa_corte_1'; elseif vnum=2 then set campo='programa_corte_2'; elseif …

Member Avatar for smantscheff
0
184
Member Avatar for riahc3

Hey Im trying to make a social network (local based, not anything to take on other social networks) but Im not going to reinvent the wheel and make everything from scratch. Thats why Im asking if there is any CMS/library/etc to make my life easier. Im going to use C#/ASP.NET …

Member Avatar for riahc3
0
155
Member Avatar for riahc3

Hey Ive been literally killing myself looking up guides but most are way outdated and/or complicated. I tried a few simply ones but they simply appear to be out of date. Can someone point me on a easy way to set it up in Windows? Ive been trying to use …

Member Avatar for riahc3
0
157
Member Avatar for riahc3

Hey Im trying to start from scratch a MySQL installation in Linux but for some reason through apt-get and the software center, when I remove it, my users (and privileges) still exist. How can I remove everything releated to MySQL and start from 0? Thank you

Member Avatar for riahc3
0
429

The End.