199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Vishnu_4

Hi, Am working on hooks wit codeigniter, am getting an error after applying hooks like "This webpage has a redirect loop". My hooks.php file : $hook['post_controller_constructor'] = array( 'class' => 'SessionData', 'function' => 'initializeData', 'filename' => 'auth.php', 'filepath' => 'hooks', 'params' => array() ); auth.php file: <?php class SessionData{ var …

Member Avatar for veedeoo
0
463
Member Avatar for PM312

to create unique reference i had below code in **vb6** Dim UNKREFBATCH As String UNKREFBATCH = "B" & Format(Date, "MMDD") & Format(Time, "HHMMSS") but the same is not giving correct result in **vb.net** Dim UNKREFBATCH As String UNKREFBATCH = "B" & Format(Date.Now, "MMDD") & Format(DateTime.Now, "HHMMSS") MsgBox(UNKREFBATCH) instead of minutes …

Member Avatar for Reverend Jim
0
209
Member Avatar for fheppell

How would I go about appending a character to the end of every line except for the last line? The script won't know the length of the variable, as the last ten lines are loaded via tail. Thanks!

Member Avatar for arunmagar
0
172
Member Avatar for krunal1986

Hello, I have field in db table which have real datatype in SQL 2005. I want to convert it into time (HH:MM) format and add to another time. ex: 0.3 (convert it to 00:30) and want to add into 17:45 so i can get 18:15 0.45(convert it to 00:45) and …

Member Avatar for krunal1986
0
135
Member Avatar for divyakrishnan

Hi.. I want to open an existing popup and append the content to the pop up. I have used the following code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script> function disimage() { var WindowObject = window.open('p1.html', "PrintWindow", "width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes"); …

Member Avatar for divyakrishnan
0
207
Member Avatar for Mr.M

Hi Dw I'm trying to create a server that will handle simultaneous connections from clients and for simplicity I've decided to save data to the text files, it not one text file but there are many text files which will be located on the server. The clients (written in VB5.0) …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Azhagu

in data structure, how the paranthesis balanced are checked with stack.little confusion in it.

Member Avatar for David W
0
174
Member Avatar for sohaib.danish.31

Hello Friends ! I am working on a project of CD CAFE. In which I have arranged movies like this : Movie Name::::Genre::::Hero of Movie::::Heroine of Movie and I have entered data in this. Now I want to add search option in my program that I can search by Movie …

Member Avatar for David W
0
514
Member Avatar for Dean_Grobler

Hi there, I'm in the process of creating a utility program that builds a table in a database and inserts the initial data. I'm getting an error stating: java.sql.SQLException: No suitable Driver found for jdbc.odbc.ContactKeeperDB My Code: [CODE] import java.sql.*; import java.io.*; public class MakeDB { public static void main(String …

Member Avatar for jwenting
0
243
Member Avatar for tapananand

Consider the following code: #include<stdio.h> #define msizeof(type) ((char*)(&type) - (char*)(&type - 1)) int main() { int x; printf("%u %u\n", msizeof(x), sizeof(x)); return 0; } The Above code when compiled with g++ compiles just fine and works well without any wanrings, while in gcc it gives the following warning: `integer overflow …

Member Avatar for vijayan121
0
839
Member Avatar for dumicom

Hi, is there a simple way to convert the xls file to txt file to fit my program's code. import matplotlib.pyplot as plt x = [] y = [] t = [] fig = plt.figure() rect = fig.patch rect.set_facecolor('#31312e') **readFile = open('data.xls', 'r') sepFile = readFile.read().split('\n') readFile.close()** for idx, plotPair …

Member Avatar for Gribouillis
0
2K
Member Avatar for Anthony_7

This script of mine is storing a blank file with no .html or .py extension on my FTP server, I think it has to do with the fact that I have the file already opened in the later code, any help? Essentially this script is going to let me edit …

Member Avatar for Anthony_7
0
242
Member Avatar for aluhnev

#include "stdafx.h" #include<vector> #include<iostream> using namespace std; int main( int argc, char ** argv ) { // from initializer list (C++11) cout << "vector from initializer list (C++11): " << endl; vector<int> vi1 = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; cout << "size: " …

Member Avatar for sepp2k
0
201
Member Avatar for safi.najjar1

Hey folks, I've found 4 ways to call static methods and I'm confued about them. The ways are: **1- className::function() 2- $this->function() 3- self::function() 4- static::function()** so: *1-What are the differences between all of them? 2-What's the main reason for using static methods against non-static methods?*

Member Avatar for veedeoo
0
233
Member Avatar for dhani09

I'm trying to push items into an array. Each time a user clicks a book link, the id of the book is supposed to be added to an array.(The name and id of the book are pulled from the database.) But when i push a new book id, the existing …

Member Avatar for dhani09
0
165
Member Avatar for SimonIoa

Does anybody sees a fault in this? both codes are in the same file. It seems it doesnt gets in the javascript/ajax script because the alert doesnt work but i cant figure out why? <form method="post" enctype="text/plain"> <textarea name="update_press" id="update_press"></textarea> <input type="submit" name="press_button" class="press_button" id="press_button" value="Submit"> </form> <SCRIPT> $(".press_button").click(function() { …

Member Avatar for iamthwee
0
302
Member Avatar for jmay1327

I have a grid that I am trying to move the grid rows either up or down based on button click. Here is what I have so far. Protected Sub imgBtnMoveUp_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Dim imgBtn As ImageButton Dim FirstRow As GridViewRow = gvQuoteSo.Rows(0) Dim btnUp …

Member Avatar for AleMonteiro
0
294
Member Avatar for sneekula

I asked that in another thread, but it got lost: [QUOTE]When do you use root.quit() and when do you use root.destroy() to exit a Tkinter program?[/QUOTE] Also, can you intercept an exit when you use the little x in the title bar, just to affirm that you really want to …

Member Avatar for entropicII
0
45K
Member Avatar for jamojo

Hi Everyone, I have a javascript function below: function submitUserInfo() { if (myForm.validator.validate()) { var data = $('get-user-info').serialize(true); var params = data; var url = 'http://www.mysite/engine/'; var request = new Ajax.Request(url, { method: 'post', parameters: params, onSuccess: function (transport) { //alert(transport.responseText); $('paywall-img').innerHTML = ''; $('paywall-img').insert(transport.responseText); $('paywall-img').insert('<button class="button close-pw"><span>Cancel</span></button>'); }.bind(this), onFailure: …

Member Avatar for AleMonteiro
0
260
Member Avatar for boxes2
Member Avatar for Schol-R-LEA
0
135
Member Avatar for london-G

Hello, I have installed glassfish server with netbeans. I have created a new JDBC Connection Pool and when I ping it I get error message "Ping Connection Pool failed for MyDatabae. Class name is wrong or classpath is not set for : com.mysql.jdbc.Driver Please check the server.log for more details." …

Member Avatar for peter_budo
0
132
Member Avatar for Roisin

Hi, I am trying to get ahead of my course work for next term and teaching myself c#. I am trying to write a pig latin translator as an exercise from the book I am using but it has no answers. I believe I need to use the split and …

Member Avatar for rubberman
0
2K
Member Avatar for sunnyshahrukh

how can we use write and read functions in files and why we use these function because i have already get put or cin cout available.

Member Avatar for NathanOliver
0
83
Member Avatar for strRusty_gal

Hi Everyone, Thanks for viewing this thread. How do I do the code similar in Java? The syntax for the code below is C#. public class Child : Parent { public Child(String a, String b) : base(c) { } } I would like to seek for your help on Java. …

Member Avatar for strRusty_gal
0
238
Member Avatar for IWDesigns

hi, i have a site built in CI and i have integrated a js/jq image slider into the index page. i linked all the files to the correct places but for some reason the js isnt working? some of the fonts in the slider are controled by js files, and …

Member Avatar for Raj Kumar_1
0
709
Member Avatar for amal.sultan.5855

how to find length of a character string without using while loop or user defined function?

Member Avatar for Gonbe
0
206
Member Avatar for Sumith Asanka

Dear All i want to load some data to grid view (which is not existing in the database currently) and do some chages (putting tax rates etc) and caluculate totals and after all changes done to update them on the database, where can i keep those data temporaly ? and …

Member Avatar for Sumith Asanka
0
392
Member Avatar for DkgMarine

Hey guys, so i'm trying to learn the basics of Java, i just could not understand this code. public class Puppy{ int puppyAge; public Puppy(String name){ System.out.println("Passed Name is :" + name ); } public void setAge( int age ){ puppyAge = age; } public int getAge( ){ System.out.println("Puppy's age …

Member Avatar for JamesCherrill
0
122
Member Avatar for mwenyenia07

/////Get gl accounts class///// $sql_class = "SELECT cid,class_name FROM 0_chart_class WHERE cid>=3 ORDER BY cid ASC"; $result_class = mysql_query($sql_class) or die("Error in query: $sql_project.".mysql_error()); echo "<TABLE class='swPrpTopMenu'>"; echo "<th>Account Code</th><th>Name</th><th>Amount</th>"; while($row_class=mysql_fetch_array($result_class )) { $c_id=$row_class['cid']; $c_name=$row_class['class_name']; echo "<tr><td>$c_name</td></tr>"; ////////get accounts $sql_accounts="select ct.name,ct.class_id,cm.account_code,cm.account_name FROM 0_chart_types ct,0_chart_master cm WHERE ct.id=cm.account_type AND ct.class_id='$c_id' GROUP …

Member Avatar for mwenyenia07
0
212
Member Avatar for moaz.amin.37

i want to place a button on upper left corner of JFrame with GridBagLayout.i write this code but it is notwork correctly gbc.gridx=0; gbc.gridx=0; add(b1,gbc); but the button place on center of JFrame why

Member Avatar for JamesCherrill
0
378
Member Avatar for subrata_ushasi

Hi all, I am trying to start date and end date which is running in my local machine but when I am trying to run online it is not working . here is the code: echo " ONE"; $pDate = date('Y-m-d'); $curdate= (explode("-",$pDate)); echo $curdate[1]."<br>"; echo $curdate[2]."<br>"; $date=$curdate[1]; switch ($date) …

Member Avatar for subrata_ushasi
0
550
Member Avatar for devianleong

Hi, I need a table with dynamic header for first row and the rest of rows is the price. Example:http://www.adtravel.com.my/domestic/package/142-legoland-2d1n-johor-special Any idea to develop in admin page as well as product page? I want to use WYSIWYG editor but my client do not know how to use it.(Because the table …

Member Avatar for devianleong
0
246
Member Avatar for xzero1

I have a Top Master page let say "A" in which i have a button and a textbox. Then there is another Master page "B" which is Child of "A". Then there is a page.aspx which is child of "B". so basically I want to send the value of Text …

Member Avatar for AleMonteiro
0
136
Member Avatar for hriti

hello every one please help me out i want to show my data according to date... i mean it can be according to current date,previous date data can be according quaterly month how to display it from database.

Member Avatar for jeffey
0
130
Member Avatar for DawnofanewEra

Hello, Can anyone show me how to set width between character in java. I'm looking for something like this. Items NumOfItems Price A 2 $10 B 1 $5 When I use the for loop to make something like the table above it shows something like this. Items NumOf Items Price …

Member Avatar for DawnofanewEra
0
244
Member Avatar for Yahia Farghaly

Hi there, i was trying to make a program (to do)using list class here is the code #include<iostream> using namespace std; #include<list> #include<string> void display(const list<string>& lsy){ list<string>::const_iterator iter = lsy.cbegin(); int i = 0; while (iter != lsy.end()){ cout <<++i<<"- "<< *iter << endl; ++iter; } } void add(list<string>&ls){ …

Member Avatar for Yahia Farghaly
0
328
Member Avatar for berserk

I cant seem to upload a file in php to my server from just anywhere, it will only upload correctly if the file is in the same folder as my upload script which is a serious problem if i want the user to be able to upload from just anywhere. …

Member Avatar for berserk
0
173
Member Avatar for ultmt.punisher

I am trying to set restriction on uploading files to php server but thats not working except only txt file. here is code. $allowedExts = array("text", "doc","rtf"); $temp = explode(".", $_FILES["datafile"]["name"]); $extension = end($temp); if (isset($_FILES['datafile']['tmp_name'])) { if (($_FILES['datafile']['type'] == "text/plain") || ($_FILES['datafile']['type'] == "application/msword") || ($_FILES['datafile']['type'] == "application/rtf") && …

Member Avatar for ultmt.punisher
0
491
Member Avatar for kimlong008

Hello Everyone ! I have build a c file but it use GNU library, I can not build it to exe file. It error because I don't know use MinGW to build. [Download file](https://sites.google.com/site/datazus09/crunch-3.6.zip). I have install MinGW but I don't know how to run it in my visual studio …

Member Avatar for kimlong008
0
313
Member Avatar for Desmond_1

I noticed a few things about my results from my codes. If I don't key in anything,no matter what I press(the ok,cancel or the x button) It will print out Please enter an integer value cannot be 0 or negative and contiune to prompt me until the I key in …

Member Avatar for mKorbel
0
668
Member Avatar for moaz.amin.37

hello to all i have problem about button events the problem is that if i handle an event of button and show again a window(result of event) that also has buttons then how to handle events of buttons of second window please help me

Member Avatar for mKorbel
0
168
Member Avatar for SkyCross

Hello Experts, I just wanna know how to display prime numbers in TListBox, If I put 10 in EditBox then it would display all the possible numbers fom 1 to 10,and will display to its according listbox.The even numbers in even_listbox, if prime it will display in prime_listbox and if …

Member Avatar for SalmiSoft
0
922
Member Avatar for reuben_1

I want to play Offical Crafting Dead on my mac from my technic launcher but all I get is a white/grey screen which does not move or do anything. I would really like to play it and here is the console script... [B#439] Analytics Response [runModpack]: 200 [B#439] Java HotSpot(TM) …

Member Avatar for rubberman
0
370
Member Avatar for SaRa Ahmad

i need to know if i can scan an image or any file from vb6 form then save it to my database, if yes how i can do it ?? thanx in advance...

Member Avatar for Sabrina.Moro
0
1K
Member Avatar for MasterHacker110

I was looking around on the web about robotics programming, especially the Lego mindstorm EV3. I was looking at what programming languages this platform supports. I saw that you can program it in Java ME(understandable as Java is everywhere today) and in C#. I thought that C# was a windows …

Member Avatar for MasterHacker110
0
621
Member Avatar for hwoarang69

I am getting a null pointerexception and I am not sure why. I tried debuging it by adding a system.out.print statement like so: System.out.println(GameKeys.mouse[pointer]+"-"+pointer); The output from this statment was: "null-0" # Error # Exception in thread "LWJGL Application" java.lang.NullPointerException at com.ia.df.manager.GameInputProcessor.touchDown(GameInputProcessor.java:34) at com.badlogic.gdx.backends.lwjgl.LwjglInput.processEvents(LwjglInput.java:300) at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:200) at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:114) ## Gamekeys …

Member Avatar for JamesCherrill
0
329
Member Avatar for Yorkiebar14

Hello, I'm having a problem with my MySQL InnoDB table, only one of five. Every now and then a row or two will go missing completely with no trace of it being there in the first place. I have a website which takes HTTP requests from my desktop side client …

Member Avatar for hericles
0
733
Member Avatar for jaihoon.meerzakhel

Hello Guys , right now i am working on a project whihc i have to develope i complete job website. i want those users which are regestered with us if the new job has been posted an automatic sms has to sent to them related to the work area that …

Member Avatar for pritaeas
0
98
Member Avatar for dumicom

Hi Guys, I'm Using Python 2.7.3 This is my txt file: TimeStamp,Irradiance 21/7/2014 0:00,0.66 21/7/2014 0:00,0.71 21/7/2014 0:00,0.65 21/7/2014 0:00,0.67 21/7/2014 0:01,0.58 21/7/2014 0:01,0.54 21/7/2014 0:01,0.63 21/7/2014 0:01,0.65 21/7/2014 0:02,0.64 21/7/2014 0:02,0.63 21/7/2014 0:02,0.63 21/7/2014 0:02,0.64 . . . . 22/7/2014 23:57,0.53 22/7/2014 23:58,0.69 22/7/2014 23:58,0.61 22/7/2014 23:58,0.65 22/7/2014 23:58,0.59 …

Member Avatar for Gribouillis
0
2K
Member Avatar for wrathyimp

Hi, I am having two different logins on my website. One for the admins to update teh CMS, other I am creating is to provide our 3rd party, access to the files, but are not to be included in the CMS. So I need to have two forms in my …

Member Avatar for jaihoon.meerzakhel
0
426

The End.