40 Topics

Member Avatar for
Member Avatar for dimitrilc

## Introduction ## The Hyper Text Transfer Protocol (`HTTP`) is one of the most common communication protocol on the internet. There are three major versions of HTTP that you should be aware of: **1.1**, **2.0**, **3.0**. Versions 1.1 and 2.0 are widely used today, so this tutorial mainly focuses on …

Member Avatar for pritaeas
3
171
Member Avatar for dimitrilc

## Introduction ## One of the best debugging tools in Android Studio is the *live database inspector*. It allows developers to peek at the current state of the database and even run queries against it. In this tutorial, we will learn how to use it to debug a local SQLite …

2
153
Member Avatar for lewashby

I followed this site -> https://www.box.com/blog/how-to-debug-php-with-vim-and-xdebug-on-linux/ but I'm not having much luck. I followed the firections and my phpinfo() functions is showing that xdebug is up and running but I see don evidence of xdebug from within vim. I typed in my localhost url, localhost/mysite.php?XDEBUG_SESSION_START=1 and then wen to vim …

Member Avatar for lewashby
0
337
Member Avatar for Curious Gorge

I'm sorry I keep having these strange problems but there's little I can do about them, they are unpredictable. I managed to fix the last one and I've been able to compile and run my programs. Now however I've run in to the *strangest *of problems, the one described in …

Member Avatar for Curious Gorge
0
319
Member Avatar for Labdabeta

Hello, I feel like this is probably something silly, but for some reason if I declare a variable at a certain point in my code, then never use it... it crashes. This is literally what happens: //... code here int isBuf=0;//one of my variables int zeroAddr=0;//<-- another variable I want, …

Member Avatar for Labdabeta
0
176
Member Avatar for Eric_8

Hi, I'm newbie in Python Programming. I created the below code. I want to optimize it, but dont know where to start. I am sure, I can do the same with less lines of code. Please advise on best practices and ways on how to optimize it. import math def …

Member Avatar for Eric_8
0
377
Member Avatar for MacErich

Dear all Can anyone explain to me how a (local) counter can be modified in a loop without being touched in the code? ... and how I am best to debug this? Thanks Erich void test(double *x, int l, int N, int K, double *p, Comp * y) { int …

Member Avatar for MacErich
0
193
Member Avatar for vegaseat

If you decorate a function, then some of the information is lost during the debugging process. Python supplies another decorator @wraps to help out. A decorator for a decorator, very interesting.

1
431
Member Avatar for mmcdonald

There has got to be a better way of doing this. First of all pay no attention to the lack of validation and error checking. I just want the core of the script to work first. Also, Block 1 and Block 2 execute, Block 3 does not. Whats the best …

Member Avatar for mmcdonald
0
1K
Member Avatar for pwolf

I have been struggling with this since yesterday and I really need to get it finished. I have no clue why its not working. THe porblem im facing at the moment is as follows: I have a method loadDB(); That is looks like this: public static void loadDB() { // …

Member Avatar for pwolf
0
257
Member Avatar for thewayoftheduck

import java.util.Scanner; import java.util.Random; public class HangmanGame2 { public static void main(String[] args) { Scanner input = new Scanner(System.in); final String[] WordList = { "porcupine", "flamingo", "sasquatch", "poseidon", "minnie mouse", "mickey mouse", "galileo" }; String ChosenWord = WordList[(int)Math.random()*WordList.length]; StringBuffer display = new StringBuffer(ChosenWord.length()); for (int i = 0; i < …

Member Avatar for IIM
0
311
Member Avatar for pvn29

This program is not running due to 2 errors could someone please assist me? Thanks import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class UserList { public static void main(String[] args) throws Exception { String str1, str2 = "username"; int index; int initialCapacity = 10; BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in)); …

Member Avatar for somjit{}
0
241
Member Avatar for Eyeteeorg

Where am I going wrong in this code? // Eyetee's Third Toy V0.0. Copyright 2012 by Eyetee and not released. // Declare variables needed var string_to_be_examined = "This is a test string that can also be obtained from \ some other location." var substring_to_test_for var i = 0 var j …

Member Avatar for Eyeteeorg
0
237
Member Avatar for //Gonz

Afternoon (UTC +0) all I am having a slight problem with the FileSystemWatcher. The File watcher does exactly what i want it to do (as in throwing an event when needed). However, when this event is thrown the debugger stops with no exceptions. This has never happened to me before …

Member Avatar for //Gonz
0
633
Member Avatar for JavaPrograms
Member Avatar for Romil797

I have a website for a painter where the painter uploads a picture. The picture name is added to a mdb (access) database table, the picture is added to the end of a table called galleries, and the file is uploaded. It is also then resized to a small image. …

Member Avatar for Romil797
0
220
Member Avatar for pmark019

My application won't run anymore in my tablet and I don't know why. It runs fine in the emulator. public class TestingActivity extends Activity implements OnClickListener { /** Called when the activity is first created. */ String uname, pass, pic; EditText txtUname, txtPass; Button login; TextView result, tview2, tview3; String …

Member Avatar for pmark019
0
290
Member Avatar for TrustyTony

Here is an amazing article. Peter Norvig does not let small detail, that the language was never implemented in it's time, disturb his debugging the code written without implementation, but single handedly implements it with Python parser. Frustration warning, this is frustratingly amazing stuff: [Prescient but Not Perfect: A Look …

0
407
Member Avatar for abhiroop11

i am using gcc 4.4.3 on ubuntu 10.4 32bit machine. i use 'gdb' to debug my code. Since few days i am seeing that whenever i debug code gdb steps into the c library functions used in the code also(like printf,fgets etc). This shows a long list of calls from …

0
123
Member Avatar for LFCFan_07

Hey guys, I need help finding out what is wrong with my code, I have no errors, but it is not doing what I want it to. I need my code to print a bar code when a user inputs a zip code. My program does not get to the …

Member Avatar for NormR1
0
198
Member Avatar for Labdabeta

I am trying to find a bug in my new and (theoretically) improved syntax highlighter program. I have made 3 versions now and have been able to debug them all with ease. Unfortunately my debugger does not do well with std containers as it shows ALL the information they contain …

Member Avatar for Labdabeta
0
349
Member Avatar for red_ferrari007

PROGRAM GETS COMPILED...BUT GIVES ERROR ARRAY OUT OF BOUNDS...PLEASE HELP AS SOON AS POSSIBLE !!! import java.io.*; class Evaluate { char postfix[]; int stack[]; int i,a,b,c,top,n; BufferedReader input=new BufferedReader(new InputStreamReader(System.in)); Evaluate() throws IOException { System.out.println("ENTER ARRAY SIZE"); n=Integer.parseInt(input.readLine()); postfix=new char[n]; stack=new int[n]; top=-1; i=-1; } void readpostfix() throws IOException { …

Member Avatar for NormR1
0
325
Member Avatar for bobytch

Good Day Everyone here is my code so far [CODE] #include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> void vp(int x,int tc,int bk,char *text); void square(int x,int y,int size); void main() {//=========================================================== int gdriver = DETECT, gmode, errorcode; initgraph(&gdriver, &gmode, "C:\\TC\\BGI"); //------------------monitor-------------------- setbkcolor(0); setcolor(15); square(300,160,150); square(300,160,148); square(300,160,130); square(300,160,131); setaspectratio(2,5); int …

Member Avatar for vidit_X
0
271
Member Avatar for divin757

I am having trouble debugging in sharepoint. It is acting like I am debugging a different dll than the one I made code for. When stepping through it will skip lines occasionally and randomly just stop debugging. Often it will start debugging then stop randomly and show any new breakpoints …

Member Avatar for divin757
0
186
Member Avatar for stbuchok

I've seen a lot of people having issues debugging JavaScript code. So here is how you can easily debug your JavaScript code using Visual Studio (I believe firebug has similar functionality). Also if someone has Visual Web Developer can you confirm that you can do it in that as well …

0
118
Member Avatar for Prankmore

[CODE=c]# include<stdio.h> # include<string.h> # include<stdlib.h> int main(int argc, char **argv){ // Declare Variables char barcode[50]; int count; long long intBarcode; long countryCode; int dig0, dig1, dig2, dig3, dig4, dig5; int dig6, dig7, dig8, dig9, dig10, dig11; long long num; long rem, sum; int checksum; long long manufac, product, language, …

Member Avatar for gusano79
0
231
Member Avatar for jeffcogswell

A couple weeks ago, Microsoft Research made available a project that had been under development for a while called Debugger Canvas. This is a visual tool for debugging applications where your functions appear as bubbles, similar to a database diagram or UML diagram. It only works on Visual Studio 2010 …

Member Avatar for pseudorandom21
1
361
Member Avatar for bio-grad

I posted a similar thread back in Nov and got some great help. I'm modifying the code to be useful to not only compare multiple columns from two separate files, but also to classify each line from @hairpin to determine if the parameters fall within any of the ESThits, outside …

Member Avatar for d5e5
0
217
Member Avatar for esdel

I have two friends whose computers run like paint drying! And their internet connects are dodgy. They are both cursed with Windows 7 On my XP computer I have Prevex 3.05.220 Teamviewer 177152237 Is it possible for me to copy (which files of?) Prevex and Teamviewer onto a thumb drive …

Member Avatar for Reverend Jim
0
221
Member Avatar for jarograv

[CODE]#created by Jaron Graveley #April 26th, 2011 #This program completes reservations for Jon Von Poechman’s airline in an easy to use program #variable list: #i=counter used to limit the number of seats present on the diagram #n= counter to display the row number on the diagram #num_booked=counts the number of …

Member Avatar for jarograv
0
244

The End.