199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mutago

Learning the best way to securely upload files to a server Can someone tell me the best way to ensure that only image is uploaded using finfo() thereby preventing hackers from uploading a malicious files.Assuming I don't want to upload files outside the roots. 1: I check if file exist …

Member Avatar for LastMitch
0
186
Member Avatar for Annuscha

Hi, I have a textarea counter which has a limit of 160 characters. What I want to do is when the checkbox is ticked the character limit would charge to 140 characters. I have the following code: Html: <input type="checkbox" name="change" value="1" /> <textarea name="sms_text" id="sms_text" rows="8" cols="60" onKeyDown="limitText(this.form.sms_text,this.form.countdown,160);" onKeyUp="limitText(this.form.sms_text,this.form.countdown,160);"></textarea> …

Member Avatar for LastMitch
0
225
Member Avatar for caltech

I have this: http://jsfiddle.net/calyne/DwV4z/3/ I want to make it like this: https://github.com/jakiestfu/Youtube-TV which is great, beautiful, just that it doesn't work for all channels, mysteriously. The one I'm trying to implement it for in particular happens to be among those unfortunate channels. So I've turned to the former script, except …

Member Avatar for LastMitch
0
400
Member Avatar for ankit.4aug

I am developing an application in CodeIgniter with Doctrine for ORM. In my doctrine model, I have classes which are inhereted something like this One abstract SuperClass ( let's call it Super ) and two base classes BaseA and BaseB. @InheritanceType("JOINED") @DiscriminatorColumn(name="type", type="string") @DiscriminatorMap( {"a" = "DerivedA", "b" = "DeriveddB"} …

Member Avatar for LastMitch
0
266
Member Avatar for xmangkan0rx

I tried the instructions on the website on how to use it. But it doesn't work. Btw here are my codes: **select3.php** <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script type="text/javascript" src="dynamic_table.js"></script> <script type="text/javascript" src="jquery.jCombo.js"></script> <script type="text/javascript"> $(function(){ $("#category").jCombo("getCategory.php"); $("#type").jCombo("getType.php?id_cat=",{parent:"#category"}); $("#desc").jCombo("getDesc.php?id_subcate=",{parent:"#type"}); }); </script> </head> …

Member Avatar for LastMitch
0
183
Member Avatar for diya45

i try to approve documents through dropdownlist... when i select approve/reject/pending then i have submit button when i click on button document will be approve/reject...what should i code on submit button?? here is the code of dropdown protected void DropDownList4_SelectedIndexChanged(object sender, EventArgs e) { DropDownList ddl = sender as DropDownList; …

Member Avatar for LastMitch
0
173
Member Avatar for xmangkan0rx

Good Day! :) I created a chained select using php and jQuery like on this page (http://www.yourinspirationweb.com/en/how-to-create-chained-select-with-php-and-jquery/) and I created a javascript to add and delete select tags I get it somewhere on the internet but what happening is when I choose a category on the first row everything on …

Member Avatar for LastMitch
0
535
Member Avatar for G_S

Hello. I am currently studying database design at my local university. They use Microsoft products there (Microsoft SQL Server 2008/2012), but we can't use them at home because of the licensing. I have two questions: 1 - Is there anything in the world of Open Source that I can use …

Member Avatar for Reverend Jim
0
226
Member Avatar for abhig

Question: Given the relational schema: ENROL (S#, C#, Class) - S# represents student number TEACH (Prof, C#, Class) - C# represents course number ADVISE (Prof, S#) - Prof is project guide of S# PRE_REQ (C#, Pre_C#) - Pre_C# is prerequisite course GRADES (S#, C#, Grade, Year) STUDENT (S#, Sname) - …

Member Avatar for LastMitch
0
165
Member Avatar for gon1387

Hi! I would like to know if anyone here have attempted installing Redmine V2.3.\* on IIS? If you did, can you please direct me to the right direction. What are the things should be done? I had tried it on my own, but I kept on having errors like "Gem::Installer::ExtensionBuildError: …

Member Avatar for LastMitch
0
303
Member Avatar for kimmi_baby

Hi, The home page of the website I'm creating displays an excerpt on multiple pages and below I need to display the text of the home page. The problem I'm having is when I call the title and the text, it's displaying the title and the text of the last …

Member Avatar for Doug_Vann
0
197
Member Avatar for mikewyatt

Hey.... I am just days away from completing a year-long project and want to convert the netbeans project to a stand-alone java program that can be installed on another system without netbeans. YEAH! Sorry - did my happy dance! the Program has a .main java file and about 15 other …

Member Avatar for mikewyatt
0
890
Member Avatar for mikewyatt

I am trying to change my database(s) from network to embedded. I believe that the driver is working and has found the database requested with the following code: try { // connect method - embedded driver String dbURL1 = "jdbc:derby:Databases/Armor"; Connection conn1 = DriverManager.getConnection(dbURL1); if (conn1 != null) { System.out.println("Connected …

Member Avatar for mikewyatt
0
4K
Member Avatar for iv_jo

Hi, I have problems with INSERTing VALUES in new table, with ALTER i made columns but then when I am inserting values for example one column from one table with 4 rows and second column from other table with also 4 rows, in my new table i get 16 rows …

Member Avatar for iv_jo
0
206
Member Avatar for locsin

greetings! When i First start my VB6 program with data report it works fine. The report displayed directly. but when i try to open other programs in other directory and then when i re-run my program in data report operation a msgbox appear "Please Enter MS Jet OLE DB Initialization …

Member Avatar for yokoshima.mur
0
3K
Member Avatar for Sepand_1

Hello, I want to add 3 digits (1+2+3) together but im getting wiered char instead of the resault. please advice where am i wrong. comments are added for more information they are not included in pep8 object codes. Thanks. D1 00 14 ;First number 71 00 16 ;Add the two …

Member Avatar for Sepand_1
0
269
Member Avatar for karma2you

Hello,i want my my program to look just like the one below the line: But i keep getting the same issue of the void Instructions() coming before the Instruction; input (( i want it the other way around)) For example i keep getting(after compile): I have a capital letter in …

Member Avatar for Ancient Dragon
0
170
Member Avatar for laura301019

Hi I have an XML file that is storing numerous books and their details, I then have a PHP page that is to search the XML list by Author. This I can do but I was wondering how I can style the page for when the search button has been …

Member Avatar for cmps
0
170
Member Avatar for RWD_

Hi there, I'm currently a student in an intro to Java course at the college level. I've been doing well all semester, but I've ran into trouble with our latest lab. It's a bonus lab, so naturally the content wasn't covered in class. After playing around with what I found …

Member Avatar for JamesCherrill
0
718
Member Avatar for blue_Student

I want to have a changing output in the 2nd textfield that is 'output' in my Action class as I enter input in the 'input'textfield. I don't know why it doesn't give any output... pls help The comboBoxes convertTo---contains "IEEE" and "DEC" while precisions contain "Long", "Single", "Double". Any advice …

Member Avatar for JamesCherrill
0
240
Member Avatar for Indians

this is my sendmsg coding page. Am i right? its not working. First i got fatal error: call undefined function curl_init(). i cleared that error. now it takes time to load 10 to 15 seconds and show error in that page. coding is below... $name = $_POST['name']; $connum = $_POST['connum']; …

Member Avatar for iLikePHP
0
443
Member Avatar for HunainHafeez

Gridview remains in EDIT mode and doesn't get out of it when i don't rebind it, why ? but when i rebind gridview that it exits out of eidt mode successfully, why ? protected void gvTest_Edit(Object sender, GridViewEditEventArgs e) { gvTest.EditIndex = e.NewEditIndex; Response.Write("Editing..."); connectToDb(); // a funtion to rebind …

Member Avatar for nakor77
0
139
Member Avatar for nitin1

hello, I have started learning python these days. Although i am following a course on coursera.org for learning it , but that course is going very very slow. Also, I don't know if that course contains all things which is need to build codes in python. I have very good …

Member Avatar for nitin1
0
417
Member Avatar for zampi91

I'm trying to create two classes in C++. Each class implements different serial and its function that is called when it receives a data on the serial port. Class 1: int serialLn = open("/dev/ttyS2", O_RDWR | O_NONBLOCK | O_NOCTTY); struct termios options; struct serial_struct serInfo; struct sigaction saio; //Serial speed …

Member Avatar for zampi91
0
944
Member Avatar for jacob21

Hi, Need Help regarding a query. I want to search all empName from emp table whose name 3rd letter is "s"

Member Avatar for drjohn
0
198
Member Avatar for Amman_1

Please Guide me i have data which is in ascii form. First i need to convert into hexa then from hexa values generate image in .png here are values which are in ascii form Collapse | Copy Code $$,,,,47,070807080808070708090708080808080808080A0908080809090809080908090808080908090809090A0809090909090909090A0A090A090B0B090A0909080909090A090909090A0A0A090A0A0A090A09090A0A0A0A0A0A0A0A090B0A0A0A0C0B090A0C0B0A090A0A0B090A090A0A0A0A0B0A0B0A0909090A0A090A090A09090909080909080808090C0A09090908080808090908080808070706070707070706070607070706070708070808070607070707080707070708080708080808090808080808080708080908080809080908080809080807080808080808090808080808090808070808090909080908090808080909090909090A090A0A0A090908080809090909090909080909090909080908090908080809090808080807080709080807070607080807080807070805050607060605060607060606070606060606080707060707080707070706070708080807080707080807080808080808080809080808080908080808080708080808080808080708080808080807080807080908080808080A09090909080908090909090A0909090A09090909090A0809090A0909090A0A0A09090A0A09090808080808080707080807080808070807070708070706070607050606060606050606070606060606070607070706070606070707070707080807080808080807070809080808080808080808090809* `Inline Code Example Here` 1、Function description Upload fingerprint features stored in …

0
258
Member Avatar for yorro

I have connected VB.net and mySQL on a the same PC before, but I have no Idea how to connect VB.net to a remote PC(LAN) I've only changed the server This is my code. I removed some of the details, but it works on server=localhost [CODE] conn = New MySqlConnection() …

Member Avatar for nathanl.dulguime
0
3K
Member Avatar for software girl

i have to calculate the MEDIAN of an unsorted array(i.e,array must be in sorted order before calculation of median).I am a beginner in java.kindly help me with some kinda code,and learn me how to calculate the median in this case?thankx

Member Avatar for JamesCherrill
0
741
Member Avatar for umandajayo

I have a requirement which is getting cross domain json data via Ajax. I need to maintain 2 different server (Server A and Server B). Server A only contain static contents. ie: JS, Images, Css Server B only contain dynamic contents ie. php driven scripts According to above requirement I …

Member Avatar for ryantroop
0
342
Member Avatar for cussel

hi all, how to check same values array if it values is the high values in array associative and get it values? example 1: Array ( [value 1] => 0.8434 [value 4] => 0.8434 [value 6] => 0.8434 [value 3] => 0.3434 [value 2] => 0.3434 [value 7] => 0.2114 …

Member Avatar for cmps
0
242
Member Avatar for Garidius

Hello to all, I'm new to C++, but I have a program in C++ that runs from DOS console. I'd like to execute the same program adding a simple GUI with a button to select a file and inserting a value in a text box. How can I do this? …

Member Avatar for Garidius
0
553
Member Avatar for <M/>

Hi, i have been search for an answer for this for a few hours now and i finally got frustrated... soooo... how do you create a redirect link that redirects users back to last page they were on? Lets say they are on page A and they visit my site, …

Member Avatar for <M/>
0
172
Member Avatar for G_S

Hello everybody. I have a question related to database design: I am trying to make a database for my translation mini-company. I have two entities: translators and proofreaders. The problem is that some of our translators double as proofreaders, that is, they can work in both areas. The question is, …

Member Avatar for G_S
0
263
Member Avatar for yasaswyg

How do I compile a c program in Visual C++ 2008 express edition? I tried finding a compile button but i couldnt find it

Member Avatar for asabjork88
0
374
Member Avatar for ChopTop69

Hello, I am working on a query for a dog agility venue where it's calculating award requirements. There are two columns that are identifiers, one is the RegNum which is the dogs identification number, and the other is Class_Subset, which identifies which class the points were earned under. And then …

Member Avatar for ChopTop69
0
181
Member Avatar for ZombieKnight93

This is the program we were assigned to do (Project: Emergency Response Class) The North American emergency response service, 9-1-1, connects callers to a local Public Service Answering Point (PSAP). Traditionally, the PSAP would ask the caller for identification information—including the caller’s address, phone number and the nature of the …

Member Avatar for ZombieKnight93
0
1K
Member Avatar for SearchEngineOptimisationService

Hi im rubbish at programming, but im trying.... Im trying to get a page to display the details posted to a form. Part of it is working and part of it isnt for some reason. Ive declared a new value called "responsecode", responsecode = Request.Form("gtpay_tranx_status_code") If the value posted to …

Member Avatar for JorgeM
0
233
Member Avatar for sriramkarthick

what will be result of the following ? "$qry_expirydt="SELECT ('".$stdate."' +INTERVAL ".$day." Month) as expirydt";" especially explain about (+INTERVAL) and (Month) used in the query ???

Member Avatar for pritaeas
0
115
Member Avatar for reincom

if(isource == txtFirstname){ try{ String searchHotelCustomer = "Select * from HotelCustomer where CUSFirstName='"+CUSFirstName+"'"; driver.selectQuery(searchHotelCustomer); ResultSet rsSearch = driver.rs; if(rsSearch.next()){ txtRoomNum.setText(rsSearch.getString("RoomNumber")); } } how do i get int value from text?

Member Avatar for Seldar
0
279
Member Avatar for new_developer

Hi there, I need getch() type function for int through which I can take input from user, to store it in int variable. I actually want to use in menu from which user selectes any number to call that function to carray that task. Reason of using getch() function is …

Member Avatar for Moschops
0
188
Member Avatar for anandatheerthan

Experts, Please forgive me if this is a dumb question. 1)I am developing an application that needs data to be displayed in a grid format. 2)I need the ability to edit multiple records inline 3) I need the ability to use custom validations on rows being edited. 4)I am not …

Member Avatar for urtrivedi
0
271
Member Avatar for n21115

Hi, I'm trying to execute some commands via the exec / shell_exec / system / passthru / popen PHP functions. The commands are getting executed successfully, but they're not returning any output, which they would normally do, if they are executed in a terminal/shell environment: http://i.minus.com/ipySNqCnFn5iG.png http://i.minus.com/ibmq8Cer2yOAOR.png **What I expect:** …

Member Avatar for n21115
0
1K
Member Avatar for Thundermax
Member Avatar for krystosan

I hav amde this alias : test='python -m nose.core --tests $1 -s --with-coverage' this runs but gives an OS Error saying: $ test test_filterList.py nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module ....E ====================================================================== ERROR: Failure: OSError (No such file /Users/sanjeevkumar/Development/python/-bash) ---------------------------------------------------------------------- Traceback (most recent call last): File …

Member Avatar for krystosan
0
563
Member Avatar for princessophia

For this assignment, I am supposed to get a starting population, an annual death rate, an annual birth rate, and the number of years to display. I am then supposed to use these values in the formula n = p*(1 + b)*(1-d), where n is the projected population, b is …

Member Avatar for Moschops
0
197
Member Avatar for blue_Student

Hi, I'm doing an input validation of a String. The number should have a decimal pt, a whole number and a fraction part. It can have a negative sign (-) but not positive sign(+). This is what I've done but when I write --43.05, it prints false. String n = …

Member Avatar for blue_Student
0
226
Member Avatar for Tewhano

This is homework so I am not looking for a better way to do this. I am only asking for a second pair of eyes to spot my mistake. I have a function that takes a two-dimensional array and fills the first row with the elements from a one-dimensional array. …

Member Avatar for Tewhano
0
212
Member Avatar for edotman

Hi Guys I am creating a site and i want users to be able to upload videos to a folder on a server, using SQL to store the path of the video and the name. I have created this Code. And it does upload all the details, but does not …

Member Avatar for diafol
0
934
Member Avatar for dean.ong.14

ok so i am trying to do multiple checkboxes that will directed to their own page with a single submit but not working <form action ="trip1.php" method="post" name="form1"> <p><input type="checkbox" name="agree" /> Auckland</p> </form> <form action ="trip.php" method="post" name="form2"> <p><input type="checkbox" name="agree" /> North Shore</p> <p><input type="checkbox" name="agree" /> Waikato</p> …

Member Avatar for diafol
0
180
Member Avatar for Stanley_1

<PATIENT PATIENT_NUMBER="1"> <DEVICEINFORMATION> <SERIALNUMBER TYPE = "String" Value = "664231931" /> <CURRENTDATETIME TYPE= "String" Value = "200801301439" /> <SOFTWAREVERSION TYPE= "String" Value = " T2.2" /> <TIMEZONE TYPE= "String" Value = "-2" /> </DEVICEINFORMATION> <DEVICELIST> <DEVICE TYPE="String" Value="UA767PC" /> </DEVICELIST> <BP> <EVENT EVENT_NUMBER="1"> <DATETIME TYPE = "String" Value = "200801301439" …

Member Avatar for pzuurveen
0
151

The End.