Pages:
Author

Topic: AMC Discussion Thread (not self moderated) - page 2. (Read 5063 times)

hero member
Activity: 518
Merit: 500
He didn't buy 100, he asked about buying 100 because he thought he'd have IPO'd and had tons of BTC by now.
vip
Activity: 1316
Merit: 1043
👻
Also, txids for your 100 batch 3 orders?

It'd take you a minute opening up your bitcoin client and pasting the TXIDs here.
sr. member
Activity: 476
Merit: 250
Asks for C code, confuses C with C# which is quite a lot different..

I did not confuse C with C#, I know the difference.  I was just showing him some of
my code.

What I really want to know is, what do you think of the code I posted? Smiley

Looks like C code, kinda funny.
vip
Activity: 812
Merit: 1000
13
Asks for C code, confuses C with C# which is quite a lot different..

I did not confuse C with C#, I know the difference.  I was just showing him some of
my code.

What I really want to know is, what do you think of the code I posted? Smiley
sr. member
Activity: 476
Merit: 250
Asks for C code, confuses C with C# which is quite a lot different..

I did not confuse C with C#, I know the difference.  I was just showing him some of
my code.
hero member
Activity: 518
Merit: 500
This is silly, step back for a second. How does comparing your C-peens matter..?
sr. member
Activity: 476
Merit: 250
[snip code]

That code is boring! I mean, show us something interesting, like this:

[snip code]

  

Here you go, I hope this makes you happy.

void getBlocksAndThreads(int n, int &blocks, int &threads)
{
   threads = (n < MAX_REDUCTION_THREADS*2) ? nextPow2((n + 1)/ 2) : MAX_REDUCTION_THREADS;
    blocks = (n + (threads * 2 - 1)) / (threads * 2);
   blocks = MIN(MAX_REDUCTION_BLOCKS, blocks);
}




template
void
getreduced(int size, int threads, int blocks, T *d_idata, T *d_odata, int multiple = 1, int total_size = 0)
{
   dim3 dimBlock(threads, 1, 1);
    dim3 dimGrid(blocks, multiple, 1);
    int smemSize = (threads <= 32) ? 2 * threads * sizeof(T) : threads * sizeof(T);

   //if total size is not default then use mutiple reductions kernel
   if (multiple > 1)
   {
      if (isPow2(size))
      {
         switch (threads)
         {
         case 512:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case 256:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case 128:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case 64:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case 32:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case 16:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case  8:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case  4:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case  2:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case  1:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         }
      }
      else
      {
         switch (threads)
         {
         case 512:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case 256:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case 128:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case 64:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case 32:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case 16:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case  8:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case  4:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case  2:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         case  1:
            reduce6_multiple<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size, total_size); break;
         }
      }
   }
   //only require a single reduction
   else
   {
      if (isPow2(size))
      {
         switch (threads)
         {
         case 512:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case 256:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case 128:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case 64:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case 32:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case 16:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case  8:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case  4:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case  2:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case  1:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         }
      }
      else
      {
         switch (threads)
         {
         case 512:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case 256:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case 128:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case 64:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case 32:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case 16:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case  8:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case  4:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case  2:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         case  1:
            reduce6<<< dimGrid, dimBlock, smemSize >>>(d_idata, d_odata, size); break;
         }
      }
   }
}
vip
Activity: 1316
Merit: 1043
👻
Also, txids for your 100 batch 3 orders?
vip
Activity: 812
Merit: 1000
13
[snip code]

That code is boring! I mean, show us something interesting, like this:

Code:
   // mob tries to quaff us
    public boolean event_quaff(Engine e, Mobile mob) {
        e.msg.pline("You quaff " + aname() + ".");

        if (objkind == PotionData.WATER) {
            mob.hp += Dice.roll(1, 1);
            if (mob.hp > mob.hp_max) {
                mob.hp = mob.hp_max;
            }
            if (mob instanceof Player) {
                e.msg.pline("Ahh, a nice cool drink of water. You feel refreshed!");
                if (this.identified() == false) {
                    this.identify(true);
                    e.pc.score += 10;
                }
            }
        } else if (objkind == PotionData.HEALING) {
            mob.hp += Dice.roll("1d8");
            if (mob.hp > mob.hp_max) {
                mob.hp = mob.hp_max;
            }
            if (mob instanceof Player) {
                e.msg.pline("You feel better.");
                if (this.identified() == false) {
                    this.identify(true);
                    e.pc.score += 10;
                }
            }
        } else if (objkind == PotionData.POISON) {
            if (mob instanceof Player) {
                e.msg.pline("That didn't taste good. You feel sick!");
                if (this.identified() == false) {
                    this.identify(true);
                    e.pc.score += 10;
                }
            }
            mob.takedamage(Dice.roll(1, 12), Damage.POISON);
            if (mob.hp < 1) {
                mob.killme = true;
                if (mob instanceof Player) {
                    e.do_pc_death("You drank poison!", "poisoned by " + aname());
                } else {
                    // if a monster dies from drinking poison, what pline
                    // should we send?
                }
            }
        } else if (objkind == PotionData.SPEED) {
            // speed potions auto-id.
            if ((mob instanceof Player) && (this.identified() == false)) {
                this.identify(true);
                e.pc.score += 10;
            }
        } else if (objkind == PotionData.BLINDNESS) {
            // blindness potions auto-id.
            if ((mob instanceof Player) && (this.identified() == false)) {
                this.identify(true);
                e.pc.score += 10;
            }
        }

        // We have been quaffed!
        mob.fxlist.transferByItemTrigger(this, Effect.T_QUAFF);
        killme = true;
        mob.inv.remove(this);
        mob.hunger -= nutrition;
        if (mob instanceof Player) {
            e.pc.score += value; // destroying a potion by using it keeps it's value
            e.pc.score += 1;    // plus one ^^
        }

        e.update_statline();
        e.rend.vs.update();

        return true;
    }

Or hell, even something a little mindbending. Like this:

Code:
   public static void loadTreeStructure(String dbname) {
        List unresolved_ids = new ArrayList();
        List unresolved_parents = new ArrayList();
        List unresolved_names = new ArrayList();
        List unresolved_selected = new ArrayList();

        try {
            db = openDictionaryDB(dbname);
            rs = db.executeQuery("select * from tagstructure;");
            while (rs.next()) {
                TagNode n = new TagNode();
                n.id = rs.getInt("id");

                String parent = rs.getString("parent");
                n.name = rs.getString("tagname");
                n.flagSelected = rs.getBoolean("selected");

                unresolved_ids.add(String.valueOf(n.id));
                unresolved_names.add(n.name);
                unresolved_parents.add(parent);
                unresolved_selected.add(String.valueOf(n.flagSelected));
            }
            rs.close();
        } catch (SQLException sqle) {
            Log.log("oTS(): " + sqle.getMessage(), Log.ERROR);
        }

        TagNode subRoot = new TagNode("root");
        for (int i = 0; i < unresolved_ids.size(); i++) {
            int id = Integer.parseInt(unresolved_ids.get(i));
            if (id > TagNode.idpool) {
                TagNode.idpool = id + 1;
            }
            int parent_id = Integer.parseInt(unresolved_parents.get(i));
            if (id == parent_id) {
                // found the root node.
                subRoot.id = id;
                subRoot.name = "root";
                subRoot.flagSelected = Boolean.valueOf(unresolved_selected.get(i));

                unresolved_ids.remove(i);
                unresolved_names.remove(i);
                unresolved_parents.remove(i);
                unresolved_selected.remove(i);
                break;
            }
        }

        boolean found_parent = true;
        while ((unresolved_ids.isEmpty() == false) && (found_parent == true)) {
            found_parent = false;
            for (int i = 0; i < unresolved_ids.size(); i++) {
                int id = Integer.parseInt(unresolved_ids.get(i));
                if (id > TagNode.idpool) {
                    TagNode.idpool = id + 1;
                }
                String name = unresolved_names.get(i);
                int parent_id = Integer.parseInt(unresolved_parents.get(i));
                boolean selected = Boolean.valueOf(unresolved_selected.get(i));

                TagNode parent = Kongzi.getTagNodeByID(subRoot, parent_id);
                if (parent != null) {
                    TagNode tn = new TagNode();
                    tn.id = id;
                    tn.name = name;
                    tn.flagSelected = selected;
                    parent.add(tn);

                    found_parent = true;

                    unresolved_ids.remove(i);
                    unresolved_names.remove(i);
                    unresolved_parents.remove(i);
                    unresolved_selected.remove(i);
                    break;
                }
            }
        }

        while (subRoot.getChildCount() > 0) {
            TagNode tn = (TagNode) subRoot.getChildAt(0);
            subRoot.remove(0);
            Kongzi.rootNode.add(tn);
        }

        Kongzi.load_taglist();
        Kongzi.ensure_node_ids();
        Kongzi.rootNode.merge_children();

        return;
    }
vip
Activity: 1316
Merit: 1043
👻
Asks for C code, confuses C with C# which is quite a lot different..
sr. member
Activity: 476
Merit: 250
Date Registered: September 28, 2010, 01:16:14 PM
You were inactive for nearly 3 years.

No, I was not inactive, I have been reading this forum since 2009.

Show us some of your C code. Then I will believe you. You're a brightest of the bunch C programmer? Ok, have you ever contributed anything to open source? What have you worked on?

Ok, Here is a little c# code from my own tabbed browser called Internet Cruiser that I wrote about 10 years ago and submitted to Microsoft.

using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;

namespace ICruiser
{
   ///
   /// Summary description for BrowserWindow.
   ///

   public class BrowserWindow : System.Windows.Forms.UserControl
   {
      private AxSHDocVw.AxWebBrowser axWebBrowser1;
      private String strStartPage;
      ///
      /// Required designer variable.
      ///

      private System.ComponentModel.Container components = null;

      public BrowserWindow()
      {
         // This call is required by the Windows.Forms Form Designer.
         InitializeComponent();

         object o=null;
         axWebBrowser1.Navigate("http://www.google.com/search?as_q=&num=10&hl=en&ie=UTF-8&oe=UTF-8&btnG=Google+Search&as_epq=test&as_oq=&as_eq=&lr=&as_ft=i&as_filetype=&as_qdr=all&as_occt=any&as_dt=i&as_sitesearch=&safe=images",ref o,ref o,ref o, ref o);

      }

      public BrowserWindow(String URL)
      {
         strStartPage = URL;
         // This call is required by the Windows.Forms Form Designer.
         InitializeComponent();

         object o=null;
         axWebBrowser1.Navigate(URL,ref o,ref o,ref o, ref o);

      }


      ///
      /// Clean up any resources being used.
      ///

      protected override void Dispose( bool disposing )
      {
         if( disposing )
         {
            if(components != null)
            {
               components.Dispose();
            }
         }
         base.Dispose( disposing );
      }

      #region Component Designer generated code
      ///
      /// Required method for Designer support - do not modify
      /// the contents of this method with the code editor.
      ///

      private void InitializeComponent()
      {
         System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(BrowserWindow));
         this.axWebBrowser1 = new AxSHDocVw.AxWebBrowser();
         ((System.ComponentModel.ISupportInitialize)(this.axWebBrowser1)).BeginInit();
         this.SuspendLayout();
         //
         // axWebBrowser1
         //
         this.axWebBrowser1.Enabled = true;
         this.axWebBrowser1.Location = new System.Drawing.Point(0, 0);
         this.axWebBrowser1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axWebBrowser1.OcxState")));
         this.axWebBrowser1.Size = new System.Drawing.Size(1344, 600);
         this.axWebBrowser1.TabIndex = 0;
         //
         // BrowserWindow
         //
         this.Controls.Add(this.axWebBrowser1);
         this.Name = "BrowserWindow";
         this.Size = new System.Drawing.Size(1344, 592);
         ((System.ComponentModel.ISupportInitialize)(this.axWebBrowser1)).EndInit();
         this.ResumeLayout(false);

      }
      #endregion
   }
}
vip
Activity: 812
Merit: 1000
13
Date Registered: September 28, 2010, 01:16:14 PM
You were inactive for nearly 3 years.

No, I was not inactive, I have been reading this forum since 2009.

Show us some of your C code. Then I will believe you. You're a brightest of the bunch C programmer? Ok, have you ever contributed anything to open source? What have you worked on?
sr. member
Activity: 476
Merit: 250
Date Registered: September 28, 2010, 01:16:14 PM
You were inactive for nearly 3 years.

No, I was not inactive, I have been reading this forum since 2009.
vip
Activity: 1316
Merit: 1043
👻
Date Registered: September 28, 2010, 01:16:14 PM
You were inactive for nearly 3 years.
sr. member
Activity: 476
Merit: 250
Date Registered: September 28, 2010, 01:16:14 PM
vip
Activity: 1316
Merit: 1043
👻
May be you'd like to know a little more about kslaughter. In about 1983 I was programming manager for a team of 8 programmers. It was my job to hire and train C-programmers out of college. KSlaughter was the brightest of the bunch. At one time, I was his team leader. Today, I learn from him. I can't say whether he will accomplish all he has set forth, but I believe in him enough to invest some of my own funds in his AMC project. After all, all of his first profits are to go back to the original investors, the way I understand it, until they receive all their money back, and that's from machines that he has already paid for!!!. Even if he only part way accomplishes his goals, there is little risk and there is the possibility of a big score. My gosh! I feel like this guy who is trying to accomplish great things is getting torn to shreds because of a few hasty mistakes. Let him who is without mistakes cast the first critique! He moves fast and is more of a "Get it done" person than a detail person. If he took time to dot every i, and cross every t, then he would still be writing his proposal instead of working on making things happen.
Date Registered:   March 26, 2013, 08:56:15 PM

newbie
Activity: 14
Merit: 0
May be you'd like to know a little more about kslaughter. In about 1983 I was programming manager for a team of 8 programmers. It was my job to hire and train C-programmers out of college. KSlaughter was the brightest of the bunch. At one time, I was his team leader. Today, I learn from him. I can't say whether he will accomplish all he has set forth, but I believe in him enough to invest some of my own funds in his AMC project. After all, all of his first profits are to go back to the original investors, the way I understand it, until they receive all their money back, and that's from machines that he has already paid for!!!. Even if he only part way accomplishes his goals, there is little risk and there is the possibility of a big score. My gosh! I feel like this guy who is trying to accomplish great things is getting torn to shreds because of a few hasty mistakes. Let him who is without mistakes cast the first critique! He moves fast and is more of a "Get it done" person than a detail person. If he took time to dot every i, and cross every t, then he would still be writing his proposal instead of working on making things happen.
legendary
Activity: 1106
Merit: 1006
Lead Blockchain Developer
Is this argument relevant? 

No, not really.
newbie
Activity: 14
Merit: 0
Regarding AMC: Hello everyone, I finally got my wings to post. I'd like to repost what I put in the newbie forum about AMC.

I'm a long time computer professional...Hardware, Software, etc. I have a Business friend/acquaintance who recently made and offering on BitFunder and I would like to contribute to the discussion. I personally have known the proprietor of AMC for over 30 years and can testify that he is serious about his business, has operated many businesses, some very successful. He has sent me info relating to his plans to build the mining machines, including diagrams. How many people would be as open as he has been about themselves if they were not serious! Some people have questioned his authenticity because of his grand plans. That is the way he always goes about things. He thinks bigger than most people. To me that is the mark of someone who has the ability to accomplish big things. What ever the human mind can conceive of and believe, it can achieve...(Quote from Conrad Hill, Think and Grow Rich)
hero member
Activity: 756
Merit: 500
I think your 1 year revenue is not realistic.  Considering bitcoin production.

Unless you plan on selling mining units?
Pages:
Jump to: