Hello all! I am trying to take a string that has mixed uppercase and lowercase chars and then convert it to lowercase. I am doing the following line of C++ code: transform(theReadMessage.begin(),theReadMessage.end(),theReadMessage.begin(),theReadMessage.end(),::tolower); //theReadMessage is a string to convert to lowercase and my C++ xCode debugger gives me this message `Too many arguments to function call, expected 1, have 2.` What am I doing wrong? Thanks in advance!!

Member Avatar
Member Avatar
+0 forum 7

Hi all! I am working on creating an SMS language translator (SMS -> real English), and I am having trouble initializing a map for the SMS -> English codes. My code is below: map<string, string> THE_SMS_CODES{ ".02","Your (or my) two cents worth", "10X", "Thanks", "2MI","Too much information", "2U2" ,"To You Too", "4COL","For Crying Out Loud", "420" ,"let's get high", "<chuckle>","the speaker chuckles", "<frown>","the speaker is frowning", "<g>","Grin", "<grin>","the speaker is grinning", "<smile>","the one writing the message is smiling", "<smirk>","the one writing the message is smirking", "<wink>","the one writing the message is winking", "[$X$]","No spam !!", "JK","Just Kidding", "?","I have a …

Member Avatar
Member Avatar
+0 forum 4

Hello everyone again, I'm trying to do some web studies here and of course, digging deeper into responsive web design. Recently I came across this web page: http://kumanimedia.com/portfolio You will notice when you rescale your browser window, the boxes fluxuate based on it's size. On that, I inspected the element and the css that caused that effect and from what it seems (I could be wrong) it's something to do with the webkit-transform: translate3d effect. Can anyone provide a bit more insight to what's exactly causing this effect? Thanks

Member Avatar
Member Avatar
+0 forum 2

Hi Can anyone explain me the following command. This may be a minor one, but, please do explain in detail. CHKTRANS=`echo ${0} | grep '/transforms/' | wc -l`

Member Avatar
Member Avatar
+0 forum 10

Can anyone please explain to me how to compute DCT? I'm finding it hard to understand it. ![2D-DCT](/attachments/large/3/2D-DCT.png "2D-DCT") ![dct1](/attachments/small/3/dct1.png "align-right") I attached the formulas the Discrete Cosine Transform (DCT) and it's Inverse-DCT.

Member Avatar
Member Avatar
+0 forum 6

Hi, i'm trying to use an `AffineTransform` to transform a point to pixels on a 400x400 canvas. What kind of transform would you use? For example: given the points (-1, 1) --transform--> (0, 0) (pixels) (1, 1) --transform--> (400, 0) (pixels) (-1, -1) --transform--> (0, 400) (pixels) (1, -1) --transform--> (400, 400) (pixels) What part of affine transform would I use? translation? scaling? shearing? The code i'm using to draw the points is as follows: //paint method AffineTransform at = new AffineTransform(); //at.translate(... ?? //at.scale(... ?? //at.shear(... ?? Graphics2D g2d = (Graphics2D)g; g2d.setTransform(at); //fill small point g2d.fillRect(20, 50, 3, 3); …

Member Avatar
Member Avatar
+0 forum 2

Hello I have a XML DB. I write the first element. I can not get the entries to (fragments) to write to the Database. I know I do not have the error handler setup right. The error stops the process on the transform. Is there some debugging techniques I could use to understand why the fragments are not being appended. All the data is collected and in place. Thanks. java.lang.NullPointerException at com.sun.org.apache.xml.internal.serializer.ToUnknownStream.characters(ToUnknownStream.java:342) [code] dom: import java.io.*; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.OutputKeys; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; import model.notes.reference.ReadXML; import org.w3c.dom.*; [/code] [code] XML DB <?xml version="1.0" …

Member Avatar
Member Avatar
+0 forum 2

I made an Edge animation with a stage which is, natively, 1600x900px. I've included it in an `<iframe>` linking to the HTML file outputted by Edge, on the page where it's to be displayed; as not all displays support this resolution, I wanted to use CSS media queries to resize the animation as the resolution went down. I've set up the `@media` syntax, and added the `transform:scale(x,y)` property to the `iframe` tag. Since they're *cascading* stylesheets, I though that the transform would also affect the Edge animation's elements, including the stage; however, it didn't, for some reason.<br> The problem consists …

Member Avatar
Member Avatar
+0 forum 2

Hello, I am making an application for Android that will save users voice command and then while the application is running; compares the realtime data from the mic input to the one that is saved. So far I have saved the voice in wav file now I want to compare it to the input stream. I have applied FFT using this API as it is compatible with Android: http://code.google.com/p/musicg/ I dont know much about this api either but, I think the FFT data is stored in FrequencyTimeDomainRepresentation object. I searched on the internet and found out that I have to …

Member Avatar
+0 forum 0

I have been working on pygame for awhile, and now I am working on making a fairly complex space ship game. I want the player to be able to go forward with 'w' and steer by rotating the ship with the 'a' and 'd'. I've tried pygame.transform.rotate, but it makes the sprite really low res, and does a weird thing to the rect . please help (btw I am using a png image, if that makes a difference)

Member Avatar
+0 forum 0

Is there anyway to format Phone Numbers and/or Web Address [U][B]PRIOR[/B][/U] to inserting them into the database? For example, let's say a user puts one of the following telephone numbers into the box: (777) 111-2222 777-111-2222 777.111.2222 7771112222 I would like these to be stored in the database as: (777) 111-2222 Similarly, with web addresses if the user puts something like: [url]www.domain.com[/url] domain.com [url]http://domain.com[/url] [url]http://www.domain.com[/url] I wanted it to be stored in the database as: [url]http://www.domain.com[/url] Any ideas?

Member Avatar
Member Avatar
+0 forum 9

I'm reading a book called Beginning Algorithms by Harris and Ross, which gives code examples in Java. As an academic exercise I am trying to convert the code examples to C++. In the interface below the part that throws me is the return of the 'Object' by the 'current' method. Java [CODE=java]public interface Iterator { public void first(); public void last(); public boolean isDone(); public void next(); public void previous(); public Object current() throws IteratorOutOfBoundsException; }[/CODE] I have turned this into the following abstract class. In particular I would like to know if my use of the template function is …

Member Avatar
Member Avatar
+0 forum 6

Hi, I am new to XSLT, Please helo me in transforming the XML to XML transform I have XML like this <products> <product> <display value="32" /> <count value="0"/> </product> </products> Through XSLT I need to convert it like this <products> <product display="32" count="0"/> </products> Please help me out. This is very urgent requirement. Regards, Hanuman

Member Avatar
Member Avatar
+0 forum 5

I am currently trying to take two columns from a *.csv file... log10 transform them, and then plot them up on a graph. The graph is not the issue, I just need to edit those two columns and plot them. The file does have a header row, there are 8 columns, and I would like to edit/use columns 5 and 7. None of the cookbooks or references I have found provide any good direction... Can anyone help me out?

Member Avatar
Member Avatar
+0 forum 1

I am using [URL="http://msdn.microsoft.com/en-us/library/system.drawing.drawing2d.matrix.aspx"]matrix class[/URL] to perform image transformations.Problem is that I want to do a perspective transform, which requires a 3x3 matrix. [COLOR="Green"]system.drawing.drawing2d.matrix[/COLOR] behaves like a 3x2 matrix. Here's a short code extract of what I use the matrix for: [CODE] Graphics my_graphics= Graphics.FromImage(my_image); my_graphics.Transform = my_matrix; my_graphics.DrawImage(my_image2, new Point(0, 0)); //so I want to use my_matrix to transform my_image2 and paste it into my_image [/CODE] I am looking for a framework or something like that, that will allow me to make a 3x3 matrix and then perform image transformation with that matrix, as given in code above. Currently …

Member Avatar
Member Avatar
+0 forum 1

hi, i have a graph and i wanna zoom somw particular area in it. Is there any zoom function available... thanx

Member Avatar
Member Avatar
+0 forum 3

Here is a sample of the XML that I am starting with: XML: any.xml [code] <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="any.xsl"?> <root> <device> <device_Info> <name>Name 1</name> <type>Type</type> </device_Info> <drive_Pair> <status>Ready</status> <Local> <l_name>10E5</l_name> </Local> <Remote> <l_name>0651</l_name> </Remote> </drive_Pair> #Can be 1 or many <drive_Pair>'s {<drive_Pair> ... </drive_Pair>} # Can only be 1 Totals <Totals> <Local> <l1_invalid_mbs>0.0</l1_invalid_mbs> <l2_invalid_mbs>0.0</l2_invalid_mbs> </Local> </Totals> </device> #Can be 1 or many <device>'s {<device> ... </device>} </root> [/code] XSL: any.xsl [code] <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" version="1.0" standalone="yes" cdata-section-elements="devices" indent="yes"/> <xsl:template match="/root/device"> <xsl:element name="devices"> <xsl:for-each select="device_Info"> <device name="{name}" type="{type}"/> </xsl:for-each> <xsl:for-each select="drive_Pair"> <drive_Pair status="{status}" local="{Local/l_name}" remote="{Remote/l_name}"/> </xsl:for-each> <xsl:for-each …

Member Avatar
Member Avatar
+0 forum 3

The End.