topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 9:11 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Asudem [ switch to compact view ]

Pages: prev1 2 3 [4] 5 6next
76
Not a response on your inquiry, but general food for thought on such requests.  It might be better for a more targeted inquiry, and definitely good to mark your link with NSFW.  That is just because it is a mixed audience, and it's good to be mindful of that, more than anything wrong with the fact that you're asking, or the subject matter of it.

This might also be a reason that you might not get the replies that you want, as the usual suspects might not fall into the categories of wanting the tracking on their machine as they work on such a project.

Just an FYI.  Best of luck with your efforts!

Good call, thank you for that. I've been banging away at some Javascript and as it turns out, if people would like to test their scripts, they can do so in a non-NSFW enviironment here: https://yyanx.github.io/CB-TestBed/

I'm still learning the ins-and-outs of Javascript and boy, I didn't realize how much code you have to compact in order for things to work correctly.

EDIT: Here is my code so far:
Spoiler
//Variables
var setupComplete = false;
var setupTime = 2 * 60 * 1000;
var playCost = 50;
var voteCost = 10;
var voteTime = 5 * 60 * 1000;
var tipTotal = 0;
var winnerFlag = false;
var currentTip = 0; var cbWinner = 'No one yet!'; var lastPrize = 'Nothing';
var players = [{cbuser:cb.room_slug, message: 'Initial Card Setup', index: 1, votes: 0}];
var currentlyPlaying = [cb.room_slug];

//Initialize CAH
function init()

{
     //Initial Notice
     //Let users know the game has started
     cb.chatNotice('Chaturbate Against Humanity has begun!', '', 'gold','red', 'bold', 'lightblue');
     
     //Init Black Card
     setBlack();
     
     //Set Broadcaster Card
     players[0]['message'] = whiteCard();
     
     //Room Enter
     //Inform new users of the current App playing
     cb.onEnter(function(user) {
         cb.chatNotice('Welcome ' + user['user'] + '! We are playing Chaturbate Against Humanity! The rules are as follows:' );
     });
     
     //Timed Setup
     //Users are given X minutes to add a white card
     //cb.setTimeout(Setup, setupTime);
     
     //When User Tips
     cb.onTip(userTipped);
     
     //When User Chats
     cb.onMessage(OnMessage);
     
};

//Set Black Card
//Set the room topic to the CAH Black Card
function setBlack()

{
     //Change Room Subject
     cb.changeRoomSubject('[Black Card] #CAH');
     
};

//Handle Tip
function userTipped(tip)

{
     //Wait for Players
     if (players.length < 2
     )
     {
          //Check for new tip
          //White Card Tip
          if (tip['amount'] >= playCost
          )
          {
               //Add White Card
               //Run addUserCard
               addUserCard(tip['from_user']);   
               
          }
          else
          {
               //NO
          };  //end of IF [White Card Tip]
         
     }
     else
     {
          //Enough Players
          //User Already Played?
          if (cbjs.arrayContains(currentlyPlaying, tip['from_user'])
          )
          {
               //YES
               //Apologize
               cb.sendNotice('Sorry, you are already playing the card: ' + getCard(tip['from_user']) + '. You cannot play more than one card.' , tip['from_user']);
               
          }
          else
          {
               //NO
               //Add card to the new payer
               //Add New Card
               addUserCard(tip['from_user']);   
               
          };  //end of IF [User Already Played?]
         
     };  //end of IF [Wait for Players]
     
     //DEBUG - # Users In Play
     cb.log(players.length.toString());
     
     //DEBUG - List All Players
     
     //Loop Through Players
     for (var i=0;i<players.length;i++
     )
     {
          //Display Players
          cb.log('cbuser: ' + players[i].cbuser + ' message: ' + players[i].message + ' index: ' + players[i].index + ' votes: ' + players[i].votes);
         
     };  //end of FOR [Loop Through Players]
};

//Add White Card
function whiteCard()

{
     //Get Random White Card
     return 'Random Card';
     
};

//drawPanel
function drawPanel(tipTotal)

{
     //TRUE
     if (winnerFlag
     )
     {
          //YES
          //Determine the game's winner
     }
     else
     {
          //NO
          //Just redraw the panel
     };  //end of IF [TRUE]
     
     //Code
     cb.onDrawPanel(function(user) {
         return {
             'template': '3_rows_of_labels',
             'row1_label': 'Tip Received / Goal :',
             'row1_value': tipTotal,
             'row2_label': 'Winner:',
             'row2_value': cbWinner,
             'row3_label': 'Prize Won:',
             'row3_value': lastPrize
         };
     });
     
};

//Get Reward
//Give the user a reward for having the best card.
function getReward()

{
     //TRUE
     if (cbWinner == cb.room_slug
     )
     {
          //YES
          //Looks like the model won this time
     }
     else
     {
          //NO
          //Reward the user for winning!
     };  //end of IF [TRUE]
     
};

//Get User Card
function getCard(user)

{
     //Loop Through Players
     for (var i=0;i<players.length;i++
     )
     {
          //Find the User
          if (players[i].cbuser == user
          )
          {
               //YES
               //Return the Card
               return players[i].message;
               
          }
          else
          {
               //NO
          };  //end of IF [Find the User]
         
     };  //end of FOR [Loop Through Players]
     
};

//On Message
function OnMessage(msg)

{
     //HODOR
     msg.m = 'HODOR';
     
};

//Add User Card
function addUserCard(user)

{
     //Code
     var userMessage = whiteCard();
     var card = {cbuser: user, message: userMessage, index: players.length + 1, votes: 0};
     players.push(card);
     currentlyPlaying.push(user);               
     cb.sendNotice('Your white card is: ' + userMessage, user);
     
};

//Start Chaturbate Against Humanity
//Let's get on with it already!
init();


77
The dilemma I run into is the desire to try some templates on one hand, and the desire to avoid tools that produce unreadable html on the other.  I am not a web programmer, much less designer.

But one way to get some structure without paying may be to look at some of the free web page editor/designer tools that come with templates.

I have not even installed RocketCake yet.  But the description is intriguing.  It may be worth a look.

But I agree.  Programmers often make lousy "super users."  They tend to see the program from the inside instead of the UI.

Thank you very much for the suggestion, which looks absolutely worth checking out!

Something I discovered this morning is Joomla! which appears to be a pretty elegant solution, however I am dreading setting it up on my amazon cloud server, but if it's really worth a shot it's worth a shot.

78
Greetings all,

There is an online adult-entertainment oriented site called Chaturbate. It is where users pay to see webcam models to perform adult related activities by tipping with a virtual currency that the model can redeem for income. The models rely on user created javascript programs to control how much services will cost for an amount of tokens. Most of these programs count up to a goal to which all the users of the video chat room contribute by tipping tokens. However some programs become more complex and interactive, such as tipping certain amounts of tokens to reveal prizes on a keno board. Some even go as far as emulating Battleship. However, I have been approached by a friend of mine who is also a model on the site to create something new and different for her to interact with her fans. I thought consulting the Snack board of DonationCoder might help inspire me to create something using Chaturbate's API.

They even have their own sandbox servers that the apps can be tested on. As always, however, snacks must be specific in their idea requests: I want a basic Cards Against Humanity clone with a slight twist. A user tips an amount determined by the model's input to draw a white card. After so many people have drawn the white cards, a black card and all the white cards are shown to the chat. The chat then votes by tipping an randomly assigned amount to each answer and the amount of votes by the end of a timer countdown wins. The winner is revealed in the DrawPanel along with a randomly selected prize.

Any suggestions or working examples people could post would greatly be appreciated.

79
Greetings everyone,

I hope you're all familiar with the card game Cards Against Humanity if you've opened this topic. If so, boy are you in luck! I have started a private Pretend You're Xyzzy server which will allow any DonationCoder members play against eachother!

The server is running Apache Tomcat 9 Version 9.0.0.M4, Mar 12 2016, and uses a PostgreSQL database which allows remote access.

If anyone would like to help develop an application to add new cards to the database remotely we can create our own custom DonationCoder.com card deck! I will give you the remote password information via the messaging system.

There was a built in admin system that was disabled by default. I re-enabled it and added my IP to the "OK" list and I can now create custom CAH decks!

To add custom DonationCoder.com cards, click here and use "DC"  as the watermark.  :D

80
Developer's Corner / Designing Personal Sites - Programming POV
« on: May 01, 2016, 11:02 AM »
Greetings all,

So I have taken the plunge to host my own site to beef up my resume, and I've run into a little bit of a problem. I am a coder, and not much of a designer.

Right now, I'm throwing code at my website and seeing what sticks based on my own personal tastes. I could go on Fiverr and get some designs by paying someone else, but honestly that just doesn't feel as personal.

What I'm asking is if there's any rules you guys follow for UX and design as a programmer? Sometimes what makes sense and is logical to us isn't always the case for others, so I'd like to see what kind of feedback I can get here.

Any help is greatly appreciated!  :D

81
There are several cats in my household, but the one who declares me as her "person" is Casey. She's a little sweetheart with a soft meow and purr. Her favorite toys are crumpled papers and cardboard boxes. While she usually sleeps with someone else in the evenings, she like sleeping on the cat tree next to my desk while I program.

IMG_20160221_145337.jpg

82
Living Room / Freelance Programming/Upwork discussion thread
« on: April 02, 2016, 11:17 AM »
Greetings all,

The time has finally come. I am leaving my current office lackey job and am going freelance for a while while I attend school to pick up where I left off 10 years ago.

I would like to know who here freelances and if they have any tips.

I want to create my own work virtual machine, a separate machine I can use and can be monitor by my employer so they don't see all my icons, my weeb music playing in the background and such.

I also want to know something. Back in the day, you couldn't create commercial apps with the "Express" editions of Visual Studio. I only have Visual Studio Community. Do I need to upgrade my license to work for people?

83
DC Member Programs and Projects / Re: MFCRecorder - Continued
« on: April 02, 2016, 10:24 AM »
That did it, thank you! Now how do I *stop* the recording? haha
This is one of the original mechanics of the program I do not like. There is no way to identify what process of ffmpeg is recording what model. At least not that I've figured out anyway. So there is no way to stop it using this method. However if you unhide ffmpeg, you will see the console window process the stream, and you can close it once you are done recording.

84
DC Member Programs and Projects / Re: MFCRecorder - Continued
« on: March 16, 2016, 11:39 AM »
If you could also upload the checksum and the virus reports on your new file, that would be helpful at alleviating suspicion.
I will include that with the current and all future releases! It's a shame that the exe packer I use flags the program as malware, but I will no longer use it in the future.

EDIT: All done, and all clean. Not a single line of code was edited.  :D

85
DC Member Programs and Projects / Re: MFCRecorder - Continued
« on: March 15, 2016, 08:43 PM »
Hmm, I haven't been getting updates about replies in the thread. I will re-upload the exe unconfused. I'm guessing that's the issue the malware detectors are having.

86
Hey kids, it's your uncle Asudem here with some sage like advice.

If you have an event that needs to fire, but also assign that event in the initialization of the form, make sure you have some kind of check to not to add the initialized event the second time around.

Alright guys, I'm at my wit's end.

I have a Winform with a WebBrowser control, and once a page loads, it fires an event. Everything works correctly and as intended.

If I create a new instance of that Winform, then load a page into the WebBrowser on the newly created Winform, the same code which assigns the WebBrowser event does not fire....

For example

Code: C# [Select]
  1. public partial class Form1 : Form
  2.     {
  3.         public Form1()
  4.         {
  5.             InitializeComponent();
  6.         }
  7.  
  8.         private void button1_Click(object sender, EventArgs e)
  9.         {
  10.             Form2 form2 = new Form2();
  11.             form2.Show();
  12.         }
  13.        
  14.         private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
  15.         {
  16.             MessageBox.Show(webBrowser1.Url.ToString());
  17.         }
  18.  
  19.         private void Form1_Load(object sender, EventArgs e)
  20.         {
  21.             webBrowser1.Navigate("http://www.google.com");
  22.             webBrowser1.DocumentCompleted += webBrowser1_DocumentCompleted;
  23.         }
  24.     }
Code: C# [Select]
  1. public partial class Form2 : Form
  2.     {
  3.         public Form2()
  4.         {
  5.             InitializeComponent();
  6.         }
  7.  
  8.         private void button1_Click(object sender, EventArgs e)
  9.         {
  10.             Form1 form1 = new Form1();
  11.             form1.Show();
  12.         }
  13.     }
When Form2 creates a new instance of Form1, there is no messagebox once the navigated url is loaded... I am dumbfounded... Any ideas what might be going wrong?[/s]

87
Living Room / Re: Bluetooth Power Monitor
« on: March 03, 2016, 08:21 AM »
I know nothing about the BT controller you're working with, but that code just strikes me as painfully confusing to work with.
You are 100% correct. I hate it. But as illustrated from my example, I can't just say
ble.isConnected() == false
because that just gives me the wrong answer, as every other logic test does here, including ble.isConnected() by itself.

It's by far one of the dumbest things I've ever coded, but it's kind of the point to demonstrate how silly the API is.

88
Living Room / Re: Bluetooth Power Monitor
« on: March 02, 2016, 09:27 AM »
Perhaps I might receive better feedback here over the official support forums: I have made a little program to test the logic of the microcontroller of the device.

In many examples created by the manufacturer, to wait for a bluetooth connection in the setup() routine, the following code is used:
  /* Wait for connection */
  while (! ble.isConnected()) {
    delay(500);
  }
And it works correctly. However calling this from within the loop() method yields.... interesting results.


The logic of the Feather's microcontroller is tested in 4 ways:
If the bluetooth module is not connected, it should return false.
  if (!ble.isConnected())
  {
    printBoth(F("True"));
  }
  else
  {
    printBoth(F("False"));
  }
If the bluetooth module's connected status is false, it should return false.
  if (ble.isConnected() == false)
  {
    printBoth(F("True"));
  }
  else
  {
    printBoth(F("False"));
  }
If the bluetooth module is not connected or if the bluetooth module is not connected, it should return false.
  if (!ble.isConnected() || !ble.isConnected())
  {
    printBoth(F("True"));
  }
  else
  {
    printBoth(F("False"));
  }
If the bluetooth module is connected, it should return 1.
printBoth(String(ble.isConnected()));
Where "printBoth" is simply a function which outputs the string to both the Serial and bluetooth for display. If I run the program with an incremental timer, here are the results:
Test#, Delay in Seconds, Test 1 results, Test 2 results, Test 3 results, Test 4 results
  • 0, True, True, True, 0
  • 1, False, True, True, 0
  • 2, False, True, True, 0
  • 3, False, True, True, 0
  • 4, False, True, True, 0
  • 4, False, True, False, 0

So, I thought that was strange, but check this out....

  • 4, False, True, False, 0
  • 4, False, True, False, 0
  • 4, False, True, False, 0
  • 4, False, True, True, 0
  • 4, False, True, False, 0
  • 4, False, True, False, 0

So yeah, I don't know what's going on, but I don't know what to believe anymore...

89
Living Room / Re: Bluetooth Power Monitor
« on: February 27, 2016, 02:56 PM »
^ the drawing looks great :up:
Thanks, here's the first Rev. 00 I've submitted for printing! I'm very excited! :D
eagle_export.png

90
Living Room / Re: Bluetooth Power Monitor
« on: February 27, 2016, 10:49 AM »
eagle_export.png
So I've discovered the power of EAGLE cad software and oh my goodness, this is amazing! I will have a fantastic looking prototype!

91
Living Room / Re: Bluetooth Power Monitor
« on: February 23, 2016, 05:06 PM »
Even more tedious than coding, soldering, or researching has been creating a new part in a PCB creation program called "Fritzing"... I'm about halfway done with this board so I can begin customizing my own board to create a more finished looking prototype that will be ready for... housing creation... *sigh*  :'(

svg.breadboard.feather-pcb_3_breadboard.png

92
Living Room / Re: Bluetooth Power Monitor
« on: February 19, 2016, 07:36 PM »
It's all tiny tiny now!  :D
compact.jpg

93
Living Room / Re: Bluetooth Power Monitor
« on: February 16, 2016, 06:18 PM »
Seems a bit counterintuitive at first glance...can you explain how this helps anything with the fact that simply having Bluetooth turned on (on most devices) will make your battery drain way faster (even when not in use)  :huh:

Forgive me if I have missed something xD
No you didn't miss anything... except the small rechargeable battery pack that powers the bluetooth module. Whoops, that was my bad not to include it in the photo. But yes, there is almost no power drain from the actual power source you are testing because the device has it's own little battery pack.

94
Living Room / Bluetooth Power Monitor
« on: February 16, 2016, 01:43 PM »
Hi everyone!

I'm proud to introduce my latest project, the bluetooth power monitor! It's still in the prototype stage, but what this device will do is monitor your power usage over bluetooth, the power supply can be turned on via bluetooth, you can be informed of how low your battery is via hepatic feedback, and it will start beeping if your power supply gets too low!

For now, all I have right now is non-specific power monitoring and can turn any battery powered device on and off via bluetooth! Here's a picture of what it looks like attached to a Game Gear:
gamegear.jpg

I'm so proud of my first arduino project!

95
Okay, so I have a prototype working. I had to register the program with Facebook and get my keys and all that but I am successfully pulling photo data from a facebook page and downloading the images.

I also have the program sending out SMS text messages, however I need a new modem, which I ordered, to handle sending out MMS text messages.

This is a lot more fun than I expected. However, because it uses my personal auth_token to connect to Facebook, I can not distribute working source code. =(

96
Facebook and I don't get along from a developing standpoint, and I was wondering if someone else might be able to crack this out much easier and more efficiently than I could.

I want a program which downloads all image posts from a public facebook page. Trick is, I don't only want the posted images, I want the ones shared by the page as well. While the program is open it will check for new posts and see if there is a new image posted or shared and downloads it once posted.

When the program starts, the facebook page is checked against a local database of already downloaded images and begins picking up where it left off.

The program should also double (why not) as an notification program, sharing the image (and maybe the texts too?) via eMail or MMS as updates to the page are made in somewhat real-time.

This would make a part of my life tremendously automated if someone were to help me get this working!

97
DC Member Programs and Projects / Re: MFCRecorder - Continued
« on: February 08, 2016, 05:03 PM »
Would it be possible to switch to the normal broadcast instead if the mobile one?
Hmmm, tricky. I can look into it, but the way the program gathers the data has to be through the mobile version. Perhaps I can add an option to attempt a grab at the normal one.

98
DC Member Programs and Projects / Re: MFCRecorder - Continued
« on: February 08, 2016, 02:21 PM »
Seems that many of the kinks have been worked out and refreshing is working well.

However, my recordings are now dropping in .ts format and don't seem to be transcoding to mkv.

Interesting. Did you update FFMPEG recently? Usually the file format of the stream is broadcaster independent. Did the model change cameras or software they are using, or is it more than just the one model?

99
Living Room / Re: HAPPY NEW YEAR 2016
« on: January 01, 2016, 07:51 AM »
I've said it before and I'll say it again, I love this place! :-* I love you guys!  :-* And now I'm going to DISNEYLAND!  :P

100
N.A.N.Y. 2016 / NANY 2016 UNFINISHED - CMDCompanion
« on: December 31, 2015, 06:41 PM »
CMDCompanion has seen several weeks in development in a challenge to better understand WPF and DataBinding with C#. Without further ado, let's get to what to what the program was supposed to be:

THE PROGRAM:
From the start, the program was designed to solve a problem of people who use command line tools in gui environments. An icon in the Systray which would open any already open explorer window in the systrayicon's context menu. It would also use the the short path for those applications which fail to full paths correctly.

THE PROBLEM:
Creating a dynamic menu which would list the various options. I could not figure out the MVM system of WPF to understand the NotifyIcon's code to dynamically add the items.

Hopefully someone out there has fun with this idea!

I've included the source code to as far as I got with the project.

Pages: prev1 2 3 [4] 5 6next