64,152 Solved Topics
Remove Filter ![]() | |
I recently built a calculator in C# for the Windows 8 App store, submitted it and got it approved and its in there now! But it was a very rushed and unfinished product, I was more or less excited that I had a working app so I submitted. Now I'm … | |
I found this question on the internet, > Create a text file with name filename and about size bytes. The file should contain > an incrementing number on each line starting with 0. (ie) 0, 1, 2, 3, .... as many are required to make the file size > just … | |
ello There, i want to ask, how can i customize this function to allow only certain email domain. like for instance A & B wants to register, A email = test@ymail.com B email = test@onlyalloweddomain.com how can i validate that? here's my function function validate_values() { // Create the array … | |
`The Red Fox jumped over the Lazy Dog` Could be translated to: `The%20Red%20Fox%20jumped%20over%20the%20Lazy%Dog` How to translate it to: `The_Red_Fox_jumped_over_the_Lazy_Dog`? To make it more eye friendly. | |
I'm having a simple i/o with file problem. I have the name coming from a string but it just wont open at all. Incoming code: string notename[] = {"NULL","empty"}; ifstream readnote; readnote.open(notename[x].c_str(),ios::in|ios::out); if(!readnote) { cout << "Read Error"; } its prolly something small but i keep getting the error, can … | |
In Laravel 4, which I am just beginning to learn, I have this bit of logic in my controller: `$guid = Input::get('guid');`. I know that part works because I can echo out the value successfully. I am trying to pass the $guid value to a view through a redirect like … | |
Hello, I need some help here. I cannot make the right query. In my code, I want to insert a data into my database. But the id_number will have different values. Id_number have different values because its from a group. So with that group of id_number I want to insert … | |
Do you really need SSL/TLS for encryption safety? I mean, is it possible to let people access website in HTTPS mode and send encrypted data? I don't require verification for my users. I just want to make website access safer. | |
I have a form where the user can simpy enter the field they want to query and it takes them to an update page. In that page I define the variable as follows: <?php $tcode="$_POST[teamID]"; ?> Then in various places I can use $tcode to insert the result from the … | |
Hello, I came across a strange pointer (in my opinion): `void *(*foo)(int *);` Why are so many stars there? It was explained like: "...read inside-out; notice that the innermost element of the expression is *foo, and that otherwise it looks like a normal function declaration. *foo should refer to a … | |
how can I remove error messages without modify php.ini file | |
Im writing project for my programming lessons and right now got some problems with output from function AddItemToClient, basicaly its mainly with date, in first node its correct one but after this its just random. Could someone explain what I'm doing wrong here? #include <stdlib.h> #include <time.h> #include <string.h> #include … | |
Hi, sorry for posting a second thread for the same project but as far as i can tell, the issue is completely different. My Netbeans project seems to be working with a "cache" of a certain class. It seems like this because I commented out all the code in that … | |
I have the code for the first part of a problem, which is to write a program that reads an angle x (in radians) from the keyboard. Then, in a function, compute the cosine of the angle using the first five terms of this series. Print the value computed along … | |
Should I use cmath to use PI and trig functions? I dont think math.h has it - and cmath and math seem like redefine alot of the same things. What is standard practice? Thanks, Dave | |
so, im trying to make a simple funtion to see if there is a file in a folder. been looking everywhere but havent found one that worked out. annnnnnnnnnnnnd code snippet: ` WIN32_FIND_DATA FindFileData; HANDLE hFind; hFind = FindFirstFile(_T"C:\\Dev-Cpp\\notes", &FindFileData); if (hFind == INVALID_HANDLE_VALUE) { cout << "No File found\n"; … | |
Hi Dw I'm trying to copy a chosen file to a directory under 'C:\example' directory folder, I have a textbox to store the address (path) to the selected file, a OpenFileDialog to enable the user to browse to the file to copy and also a FolderBrowserDialog which let the user … | |
var getDataFromUrl = function(url) { rest.get(url).on('complete',function(data) { if(data instanceof Error) { console.log("url error"); process.exit(1); }else {return data}; }); }; when this function (getDataFromUrl) is called by another function it return undefine what is happing | |
Why am I getting an error newDate() not defined ? var thedate = newDate(1971,11,9); console.log("This person was born on:", thedate.getDay()); | |
private void Form1_Load(object sender, EventArgs e) { cn.Open(); } ERROR:Cannot open database "Persons" requested by the login. The login failed. can anyone tell me how to fix this? | |
hi everybody! I really need your help here. I am developing a 3D game. so far I have came no further than finishing the 3D engine and print out some basic 3D-models. everything works okay, with exception of a bug, occuring after a couple of minutes of running time. it … | |
| |
How could I change the column header of the Data Grid to center or right but not left as default? [Pls pay attention, We are talking 'bout Data Grid here, recently I always receive answers for Data Grid View instead :( ] I just want to re-align the header only, … | |
Hello, I have a quick question about c/c++ syntax. Basically I am wondering when it is allowable to have numbers in identifiers. My compiler happens to allow numbers in: * Function names * Class names * Variable names * Pre-processor names As long as they do not begin with numbers. … | |
I have a question that may be a bit complicated, so let me set it up with what I am working with first. I am dealing with a 3 x 10 matrix, which I’m sure you realize means on level 1 there are 3 potential positions, and on level 2 … | |
There are things that can change image to base64. Is it same possible with videos? If yes, how? If not, is there any way, I could place video in format, that "would" be "safe". | |
Hello I have this table with 2 radio buttons to answer a yes or no question. If neither buttion is clicked when the page is submitted, I would like some type of message box to pop up telling the user they have to make a choice before they can go … | |
I am using mysql_fetch_assoc to retrieve and display an array; This is what I recieve upon loading the page: *Warning: mysql_fetch_assoc() expects parameter 1 to be resource* I have researched it and do not understand it. **Snippet* while ($row = mysql_fetch_assoc('$result')) { echo $row["emp_name"]; echo $row["emp address"]; } Thank you, … | |
Hi Dw I have folder which has all the files and the folder can have as much files inside as possible so I have created the function which gets all the files inside this folder and populate it on a listbox so now the problem is that it shows with … | |
<div> <?php include 'connect.php'; if(isset($_GET['id'])){ $page_id = $_GET['id']; $select_query = "SELECT * FROM articles WHERE articles_id='$page_id'"; $run_query = mysql_query($select_query); while($row=mysql_fetch_array($run_query)){ $articles_id = $row['articles_id']; $articles_date = $row['articles_date']; $articles_title = $row['articles_title']; $articles_category = $row['articles_category']; $articles_image = $row['articles_image']; $articles_content = $row['articles_content']; ?> <h3> <a href="articlespage.php?id=<?php echo $articles_id; ?>"> <?php echo $articles_title; ?> </a> … | |
I need to generate 40 random numbers between 50 and 100 using rand(). How do I do this? cout << sizeof(a) << endl; for(int i = 0; i < 40; i++) { if(rand() % 1000+1 >= 50 && rand() %1000+1 <= 100) a[i] = rand() %1000+1; } I was doing … | |
If someone can provide a link with the use of Parameters instead of concatenation | |
hi there, this is my class that uses preg_replace_callback I know that when this function used in class i do like that **preg_replace_callback('|(\d{2}/\d{2}/)(\d{4})|',array(&$this, 'next_year'), $text); ** but i dont understand & in front of $this statement if i dont write the & reference operator in front of this it also … | |
Hi Team, Please hekp me with the OCILogon error. Im using WampServer Version 2.2. I have a script which connects to 10g and 11g database and it works perfect from the browser. Now i want to automate the php script via batch file which will be windows 7 schedule task. … | |
I'm trying to use this code to get all directories on a drive. It works good until it gets an access violation. A lot of people have said to use try-catch to get around the exceptions, but the way I'm trying to do it I only get the directories up … | |
In this line -> `tcpSerSock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)` what is the first 'socket' after the '=' sign, is that refering to a socket class making tcpSerSock an object or just to a module called socket? After reading the documentation I see that socket.accept returns a connection and an address pair, … | |
please can anyone help me with the code on how to generate pin. | |
Hi! I dont know what is the best thing to do to secure my website via internet and intranet. It happens that some of my pages should be able to view via the internet but all pages should keep running and able to access via intranet. On web.config I set … | |
Main content <?php echo $test; include "index.php?test=solved"; echo $test; // expected: "solved" if (isset($_get["test"])){ $test = $_get["test"]; } ?> File ends here error starts here. Notice: Undefined variable: test in C:\-------\XAMPP\htdocs\index.php on line 4 Warning: include(index.php?test=solved): failed to open stream: No error in C:\-------\XAMPP\htdocs\index.php on line 5 Warning: include(): Failed … | |
I am starting a new project and I dont have experience in PHP in general. To help me up and speed things up some of my coworkers told me about CakePHP and Yii. I want to make a hotel reservation system (frontend and backend) and I was wondering wich to … | |
Hi All, I'm battling to get this query to work. I have a select form that allows user to select dates. When he submits it it needs to remove weekends from the request. $DateStart='2013-09-01'; $DateStart='2013-09-05'; $DateSTR=strtotime($DateStart); $DateSTO=strtotime($DateStop); for($i=$DateSTR; $i<=$DateSTO; $i++){ $NewDate=strtotime($i); $DateCalc=date('D', $NewDate); $TotalCount++; if($DateCalc == 'Sat' || $DateCalc == … | |
I have the following html code: <name>Username</name> <kills>1</kills> <ach_count>3</ach_count> And on and on..... I am looking for a code that extracts the value from <tag></tag> and puts them into variable. I don't want to use HTML Agility Pack, don't ask why.Also XML is not an option for me. I hope … | |
I have following problem: I have 2 structures: Clients and items for example structure clients would have name and list of items from another structure asigned to this specific name I have to do this with singly linked lists. I simply have no idea how to do this would be … | |
Hi Everyone, I am using the following slugify script and would like to concatenate two php variables. The two variables I would like to concatenate are $firstname & $surname. The end result should be firstname-surname. function slugify($text) { // replace non letter or digits by - $text = preg_replace('~[^\\pL\d]+~u', '-', … | |
I am trying to upload multi-images I am using this script everything is fine and the images uploaded successfully the problem here is I don't want to duplicate the images name so I used this script to avoid this but no luck any idea this is my code <?php if(isset($_POST['submit'])){ … | |
Hi, I have mysql database dump xxx.sql How can i convert xxx.sql to xxx.csv? Thanks | |
Hi guys. I need help in copying selected row from DataGrid to another. What I want is if I click a row it will be copied to another DataGrid. I set my DataGrid Selection Mode to FullRowSelect. Is it possible for me to update my database using the copied rows. … | |
Hi All, How do i get user choice Radio button text from multiple radio button, When i save as word document. Below code is what i did: "Food :" & ComboBox1.Text & ", Quantity :" & txtCountFood & vbNewLine & But instead of using ComboBox (as above code) i want … | |
Hi all, I have a resource dictionary which is already added to the App.xaml however when I add the particular style to my Grid, it doesn't gets reflected while debugging. Can anyone please help me on this ? My codes are as follow :- MainPage.xaml <Grid x:Name="myGrid_MainPage" Style="{StaticResource myGridStyle}"> myRD_Main.xaml … | |
I am new in web and PHP want to learn about session... how they are made on login... and how they are carried to next page... i know to make database and queries.. |
The End.