What are the qualifications to be an announcer/commentator at the US Open? Clearly it's not the ability to be able to pronounce the names of the players. Someone who has been making a big splash of late is an 18 year-old Canadian named Denis Shapovalov. At the start, when nobody knew who he was, the announcers would pronounce his name SHOP-uh-VAL-ov Semi-understandable for most of us but certainly not for people whose job it is to comment on players with mostly foreign names. But it gets worse. Shapovalov didn't qualify for the US Open in time (he didn't get his …

Member Avatar
Member Avatar
+0 forum 14

Hi everyone, How are you? Starting some thread after long time :) Actually, I have a group of 25 people. I have 20-25 mobile devices in my group. So, I have assigned 1-2 device on each person's name(as an owner). But, people in the group ask each other for the device for some help and promise to return it too. They may need specific device for some work which is a genuine thing. But, they forget to return it & person who gave has to ask on emails or each person where his/her device is. Problem: Asking on emails is …

Member Avatar
Member Avatar
+0 forum 1

I wrote a web page with one Russian word in it, using the Cyrillic alphabet character entity names (found in a list of all Unicode characters that I have). The page works fine in every browser I tried. But the W3C validator won't validate the page because the Cyrillic character entity names were used. It validates if I use the Unicode numbers instead, but that is such clanky programming. It reminds me of having to type in the ASCII code for every character the program displays in assembly language programming. Why can't we have the better programming practices? W3C seems …

Member Avatar
Member Avatar
+0 forum 14

Hello. My question is very basic but I can not find/understand the answer anywhere. How check if the name-value "name": value in an object. I know that with Object.keys() method we can checking the names of the properties. I know too that with Object.name or Object["name"] we can see the value of the "named-name" property. But if I have a singleton {"name": value} and want to check many large object for it, is it a direct method? For example object 1 is {'a': 'lphabet', 'b': "cycle'} and I search 'a': 'bsurd'. Tthank you in advance

Member Avatar
Member Avatar
+0 forum 10

Hi guys, I have one simple logical question that I seem not to figure it out, sadly... We have a list of objects and I loop trough them, list of products. We need to create anchor maps for each category, so I did a comparison with temp variables to check the previous and current element value. How can I display only the first occurence of a series of values for each category ? Desired result: Category 1 - product 1 - product 2 - product 3 Category 2 - product 1 - product 2 - product 3 $previous = ''; …

Member Avatar
Member Avatar
+0 forum 2

Hello since cereal helped me out with the price and counting in PHP i need just one more thing, to get the names of the products i have tryed different ways to do it by my self but i just cant cause im begginer with PHP language, i have this array: $names = array ( "mikrobranova" => "Mikrobranova pecka", "smasina" => "Masina za sadovi", "amasina" => "Masina za alista", "sol" => "Sol", "prasok" => "Prasak za perenje", "salama" => "Salama", "banani" => "Banani", "vegeta" => "Vegeta", "zejtin" => "Zejtin", "paketce" => "Novogodisno paketce" ); $_SESSION['prducts_and_names'] = print($names); So i need …

Member Avatar
Member Avatar
+0 forum 3

Hi I need a code block to accomplish the following task : There is a flolayoutpanel in my form with 3 panels in it. I want my submit button to count the panels and create a stopwatch control named after each panel. Here is what I have so far : Dim Panels As Integer = FlowLayoutPanel1.Controls.Count For i = 1 To Panels Dim StopwatchNumber As Integer = FlowLayoutPanel1.Controls.Count + 1 Dim Stopwatch As New Stopwatch ' <-- How can I assign the name [Stopwatch1]? Next

Member Avatar
Member Avatar
+0 forum 7

I develop a project that consist of many tables. In admin menu table names shows dynamically in a dropdownlist from a database. Pls help me to do this

Member Avatar
Member Avatar
+0 forum 3

I forgot the way to write a query where you can psuedo name a table, for instance I have a table named user but I have to access it twice in one query and I want the results to be different. something like select user(a).f_name, user(a).l_name, user(b).f_name, user(b).l_name from user(a), user(b) where user(a).id = '1' and user(b).id = '12' Does any one know the resources to look this up?

Member Avatar
Member Avatar
+0 forum 2

Hi, I'm trying to sort a list of names in c++ (first name and last name). I'm running into a couple of problems with my code. I'll post the code first then state my problems. #include <iostream> #include <stdio.h> #include <cstring> using namespace std; const int numNames=3;//this makes the code more flexible, sets the amount of names to sort int main() { char name [numNames][80]; char last_name[numNames][80]; char name_buff [1][80]; cout << "Please enter 3 names to be sorted.\n"; cout<< "\nEntires should be of the format\n"; cout << "First_Name Last_Name." << "\n\n"; for (int i=0; i<numNames; ++i)//use a loop to …

Member Avatar
Member Avatar
+0 forum 5

Hi All, I have an image upload that works for my requirements - But what I am unable to figure out is how to rename the image to the datatime stamp and to keep the file extension .jpg / .png / .gif / .jpeg etc I have a variable $datetime $datetime = date('l jS F Y h:i:s'); here is the code that I am trying to work with - Any help with be much appreciated - [code] //////////////////////////////////////////////////////////////////////////////////////////////////////////// $img1 = $_FILES['jan_image']['name']; //Add a security check, to make sure only allowed files are uploaded $ext=explode('.',$img1);//explode the image name into an array …

Member Avatar
Member Avatar
+0 forum 3

Hello DaniWeb, it has been a while since I have asked a question here so I thought now would be a great time to do so. I am creating an application that loops through the file names of a specific directory, in this case, the System32 folder. I want the program to compile a list of the file names and then I want the file names to be displayed on a Timer_Tick event so the name will change on every tick. If anyone could provide a snippet of code to achieve this that would be great. I have been researching …

Member Avatar
Member Avatar
+0 forum 1

Hi, Is there a way i can pass variable column names to a stored proc? Here's what i want to do: i have lots of tables and for each of those i want to select out a few columns. e.g from table titles i want to pick out title_name and cost then maybe i want to go to publishers and pick out mean cost and country. I have the table names and the column names in a perl script. Can i pass these as variables to a generic stored proc? here's what i tried: [CODE] create procedure test_proc @file VARCHAR(256) …

Member Avatar
Member Avatar
+0 forum 1

I found an old thread that had never been answered here - [url]http://www.daniweb.com/software-development/vbnet/threads/330981[/url] Basically, the guy was asking how to retrieve database names and/or table names from a MySql database with vb.net. Here's my answer to that. Yes, I still use vb6 because vb.net is not much better and I can do anything I need to in vb6. This function is from a production program I wrote a while back. I looked all over Google to see if I could find a better way to do it but the examples I found were 'college level' and not real world code, …

Member Avatar
+0 forum 0

wxpython i cant figure out the problem. it says that the global neme 'panel' is not defined. Traceback (most recent call last): File "C:\Users\Daniel\Desktop\Duffan Teorem", line 34, in clickbutton wx.StaticText(panel,-1,media,pos=(150,240)) NameError: global name 'panel' is not defined could someone please help me to figure tha problem out? Thanks in Advance import wx class duff(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id,'Duffan Formula', size=(400,300)) panel=wx.Panel(self,-1) g=wx.StaticText(panel,-1,"________________________________________________________",pos=(10,65)) z=wx.StaticText(panel,-1,"Welcome to Duffan Formula!!",pos=(10,10)) r=wx.StaticText(panel,-1,"Here you can discover the score of any girl you are looking for.",pos=(10,30)) q=wx.StaticText(panel,-1,"Use it, with Knowledge!",pos=(10,50)) a=wx.StaticText(panel,-1,"What`s her name?",pos=(10,110)) b=wx.StaticText(panel,-1,"What`s her beauty score?",pos=(10,150)) c=wx.StaticText(panel,-1,"What`s her body score?",pos=(10,190)) average=wx.StaticText(panel,-1,"Average: ", pos=(80,222.5)).SetForegroundColour('blue') self.one=wx.TextCtrl(panel,-1,'Enter name',pos=(110,108),size=(80,20)) self.two=wx.SpinCtrl(panel,-1,'1',pos=(150,148),size=(60,20),min=0,max=100) self.three=wx.SpinCtrl(panel,-1,'1',pos=(130,188),size=(60,20),min=0,max=100) …

Member Avatar
Member Avatar
+0 forum 2

I need to use mergesort to sort the data in a file that has the names and ages of 10 different people , first i have to sort the names in ascending ascii order and then i have to sort them by their age but im not sure how to do it this is what i have so far [CODE] #include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #define NUMBER_OFPEOPLE 10 typedef struct{ char name[6] ; int age ; }people ; typedef char byte ; void memcopy( byte *to, byte *from, int count ) { while (count-- > 0 ) …

Member Avatar
Member Avatar
+0 forum 4

I have made a couple of preliminary versions of a web machine as an HTA and as a web dialog plug in for Google's Sketchup. The machine has moving sliders (hence machine) that get populated with names of real objects in a hierarchical structure set by the user's associations e.g. Work> Office> Workstation> Computer> Links> ... The machine reacts to a selection by moving the new associations something like a slot machine. I thought a bit bit of background info might be helpful. The names are stored with their properties in JSON files, read and written by filesystem and ruby …

Member Avatar
Member Avatar
+0 forum 1

I'm coding a game right now and everything works great that i want to have working right now, but there's a minor bug that i know of. this is that when the player enters their name, and the name has spaces, the code just closes. here's the part of code: [CODE] char name [40]; // lets the players name be up to 40 characters int main (){ cout << "Hello, Welcome." << endl; // title screen cout << "What do you want your name to be?" << endl; cin >> name; system ("cls"); cout << "Congratulations " << name << …

Member Avatar
Member Avatar
+0 forum 8

i work with a guy who constantly complains and posts on stackoverflow that i am a sloppy coder (he is a web developer, i am a .net developer, he has never actually looked at my programming). but curiously, i researched. The only thing that I do not follow with best practices is certain .net naming conventions. I have developed a habit of using _s (function_name) and intInteger, strString, blnBoolean. he says i am wrong and it is sloppy and not efficient. I should do it stringName, functionName, intergerName, booleanName. is it really that big of a deal? is something magically …

Member Avatar
Member Avatar
+0 forum 8

Hello Guys, I am trying to update multiple table rows using dynamically generated radio buttons. The radio buttons are in groups of two (yes and no) which also have dynamic names. In other to give the group unique names, I have added row numbers to the group names as thus: ... some select statement... [code=php] while($row = mysql_fetch_array($result)){ echo "<input type=\"radio\" name=\"test".$rowId."\" value=\"yes\" />Yes <input type=\"radio\" name=\"test".$rowId."\" value=\"no\" checked=\"checked\" />No"; }[/code] this works fine in grouping the buttons, but my problem is how to retrieve the value of the buttons when the form is submitted seeing that the group names …

Member Avatar
Member Avatar
+0 forum 1

I have a file with a list of names. Jane Huston Bob Brown Jack Tracy they should be ordered by last line like this Bob Brown Jane Huston Jack Tracy but my program wont compile and i dont know how to fix it? here is my code #include <iostream> #include <fstream> using namespace std; const int SIZE = 10; const int MAXNAME = 20; int FindSmallest (char array1, int start, int size) { int position = start; char smallest = array1[start]; // first assumption for (int k=start+1; k<size; k++) if (array1[k] < smallest) { smallest = array1[k]; // change your …

Member Avatar
Member Avatar
+0 forum 1

I have several, plus some domains for sale. I'm also a social media geek with a good sense of humor. Can I stay?

Member Avatar
Member Avatar
+0 forum 2

Hi, Does anyone know if there is a way in MySQL to have it return the column names qualified with the table name? For example, suppose I have the query, SELECT * FROM Items, Sales; and the tables Items and Sales both only contain columns named ID and Count. By default, MySQL just adds a one to the duplicated names(in this example it would return a table with fields ID, Count, ID1, Count). Instead of this, I want it to return the new table with the columns named as Items.ID, Items.Count, Sales.ID, Sales.Count, without me having to specify individually what …

Member Avatar
Member Avatar
+0 forum 3

The code from my answer to thread: [url]http://www.daniweb.com/forums/thread292949.html[/url] Any field names with any same separator separating the values. This is straight text file reading routine, see the original thread for csv module based code. sample.dat: [CODE]id; name; email; homeaddress 123; gishi; gishi@mymail.com; 456 happy st. 345; tony; tony.veijalainen@somewhere.com; Espoo Finland [/CODE]

Member Avatar
Member Avatar
+0 forum 1

The End.