Posting large text via Classic-ASP Form I'm trying post base64 code to save as an image but I can't post the value of textbox when I try submit my base64 code.  Is there limit send to codes via posting form?  I get an error due to can't get the value of textbox below:     ADODB.Stream error '800a0bb9'      Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.   My HTML code  &lt;form method="POST" action="?X=1" id="myForm"&gt;     &lt;input type="text" name="img_val" id="img_val" value="" /&gt;     &lt;input type="submit" value="Submit Largest Code" /&gt; &lt;/form&gt;   My ASP codes:  &lt;%  IF LEN(Request("X"))&gt;0 THEN  base64String = Trim(Request.Form("img_val")) Set tmpDoc = Server.CreateObject("MSXML2.DomDocument") Set nodeB64 = tmpDoc.CreateElement("b64") nodeB64.DataType = "bin.base64" nodeB64.Text = Mid(base64String, InStr(base64String, ",") + 1) set bStream = server.CreateObject("ADODB.stream") bStream.type = 1 call bStream.Open() call bStream.Write(nodeB64.NodeTypedValue) caminho=Server.MapPath("/SS/imagem.png") call bStream.SaveToFile(caminho, 2) call bStream.close() set bStream = nothing  END IF %&gt;   Sample Base64:  data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAAAQFCAYAAABQN9UwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAP+6SURBVHhe7L0HoCRHde5/Js/Nd6M2Squ8KAsJBUBCIBAYMBgsG3jYgE3yA4PfMzwH3t/P2NgkGz+DbWwwBh4GG7AQYKJkogRCQhIogHJYabU53jh38v98p7pm6vbOzJ2bdu8u30/UdnV1dYVT1bNLf32qEu++Z19dCCGEEEIIIYQQQgghhBBCCCGEHPUkoyMhhBBCCCGEEEIIIYQQQgghhJCjHArAhBBCCCGEEEIIIYQQQgghhBByjEABmBBCCCGEEEIIIYQQQgghhBBCjhEoABNCCCGEEEIIIYQQQgghhBBCyDECBWBCCCGEEEIIIYQQQgghhBBCCDlGoABMCCGEEEIIIYQQQgghhBBCCCHHCBSACSGEEEIIIYQQQgghhBBCCCHkGIECMCGEEEIIIYQQQgghhBBCCCGEHCNQACaEEEIIIYQQQgghhBBCCCGEkGMECsCEEEIIIYQQQgghhBBCCCGEEHKMQAGYEEIIIYQQQgghhBBCCCGEEEKOESgAE0IIIYQQQgghhBBCCCGEEELIMQIFYEIIIYQQQgghhBBCCCGEEEIIOUagAEwIIYQQQgghhBBCCCGEEEIIIccIiXffs68exY841VpNRkcKsnffhBw4MCFjY1MyOVmSYqki1UpNarW6JJMJSaeTkstlpLc3K4ODeVm+vE9WruiXgYG8JBKJqLTDC9q5f/+E7Ns3LiOjBZmYKMpUsSLlUlWq1Zq2SySVSkg2m5GenrT09+dlaKhXVq0akKHBHu1POirp8DFney/rlxUr+ix+uO1dr9etnXvVzrD36GjU5mJZKkGbU2hzNm1txrxYtgxzRNs81COpJL97IIQQQgghhBBCCCGEEEIIIccmS0IA3rV7VLZs2Ss7d47KwZFJqZSrUtNWJRJ1SSaSGrH/IQEKoKDBdc1g/9UTmkckm03LsmW9sm7tsGzatEKWL+/HHYvK+HhRtm7dJ088ccAEyUKhLLVaza5BGE1ow8J2AxwgYvr+pVIp6e/PyepVA3LCCStk3bplks2kLO9iAXs/9tg+2bFjZM72zsDew2rvdcNy4mGw9/794zpH9sn2HQflwIFJKZUqjTbDynFbo834o1avNdqcVrsOD/XKmjWDOkdWynGrB5GLEEIIIYQQQgghhBBCCCGEkGOGIyYAVypVeXTLPnnggZ2ye8+YVPU8mUxKMp
Base64 Encode String in VBScript I have a web service load driver that's a Windows Script File (WSF), that includes some VBScript and JavaScript files. My web service requires that the incoming message is base64 encoded. I currently have a VBScript function that does this, but it's very inefficient (memory intensive, mostly due to VBScripts awful string concatenation)  [Aside; Yes, I've seen . The concatenation is happening in a loop across messages that are 1,000's to 10,000's bytes in size.]  I've tried using some custom string concatenation routines; one using an array and one using ADODB.Stream. These help, a little, but I think it would help more if I had some other way of encoding the message rather than via my own VBS function.  Is there some other way of encoding my message, preferebly using native Windows methods?
Is it true that the order of $ab$ is always equal to the order of $ba$? How do I prove that if $a$, $b$ are elements of group, then $o(ab) = o(ba)$?   For some reason I end up doing the proof for abelian(ness?), i.e., I assume that the order of $ab$ is $2$ and do the steps that lead me to conclude that $ab=ba$, so the orders must be the same. Is that the right way to do it? Is logical implication always determinable from just the given statements? I am reading introductory texts on logic and am having a hard time understanding intuitively logical implication.  Specifically, I am wondering if logical implication can always be determined by two statements, P and Q alone? I'll try to give an example to clarify my question.  For example if the statement P is $x = 2$, and the statement Q is $x^2 &lt; 6$, then determining the truth of P $\Rightarrow$ Q is fairly straightforward:   If $x$ does equal 2, then $4&lt;6$ and Q is true, so $P \Rightarrow Q$ is true. And if $x$ does not equal 2, $P \Rightarrow Q$ is vacuously true.  In this example, with two statements P and Q, I can evaluate the truth/falsity of the statement P implies Q. However, what if the statement Q is changed such that it is now the statement $y = 5$?  So now I am trying to prove from that $$x = 2 \Rightarrow y = 5$$  Here is where things get murky for me. Say $x$ is not equal to 2, then $P \Rightarrow Q$ is vacuously true. But what about when $x$ does equal 2, now the statement Q could be true, but it could also be false, depending on some 'context'.   For example, if I said at the start: "Here are two statements, P and Q. Know that x = 2 and y = 4." Given this 'context', $P \Rightarrow Q$ is false. But if I say "Here are two statements, P and Q. Know that x = 2 and y = 5", then now $P \Rightarrow Q$ is true.  My discomfort here is that I assumed with two statements P and Q, I can determine the truth/falsity of $P \Rightarrow Q$ with just this information. Is this the wrong assumption?  As a secondary question, how can the truthfulness of the statement $P \Rightarrow Q$ be variable, depending on context? I have read on some other questions that implication can be interpreted as a promise. So how could it be that depending on some context the promise is sometimes true but sometimes false? Wouldn't this actually mean the promise is not always consistent and is therefore always false?  Some further information in case it is relevant, I recognise that in the first example, the statement Q is 'dependent' in some way on the statement P, since the object under examination in both statements is $x$, whereas in the second example there are two different objects which I am trying to make a logical connection between, which I am thinking may not be valid for some reason. I also recognise that there is still 'context' in the first example, in that we need information on whether $x$ is equal to 2 or not, however in that case it doesn't matter, since $P \Rightarrow Q$ is always true anyway.  Thanks very much in advance. Could we send a man safely to the Moon in a rocket without knowledge of general relativity? What is in the space between a nucleus of an atom and its electrons? There is a common analogy about the structure of an atom, such as the nucleus is a fly in the centre of a sports stadium and the electrons are tiny tiny gnats circling the stadium (tip of the hat to 'The Greatest Show on Earth') but what is in the space between the 'fly' and circling 'gnats'? "who" vs. "whom" and when to omit the relative pronoun This is the boy who was asked by the teacher to stay back after school. This is the boy whom the teacher asked to stay back after school. This is the boy the teacher asked to stay back after school.   Are the sentences above correct ? Robocall claiming to be IRS saying they are about to sue - Is it legit? We got a recorded call with a message claiming to be from the IRS.  It said they were giving final notice and preparing to file a lawsuit against us.  In our case, the message went to voicemail so the end was cut off, but it seemed like a scam all the way. (We don't have any pending problems with the IRS as far as we know.)  The question was whether this is a known scam? When to use an object pronoun or a possessive adjective before a gerund The rule says that we can use a possessive adjective or an object pronoun before a gerund. Is there a rule  that says when to use each or are they interchangeable? Some say that it's wrong to use an object pronoun before a gerund. How to determine the cause of MacBook battery not charging? I see that the question &quot;why is my MacBook not charging?&quot; gets asked a lot. The problem is, there are multiple reasons. Possible points of failure are: charger, cable, magsafe connector, DC input board, logic board, battery. (Have I missed any?). What is the best sequence for a user to follow, to diagnose the problem? By way of example, here are the first steps that I usually try:  Make sure the charger is working. Either use your charger on a different Mac, or test a spare charger with your Mac.  Check the connection. There might be gunk in your port that's stopping the connector from lying flat.  Try resetting the SMC and PRAM.  If the computer boots, run Coconut Battery to determine battery status.   This is where I get a bit stuck. For example, I have a machine here that boots fine when plugged in, but not from battery. Disconnecting the MagSafe causes the machine to switch off. Sounds like it's a dead battery, except that Coconut reports the battery as detected, in good condition, but not charging. What steps should I take next? Specifically, I'm asking for a generic algorithm to help determine the source of the fault (preferably without swapping out lots of components one by one)? Is it possible to reconstruct the Hamiltonian from knowledge of its ground state wave function? Is it possible to "construct" the Hamiltonian of a system if its ground state wave function (or functional) is known? I understand one should not expect this to be generically true since the Hamiltonian contains more information (the full spectrum) than a single state vector. But are there any special cases where it's possible to obtain the Hamiltonian? Some examples would be really helpful. TikZ: remove margin, padding, border around nodes containing images Is there ever a time to create a user for a company? I'm wondering if there's ever a reason or time when a company should have its own user (like say, Stack Overflow), instead of users that make it up (like, Jeff Atwood).   I figure this is kind of a bad idea as someone with access to multiple accounts could upvote himself over and over.... but is there any point this is okay and/or a good idea? My family PC has Windows Vista and lately it has became unusable, having strange errors and taking hours to do anything at all, so I'm installing Ubuntu 11.10 alongside it.  I went into GParted to resize the Vista partition but found that it had an exclamation point in a red circle next to it:   I tried to resize it but the Resize/Move button was grayed out.  I thought that this might have to do with the exclamation point so I looked at the information and found a load of errors:   What does the exclamation point mean?  How can I resize my partition?  UPDATE 1  I booted into Safe Mode with Command Prompt in Vista as suggested by eug and ranchkdsk c: /F /R (/F Fixed errors on the disk, /R Locates bad sectors and recovers readable information) and got:  Chkdsk cannot run because the volume is in use by another process.  Would you like to schedule this volume to be checked the next time the system restarts? (Y/)   When I reboot it doesn't run chkdsk, I'm selecting Safe Mode with Command Prompt again because I can't boot normally.  How can I stop it being used?  UPDATE 2  I tried doing what Luis suggested.  Here is the terminal output:  ubuntu@ubuntu:~$ sudo ntfsfix /dev/sda3 Mounting volume... OK Processing of $MFT and $MFTMirr completed successfully. NTFS volume version is 3.1. NTFS partition /dev/sda3 was processed successfully. ubuntu@ubuntu:~$ sudo apt-get install ntfsprogs Reading package lists... Done Building dependency tree        Reading state information... Done Note, selecting 'ntfs-3g' instead of 'ntfsprogs' ntfs-3g is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   I still cannot resize the partition.  Ntfsfix doesn't look like it did anything and ntfsprogs is already installed.  I can access the hard drive and do backups with the Ubuntu Live CD which I'm using now.  Any other suggestions?  UPDATE 3  I attempted to use the ntfsresize command but I got an error:  ERROR: Volume is scheduled for check. Run chkdsk /f and please try again, or see option -f.   This is because I ran chkdsk in Vista Safe Mode with Command Prompt and it couldn't do it because it was in use but offered to do it at the next reboot.  I reboot and I get to the menu to the menu to choose whether to Start Windows Normally, Safe Mode, etc instead of checking the disk.  Is there any way I can unschedule?  EDIT  I just found out that I could use the -f option to force it.  It failed and told me to run chkdsk /f in Windows and then reboot twice.  But the chkdsk program is in the partition I am trying to check so it says it is in use. This happens pretty much every time I try to bake normal maps. It's quite a broad error message and I still don't know exactly what the problems I'm having are, only that if I keep clicking things for half an hour eventually it sometimes just works.  My understanding of the things needed:   A "Generated" blender Image that the normals are written to (In UV/Image Editor, click Image->New)   Tell blender that this is the bake output, below (this is the really confusing bit which blender seems to try to guess and fails)  A UV Map for the low poly model (you only need the geometry of the high poly and it doesn't need a UV map) Under Bake, in the rendering tab:   Bake Mode = Normals Normal Space = Tangent Selected to Active = ✓ (for the next bit)  Select the high rez object first, then the low poly object With the two objects selected, click Bake (you may have to move the mouse to see the error pops up)   Now, from what I can tell the only  (with regard to the setup and apart from the internals of baking) is how blender finds the output image:   Cycles  Have a material using an ImageTexture node which points to your normal map output. Then  says the node must be selected, but  doesn't mention selecting. Blender Render  Have a texture attached to the material that uses the image.  is pretty vague on assigning the output image. Sometimes I've found hitting tab to go to edit mode and selecting the normal map image in the UV editor to help, or at least it seemed to.   I would like to know the exact details of what blender goes looking for when you hit Bake, rather than have to guess by following tutorials. For example, it seems to look for the high and low poly objects in your selection and based off the order you select them. How does it find the normal map/image to write to for both cycles and blender render? Does the Texture need to Influence Normals or does it just need to reference the Image? etc... How can I tell if a laptop's video card can be upgraded? Finite Abelian groups with the same number of elements for all orders are isomorphic Let $A$ and $B$ be finite abelian groups. Suppose that for every natural number $m$, the number of elements of order $m$ in $A$ is equal to the number of elements of order $m$ in $B$. Prove that $A$ and $B$ are isomorphic.  Idea Given that these groups are finite, I think you have to use the primary decomposition theorem somehow. I have the following reference:  @MISC{EX2012,   author = {{S}ingle {A}uthor {O}rganization},   year = {2012},   title = {Example} }   A citation for this is breaking after "Author", but extending beyond the margin, as shown in the following example layout in the PDF:  Demo text demo text demo to margin Demo text which cites it (Single Author Organization, 2012) and flows over the margin.   How can I solve this? I am using natbib and citing with \citep{EX2012}. Regex to get string between curly braces Unfortunately, despite having tried to learn regex at least one time a year for as many years as I can remember, I always forget as I use them so infrequently. This year my new year's resolution is to not try and learn regex again - So this year to save me from tears I'll give it to Stack Overflow. (Last Christmas remix).  I want to pass in a string in this format {getThis}, and be returned the string getThis. Could anyone be of assistance in helping to stick to my new year's resolution?    Related questions on Stack Overflow: A geometric sequence has its first term equal to $12$ and its fourth term equal to $-96$.   How do I find the common ratio? And find the sum of the first $14$ terms My question is simple, why do we believe  to be absurd? Is the Ultra-violet catastrophe incorrect or is it only because we can not create or know of a perfect emitter? I am a bit confused as to why Quanta was necessary. Radius of circumscribed circle of triangle as function of the sides Given the length ot the sides $a , b$ and $c$  of $ \triangle ABC$.  What is the length of the radius of the circumcribed circle?  After some formula substitution I came to the monster formula:  $$ \frac {a b c}{\sqrt{2a^2b^2+2a^2c^2+2b^2c^2-a^4-b^4-c^4}} $$  Can this formula be simplified?