Home >

c#

Advertisement
  • C# / SQL Process Feels Inefficient and SlowJune 12

    I am calculating the moving average for 5,534,446 rows in one table. I am using C# as my language and MySQL as the database. Below is the code I am using to gather and calculate an exponential moving average for different sets of days. The program is

  • Yet another Pythonic range implementation for C++June 11

    I recently had the need to loop from zero to some limit only known at runtime. Instead of writing: for(int i = 0; i < limit; ++i) { // Some repetitive thing } I wanted to write something similar to what I often use in Python and D: for i in range(0,

  • stringbuilder vs string.concatJune 11

    I was reading the following article about StringBuilder vs string.concat: http://jonskeet.uk/csharp/stringbuilder.html And couldn't figure out which one would be better in the following situation: StringBuilder address = new StringBuilder(); address.

  • Login to flickr account from my own appJune 8

    I'm trying to build a dll (for wpf/cmd) for downloading images from flickr. For that,I want the user to sign-in to the site and after typing the desired string it will returns all the photos that are available for this user (public + his private imag

  • How can I bind additional data to a Telerik Kendo Drop Down ListJune 7

    I have a Kendo drop down list. It's set up with a location name as the text and a location ID as the value. However, I have a third field that I need to have bound to the model (or at least returned in some way back to my controller). Is there a way

  • Declare structure in header fileJune 7

    I have type fifo_t definition in my fifo.c file like below. What should be declaration of this type in the header file fifo.h? I want to make the contents of this structure was known only within the file fifo.c. Additionally, I do not want to be able

  • Syncfusion sfDataGrid TimeSpanColumn not edittingJune 6

    I'm using mvvm light framework along with Syncfussion WPF Community Toolkit version 13.4.0.53 Assemblies from GAC according to the Syncfussion Reference Manager. I am trying to get the sfDataGrid GridTimeSpanColumn to work in edit mode. Currently, th

  • C# / SQL Process Not Very EfficientJune 5

    I am calculating the moving average for 5,534,446 rows in one table. I am using C# as my language and MySQL as the database. Below is the code I am using to gather and calculate an exponential moving average for different sets of days. The program is

  • AppDomain CreateInstanceAndUnwrap: Type is not marked as serializableJune 5

    All, I'm getting an unexplained error when calling CreateInstanceAndUnwrap on a new appdomain I have created. The full error text is: Type 'System.Net.Http.HttpRequestMessage' in assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyT

  • Error occuring while running a C program in Eclipse IDE Mars "Launch Failed . Binary Not Found"?June 3

    its a newly installed eclipse mars.. so for a test run i just did a "Hello World" program and this error occured after i clicked run please help me with a detailed solution and with pics if possible

  • how to return char** from C++ dll to C#May 27

    I've followed your answer of this to pass string from C++ to C# it worked very good, but I want to pass a string array instead now, and I use 2D Char array as a string array, how can I do it? http://stackoverflow.com/questions/32991274/return-string-

  • C# / XNA / MonoGame AutotilingMay 23

    Good day, been a while since I've been here. I'm busy testing out procedural generation for a project and thankfully got it working. Now I'm trying to implement an auto tiling system which uses minimal graphics to produce great results. The Tiling sy

  • Generate random numbers in loop without repeatingMay 22

    How to generate Random numbers without repeating any numbers in the given target like(1-5000) there should be no reparation and I should be able to get 5000 randomized numbers. I should be able to run the randomized as many times as the user wants,Ho

  • What type of game can I make in unity in 3 months with no programming experience? [on hold]May 22

    I am a student at a university and for this semester we are supposed to use Unity to make a working/playable game by the end of the semester (Feb-June). I am kind of lost on what I should do because I have 0 coding experience because, I'll be honest

  • Assigning variable with NULL instead of 0 C and C++May 20

    Assigning variables with values during definition is a good practice. The common practice is to assign variables with 0 and pointers with NULL. int p = NULL; // instead of int p = 0; int *ptr = NULL; int &ref=p; Is it ok to have a variable also to as

  • How to solve sync conflict problems if two or more devices try to modify same fileMay 20

    I am new to sync application. I am just trying to solve sync conflicts problems, please suggest if you have better ideas.

  • a program that allows the user to enter the scores of a student [on hold]May 20

    Write a program that allows the user to enter the scores of a student in a number of courses then print the average and calculate the grade. 1. Print a massage that ask the user to enter the number of courses n 2. Ask the user to enter the scores for

  • c++ measuring execution timeMay 7

    The purpose of the following code is to measure the execution time of a simple operation (1+1) and of a call to a function who does nothing (foo). The code compiles and seeme to work properly, but the results i am getting are weird - it seems the bas

  • Business with dbcontext and static classMay 7

    Many speak of using dependency injection. I do not use repository. The entity framework is uow/repository. What is wrong with using static class like the one below? My context is a new instance per request. public class TenantManager { public static

  • Launching website from c fileMay 6

    is there any way to launch a website (through a url) from a c file? if not is there a command in terminal (mac osx not linux) that can open a url in a browser or the terminal itself? Thank you.

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 13 q. 0.434 s.