Member Avatar

## Background ## Hi All, I 've been playing around with colour (color!) formats and needed to create a class for converting different formats, so I thought I'd share it. It seems to work quite well and accepts a number of different convenient formats. The class allows the conversion between HSL, HSV, RGB, CMYK, HEX (base16), Integer (base10) and 'HTML color names'. I found the formulae for conversion from pseudocode in the following locations: http://www.rapidtables.com/convert/color/ (great colour references!) http://stackoverflow.com/questions/15202079/convert-hex-color (for the sscanf method) It should be noted that conversions involving CMYK can only be approximate as there is no absolute …

Member Avatar
5
37
Member Avatar

How do I change the name of my profile? I looked at edit profile but there wasn't an option for it.

Member Avatar
0
27
Member Avatar

I have a code in php that is being echoed in html: $tblAccounts .= "<td width=\"100\"><input title=\"$objRow->AccountCode\" name=\"chkAcctField[$objRow->AccountCode]\" id=\"chkAcctField[$objRow->Description]\" value=\"chkAcctField[$objRow->AccountCode]\" type=\"checkbox\" $strIsChecked>" . ucwords($objRow->Description) . "</td>"; now may problem is this... I don't know how will I get the value of the checkboxes clicked by the user.... when the names and ids are varying. And I need to get the values using javascript.... using getElement returns null. Please help.

Member Avatar
0
14
Member Avatar

Hello there Masters.. I have a little problem on my mail() function.. when I send mail the sender is always apache@blabla.com. what I want is when the message is sent the message format is simply like this. from:markii design, to Reciever, message.. here is my code.. <?php // read the list of emails from the file. $email_list = file("elist.txt"); // count how many emails there are. $total_emails = count($email_list); // go through the list and trim off the newline character. for ($counter=0; $counter<$total_emails; $counter++) { $email_list[$counter] = trim($email_list[$counter]); } // implode the list into a single variable, put commas in, …

Member Avatar
0
5
Member Avatar

I want to put the path and name of a spreadsheet, the page and number of pages and the date and time into the footer(s) and display it in Times New Roman 6 pts. I made the following macro: Range("A1").Select ActiveWindow.View = xlPageLayoutView` Application.PrintCommunication = False With ActiveSheet.PageSetup .LeftFooter = _ "&""Times New Roman,Standaard""&6 &Z&F" .CenterFooter = _ "&""Times New Roman,Standaard""&6 Page &P of &N" .RightFooter = _ "&""Times New Roman,Standaard""&6 &D &T" End With Application.PrintCommunication = True ActiveWindow.View = xlNormalView Range("A1").Select When I start the macro only a part of the centerfooter is filled. When I start the same …

Member Avatar
0
14
Member Avatar

I use byethost as my webhost and my blog is powered by wordpress... the domain name is http://johannady2.byethost31.com/ it's 2 days now and there no claimed or unclaimed domains listed. why?

Member Avatar
0
23
Member Avatar

array( "bullony" => "one", "mcwhat" => "two", "daniweb" => "yay" ) How to use this data to say for example `bullony has variable one` or `mcwhat has variable two` or `daniweb has variable yay`. How do I get name of array listed? I know I could use `print_p();` but it displays all. I need only name of first two arrays. So `bullony` and `mcwhat`.

Member Avatar
0
12
Member Avatar

i want to write a program of 10 bank account users. then i want a help , how i write a program. in program i need a print or out put of 10 bank user like name,account no,branch no,account amount. if user press Yes then it gives the out put of next user, if user press No then it shows the prewious account user information.

Member Avatar
0
14
Member Avatar

I want to buy a particular .com domain from a domain squatter. How do i verify that the person is the owner of the website How do i ensure that the person wont fleece me of my money after the sale what are the recommended ways to buy a domain from a domain squatter their asking price is usd6000

Member Avatar
0
5
Member Avatar

// Create the cboSelectGroup, and add it to the navigation panel: //String[] strDefaults = {"Defaults"}; //cboSelectGroup = new JComboBox(strDefaults);Public Class Form1 cboSelectGroup.setPreferredSize(new Dimension(150, 40)); cboSelectGroup.setMinimumSize(new Dimension(150, 40)); cboSelectGroup.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnImagesActionPerformed(evt); } });

Member Avatar
0
18
Member Avatar

So the article title says it. i wanna make the name as like a welcome message, something like "Welcome, <name>!" and yes there are many articles on the web that gives you coding and what not but i still don't understand how to get it done. sigh. forgive me im a noob at this php mysql stuff. Anyway, my login page uses email and password: loginpage.php <form name="flogin" action="index.php" method="post"> <table width="350px"> <tr> <td ><b>Email :</b></td> <td><input type="text" name="email"></td> </tr> <tr> <td><b>Password :</b></td> <td><input type="password" name="password"></td> </tr> </table> <div><input type="submit" class="login" value="Login" name="login"></div> </form> <?php session_start(); if (isset($_POST['login'])) { $email …

Member Avatar
0
30
Member Avatar

display city_name using two tables. I have written two queries but unable to display the results. First Table name is tbl_city and it has id,state_id,city_id,city_name. Other table name is tbl_states and it has id,state_id,state_name $state_id=$_REQUEST['state_id']; $query="select c.city_name FROM tbl_city AS c,tbl_states AS s where c.state_id='$state_id' AND s.state_id='$state_id'";(two tables using alias) $query="select tbl_city.city_name FROM tbl_city INNER JOIN tbl_states ON tbl_states.state_id='$state_id' AND tbl_city.state_id='$state_id'";(using Inner join)

Member Avatar
0
24
Member Avatar

I have this code: private void words(string path) { List<string> text = new List<string>(); var intro = "Video File Name:"; var words = File.ReadAllLines(path) .Where(line => line.StartsWith(intro)) .Select(line => line.Substring(intro.Length).Trim()); } When i use a breakpoint and look after all on the variable words i see: System.Linq.Enumerable.WhereSelectArrayIterator<string,string> I want to loop somehow on words and use each word how can i do it ? The variable path is a text file that its content format is like this: Video File Name: MVI_4523.MOV Lightning Start Location At Frame: 11 Lightning End Location At Frame: 15 Lightning Start Location At Frame: 6 …

Member Avatar
0
19
Member Avatar

Good morning community, Can someone help me with the IndexOf method to reverse the name: Don Paul to Paul, D

Member Avatar
0
24
Member Avatar

please explain me how to get database server name in VB6 applications

Member Avatar
0
7
Member Avatar

I am looking for a good domain name refistrar. Can anyone suggest me good domain name registrar?

Member Avatar
1
60
Member Avatar

develop a program which asks for a name and a password,and prints an acceptance message if the name is "aladdin" and the password is "sesane".the program should print a reject message in all other cases.this should be achived by combining the two tests into one using the "and"key word

Member Avatar
0
19
Member Avatar

Hi, I would like to to to store the Name and Items of ComboBox into dictionary. With the below code,I am able to store them. However, Name of ComboBox is as counting ComboBox10 to ComboBox1n. I would like to store Name of ComboBox as ComboBox1,ComboBox2 rather than ComboBox10 to ComboBox1n for my futher propose. It's not working with _dic.Add(ctl.Name, myCombo.Items(j).ToString) so I have to loop as _dic.Add(ctl.Name & j.ToString, myCombo.Items(j).ToString). Would Appreciate your help and suggestion. If TypeOf ctl Is ComboBox Then myCombo = CType(ctl, ComboBox) For j As Integer = 0 To myCombo.Items.Count - 1 _dic.Add(ctl.Name & j.ToString, myCombo.Items(j).ToString) …

Member Avatar
0
31
Member Avatar

Dear all, Im getting a problem in Excel. Vlookup formula is working correct. Now the problem is when more than one time asc-1 comes in posting column, it do not show the 2nd name with asc-1. Formula for the vlookup is : =VLOOKUP(N15,A11:G87,2,FALSE) What will be the solution and how? Replyies will be appreciated.

Member Avatar
0
16
Member Avatar

HI I'm having two wesites with same file sets I want to keep the one file set for both domains how to do this if the user visit www.abc.com the files will get from www.xyz.com kindly tell me how to do this one thing i don't want to keep file set in both side

Member Avatar
0
8
Member Avatar

I wanted a graphical representation of the listing of my files and folders from the command line interface, just like what the CLI **tree** would give on linux system, I really don't like how the same command is displayed on windows. So, I called on ma 'Cherie' Perl do it for me. The posted perl script works fine, even on perl version as old as *5.6.0*. Please feel free to use, comment and modify for your own good. I would also be willing to help in case anyone what explaination or usage on **this** code. Thanks for stoping by, checking …

0
29
Member Avatar

Hi this code is to fill up my Combo1 Item which is came from my Table1 .Combo_Main_AM.Items.Clear() Dim da As New OleDbDataAdapter("Select * from Table1", con) da.Fill(dt) For Each myRow In dt.Rows .Combo1.Items.Add(myRow.Item(0)) Next so it will add up the combo1 Jessie James Nick now the question is how can i get the that name to be used in my query? using loop? i will use it to be the name of my table i want to search. da.fill(dt) Dim da As New OleDbDataAdapter("Select * from dt", con) 'Code here Next I hope you understand what i mean.

Member Avatar
0
20
Member Avatar

Hi All, We can use Command name and argument for web controls such as imagbutton or button etc.. But Can we use Command name and argument for html tags such as(span,a)? It's urgent. Please put some light on it.. Thanks

Member Avatar
0
18
Member Avatar

Give me suggestion how i can do this ?

Member Avatar
0
18
Member Avatar

hi frend how cn i give a newly install windowserver 2008 on my pc a root domain name.....so that i could do automatic deployment of printer configuration on group policy an so fourth on my pc

Member Avatar
0
17
Member Avatar

I have been working on this assignment for a while now and I can't figure this one issue out. I was given four files, Name.java, SortableArrayList.java, NameListDriver.java, and SortableArrayListWithBubbleSort.java. The program is meant to take a text file with a list of names and sort them alphabetically. Part one of the assignment was to change the bubble sort to a recursive selection sort. I seem to have completed that part as I am able to sort the list of names. The second part requires me to make a driver that does the following things: • Creates a reference to an …

Member Avatar
0
14
Member Avatar
Reusable Code Snippet Pickle A Bag Container (Python)

Let's say you have a whole bunch of nicely named lists and want to save them all and their names in a pickle file. One solution can be to store these lists and their names in a Bag container class and pickle the bag instance object. Now you can use the lists and their names in another program, as long as you insert class Bag_Dict in that program and load the pickle file.

Member Avatar
4
4
Member Avatar

#module nametest def showName(): print("__name__ is: " + str(__name__)) If I import nametest into another module or into the shell interpreter and call nametest.showName() I find that name = "nametest", in other words __name__ gets the module name it is a built-in member of? The only exception I know of is if I define showName directly in the shell without importing it in a module, then __name__ shows "__main__". Is there any other way to get the function "showName()" to print a value other than "nametest".

Member Avatar
0
6
Member Avatar

I need to do the following: input First and Last name Output initials. Output however many letters Input Middle name Output Full initials. then redo the process. input First and Last name Output initials. Output however many letters Input Middle name. Output Full initials. Example: Enter your first and last name with a space between: Melvin Mathew Your initials are MM. Your name has 12 letters. What's your middle name: TOM Your full Initials are MTM. Enter your first and last name with a space between: Melvin Mathew Your initials are MM. Your name has 12 letters. What's your middle …

Member Avatar
0
6
Member Avatar

i want to change my name as "optimus prime"

Member Avatar
0
7

The End.