199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Pi

Hi, im writing app in Python 3.4 using tkinter. Its timer for windows 7 and higher. Input some minutes and press start button. When time reaches zero it will shutdown computer. Ive used update method with time.sleep - look at my code. But i need to make this timer with …

Member Avatar for Gribouillis
0
303
Member Avatar for SimonIoa

Hello i have a problem with the facebook oauth login. I am getting `The parameter app_id is required` error but i know i put the app id and app secret any hints?

Member Avatar for Dani
0
582
Member Avatar for Tareq_1

AVGTIL0 – Write a program to accept integers from the keyboard until a zero is entered. Print the sum and average of the even numbers. Ignore any odd numbers in your calculations and print an appropriate message. I am working on this program more than two days. #include "stdafx.h" #include …

Programming c++
Member Avatar for brothman01
0
780
Member Avatar for Ahmed_62

I use bootstrap How can i align the div with sadllebrown border to the middle(vertical) . Itried everything but it didn't get aligned as i want, thanks in advance . here is my code <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="Content/bootstrap.min.css" rel="stylesheet" /> <link href="Content/the-big-picture.min.css" rel="stylesheet" /> <style> body { …

Member Avatar for diafol
0
273
Member Avatar for Rain_1

Hello, So I am first year at Uni and I am new to C++ and I am still trying to learn the basics. I can't seem to find the right way to start my exercise. Ex1. Create a program, which is with a main() function and menu-function for: 1.1) Inputting …

Member Avatar for Andrew_36
0
421
Member Avatar for Greg_15

I've been struggling with this for a few days now. I've finally got it working in pieces, but when my sorting array runs, all I get is empty space. My brain is fried at this point, I can't figure out if it's a simple fix, or a major flaw. This …

Programming c++ ios
Member Avatar for AndrisP
0
330
Member Avatar for SimonIoa

Hello. I am getting an error on my console `TypeError: a is null jquery.min.js (line 2, column 2722)` that causes the page not to load correctly. Has anyone had the same problem.? could it be a conflict error? i use this version /*! jQuery v2.1.1 | (c) 2005, 2014 jQuery …

Member Avatar for Dani
0
254
Member Avatar for 绍禹
Member Avatar for al2henry

I've created and maintain two sites for non profit orgs that I belong to http://www.conservancyonmayne.com & http://www.vivaldichoir.org based on Dreamweaver templates I started with many years ago. As a rank amateur I realize I've created a dog's breakfast of code that is far from "well formed" - so apologies.. The …

Member Avatar for al2henry
0
379
Member Avatar for Aeonix

https://jsfiddle.net/rw2894fe/2/ I don't need to explain the issue, it's visible the second you look at it. Red anchors seem to have "unexplained" padding on bottom and right side. Removing it with "padding: 0; margin: 0;" doesn't affect it. Could someone tell me how to remove that unwanted padding and make …

Member Avatar for Aeonix
0
286
Member Avatar for cproger

I have a Combo box/Dropdown and when a user clicks an option I want the combo box to set the text onto a jTextField. For example: if(carsJComboBox.getSelectedIndex() == 0) { currentCarsJTextField.setText("250 Million"); } if(carsJComboBox.getSelectedIndex() == 1) { currentCarsJTextField.setText("500 Million"); } The problem is that when the program runs, it automatically …

Member Avatar for JamesCherrill
0
327
Member Avatar for Acu Ci Dbuggerz

What's wrong with my code? my save button is not working.. I need help please? thanks! here's my code: <?php include('header.php'); session_start(); ?> <?php include('navbar1.php'); ?> </br> </br> </br> </br> <form class="form-horizontal" method="post" enctype="multipart/form-data"> <input type="text" name="applicant_name" placeholder = "Applicant Name" required> <br></br> Applicant Type: <br/> <select name="applicant_type"> <option value="">Please …

Programming mysql php
Member Avatar for Dani
0
536
Member Avatar for Hanko

hello I have a problem with a program i am trying to write. overview 1. i have a timer (timer1) who is "hearing" on a serial port communciation for any communication comming in. this part works ok 2. i have a backgroundworker that i use to send firmware to a …

Programming listview
0
157
Member Avatar for Sashika_1

I had face dificult problem. So I'm hoping your help. First I would like to discribe my form. Then You can understand my problem. This form had Comboboxes and textboxes and datetime pickers. We need to focus only few ones. So I'll type my form items below accendently. 1. ComboBox …

Member Avatar for Mr.M
0
429
Member Avatar for clife

Hi , Below code prints odd and even numbers using two threads.code works correctly . But i am unable to figure out whether it works in all scenarios. My doubtful scenario is: Lets say `evenfun` thread is invoked first when the value of `count` is 2 , so the thread …

Member Avatar for clife
0
223
Member Avatar for Aeonix

Let's assume couple things. I created a nice website based on compiled program language (Node.js, ASP, Java, C#, whatever). It works nicely. But I'd like to get an estimate on how much hardware I'd need. So I could run 1 hosting, and it would result in "this" amount of impact …

Member Avatar for AssertNull
0
416
Member Avatar for Mushy-pea

Hey. I've been working on a home brew game since late last year, writing an engine in Haskell and GLSL that includes 3D graphics, basic physics and programmable game logic. The version in the second video shows the first appearance of lighting and importation of OBJ files (the cube was …

0
304
Member Avatar for Aeonix

I have two items that look like this span.left { float: left; display: inline-block; /* Take space neccessary */ } span.middle { /* Take free space only, do not push unless allowed */ /* Contains couple lines of text */ text-overflow: ellipsis; overflow-x: hidden; white-space: nowrap; } span.right { /* …

Member Avatar for rproffitt
0
344
Member Avatar for Alfred_6

Hello! I'm trying to display a list of items in a fragment called AgendaList. I am not quite sure what I missed. Here's what I have under AgendaList onCreateView: public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View view = inflater.inflate(R.layout.fragment_agenda_list,container,false); String[] …

0
405
Member Avatar for newbee_jv

Hello all, I have an spring MVC app, that connects to my backend MySQL DB. I have my data source configured properly in my spring bean config XML file, as follow: <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="com.mysql.jdbc.Driver" /> <property name="url" value="jdbc:mysql://localhost:3406/mydb" /> <property name="username" value="root" /> <property name="password" value="passwd" /> …

Member Avatar for newbee_jv
0
2K
Member Avatar for Kristians

Hello. I am in need of your help guys. I have a topic "Patchworks" in uni right now and I have no idea how to draw them on window by using graphics.py in Python 3.5 Basically I got following patch designs to draw on screen: [IMG]http://i67.tinypic.com/2wbt7v5.png[/IMG] and [IMG]http://i68.tinypic.com/j9u7mo.png[/IMG] I will …

Member Avatar for Gribouillis
0
435
Member Avatar for ashalatha

Controller: function addblogs() { $this->load->library('form_validation'); $this->form_validation->set_error_delimiters('<br /><span class="error"> ','</span>'); $this->form_validation->set_rules('blog_title','Blog Title'); $this->form_validation->set_rules('description','Blog Description'); $this->form_validation->set_rules('category_id','Category Name','required'); $this->form_validation->set_rules('position','Position'); if($this->form_validation->run()== FALSE) { $data['categorylist']=$this->blogs_model->categories_dropdown(); $data['mainpage']='blogs'; $data['mode']='add'; $this->load->view('templates/template',$data); } else { $this -> blogs_model -> insertblogs(); $this->flash->success('<h2>blogs Added Successfully!</h2>'); redirect('blogs'); } } Model: function categories_dropdown() { $this->table = 'categories'; $this->where('status',1); $categorylist=$this->dropdown('category_id','category_name'); return $categorylist; } function …

0
275
Member Avatar for Aeonix

https://jsfiddle.net/c9jmjcy0/3/ The reason that it doesn't work is because for some reason `<a>` denies wrapping `<div>`. Probably specification. The only solution is to wrap it around other item. Do we have any other item that would say "it's a link/dropdown". There's also `<button>`. But it doesn't wrap it either, it …

Member Avatar for Aeonix
0
302
Member Avatar for ing

I'm looking for the best way to build a simple scheduler that will be able to render a visual calendar of the last 90 days and events that occurred during that span of time. We will need to store the contents of the calendar in a database. I'm thinking a …

Member Avatar for James_65
0
2K
Member Avatar for ELife

Help me....! Actually I have records about 1000 credit customers, My collection boys go to their door on due date(eg. 15-11-2016) for collection of money. but they have no money to pay,that's why they call my collection boy after 10 day(eg. 26-11-2016). Now, I want the query in Sql. if …

Member Avatar for ELife
0
264
Member Avatar for subhashish12

hello i need solution for to create a insert/select/delete/update stored procedure in mysql and how to call them from php currently i am using xampp 1.6.6 version of software thank you

Member Avatar for Adnan_10
0
3K
Member Avatar for PulsarScript

Hi,can somebody help me to call the boolean method in foreach in client. Here is my code: Client namespace Client { class Program { static void Main(string[] args) { var list = new List<Tuple<int, string>>(); list.Add(Tuple.Create(100, "Andy")); list.Add(Tuple.Create(200, "John")); list.Add(Tuple.Create(300, "Sally")); foreach (var item in list) { Console.WriteLine(item.Item1.ToString()); Console.WriteLine(item.Item2); } …

Member Avatar for PulsarScript
0
2K
Member Avatar for faza_1

hello, im newbie in VB 6, i have a question : i have text.file in text box like: 1 2 3 4 5 from that file, how to get average?? any help me,please???

Member Avatar for rproffitt
0
313
Member Avatar for Magic8Computing

Any ideas why this is not actuall writing to the database <form method="post" action=""> <p>&nbsp;</p> <table width="300" border="0" align="center" cellpadding="0" cellspacing="10"> <tr> <td width="100" align="right"> Film Title : </td> <td><input type="text" name="Film_Title"></td> </tr> <tr> <td width="100" align="right"> Film Format : </td> <td> <select name="Format_ID"> <option>- Select Film Format -</option> <option …

Member Avatar for Dani
0
314
Member Avatar for Thomas_36

I have written the following function to accept a string from a csv text file that presumably contains a series of comma separated numbers. double comma_read(int &index, const string &input) // Reads a number from a comma delimited (csv) file // Returns first number after index-th comma // Then updates …

Programming c++
Member Avatar for rubberman
0
1K
Member Avatar for sidyusuf

Hi Friends, I have a numbervalidation method that validate phone no textbox. What i need is i have different windows forms, so where can i define this method so that i can access it on different forms globally. Like in VB.NET we have Modules, is their something in C#.NET too. …

Member Avatar for ddanbe
0
831
Member Avatar for phphp

Sir I have these codes global $mybalance; $mybalance=0; $mydrcr=''; $result2 = sqlsrv_query($con,$query) or die ("Error". sqlsrv_errors($con)) ; $sno=0; while($res2 = sqlsrv_fetch_array($result2)) { echo "<tr>"; $mybalance=($res2['balance']); echo'Opening Balance='.number_format($mybalance).'<br>'; if($mybalance=0){ $mydrcr=''; } if($mybalance>0){ $mydrcr='dr'; } if($mybalance<0){ $mydrcr='cr'; } echo'Opening Balance='.number_format($mybalance); The codes PHP Code: echo'Opening Balance='.number_format($mybalance); work fine at line 11 but …

Member Avatar for Dani
0
258
Member Avatar for zachattack05

I am working on a table that will hold batch data. The table will have a BatchDate column as a DateTime type. I'm considering adding a column for BatchYear as an integer and BatchPeriod (which could be a week number, a month number or a quarter number) as an integer, …

Member Avatar for Dani
0
662
Member Avatar for radkowboy

I am hosting web site using a inex.php file. I have setup a login for four different users which currently directs them to same index.php file. I would like direct each individual to a specifice index.php file based on the user. I am very new to php and coding in …

Member Avatar for diafol
0
521
Member Avatar for Aeonix

I already tried couple solution from Google, but some of them didn't work (at all), others resulted in weird bug, where HTML page was loaded, but assets (CSS and images) didn't. Other times there were too many redirects and page freaked out. I have account on Cloud Flare, but both …

Member Avatar for Dani
0
497
Member Avatar for Aeonix

Imagine a mailbox. You're about to write to a friend. From staff perspective, someone wants to email Dani, her mail is dani@daniweb.com, but has her in contacts list. You type in "Da", and little tool-tip informs you that it knows this mail, tooltip shows her full name "Dani" and her …

Member Avatar for Dani
0
328
Member Avatar for Saboor880

Hello to all! I am going to make a stock management and Point of sale for a person on Ms Excel file. Actually my client has a store of bedding accessories (e.g pillows, blankets, quilts, cushions. bedsheets and many other items).I have to maintain such an excel file that should …

Member Avatar for Taywin
0
323
Member Avatar for Start4me

My goal is to make manipulations to an image by adding shapes on top of the image using JavaScript. For example, adding rectangular shapes to an image of a refregirator, as shown below: ![Sample_Of_What_Result_Needs_to_Look_Like.png](/attachments/small/3/9dd037e6ad4d9a1edf955eb0e39abf2a.png "align-left") <!DOCTYPE html> <html> <head> <style> #avaliableSpace { border-radius: 25px; background: #00B050; padding: 20px; width: 125px; …

Member Avatar for Taywin
0
931
Member Avatar for phfilly

I think Im misunderstanding something here - I normally work in PHP and think I'm missing something small. My final array tmp is empty and displays as ",,,,,,,,,,,,,,,," . It seems to me my tmp array might be emptied somewhere or the scope gets reset for some reason. I'm using …

Member Avatar for phfilly
0
326
Member Avatar for Aeonix

<?php if (!defined("include")) { header ($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true, 404); die; } I want to include this file, as if it's not included, it should send browser `404 Not Found` and end executing script (without true and 404 doesn't work either). While Opera fools itself, Firefox doesn't. It shows …

Member Avatar for Aeonix
0
346
Member Avatar for BobRoss

Hello, I'm writing a simple shift cipher which reads from plain.txt, encrypts, and writes to cipher.txt. It works, but only for small plain text lines of a couple of words or so. If the plain text lines are long, then the program does not respond (freezes). Any help would be …

Member Avatar for happygeek
0
1K
Member Avatar for dimi231080

Hello dear memebers, after searching for a multiple chat client i have come across a multithreading chat system which i have attached the code .I have taken the code of the server class and added it to my application form as well as the gui.My question is(well i know it …

Member Avatar for Reinaldo_1
0
1K
Member Avatar for lokesh_6

can any tell me how to read a cardiacdicom image and display the image

Programming image python
Member Avatar for Gribouillis
0
319
Member Avatar for janicemurby

hi ive picked up a script and although ive put database details in its not picking them up heres the database file ommiting my database details of course config.php <?php ob_start(); session_start(); ini_set("display_errors", 0); $hostname = "localhost"; $database = "matureco_test"; $password = "xxxxx"; $username = "xxxx"; and heres the database …

Member Avatar for Dani
0
232
Member Avatar for Cherise

Hey guys, I'm a university student and programming in c++ is an elective I'm taking. I've been having a hard time with this course but I'm stillt trying at it. Im in my first year, first semester and I'm new to this site. I'm having difficulties reading data from my …

Programming c++ file-system
Member Avatar for Dani
0
1K
Member Avatar for chrisschristou

hello friends i'm using the boostrap menu for my website it was fine until i wanted to get menu element from database so u got the syntax error unexpected '<' in line 3 and the line 5, 6, 7, 9, 10, are shown red in my IDE i gues if …

Member Avatar for diafol
0
522
Member Avatar for Aeonix

At the end of the day, I end up in: `menu div#memberArea div#dropdown-trigger div#dropdown-content div#form div#authSubmitButtons input#authRegisterButton`. And now many people recommend shortening it down, sure! But as soon as I drop out elements I don't feel like the code explains itself as good. This very long nasty string, as …

Member Avatar for diafol
0
309
Member Avatar for Ali_64

Hi I am using Product Table. I choise Category DropDownList after page is postback and I choise checkbox and I choise another DropdownList after page is postback and I lost value Checkbox Checked. How can I do example. <asp:DropDownList ID="drpKategori" Style="width: 25%" CssClass="form-control" runat="server" OnSelectedIndexChanged="drpKategori_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList> </div> <div class="form-group"> <asp:Button …

Programming asp.net
0
170
Member Avatar for Aeonix

https://jsfiddle.net/mvuy7q60/ Using JavaScript (and jQuery). How can I assure that there's only one line shown (instead of entire content of item), and if it's longer than one line, end first line on "..."? Something like this: https://jsfiddle.net/tt9psxz3/

Member Avatar for Dani
0
292
Member Avatar for yoyie_333

How to get values from listview and display it to textbox using sql database ? and then i can update the items in listview using a button..then refresh the listview after i click the button... tnx for the help in advance..im just a newbie in vb.net ![0da2d193278007986792bf92e19433ab](/attachments/large/4/0da2d193278007986792bf92e19433ab.png "0da2d193278007986792bf92e19433ab")

Member Avatar for Mr.M
0
8K

The End.