A lan pet Project - c#

Its an idea i have had for many years and i want to finally start doing it.I am still a newbie , but i have enough experience to understand new things.The basic idea is this.There will be an animal.A spider for example, which can run across systems connected in lan.It comes and sits in one computer, and if the user nudges it it crawls away to visit a nearby or random computer, where it stays until nudged again.That's it.
Now i want to know the following things
1)Which languages are best for this one?I have some knowledge of C# and java.I can do flash animations also
2)What all should i search for to get started?
Its a nonsense project and has no use to anybody.But i will get immense pleasure if i see it work.I will be posting more questions as i progress.

This wouldn't be too difficult in C#. You could create a program (or service) that runs on the systems across the lan, and use WCF Discovery to find other copies of the program running on other systems.
When you want to make the spider move, just see which other systems are available, and send a message to that system that you want it to go there. You'd then make your spider crawl away, and on that system, crawl into place.

Related

Run local web application but restrict access to resources

I'll try to keep this coherent and to the point, been coding all day and a little fried right now. I know doing this is also entirely possible, I'm just not entirely how to do it directly.
The idea is I'm working on a program I'd like to make commercial and sell in the future. Currently it's been holding up to testing processes and everything looks good, but now that I'm starting the improve the program's GUI, I'm hitting limitations using Windows Forms (EI, tab control tops not being easily recolor-able, etc, etc), and had a thought... That I could make the GUI look infinitly better if I could import the program into a web page. Using a dot net project makes that relatively easy since I can copy the C# code over and after a bit of tweaking, it should be fairly straight forward to get everything running and then I just need to rewire everything to the web page GUI.
To handle launching the web page, I was contemplating making a program that creates a "harness" (Small graphic program that just runs a command prompt line to initialize the web service and provides a link to the web page being hosted on the local service. This approach works, but the big issue I'm hitting while probing this route is that the "Release" folder generated on the web application isn't fully self contained and in addition to this all resources are visible. (Hard to sell a product if the first person you sell it to can just distribute the source code around)
So ideally at this point, I'm looking to see if anyone can guide me in the right direct. I'm not sure how to go about creating a program that runs an app inside a local browser AND hides/otherwise makes all the code / resources (images, etc) unviewable/inaccessible to anything outside the program.
Sorry if this is a bit rambly, not entirely sure how to actually ask/find what I'm looking for. (There maybe a name for the thing I'm looking for and I've just never heard of it before.)
I would recommend you to use WPF windows presentation foundation, you can make much more user friendly and intuitive interfaces in WPF comparing to windows form.
Developing and trying to sell a desktop program as a website is never recommended, the website is meant to be hosted on a server and let the clients access all of its functionalities within the browser. So I would suggest you to go and search for WPF.
You also mentioned that you are struggling to improve the windows form User interface design and are struggling to design attractive GUI. Well this is not true you can make amazing GUIs with windows form. take a look at this link https://www.youtube.com/watch?v=K9Ps66GoD-k this will greatly help you to improve the existing windows form application design you already have developed.

How to get the Caller Info from VoIP in real-time in a .NET Application?

I am working on a project which includes a lot of VoIP functions. I don't have access to the source code of the previous system that was being used so I can't dissect it to find out what I need to know. I will describe how the previous system used to work and then ask my question.
First, the old system that we have been using depends on Physical Phones which receive calls over the internet. There is a Desktop App installed on our computer which somehow takes the phone call received by the phone and shows that phone number on the Desktop App. Which uses that number to look up data about the caller. But the problem is that this Desktop App is over a decade old and has not been updated since. So we want to build a new Web Based Application with .NET that will do the same. My question is:
1- How do I fetch the Caller Information From the Physical Phone and use it how I want? The phone being used is SNOM 760 but its possible that other brands or models be used in the future.
2- Let's say that a specific page is always opened on the browser. How do I transfer the caller number to the server and then show a pop up with the information about the caller in that page that's always opened in the browser in a RELIABLE way? What about when that specific page is not opened? Remember that the phone that is receiving this call is not directly in communication with the server. But that is also not a restriction. I read somewhere while researching that I could have my server take the call first and then transfer it to that physical phone. The only restriction is that we use VoIP phones/numbers.
Like I said, I have very vague information on the subject. Any help is appreciated. I've studied that I could use Twillio or other such third party services to achieve this task but I just wanted to know if I can do it myself instead of relying on someone else and hoping they don't shut down their services in the next few years.
Those are a lot of questions jammed into 1 there, I'll try to answer some.
As you already tagged it, TAPI is an option but not very easy to get into. TAPI normally get it's information centrally from the PBX, but in your particular case the SNOM system has the phones themselves connect to a central server to gather the information and distribute it there. You may be able to hook into a proprietary protocol.
Gathering calls on a central server to then distribute them to phones is usually done with an IVR (Interactive voice response). Channeling outside calls through it is easy but the problem with getting your call information from this point is usually you miss the internal calls.
Your website pop-up is not my area of expertise, maybe someone else could comment on the feasibility of that, but personally I would go with a task-tray style app if reliability is your highest priority.

Two desktops running a windows form application shared on a network folder is slow and lags

My name is Grant and I am just graduating college and I have been working on a little reservation system for a campground and I am running into some issues with speed. I know my code is not perfect, but I do believe I have done a pretty good job at writing a nice, neat, organized program.
Right now how I run the application is by storing it on a shared network folder on one of the desktops, and then I run the application from the shared folder on the other desktop. The ISSUE I am having is that there seems to be a little bit of or its slow sometimes. Its almost like the computer cant keep up. Which is strange, because when you run the application on the desktop where the application is actually being shared from, the application works great. Its fast and responsive. So that makes me believe my code is fine because it runs great on that computer so it cant be my code. Which leads me to believe that its either my network(which I also have a hard time believing, because we have no problems streaming multiple things at the same time). We have never had any problems lately with internet speed. So where I am at now is could it possibly be the desktop itself. They are both pretty cheap desktops running the app. If I upgraded and bought two new desktop computers would the speed increase at all?
Any help or advice on the issue would be great. The application is working likes its suppose to, but the speed of it needs to be picked up. If anyone has any advice at all I would very much appreciate it.
Thanks in advance.

Small server application

I'm interested in programming a small server app that I can use to convert an old laptop into a home server. I don't think it needs to be too complex, I just want to be able to download my music and such onto other devices. My questions are:
Could I do something like this in C#?
Is it possible to set it up in a way that I can connect my mobile devices to transfer pictures and music?
Are there any references that might help me with this? (Books, articles, etc.)?
I'm fresh out of school so my experience is minimal, so I'm sorry if these questions seem obvious. Also, my mobile devices are all Android, two of my PCs run Windows 10, and the one I want to act as the server runs Windows 7, but I can upgrade that if it will simplify things. Again, sorry if the questions are a little basic and thanks for taking the time to read.

Implementing a chat system within an application in C# over a local network

My class was recently assigned a group project to be worked on over the next 5 or 6 weeks. It is largely complicated, but a specific item I need to work on involves a chat feature. To keep it simple, there will be about 5 workstations hard-wired together at an event, and they need to be able to communicate instantly.
Our idea is to just throw an executable on each of their computers, so the chat functionality needs to be built-into the application. In order to keep conversations clear and uncluttered, we are going to have a group chat as well as individual chats. I have no way of displaying the GUI we are shooting for, but basically a window will be split in two. On one side a list of workstations as well as a group option will appear, and on the other the actual chat window.
As an aside, I would like to add a notification feature to it so that an alternate tab of the chat will blink, show a star, or something to that effect.
Long story long, I need ideas on how to implement this chat system within an application. It's got me stumped.
Windows Communication Foundation would be a good choice for the network communication portion. There have been many WCF chat servers written - for example, see here and here. One of these examples could get you started.
how about this for a starting point. If you need help code project is a good place to start if you have specific requirements
http://www.codeproject.com/KB/WCF/WCFWPFChat.aspx
Heres a tutorial How to create a remote server by using Microsoft Visual C# that should get you started.

Categories

Resources