199,114 Archived Topics
Remove Filter ![]() | |
I'm working an SSE / AVX library and have almost all the basics working, but now I'm trying to get the accuracy / speed a bit better on certain functions. Essentially I'm using a minimax polynomial that when using infinite precision should give me ~2E-9 error, plenty for floats for … | |
writting this : N = args[1].split("\\s+").length; with commandline argument like : `echo "A B C D E F G H I" | java Subset 3` , will this consume similar memory as would have been the case if i parsed the `"A B C D E F G H I"` … | |
Hi, I am trying to populate year,day and month dropdown. It working fine without <option value="">Select</option> i.e empty option. But getting wrong no of days for month selection after adding select option <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>untitled</title> <script type="text/javascript"> var numDays = { '1': 31, … ![]() | |
(1) 1)here i'm doing clone of a row...but this code is working only in eclipse [ ie ,cloning is working ] and it is also not working in anybrowsers. if i write <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "Page on W3"> to this code ,it will not work in … ![]() | |
I've been doing computers for a few months now. Learnt a bit, but sometimes I don't know how to put my questions into words. I am developing a real estate page and I would like to do something similar to what we see in those real estate sites. I have … ![]() | |
http://phalconphp.com/ Anybody here who has already tried this one? Am curious to any experiences. ![]() | |
Hi, I am learning struts 2 framework and i have also used OGNL in it for data transfer. The problem is when i run the Login.jps page on apache tomcat server through Eclipse Indigo , i get the error "HTTP Status 404 - /Priyanjan_banking/Login.jsp" Please help me out . The … ![]() | |
This seems kinda random but basically I have the following member function in my caching class: public function increment($key, $expires = 0) { // Requires OPT_BINARY_PROTOCOL return $this->cache->increment($key, 1, 0, $expires); } So then I want to do flood protection like this: $cache->increment('foo', 10) > 50 90% of the time … ![]() | |
def GenContent(address,what): return urllib.urlopen("http://www.yelp.com/search?find_desc="+what+"&#find_loc="+address).read() I am using python to do this. It works prefectly in my browser. | |
Hi Guys, I was wondering if someone could help me with this small program, i am kinda new to programming and well i have been given this assignment on collision detection for airplanes. i have done some coding implementing the algorithm and well i have specified the coordinates or points … | |
Hi there I need serious help with my software. Im making a system for an election. I need to make a login which reads and identifies text from the text file and if it is the correct user name and password then it opens another form. I have to make … | |
i have download php 5.3.27 windows installer from php.net then i download apache 2.4.4 windows installer from apache site. now i have successfuly installed apache 2.4.4. to check this i have write` http://localhost/` on the address bar and the out put is "its work". now the step to install php … | |
I have two forms "Sales" and "PurCh". The datagridview in the Sales form is being populated by a stored procedure that is carried out when the form loads and it works perfectly. But the datagridview from the "PurCh" form has refused to populate when the form loads. I initially thought … | |
I'm creating a shooting game and I don't want to allow unlimited bullets to be shot on the screen, so how can I limit the amount of bullets fired. heres the code # Sample Python/Pygame Programs # Simpson College Computer Science # http://programarcadegames.com/ # http://simpson.edu/computer-science/ import pygame, sys, random from … | |
Hello, everyone I am going to get right to the point. I am trying to create this index.php with a discounted display of the calculation. Here is my display.php page code. I have your classic $product_description, $list_price, and $discount_present. I think it might be working well the only problem that … | |
Hi, I have a table and I want to create a field to show whether it's the first occurrence (has the oldest date) of the id in that table. the table looks something like this and it's the last field I need help with creating a update code for. ----id----date_of_trans------custom_id--------cust_type----- … | |
I have a displaytag to display results. But in this displaytag, I want the corresponding occid of the row. But I don't know due to some problem, it is showing me the id of the first row only. It works as follows- when i enter a name and click on … | |
while (rs.next()) { System.out.println("Name: "+rs.getString(1)+"\n"); System.out.println("Age: "+rs.getInt(2)+"\n"); System.out.println("Address: "+rs.getString(3)+"\n"); } I just don't understand what is the meaning og getString(1) ![]() | |
i have windows 2008 r2 server , and am trying to convert my videos from any type to mp4 format and everything is fine in local when am trying to do the same live webserver , Am able to upload the file and then when i try to convert the … | |
hello kindly help , i have a login.php <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Login Form</title> <link rel="stylesheet" href="css/loginstyle.css" type="text/css" /> </head> <body> <div id="main-form"> <form name="form1" method="post" action="checklogin.php"> <input name="username" type="text" id="myusername"> <input name="password" type="password" id="mypassword"> <input type="submit" name="Submit" value="Login"> </form> … | |
Hi, Next year i would like to study Computer Science at college and then go on to study it further in university or a releated topic. Knowing this and how hard it can be, i would like to do perparation for it so that when i come round to studying … | |
im trying to put an image in the background of my form so that it cptures full screen n i donno how to dp that. my code is follows: Me.BackgroundImage = System.Drawing.Image.FromFile("school.jpg") | |
Why compiler gives me error when I call object MyObject ? public class ThisIsClass { public static void main(String[] args) { MyObject loan = new MyObject(); //error should be ThisIsClass loan = new ThisIsClass(); System.out.println(loan.toString()); } } It works fine when I change name of my class to MyObject or … ![]() | |
For each of the following sets of functional dependencies on a schema r(A, B, C, D, E) AB --> C, D --> E, B --> E A --> CD, B --> DE AB --> C, C --> D For each of the above set of functional dependencies, decompose relation r … ![]() | |
I am trying to build a code that outputs user input a certain way. I need to take user input to store 10 statistics for 3 players over 2 games, and then have the code ask the user which player they would like to see. Instead of showing the stats … | |
When tried to update the data I got this error "incorrect syntax near '4' Unclosed quotation mark after the character string" Can someone fixed this error Public Sub Save() Dim indate As Date = DateTimePicker1.Value.Date If String.IsNullOrEmpty(TextBox1.Text) Or String.IsNullOrEmpty(TextBox2.Text) Then 'Show your message here MsgBox("Please fill all Data") Else 'Show … | |
Hi, I'm creating remote desktop application in qt 4.8. I have to implement some way to browse remote computer directory structure and possibility to download files on local machine. I'm wondering how can achieve this... | |
hi, can vb6 detect if the unit is connected to a router or have a connection to the net or LAN ? example: if the user is disconnected to the LAN, a msgbox will appear that the unit is not connected, if connected nothing to worry about :) same as … | |
Hello Community, For my new service I'm making a way for users to make the're tracking links short. The URL is http://hitcounter.co but I can't think of any short versions of it because all the ones I've chosen have been taken such as http://hilnk.co, http://hlnk.co and http://hit.co. So I was … | |
In the new versions of server 2008+ MS have added an "Application and Services" folder to Event Viewer, I dont seem to be able to programaticaly access any logs in here, My Code: Dim strValue As String Dim objLogs() As EventLog Dim Logname As String = "Microsoft-Windows-Backup" Dim objEntry As … | |
hi i am trying to upload an image but it doesn't work I have been trying for ages but without any luck. I was wondering if anyone would be kindly enough to take a look at it. Basicly i'm getting my echo error message "problem uploading image" displayed constantly, even … | |
I'm a beginner to learn java, do you have any books to recommend for java learning? You can also give me some useful suggestions. I have learned C++ previously, will this be helpful to learn java? Here is my blog, <URL SNIPPED> , any comments are welcomed. | |
Here is my array: $a = array( “1” => “3”, “1” => “2”, “2” => “1”, “1” => “2”, “2” => “2”, ); and my expected output is : 1 = 7 , 2 = 3 How can I do that in foreach? | |
I'm trying to deploy an app into tomcat..but after uploading the war file..it the tomcat manager always shows permgen error could anyone help me why is this error occuring..my tomcat server has around 128MB runtime memory and the war file is only around 25MB?? thank you. | |
hello! im working on a reservation system and im lacking in knowledge about how to use controls properly. the application aims to show reservations made in a month. to visualize everything, the application must look like this: http://www.planet-source-code.com/Upload_PSC/ScreenShots/PIC200661517432753.JPG all ive found from the internet are downloadable, customized components. my question … | |
Hello, I`m seeking for an assistance in Payment Gateway integration to one of the web application which has already a paypal and needs replacing. The Integration Kit & API Documentation is available from Mobikwik wallet and where to start is what is confusing. They say in the instructions that simply … ![]() | |
I'm using a plugin called [jQuery file upload](http://blueimp.github.io/jQuery-File-Upload/) to upload images to a page. Currently it uploads with the original image name as the file name (IMG_1234). I need a specific format for the image name on the server (eg 1.123456.jpg) I found this PHP code that works for changing … ![]() | |
Hi all, I have taken from net drop down menu (Drop down chrome menu). it is written in Object oriented background. but i would like to get it simple and concise. i wrote it in a prosedural background again. below is original script. 1-is HTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML … ![]() | |
Hi, I would like to have my pop-up(upon clicking create order) to be visible even after an error msg appears. How can I do it? <?php $selection = ''; $type = ''; $size = ''; $bidprice = ''; $offerprice = ''; $stoploss = NULL; $takeprofit = ''; //////////////////////////////// $Error = … ![]() | |
I'm testing my script in PHP 5.5, works perfectly until I switch from MySQL to MySQLi. Error: Stack trace: #0 C:\xampp\htdocs\url_rewrite.php(52): tep_db_fetch_array(NULL) #1 C:\xampp\htdocs\url_rewrite.php(106): transform_uri(Array) #2 [internal function]: wrap_href(Array) #3 C:\xampp\htdocs\url_rewrite.php(12): preg_replace_callback('/(<[Aa][ ???]{1...', 'wrap_href', '<!DOCTYPE html>...') #4 [internal function]: callback('<!DOCTYPE html>...', 9) #5 {main} Line 52 of url_rewrite: $cat_Q = … | |
Hai everyone, i want to minus the data from the database with the value that i give when i run the program, everything is works, but i keep stuck at the `newVal` i already did like this, but the `newVal` keep appear 0 (because i declared `decimal newVal = 0`, … | |
i have a problem here. Here is my case: I want to update the Quantity value from program based on the value given from program and minus it to the database. For example: i have 100 in Quantity in the database, once i run the program and update the Quantity … | |
I am creating a new ASP.NET MVC 4 application (actually my first MVC application) that is a part of my previous ASP.NET web forms application. I have never used ASP.NET inbuilt authentication methods in any of my project. This new MVC 4 app will be published on a sub-domain of … ![]() | |
Hello guys!! I have a database and I store public tweets inside. I have lots of columns, including timestamp with timezone column. For example: timestamp | tweet_id "2013-07-30 11:14:07.404+03" 6598dsf4466a "2013-07-30 11:14:08.028+03" 87f9dss99s97 ... "2013-08-04 17:36:37.924+03" 646s4f64a64 "2013-08-04 17:36:38.891+03" 654asd9f654a So, I want to make clusters (time clusters) with these … ![]() | |
I have the following repeater item: <asp:Repeater ID="RptLeaveRequests" runat="server" onitemdatabound="RptLeaveRequests_ItemDataBound"> <ItemTemplate> <table id="tableItem" runat="server"> <tr> <td style="width: 100px;"> <asp:Label ID="lblDate" runat="server" Text='<%#Eval("Date", "{0:dd/M/yyyy}") %>'></asp:Label> </td> <td style="width: 100px;"> <asp:Label ID="lblHours" runat="server" Text='<%#Eval("Hours") %>'></asp:Label> </td> <td style="width: 200px;"> <asp:Label ID="lblPeriod" runat="server" Text='<%#Eval("AMorPM") %>'></asp:Label> </td> <td style="width: 200px; font-size:10px;"> <asp:Label ID="lblNote" runat="server" … ![]() | |
I have the following code executed on window load: var focuscheck = setInterval(focuswindow, 1000); $(anotherwindow).focus(function() { focuscheck = setInterval(focuswindow, 1000); }); $(anotherwindow).blur(function() { clearInterval(focuscheck); $("iframe:first", anotherwindow.document).on("mouseover", function(event) { focuscheck = setInterval(focuswindow, 1000); }); }); anotherwindow and focuswindow are fine so I won't post code for that. So this is how … ![]() | |
just installed SQL Developer 4 and I'm using Oracle Database 11g. I want to execute multiple insert into statements in the worksheet at once. That works fine if I copy paste via command line of SQL but in Develop 4, only one row is being inserted at a time. Is … ![]() | |
Hello, am currently facing an issue in tinymce 4 with the tiny_mce_popup.js (which is by default a 3.x plugin ported to 4.x in compatibility mode), when trying to insert an image in the text area using a custom filemanager, am getting errors in firebug on lines 45 and 108, and … ![]() | |
I'm trying to solve a cryptarithmetic puzzle TOO + TOO + TOO + TOO = GOOD using a program. My solution to this, is to use a nested loop for each unique letter (in this case T, O, G, D). The loops would systematically assign the digits from 0-9 to … |
The End.