first, if i writing on bad category, im sorry, i didnt found the help category..
Okey, to my problem. I have a RGB STRIP connected to Arduino, when im communicating via Serial. All works great! So next i wanted to make some audio visualisation.. So i found some samples etc.. and then i created the Audio Visualisation via C# using BASS.NET, when R has been BASSes, G medium frequency and B high frequency. But isnt looking good, so i started thinking, what 3 variables in song has can use, but this is bad idea.. I got idea to change to random color when its get "beat" or BASS hit some value. I tryied 4 hours of doing it, searching, programming... But i cant do it... Im only 15 and non english so im limited in searching etc...
So, my question is how to detecting the beat or just anything event for Audio Visualisation. Best output form WASAPI. Im out of ideas and anything.. Only what i can do is get FFT and Audio Spectrum from WASAPI by BASS.NET, but thats all. My audio skills is so low for this. Anything is welcome!
Yes, i found something with BPM, but i cant integrate that for the BASS.NET, and i didnt found any example for using it in WASAPI. Is possible to provide some example to BPMCounter for WASAPI in bass.net?
I have a form with a few textboxes and checkboxes. I want to store in database values from them. But, I also have a button that selects an image from computer and show link of the image in a textbox. Well, I want to insert data but without inserting an image and here comes my problem, I receive: Empty path name is not legal. Can anybody help me? Thanks
Code is here:
Start by assuming TextBox5 contains no text, and your error should appear - so the most likely thing is that your user pressed Cancel instead of selecting an image, or that code was never called. So check - if it's empty, don't continue.
But...there are other problems here, from the trivial:
Why do you think you have call ToString on a string? What do you expect that to do?
string picLoc = dlg.FileName.ToString();
To the very serious: Do not concatenate strings to build a SQL command. It leaves you wide open to accidental or deliberate SQL Injection attack which can destroy your entire database. Use Parametrized queries instead.
You are clearly aware of the existence of parameterized queries and how to use them, but you leave your code wide open to anyone with a keyboard and your application anyway? Why? Do you not like your data?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
Sincer am luat acel cod de pe youtube. So, I'm sorry if is wrong, but I need to upload a photo in table with sqlite..I will try do to what you said, what can I say. And about conection, I have a class where I have the connection and a function that returns connection, this way is better than to open it and close it on every time you need it. Thank you
Kindly let me know the code and and steps for create SMS sending program by using C#.net via my GSM dongle that connected to Laptop. I'm new to this field and as a student still studying so I'm expecting your favorable response..
Whichever way you decide to go, you will need a client process running on the remote server. You cannot directly modify Linux/Unix systems this way. You would be better looking into one of the remote shell applications such as Putty or SCP.
If the Linux machine has a webserver and is running webservices, then yes, you can "invoke" the webservice. The term query rather implies a database-server, for which you'd use a specialized data-provider, just as under Windows.
As for Open Source; if you have Mono installed with some webserver (like Apache) then you have all the components required to create and invoke webservices.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
Tnx for your answer.
I think I didn't expline my self properly.
I want to make a cross platform connection class that will fit windows,Linux and FreeBSD hosts type and then execute remote command and return the command RC and stdout or stderr.
my current project run over ssh but I want to adjust it to windows host also.
do you think mono will be appropriate solution for me ? I must use webservice to work with mono ?
MVC doesn't have anything to do with either Entity Framework or Stored Procedures. MVC is a design pattern (or, in case of ASP.Net MVC, a technology) for your presentation layer. Entity Framework and Stored Procedures belong to your data access layer. So, your question doesn't really make sense - instead I would say there will be a problem if you don't understand this. You should understand it before starting to design an application.
If you meant to ask if you should use Entity Framework or Stored Procedures as data access solution for your MVC-project - that would make a bit more sense. But as these are still completely different parts of your application, you can choose whatever you want, or, as Pete O'Hanlon wrote, even Entity Framework with Stored Procedures (there's an article on that here on CodeProject if you want to look into that).