User Profile

Collapse

Profile Sidebar

Collapse
aunk
aunk
Last Activity: May 10 '16, 12:12 AM
Joined: Apr 3 '16
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • aunk
    replied to Am I doing this right? (about getting output)
    in C
    That wasn't right, either. I ended up using something else.
    See more | Go to post

    Leave a comment:


  • aunk
    started a topic Why am I getting this wrong? bitset<32> assignment.
    in C

    Why am I getting this wrong? bitset<32> assignment.

    I am making a program that makes an output. That is the easy part, now for some reason, and it may be the elves of christmas or the cobbler, it won't assign the bitset<32> to another, nor will it print it out (neither c/out).

    I need help in finishing this program, very important. Thank you.

    37 [main] bincom 8096 cygwin_exceptio n::open_stackdu mpfile: Dumping stack trace to bincom.exe.stac kdump

    ...
    See more | Go to post

  • aunk
    replied to Yet another insert syntax error 3134
    This is SQL server abuse. I'm alerting the DEA, anything you're smoking will be handed over to me and I will do with it what I please. Now then, you really gotta break this up into different calls. Sir. You're not going anywhere with this until you break it into different calls, first. And when I say first I mean, immediately. Sorry can't help. Good luck.
    See more | Go to post

    Leave a comment:


  • aunk
    started a topic Am I doing this right? (about getting output)
    in C

    Am I doing this right? (about getting output)

    I'm doing a function and I need output. This is all the information here. I'm pretty happy with the program. I just need to get output now ;)

    Code:
    	while (dnode.size() > j) {
    		for (int i=0;i<63;i++)
    			last[i] = dnode[i];
    		dnode.erase(dnode.begin(),dnode.begin()+63);
    		dnode.shrink_to_fit();
    		out << static_cast<char>(last.to_ulong());
    		j++;
    	}
    See more | Go to post

  • Thank you, I think I found a work around.
    See more | Go to post

    Leave a comment:


  • aunk
    started a topic Can I access single bits from a vector<bitset<N>>?
    in C

    Can I access single bits from a vector<bitset<N>>?

    I want to know if this is right:

    Code:
    if (f%2 == 0) {
    bitset<8> bytes;
    bytes[0] = node[0][0];
    bytes[1] = go[0][0];
    bytes[2] = go[0][1];
    bytes[3] = go[0][2];
    bytes[4] = node[1][0];
    bytes[5] = go[1][0];
    bytes[6] = go[1][1];
    bytes[7] = go[1][2];
    out << ios_base::hex << bytes;
    node.clear(); go.clear();
    }
    See more | Go to post

  • Yea, I got the JS to get it going. I knew that about PHP. I got to having the modal pop out. That was pretty cool. Now I'm using another JS func to rerun the page. Going to see what I can do today.
    See more | Go to post

    Leave a comment:


  • I need to mix PHP and JS to do a task involving DHTML

    Code:
    function callPHPHead(s, m, y, d) {
      var xhttp = new XMLHttpRequest();
      xhttp.onreadystatechange = function() {
        if (xhttp.readyState == 4 && xhttp.status == 200) {
         document.getElementById("idMo").style.display = "block";
         document.getElementById("idMo").innerHTML = xhttp.responseText;
        }
      };
      var c = "head.php?m="+m+"&y="+y+"&d="+d;
    ...
    See more | Go to post
    Last edited by aunk; Apr 17 '16, 06:42 PM. Reason: Posted new code

  • aunk
    replied to Refresh a Modal Popup
    in PHP
    Hi, I answered my own question. I found out that we can use a small snippet of javascript to make the <span></span> code change, or in this case, the <p></p> tags.

    Here's how I did it:

    Code:
    <div id="idMo" class="w3-modal">
      <div class="w3-modal-content w3-card-8">
        <header class="w3-container w3-teal"> 
          <span onclick="document.getElementById('idMo').style.display='none'"
    ...
    See more | Go to post

    Leave a comment:


  • aunk
    started a topic Refresh a Modal Popup
    in PHP

    Refresh a Modal Popup

    Hi, I'm using functions in PHP, along with small snippets of Javascript, to design a Calendar. It should popup with the month, you should be able to pick a week, and then choose a day to add scheduled events to.

    My problem right now is that I'm attempting to refresh a modal when I switch months, weeks, or days without flushing everything. I want to change what is between the <p> marks where the id is "showMo". Here is...
    See more | Go to post

  • aunk
    started a topic APIs and PHP (searched w/ no luck)
    in APIs

    APIs and PHP (searched w/ no luck)

    How can I create a web API in PHP. Can I just use the sockets and send it to the user as a file? Should I be more involved on their end? i.e. Create a file handler that puts it right to base? I can imagine doing that. It sounds cool too :) I guess I'll try that last one with misshapen sha1() answers on either side. Thanks again!
    See more | Go to post

  • aunk
    started a topic Need to learn a new skill, help?
    in PHP

    Need to learn a new skill, help?

    Hi, I don't have any code for this, but I need to know how to write out a PDF in PHP. Is there a framework for this that doesn't cost any money? Is there a function I don't know? I'd like to know this. Thank you.
    See more | Go to post

  • aunk
    replied to Regarding additions to XML via PHP
    in PHP
    Yea I figured that out last night writing the code, aft I'd asked this question. Thanks!
    See more | Go to post

    Leave a comment:


  • aunk
    started a topic Regarding additions to XML via PHP
    in PHP

    Regarding additions to XML via PHP

    I'm developing a web app. Right now it's going by pretty easily. Unfortunately, I'm having trouble writing to an XML file and it's beginning to get hairy over here. So, my question is this: How can I take this code and make it add to my already started XML file?

    Code:
    $newNode = "<allusers></allusers>";
    $xmlRoot = simplexml_import_dom($xmlDoc);
    foreach ($parr as $nodes => $vals) {
    ...
    See more | Go to post
No activity results to display
Show More
Working...