Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
~41.7K People Reached
Favorite Tags

36 Posted Topics

Member Avatar for shean1488

Hi everybody. My question is. I made an html template that I will extend in every other html pages. And this template have some variables. So my question is how to assign a function to this base template. Let me be more clear and give you an example: base.html ... …

Member Avatar for ScottieF
0
267
Member Avatar for shean1488

Hi everybody, Explain me please what I'm doing wrong. So I'm trying to create a database and store data, that I get from django forms. Everything looks fine, and when I manually check database it shows that it recieved a new row, however my browser gives me this message and …

Member Avatar for TrustyTony
0
4K
Member Avatar for shean1488

Hi everybody, I'm trying to do a simple login for a web site, and everything looks fine except one thing, when I enter a name and a password for a superuser I got "403 Forbidden" error. here is my login.html: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> …

0
109
Member Avatar for shean1488

Hi everybody, Can you please help me to fix this error: For exit press 'q' Please enter name :Jack London For exit press 'q' Please enter name :C.S. Lewis For exit press 'q' Please enter name :q Traceback (most recent call last): File "/home/serg/python/First/start/Q1.py", line 28, in <module> print row[0], …

Member Avatar for TrustyTony
0
266
Member Avatar for shean1488

Hi everybody, I just start learning python, and beacuse of that I don't really know all usefull packages and methods, that this language has. But I would like to know how would you write this program, or how would you change it (or may be some part of it) to …

Member Avatar for shean1488
0
132
Member Avatar for shean1488

Hi everybody, I want to know your opinion about what language to start learning. My goal is to create different web applications, sorry can not be more specific at that time. I'm trying to find a language that will be easy to connect to a database, that will be supported …

0
59
Member Avatar for shean1488

Hi everybody, I'm just wondering what is the more eficient and compact way to write statements like this if(site.next(1) == null) { return false; } if(site.next(2) == null) { return false; } if(site.next(3) == null) { return false; }

Member Avatar for shean1488
0
93
Member Avatar for shean1488

Hi everybody, I'm trying to figure out how much memory was used for merge sort algorithm. I believe it is just one or two expressions, but can't come up with them by my own. public void mergeSort (T[] data, int min, int max) { T[] temp; int index1, left, right; …

Member Avatar for shean1488
0
333
Member Avatar for shean1488

Hi everyboy, I have a question how to add not boolean expression to the conditional loop, Imagine some situation where I have : while(some expression && another expression) { .... } So lets say I want to calculate how many times "another expression" was evaluated. I wish I would stick …

Member Avatar for shean1488
0
191
Member Avatar for shean1488

Hi everybody Please help me to configure Tomcat server. I was trying to do a lot of things also search a lot in internet for similar problems but can not find an answer. So I installed Tomcat and I belive it is running correctly: root@serg-PORTEGE-Z835:~/Downloads/apache-tomcat-6.0.35/bin# sh version.sh Using CATALINA_BASE: /home/serg/Downloads/apache-tomcat-6.0.35 …

0
83
Member Avatar for shean1488

Hi everybody, When I tryed to compile a C program, compiler gave me error, that I haven't see before. Please tell me what does it mean? and what are the possible reasons, this error occure. blade71(20)% gcc lineholder.c -o lineholder Undefined first referenced symbol in file main /tools/gcc/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.2/crt1.o ld: fatal: …

Member Avatar for shean1488
0
369
Member Avatar for shean1488

Hi everybody! Help me please to figure out the comand that I need to use to find a file and open it at same time for example: root@serg-PORTEGE-Z835:~# locate bash_profile /usr/share/doc/adduser/examples/adduser.local.conf.examples/skel/dot.bash_profile and lets say I want to open this file, but I don't want to use cd and go all …

Member Avatar for rubberman
0
115
Member Avatar for shean1488

Help me please to find the problem in my code: Here is the error that I'm getting: serg@serg-PORTEGE-Z835:~/c$ gcc string_finder.c -o string_finder string_finder.c:4:5: error: conflicting types for ‘getline’ /usr/include/stdio.h:671:20: note: previous declaration of ‘getline’ was here string_finder.c:22:5: error: conflicting types for ‘getline’ /usr/include/stdio.h:671:20: note: previous declaration of ‘getline’ was here …

Member Avatar for tubby123
0
275
Member Avatar for shean1488

Hi everybody! I made an applet, and was trying to put it in web page. When I run my applet by itself it works fine, but when I'm trying to run it thrue the web page it doesn't work at all. I mean I have just grey box (like a …

Member Avatar for shean1488
0
99
Member Avatar for shean1488

Hi everybody, Tryed to make this program: Simple browser: you type the URL at the top and then get a new window with this web page. But my output is just JFrame(Even color did not get changed) help me please to find the problem. [CODE]import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; …

Member Avatar for 117
0
201
Member Avatar for shean1488

Hi everybody. I'm trying to display web page that located in my computer or just (google web page). But everytime I'mgetting nullpointer exception. Please help me to figure out the problem. here is the absolute path that I'm using: [CODE]serg@serg-PORTEGE-Z835:~$ find $PWD -type f -name test1.html /home/serg/Projects/java/GUI/src/its/TestData/test1.html [/CODE] But the …

Member Avatar for NormR1
0
158
Member Avatar for gerchi152
Member Avatar for shean1488

Hi everybody, I just start lerning C I'v heard a lot about pointers but not really sure were to put them. (or may be I'm wrong may be I just made some mistake) pls take a quic look. [CODE]/* This program will delete all simbols * from s1 that s2 …

Member Avatar for zeroliken
0
95
Member Avatar for shean1488

Hi everybody. I'm trying to split a string such that every array element would have characters between open and close prentesis. mmm let me just show: myString = "(2*((3-2)+(5-3)))" So my array should have values like that: myArray[0] = 2*((3-2)+(5-3)); myArray[1] = (3-2)+(5-3); myArray[2] = (3-2); myArray[3] = (5-3); I …

Member Avatar for J_A_L
0
20K
Member Avatar for shean1488

Hi everybody. I have a question: My code produces only 1's. Does it show that processor can only do one task at a time or it is just simply becouse I made something wrong? [CODE]import java.lang.Thread; public class SleepThread implements Runnable{ public final int sleepTime = 1000; public String str …

Member Avatar for stultuske
0
138
Member Avatar for shean1488

Hi everybody, In my little programm, that prompts user to choose txt file, and then displays how many each particular token in the file. I have a little issue with organising the ouput. I think I do something wrong with String.Format, can you please help me: I attached my ouput. …

Member Avatar for Philippe.Lahaie
0
135
Member Avatar for shean1488

Hi everybody I have a little question. I am using JFileChooser to open file and then process it.But the thing is its only works for txt file. What are the other ways to open all ither text files. Plus if would be really helpful if you would tell me how …

Member Avatar for shean1488
0
294
Member Avatar for shean1488

Hi everybody! Help me plz to figure out obe little thing. so imagine little window with 4 buttons and a JLable. I want to ask how to add JLable to the panel and not give it a Grid Layout. I mean that I want my JLable be under 4 buttons. …

Member Avatar for shean1488
1
125
Member Avatar for shean1488

Hey guys, I'm new in Linux/Unix and just whant to figure out one simple thing: So lets say I wrote my c program in vi in Linux, and whant it to be on the unix server. When I'm trying to just copy and paste text from vi. It apperas in …

Member Avatar for JeoSaurus
0
251
Member Avatar for shean1488

Hi everybody, I want to have some kind of a cursor in my program. My goal is: everytime when I write a getName() method I want it to return a next value. But the thing is I don't want to delete any elements befour. So please help me to give …

0
55
Member Avatar for shean1488

Hi everybody, I just want to know how to use gdb if I want to see the value of my variable, that I get from a file. To make it clear I will give an example: lets say I have a file 'str.txt' and a program that counts the word …

0
74
Member Avatar for shean1488

Hi guys I have part of the code that looks something like this: [CODE] if(c1=='a') myStack.push(c1); else if(c1=='b') myStack.push(c1); else if(c1=='c') myStack.push(c1);[/CODE] I just want to ask is there any way to rewrite this code, to make it more compact something like [CODE]if(c1==('(a'||'b'||'c') // I know this doesn't work [/CODE] …

Member Avatar for shean1488
0
136
Member Avatar for shean1488

Hi everybody, I wasnt sure were to post this message, and I post it here. So I'm a CS major student, and I do have a pretty good knowledge of java, far away from college. Just what to ask people who works in the software industry about their job. I …

Member Avatar for shean1488
0
208
Member Avatar for AbdullahJava

You can try something like this : [CODE]import java.util.*; public class Order { static List<String> myList = new ArrayList<String>(); public static void main(String[] args) { takeWords(); } public static void takeWords() { Order myOrder = new Order(); Scanner input = new Scanner(System.in); System.out.println("Please enter how many words you want to …

Member Avatar for NormR1
0
2K
Member Avatar for shean1488

Hi everybody Help me please to figure out what's wrong with my code When I try to compile it it gives me an error ClassNotFoundException I have never had such an error befoure, so I don't know what to do.... [CODE]import java.util.LinkedList; import java.util.List; import java.util.ListIterator; public class Example { …

Member Avatar for thines01
0
226
Member Avatar for shean1488

Hi everybody. I'm working on my program. And have this output storred in the object puzzle: [CODE]Puzzle is: 1 5 9 13 2 6 10 14 3 7 11 15 4 8 12 16 2 6 10 14 3 7 11 15 4 8 12 16 5 9 13 1 …

Member Avatar for DavidKroukamp
0
310
Member Avatar for shean1488

Here is the code for the programm. My question is why this statement in SudokuValidator doesn't work? [CODE]for (Cell[] myPuzzle : puzzle) {[/CODE] it gives me errors: [CODE] Exception in thread "main" java.lang.NullPointerException at SudokuValidator.isSolution(SudokuValidator.java:54) at SudokuValidator.main(SudokuValidator.java:27) [/CODE] [CODE]import java.util.*; public class Cell { int value; public Cell() {} // …

Member Avatar for stultuske
0
267
Member Avatar for shean1488

Hi everybody. I have a class Sudoku. And puzzle stores 2D array of type Cell. [CODE]public class Sudoku implements Iterable<Cell []> { private Cell [] [] puzzle;[/CODE] What I want to do is to iterate through the puzzle in different class (SudokuValidator): [CODE]public class SudokuValidator { private Sudoku puzzle;[/CODE] how …

Member Avatar for JamesCherrill
0
123
Member Avatar for shean1488

Hi everybody. I'm trying to write the program that will read the file and delete blank spaces ONLY after the text. here is the text : [CODE]serg@serg-PORTEGE-Z835:~$ cat sample.txt Now is the [/CODE] here is the the same in hex: [CODE]serg@serg-PORTEGE-Z835:~$ od -x sample.txt 0000000 2020 2020 2020 2020 2020 …

Member Avatar for subith86
0
141
Member Avatar for shean1488

Hi everybody. I'm new in C and would like to know how to delete last elements in the array? lets say I have array arr = {1,2,3,4,5} and whant to delet last two elements. is it possible to do?

Member Avatar for Smileydog
0
10K
Member Avatar for shean1488

Hi everybody. Im trying to make a C program [CODE] 1 #include<stdio.h> 2 #define SIZE 100 3 4 int getline(char line[], int lim); 5 6 int getline(char line[], int lim) { 7 int c,i; 8 9 10 for(i=0; i<lim-1 && (c=getchar()) !="\0"; ++i) 11 line[i] = c; 12 if(c=="\n") { …

Member Avatar for savoie
0
246

The End.