Is it possible to create an application on a block chain without a native coin

Hello guys I’ve been pondering on some idea of creating a forex broker which will work on a block chain but i have some worries which I’m confused about…

  1. How can transactions go on in my broker if there is no coin to carry out mining activities what will the miners or validators earn as a reward of their services..

  2. Is it possible to use the blockchain only as a service of storage of information .. however this still brings us back to the first question what then will be the criteria to validate the information before storing in the blockchain…

  3. Is it possible to do run a block chain service in line with a fiat trading platform??

Application Initialization on HTTPS

I am looking for some guidance on how to warm up my web application after app pool recycle. So far I used standard Powershell warm-up scripts, but due to company policy we might need to find another solution. I found information that Application Initialization should meet my requirements. Unfortunately I wasn’t able to make it work so far.

This is how I configured it in my environment: I have created host header web application with following Public URL: I have configured bindings to use proper SSL certificate. Everything works fine. I have measured request time on my default page ( using Developer Dashboard after app pool recycle. It took approximately 15 seconds.

Then I have configured Application Initialization according to this article: In my case I have added following entry to web.config : enter image description here

As I read Application Initialization doesn’t work for SSL:
Therefore I have added following rule to the web.config file of my web application: enter image description here

SSL Settings are set according to the article: enter image description here

Unfortunately when I try to access my default page I get Server Error: enter image description here

When I remove rewrite rule from web.config everything starts working fine (unfortunately without any performance improvement). Additionally I don’t see any traffic in Task Manager after app pool recycle. As I understand it should send fake request if everything is configured fine.

My question is: what I did wrong and how can I fix it? Moreover do you know what kind of improvement should I notice after successful deployment (it is possible to go down to 5sec on response time)?

I would be very grateful for any advice in this matter.

Bit Mask Application written using GTK+ 3

I’ve been studying C on my own using K&R 2nd Edition, and started exploring GTK+ to practice some of the concepts I’ve learned by making GUI applications. This is the first GUI application I’ve built, designed in Glade and coded in C.

I’ve also included my Makefile with compile options and the Glade XML file code generated. I believe I’m using the appropriate settings for warnings in GCC. I would appreciate any and all feedback on the code as well as the compiler settings I’m using.

Thank you!


#include <gtk/gtk.h> #include <stdio.h> #include <string.h> #include "handlers.h" #include "utilities.h"  // Setup sets up the Builder/Window, importing Glade void setup(GtkBuilder **builder, GtkWidget **window, char *windowName) {     gtk_init(NULL, NULL);     char fileName[64];     sprintf(fileName, "", windowName);     *builder = gtk_builder_new();     gtk_builder_add_from_file(*builder, fileName, NULL);     *window = GTK_WIDGET(gtk_builder_get_object(*builder, windowName));     gtk_builder_connect_signals(*builder, NULL); }  int main(void) {     GtkBuilder      *builder;     GtkWidget       *window;     setup(&builder, &window, "window_main");      GtkWidget *mask_button;     GtkWidget *number_field;     GtkWidget *bitmask_field;     GtkWidget *output_label;      setup_element(&builder, &mask_button, "mask_button");     setup_element(&builder, &number_field, "number_field");     setup_element(&builder, &bitmask_field, "bitmask_field");     setup_element(&builder, &output_label, "output_label");      // Widgets into the callback handler, to avoid storing widgets them globally     GtkWidget *widgets[] = {number_field, bitmask_field, output_label};      g_signal_connect(mask_button, "clicked", G_CALLBACK(on_button_clicked), widgets);     g_object_unref(G_OBJECT(builder));     gtk_widget_show(window);     gtk_main();     return 0; } 


#include <gtk/gtk.h> #include <stdio.h> #include <stdint.h>  #include "utilities.h"  // When "Mask" is pressed void on_button_clicked(void *ptr, GtkWidget *widgets[]) {     (void)ptr; // We don't need the button widget     GtkWidget *number_field = GTK_WIDGET(widgets[0]);     GtkWidget *bitmask_field = GTK_WIDGET(widgets[1]);     GtkWidget *output_label = GTK_WIDGET(widgets[2]);      uint64_t number = (int) strtol(gtk_entry_get_text(GTK_ENTRY(number_field)), NULL, 2);     uint64_t mask = (int) strtol(gtk_entry_get_text(GTK_ENTRY(bitmask_field)), NULL, 2);     if (number > ULLONG_MAX || mask > ULLONG_MAX || number < 0 || mask < 0) {         set_label_text(&output_label, "Sorry, only unsigned long long ints supported for now!");         return;     }      g_debug("Number: %lu\nMask: %lu\n", number, mask);      char str[sizeof(uint64_t)];     sprintf(str, "%lu", number & mask);     set_label_text(&output_label, str); }  // Called when number field is changed void on_number_change(GtkWidget *number_field, GtkWidget *base10_number_label) {     uint64_t number = strtol(gtk_entry_get_text(GTK_ENTRY(number_field)), NULL, 2);     GtkWidget *widget = GTK_WIDGET(base10_number_label);     char str[sizeof(uint64_t)];     sprintf(str, "(%lu)", number);     set_label_text(&widget, str); }  // Called when mask field is changed void on_bitmask_change(GtkWidget *bitmask_field, GtkWidget *base10_mask_label) {     uint64_t mask = strtol(gtk_entry_get_text(GTK_ENTRY(bitmask_field)), NULL, 2);     GtkWidget *widget = GTK_WIDGET(base10_mask_label);     char str[sizeof(uint64_t)];     sprintf(str, "(%lu)", mask);     set_label_text(&widget, str); }  // Called on exit void on_window_main_destroy() {     gtk_main_quit(); } 


#include <gtk/gtk.h>  // Helper method to set text of a label void set_label_text(GtkWidget **widget, char *string) {     gtk_label_set_text(GTK_LABEL(*widget), string); }  // Sets up Glade XML element void setup_element(GtkBuilder **builder, GtkWidget **element, char* elementName) {     *element = GTK_WIDGET(gtk_builder_get_object(*builder, elementName)); }

<?xml version="1.0" encoding="UTF-8"?> <!-- Generated with glade 3.22.1 --> <interface>   <requires lib="gtk+" version="3.20"/>   <object class="GtkWindow" id="window_main">     <property name="can_focus">False</property>     <property name="title" translatable="yes">Bit Masker</property>     <property name="resizable">False</property>     <property name="window_position">center-always</property>     <property name="default_width">400</property>     <property name="default_height">100</property>     <property name="gravity">static</property>     <signal name="destroy" handler="on_window_main_destroy" swapped="no"/>     <child type="titlebar">       <placeholder/>     </child>     <child>       <object class="GtkFixed">         <property name="visible">True</property>         <property name="can_focus">False</property>         <child>           <object class="GtkLabel" id="number">             <property name="width_request">77</property>             <property name="height_request">25</property>             <property name="visible">True</property>             <property name="can_focus">False</property>             <property name="label" translatable="yes">Number:</property>           </object>           <packing>             <property name="x">5</property>             <property name="y">19</property>           </packing>         </child>         <child>           <object class="GtkButton" id="mask_button">             <property name="label" translatable="yes">Mask</property>             <property name="width_request">109</property>             <property name="height_request">45</property>             <property name="visible">True</property>             <property name="can_focus">True</property>             <property name="receives_default">True</property>           </object>           <packing>             <property name="x">165</property>             <property name="y">115</property>           </packing>         </child>         <child>           <object class="GtkLabel" id="bitmask">             <property name="width_request">81</property>             <property name="height_request">27</property>             <property name="visible">True</property>             <property name="can_focus">False</property>             <property name="label" translatable="yes">Bit-Mask:</property>           </object>           <packing>             <property name="x">3</property>             <property name="y">71</property>           </packing>         </child>         <child>           <object class="GtkEntry" id="bitmask_field">             <property name="width_request">261</property>             <property name="height_request">34</property>             <property name="visible">True</property>             <property name="can_focus">True</property>             <property name="max_width_chars">32</property>             <property name="placeholder_text" translatable="yes">10101010</property>             <signal name="changed" handler="on_bitmask_change" object="base10_mask_label" swapped="no"/>           </object>           <packing>             <property name="x">107</property>             <property name="y">65</property>           </packing>         </child>         <child>           <object class="GtkLabel" id="output_label">             <property name="width_request">243</property>             <property name="height_request">20</property>             <property name="visible">True</property>             <property name="can_focus">False</property>             <attributes>               <attribute name="foreground" value="#eeeeeeeeecec"/>             </attributes>           </object>           <packing>             <property name="x">101</property>             <property name="y">171</property>           </packing>         </child>         <child>           <object class="GtkEntry" id="number_field">             <property name="width_request">259</property>             <property name="height_request">34</property>             <property name="visible">True</property>             <property name="can_focus">True</property>             <property name="max_width_chars">32</property>             <property name="placeholder_text" translatable="yes">11111111</property>             <signal name="changed" handler="on_number_change" object="base10_number_label" swapped="no"/>           </object>           <packing>             <property name="x">108</property>             <property name="y">15</property>           </packing>         </child>         <child>           <object class="GtkLabel" id="base10_number_label">             <property name="width_request">20</property>             <property name="height_request">24</property>             <property name="visible">True</property>             <property name="can_focus">False</property>             <property name="label" translatable="yes">(0)</property>           </object>           <packing>             <property name="x">373</property>             <property name="y">21</property>           </packing>         </child>         <child>           <object class="GtkLabel" id="base10_mask_label">             <property name="width_request">20</property>             <property name="height_request">23</property>             <property name="visible">True</property>             <property name="can_focus">False</property>             <property name="label" translatable="yes">(0)</property>           </object>           <packing>             <property name="x">371</property>             <property name="y">71</property>           </packing>         </child>       </object>     </child>   </object> </interface> 


all: clean compile run  compile:     gcc -o bitmasker *.c -Wall -Wextra -pedantic `pkg-config --cflags --libs gtk+-3.0` -export-dynamic run:     ./bitmasker clean:     rm -f bitmasker 

What options are for a GUI for a Java application?

This might be a bit of a wide question. I have a couple of classes in Java that take input a String which is a mathematical expression and evaluates it.

I want to implement a desktop GUI for this. The user inputs the equation in a textfield and a couple of rectangles should be displayed under the textfield if the equation is not written correctly pointing at the syntax errors?

This is the closest thing I’ve come to what I want and it’s not related to a GUI in Java

I use NetBeans. What can I use/How can I create a GUI for the application other than JFrame? Is there any way I could create the GUI in Javascript? Anything that can point me someplace is appreciated.

Intermittant slow SQL Query run via application

An ERP app runs an invoice on demand and we are limited in what we can change on the DB. It seems to run for weeks in <30 mins then we have a major slowdown and it can take over 7 hours.

After any advice on improvements, changes we can make. It is running black box code via an application and we have minimal control unless we get the company in. Several tables have no indexes / poorly designed.

The execution plan + TSQL is below

Additional info: I am waiting for a change to be approved to change MAXDOP + cost threshold as I am seeing large CXPACKET waits on this system.