199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for James_43

Hi all, Brand new to nginx, but it seems to be the rising star, and suited to hosting high volumes like I'm doing. However, I'm having trouble setting up the config files. A day of google searching hasn't really helped. My nginx.conf looks like: events { worker_connections 768; # multi_accept …

Member Avatar for James_43
0
256
Member Avatar for dcampbell

This is a proto type of a much larger project. I have items that different values and only on needs to be seleced. Then I want to compile alll selected components to new html window for printing or export to .pdf. I have gottent to the end of my knowledge …

Member Avatar for dcampbell
0
229
Member Avatar for powerade661

So I am trying to make this code run in a constant loop. Any ideas how I would do this? As I said before I am trying to self teach myself Python and so far I have been successful. import os import datetime import time print('What would you like to …

Member Avatar for powerade661
0
373
Member Avatar for sasankasekhar2003

I am in the process of developing a web application with a "question - answer" session in PHP and MySQL. This is more like a forum, where the user asks questions and a dedicated expert answers the questions. I am trying to implement the following feature: * When a user …

Member Avatar for overwraith
0
185
Member Avatar for JOSheaIV

As I develop more and more for a living I have been trying to perfect my developing skills with personal projects in hope to expand my professional career, one of these is the concept of Polymorphism. The last few projects I have worked on, I have this model where I …

Member Avatar for Amr.Mohammad87
0
459
Member Avatar for zachattack05

If I implement an abstract class that contains this method: private void MyMethod(string awesomeParameter, int aBigNumber) { // something cool happens here! throw new NotImplementedException(); } can I change it to this without breaking the implementation? private void MyMethod(string myParam, int myInt) { // something cool happens here! throw new …

Member Avatar for ddanbe
0
298
Member Avatar for Jaspreet_3

Hi, I need help if my Pseudocode is correctCreate and load an array with the following 7 values. Then add one more word (of your own choosing) to the array for a total of 8 words. This is a very basic programming class. We use Raptor lol biff comely fez …

Programming python
Member Avatar for rproffitt
0
1K
Member Avatar for Papa_Don

Group, 10 months ago I posed the same question as to how to programatically create the variable names via the loop. However I'm now in real need of doing this and I don't fully understand what each step of the syntax actually means and what it does. Therefore I need …

Member Avatar for Papa_Don
0
1K
Member Avatar for zachattack05

I am writing a custom MembershipProvider for ASP.NET and would like to record certain events in a table when they happen. I have the methods to do it, but I would like to get the value of the "ID" column of the row I insert into the table. I have …

Member Avatar for zachattack05
0
322
Member Avatar for noobjavacoder

First question, is there any difference between binary search and recursive binary search??? I looked through google and everything but couldnt find any useful info. I did find irritative and recursive but that was it. and second question: Given a desired search value of 98 and an array with the …

Programming java
Member Avatar for invisal
0
1K
Member Avatar for powerade661

So I am trying to self teach myself Python, and so far it is working great. However I have ran into a bump in the road and can't really figure out why this script isn't working... Any ideas? import os answer = raw_input('Ready for shutdown, continue?') if answer == raw_input('Yes'): …

Member Avatar for powerade661
0
231
Member Avatar for Hoofy

I am having trouble figuring out an efficient way to perform the checks for how a winner is determined in a 3D tic tac toe program (that is 3x3x3). Winners can be three spaces in any vertical, horizontal, or diagonal, including those between the 3 "boards." There are over 50 …

Member Avatar for Jamie_9
0
1K
Member Avatar for noobjavacoder

public class Vegetable { private int calories; public Fruit (int calories){ this.calories = calories; } } public class Onion extends Vegetable { private String color; public Onion (int calories, String color) { super(calories); color = color; } } Why doesn’t Onion constructor method properly set the color? A. The Vegetable …

Programming java
Member Avatar for noobjavacoder
0
189
Member Avatar for Misar

Dear All, can some one share me a code with one simple cipher encryption, as i'm a noob i in this thing.... Thanks all.

Member Avatar for JOSheaIV
0
248
Member Avatar for gentlemedia

Sorry for the vague title, but I'm using a PHP snippet on a WooCommerce shop which shows the difference between an old price and a new price (sale price) in a percentage bubble on the page. The thing is it shows also percentages with decimals behind a comma if it's …

Member Avatar for gentlemedia
0
267
Member Avatar for shabbir04

Hello everyone.. this is my php code <div class="content-1 col-sm-12 nopadding"> <div class="list-header col-sm-1">Date</div> <div class="list-header col-sm-2">Product</div> <div class="list-header col-sm-2">Username</div> <div class="list-header col-sm-1">Quantity</div> <div class="list-header col-sm-1">Rate</div> <div class="list-header col-sm-1">Sale Amount</div> <div class="list-header col-sm-1">Payment</div> <div class="list-header col-sm-1">Balance</div> <div class="list-header col-sm-1">Remarks</div> </div> <?php $sql = "SELECT * FROM sale_history order by date …

Member Avatar for diafol
0
249
Member Avatar for Ananthoju

How to detect the keylogger softwares which are running in the system. Keylogger run in hidden mode,by the processes running in the background are us to detect it. Is there any process/me3thod to get complete details of process i.e, how muchmemory,cpu,harddisk spae are using and which files in drive are …

Member Avatar for overwraith
0
222
Member Avatar for Von_1
Member Avatar for shany0786

I am have debugging some javascript code in firebug,then i have seen some strange POST thing in firebug this is worrying me? I have registration form when i reload page i see in firebug following "POST http://api.adsrun.net/post" Response Header Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Connection keep-alive Content-Type application/json Date …

0
196
Member Avatar for Isaac_9

Hey guys, Am Isaac from Nigeria. My final Year Project is solving timetable problem using genetic algorithm. The problem is I don't know how to accept population from my php script... Someone please help

Member Avatar for Isaac_9
0
165
Member Avatar for halovalo

Hi all! I have a simple procedure which should return an 'id' field if parameter is passed. The problem is that if I provide the single letter parameter it returns no records although there are matches. But if i provide the whole word as it's written in a table, I …

Member Avatar for halovalo
0
120
Member Avatar for crazynp

When I was editing the databse, the power went off and now arror comes as "Unrecognized file format ...............". I tried to compact and repair but no success. how to recover data?

Member Avatar for Ernest_3
0
333
Member Avatar for janicemurby

Hi i have got multiple check box working in test file but when i try and put it and check box all i get is array i put this bit in profile.php $length = count($interests); for ($i = 0; $i < $length; $i++){ echo $interests[$i]; echo ' '; } ?> in …

Member Avatar for minitauros
0
266
Member Avatar for Arsenal0202

I'm having a hard time trying to display an error message once someone has already entered in that letter. I'm super new to all of this so I have no idea what I'm doing but I can't get it to work. Please help, I've been trying to fix this for …

Member Avatar for invisal
0
166
Member Avatar for Xethiro

The purpose of this assignment was to get a phone number and print out how many digits of each were in the phone number. Ex: phone number = 555-3311 1 = 2 2 = 0 3 = 2 etc. Instead of getting how many times the number shows up I …

Member Avatar for Xethiro
0
217
Member Avatar for zelrick

Hello Web Developer, This is working <form class="frm" action=""> <select onChange="window.location.href=this.value"> <option value=""> </option> <option value="../wxmaps/glob/glob_rrpf.html" href target="wxmdisp">Precip + MSLP</option> <option value="../wxmaps/glob/glob_rrwf.html" href target="wxmdisp">[Parameter2]</option> </select> </form> the problem is when I click one item on the drop down list it appear to the same window. I have a frame name …

Member Avatar for zelrick
0
272
Member Avatar for sherwin_2
Member Avatar for rproffitt
0
112
Member Avatar for kouty

The console says arr1 is not a function! function union(arr1, arr2, arr3) {//1 arr1 = arr1.concat(arr2).concat(arr3); console.log("concatenation of arr1", arr1, '\n'); arr1 = arr1.sort(); console.log("arr1 good ordered", arr1, '\n'); for(i = arr1.length - 1; i > 0; i --) {//2 for(j = i -1; j > 0; j --) {//3 …

Member Avatar for kouty
0
298
Member Avatar for Sajjad_1

i want to set a default value of option box and that value is fetch from database. here is my code it works fine with number but my month are given in alphabetical order like "Jan","Feb".. here is the code I try <?php $month=array("Jan","Feb","Mar","Apr","May","June","July","Aug","Sep","Oct","Nov","Dec"); foreach($month as $m) { printf('<option value="%d"%s>%d</option>', …

Member Avatar for diafol
0
217
Member Avatar for jeffersonalomia

How can I view locally(meaning my website is not yet publish on the internet), a certain file with extensions of .docx, .pptx, .ppt and .doc? Is there any libraries which i can call on my website like jquery? Please help.. thank you

Member Avatar for diafol
0
277
Member Avatar for armstr38

CSS Code #info-section{ width: 700px; margin-top: 30px; } #info-section ul li{ display: inline-block; list-style: none; } /*#image-section img{ width: 400px; height: 270px; }*/ .info-img img{ max-width: 400px; max-height: 270px; } .text-section{ width: 200px; height:270px; background-color: #1b1b1b; margin-left: 400px; color: #fff; position: absolute; } /* #text-section{ width: 200px; height:270px; background-color: #1b1b1b; …

Member Avatar for diafol
0
389
Member Avatar for shany0786

i am stuck at one problem where i have two radio buttons "yes" and "no" by default yes is checked and below these radio buttons there are 3 drop downs for country,state,cities and two text fields.no what i want is when user select "no" radio button all these 3 dropdowns …

Member Avatar for gentlemedia
0
347
Member Avatar for chrisschristou

hello every body here i got some problem with assign value to arrays, so i want to print multiplication table of the arrays: #include <stdio.h> int main(){ int x=5; int y=5; int i,j; int tab[x][y]; for( i=0; i<x; i=i+1){ tab[i][j]=i; for(j=0; j<y; j=j+1){ tab[i][j]=i; printf("%d", tab[x][y]); } printf("\n"); } return …

Programming c
Member Avatar for rproffitt
0
289
Member Avatar for kouty

Hello I try to learn the String.charCodeAt(index) method Here is a snippet that demonstrate that the first index is allways 48 independentely of the character. How work's it (I was expecting that each letter has her unicode-number equivalent. function unicoding(str) { for (i = 0; i < str.length; i ++) …

Member Avatar for Traevel
0
393
Member Avatar for hefaz

Hi all, i am using a ribbon in my c# 2010 project, first i had .net framwork problem while i was running the form then i changed that to .net framework 4.0 now it says Win32 exception Unhandled. What is the problem? is the problem in debugger?

Member Avatar for rproffitt
0
549
Member Avatar for jeffersonalomia

Does php copy() function can convert a certain file format, let say for example file.pptx convert to file.odp, is it possible?

Member Avatar for cereal
0
722
Member Avatar for sing1006

I have 3 table which are ![zz.PNG](/attachments/large/3/f81c645612d06529dba9af30a4a314ac.PNG "align-center") I want to duplicate a record from the master table in the same time it will duplicate all children table. I will assign new primary key to the new duplicate record. For the tbl_System and tbl_MainComp work fine. But when i have …

0
311
Member Avatar for AntonyRayan

Hi, here I included my code to find no of working days between two years. But in leap year I do not know how to find the working days. Can anyone help me? function calculate($month,$year) { $Start_Date="1/".$month."/".$year.""; $myTime = strtotime($Start_Date); // Use whatever date format you want $daysInMonth = cal_days_in_month(CAL_GREGORIAN, …

Member Avatar for diafol
0
357
Member Avatar for hadisur_rahman
Member Avatar for rproffitt
0
126
Member Avatar for Kevin_20

I have a MySQL table with a string-based primary key. I created it with an ActiveRecord::Migration as follows: create_table( "icd9s", id: false) do |t| t.string "ICD9Code", limit: 7, null: false t.string "ShortDescription", limit: 128, null: false t.string "LongDescription", limit: 255, null: false end add_index(:icd9s, :ICD9Code, unique: true) Then I went …

0
283
Member Avatar for ahsan1

This is the program in java which is an interface to stanford postagger. I have attached a copy of it. I am using netbeans 6.7.1 . I have placed the model file which is "left3words-wsj-0-18.tagger" in the bin folder of jdk and also placed the stanford-postagger.jar in that folder. I …

Member Avatar for Hargung
0
266
Member Avatar for glao

Hello , Let's say I have : def mine( a, b ): return a>=b - 1 I can't understand what's going on with the -1. So , if a = 4 , b = 2 , it gives True If the opposite it gives False. As I said I don't …

Programming python
Member Avatar for glao
0
150
Member Avatar for BobFX

Hi, I have built a shell extension handler, using this as a template: https://code.msdn.microsoft.com/windowsapps/CppShellExtContextMenuHandl-410a709a In this instance, it registers with a ".ts" extension: hr = RegisterShellExtContextMenuHandler(L".ts", CLSID_LNtoALL, L"CppShellExtContextMenuHandler.LNtoALL"); The project compiles fine, and the registration works also. But on one PC, it fails to load (the context menu for .ts …

Member Avatar for BobFX
0
370
Member Avatar for Mohamed_26

Hello, I am trying to build a basic unit framework. I have got this method in a class called KUnit3 public static void checkEquals(double value1,double value2) { if(value1 == value2) { addToReport(String.format(" %f == %f", value1, value2)); passedChecks++; } else { addToReport(String.format("* %f == %f", value1, value2)); failedChecks++; } } …

Member Avatar for JamesCherrill
0
269
Member Avatar for James_43

Hi all, I have a HTML video within a div that is 100% width of the page. I want the video fill the container and crop the height to fit. But so far I cannot get the video to expand at all! I'm simply using: .video { width:100%; } and …

Member Avatar for James_43
0
3K
Member Avatar for ZER09

anyone can give me an advice for improving this piece code, it give me a complexity of score of 10. There is something telling in back of my mind that it can be improve, but this is the best i can do. arggg public override bool Validate(Control control, object value) …

Member Avatar for Traevel
0
133
Member Avatar for kayleigh0411

I am trying to write a generic class with at type parameter T, and add a method that takes an ArrayList of type T and returns a standard deviation as type double. My program is compiling with no errors, however the standard deviation is incorrect. It is outputting the standard …

Member Avatar for Traevel
0
938
Member Avatar for tony75

Hi I have an python script send me log files and ip address from my PC-B Is it posssible to add functins that I can Remote uninstall (distance)my script from my PC-B? if yes how? any idea?

Programming python
Member Avatar for rproffitt
0
374
Member Avatar for wilsonchama

Hi guys, am trying to populate textboxes with data from sql server database. below is the code I am trying to use in Visual studio 2012, Vb.net. Private Sub btnSave_Click(sender As Object, e As EventArgs) Handles btnSearch.Click Dim query As String Dim MyConnection As SqlConnection = New SqlConnection("Initial Catalog=PayRoll;" & …

Member Avatar for Reverend Jim
0
325
Member Avatar for janicemurby

hi im attempting to add a multiple checkbox with a few options see html code <form method="post"> <table width="900"> <tbody> <tr> <td width="900"><input name="interests[]" id="option1" value="option1" type="checkbox">option1</td> <td width="900"><input name="interests[]" id="option2" value="option2" type="checkbox">option2</td> <td width="900"><input name="interests[]" id="option3" value="option3" type="checkbox">option3</td> </tr> <tr> <td><input name="interests[]" id="option4" value="option4" type="checkbox">option4</td> <td><input name="interests[]" id="option5" value="option5" …

Member Avatar for cereal
0
318

The End.