Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

Member Avatar for arthurav

I have one variable already set (received through GET, too). I want to pass it, together with the variables of the form. The problem is that the new page takes only the variable from the from. This is the code: [CODE]$insertion_type=$_GET['insertion_type']; echo "<form action='index.php?insertion_type=".$insertion_type."&' method='get'>"; echo "Number of registrations<br /><input …

Member Avatar for Dexx
0
153
Member Avatar for arthurav

My bachelour thesis theme is "Parallel algorithms for solving linear programming problems". I am using the revised simplex method with LU decomposition. I don't know how to exploit the sparsity of the restrictions matrix other than tridiagonal systems. In the attachments I have plotted some matrices I use. Do you …

Member Avatar for rubberman
0
91
Member Avatar for arthurav

I want to use hash_map with struct values. The code is the following: [CODE]#include<stdio.h> #include<string.h> #include<hash_map> using namespace std; using namespace __gnu_cxx; struct row { int number; char type; }; struct eqstr { bool operator()(const char* s1, const char* s2) const { return (strcmp(s1,s2)); } }; int main() { hash_map<const …

Member Avatar for thekashyap
0
280
Member Avatar for arthurav

I am trying to implement a bruteforce check on a loginpage. It logs the logins from a certain ip. If there are more than 10 it will stop saving the logins in the database and will set the $nopage variable to 1. [CODE]$ip=$_SERVER['REMOTE_ADDR']; $res_check_bruteforce=$teste->query("select count(id),max(time) from bruteforce where ip='$ip'"); echo …

Member Avatar for Hummdis
0
112
Member Avatar for arthurav

The subject of my bachelour thesis is "Solving linear programming problems using parallel algorithms". I will create a library for solving different kinds of problems (simplex, branch and bound and so on). I want to use OpenMP or PThreads locally and OpenMPI in the network. Which one would you recommend …

Member Avatar for arthurav
0
127
Member Avatar for arthurav

I have the following program : [CODE] #include<iostream> #include<string> #include<conio.h> using namespace std; template <class T> class matrice { T **a; int m,n; public: matrice(); matrice(int,int,int); matrice(char *); matrice(int,int,T **); matrice(matrice &x); ~matrice(){}; template <class U> friend ostream &operator <<(ostream &,matrice<U> &); int getNrLinii(){ return m; } int getNrColoane(){ return …

Member Avatar for Fbody
0
187
Member Avatar for arthurav

I am creating a template class for working with matrices and get an error when I try to use the overloaded << operator. This is the code: [CODE]#include<iostream> #include<string> #include<conio.h> using namespace std; template <class T> class matrice { T **a; int m,n; public: matrice(); matrice(int,int); matrice(FILE *); matrice(int,int,T **); …

Member Avatar for vijayan121
0
2K
Member Avatar for arthurav

I have a database of questions for some tests. They will be uploaded on a website so that the users can browse them but I would like to make it hard for the users to copy them. I am using php to interface with the database. I have thought of …

Member Avatar for quasipickle
0
107
Member Avatar for arthurav

I have created a checkDelete function to ask the user if he wants to delete the selected entries from a database. The problem is that choosing cancel still deletes those entries. This is the function: function checkDelete (){ var answer = confirm("Are you sure you want to delete the selected …

Member Avatar for almostbob
0
306
Member Avatar for arthurav

I am using Windows Vista Business and Microsoft Office 2007 on a couple of computers. When transfering a document (for example a word doc) from a computer to the other, it sometimes happens that the source document is not identical with the destination. The main problem is that certain things …

Member Avatar for adrianamie
0
212
Member Avatar for arthurav

I have some text in a block with a certain width. I can count the number of lines in the text with substr($text,"<br />" but this is not the same with the number of line of the formatted text at that width. Is there a way to calculate that? Thank …

Member Avatar for diafol
0
125
Member Avatar for arthurav

I have found on the internet a tutorial that helps me create an abstract background. Is it a problem if I will use a slightly modified version (same colours, different size of the elements) of the tutorial to create a book cover? Thank you.

Member Avatar for eno_diputs
0
115
Member Avatar for Spakes
Member Avatar for mitchems
0
106
Member Avatar for arthurav

I have a table with content fetched from a html table. I have a modify and delete column. In the modify column I have submit forms which send as hidden input the id of the column. In the delete column I want to have checkboxes that will be linked to …

Member Avatar for arthurav
0
80
Member Avatar for arthurav

I use a couple of functions to which I have to pass the name of the mysqli connection in order to fetch some data. Is it safe to use a global variable for the mysqli connection to skip passing the connection name to the functions?

Member Avatar for FlashCreations
0
105
Member Avatar for arthurav

I administrate a database with 3 main tables for a training company: course providers, lecturers and graduates. I have to create a database admininstration page with insertion, modification and search features. I am using php with mysql. I wanted everything to happen in the index.php (do not know if this …

Member Avatar for nkmswot
0
126
Member Avatar for arthurav

I have a file upload website. Information about files and the files themselves are stored in a mysql database. I want to allow the users to delete their own files. On every line I have put a delete button. My concern is which is the most secure implementation. I am …

Member Avatar for MindSter
0
74
Member Avatar for arthurav

I use a mysql database with students and grades for a training program. I would like to create a dynamic form with one field that works like this: if i write the name in the form and press check, and the student exists, i want it to show me the …

Member Avatar for Graphix
0
163
Member Avatar for arthurav

I use a mysql database with students and grades for a training program. I would like to create a dynamic form with one field that works like this: if i write the name in the form and press check, and the student exists, i want it to show me the …

Member Avatar for javaAddict
0
113
Member Avatar for arthurav

Given the degree of the polynomial and a vector with the polynomial's coefficients is there a more efficient way to recursively calculate the polynomial result for a given x? This is what i have tried, and it works, but I am asking if there is a more efficient way to …

Member Avatar for arthurav
0
3K
Member Avatar for arthurav

I am currently reading the Art of Computer Programming by Donald Knuth, volume 1, 3rd edition and cannot understand the way the substraction operator works in MIXAL(specifically example 2 from page 132). SUB 1000 [-][1234][0][0][9] rA before [-][2000][150][0] Cell 1000 [+][ 766][149][?] rA after Given the fact that the byte …

Member Avatar for TrustyTony
0
97
Member Avatar for arthurav

I'm trying to understand the following algorithm, found at the 26th page from the first volume, 3rd edition of donald knuth's art of computer programming. it is the 25th exercise on the page. I am using <- as the attribution operator. It says: suppose that we have a binary computer …

Member Avatar for TrustyTony
0
157