Firewall App, exist? Not possible? - Windows 10 Mobile

After an extensive search I couldn't find nothing to really filter network traffic.
For example deny/allow specific IPs, Ports, Protocols, Apps... Exactly like a simple, but true firewall.
I already edited HOSTS file as a very limited kind of filtering...
Maybe not possible in Windows 10 mobile?

Drso0h said:
After an extensive search I couldn't find nothing to really filter network traffic.
For example deny/allow specific IPs, Ports, Protocols, Apps... Exactly like a simple, but true firewall.
I already edited HOSTS file as a very limited kind of filtering...
Maybe not possible in Windows 10 mobile?
Click to expand...
Click to collapse
Firewall rules are added as children of policies within Windows registry. I bet it's possible, but requires some testing using specific tools and browser.

Related

Nodo with SQL

Hello there,
I am developing a game for wp7, and I want to have a user login with skills an level. This users and levels I want toread and write from an SQL database.
But until now I found no API to connect. Is there any free solution to implement a database in wp7 (not linq)?
Thank you
Sent from my HD7 T9292 using Board Express
Nope, not in Nodo. You have to use linq-To-XML. This should be perfectly fine for small amounts of data.
If you can wait for Mango you can use a SQL CE database, but you still need to use Linq-to-SQL:
http://msdn.microsoft.com/en-us/library/hh202860(v=VS.92).aspx
Sent from my 7 Pro T7576 using Board Express
I know linq as a local database.
If I understand right linq-to-SQL is a one time sync? So I have to sync linq and SQL in the beginning and end of game.
So I would create for each user a linq db and then all linq dbs would be synced in SQL?
Sounds difficult, but I will give it a try this we
Sent from my HD2 with NoDo using Board Express
win98 said:
I know linq as a local database.
If I understand right linq-to-SQL is a one time sync? So I have to sync linq and SQL in the beginning and end of game.
So I would create for each user a linq db and then all linq dbs would be synced in SQL?
Sounds difficult, but I will give it a try this we
Sent from my HD2 with NoDo using Board Express
Click to expand...
Click to collapse
Sorry, do you want to connect to a remote SQL database on a webserver, or a just store a database on the phone itself? If on the phone itself, you can create on database for each user (Mango only).
If you want to sync with a remote server, you will need to interact with the server using some sort of Web Services. Then the Web Services do the reading/writing to/from the SQL sevrer and send the information back to the phone (you can currently do this in Nodo).
It should not be local, if its possible.
I want to subscribe on a free SQL host like I've of these: http://www.free-webhosts.com/free-mysql-database.php
Then I want to do the user management there and want do update the level and skills of the user who is logged in. A bit like a windows live account with the gamer points.
I would be glad if I can use SQL commands with c#.
I hope it become more easier to understand . Thank you for helping.
Do you got any sample code or tutorial how to use SQL in wp7? I failed :-D
Sent from my HD2 with NoDo using Board Express
With NoDo, you can't directly access an SQL server.
And even with Mango, I'd be careful doing such a thing, it can really be dangerous on many levels.
The best solution would be to use a web service, which could be accessed from your phone (via the WebClient class) and would handle the dirty work of connecting to the database and executing SQL queries (eg. inserting or retrieving data and outputting in XML format). This way even if you alter the structure of your database you don't have to change a single line of code in the app (that means you'll avoid resubmission), but only the web service code.
As a general suggestion, handle the more things you can server-side.
SQL Protocols are not really designed to work over slow/unreliable connections like the Internet, especially when it comes to 3G and so on. So it really would be best to encapsulate everything into a WebService to which you then send the Nickname, Game and Score and which allows to get the top rankings as well as a given players rankings.
I guess we won't see the ability to connect to remote SQL Servers through ADO.Net as it most likely would lead to bad user experience anyhow.
StevieBallz said:
SQL Protocols are not really designed to work over slow/unreliable connections like the Internet, especially when it comes to 3G and so on. So it really would be best to encapsulate everything into a WebService to which you then send the Nickname, Game and Score and which allows to get the top rankings as well as a given players rankings.
I guess we won't see the ability to connect to remote SQL Servers through ADO.Net as it most likely would lead to bad user experience anyhow.
Click to expand...
Click to collapse
i am good in sql and there are free sql hosters, thats why i wanted to try it with sql.
so, the webservice, is this kind of php? can i also get some free hosters for these services?
i found in google some sample code, but i dont understand where the data will be "stored". Is this going to be like a "cloud app"
edit: grrr looking for "free webservices" in goog but i just find free homepage hosting sites
I find this topic really interesting because it tackles something I just can't wrap my head around: getting Windows Phone 7 to interact with a SQL database just doesn't seem like it's been explained in a straightforward enough manner.
For instance, my case is one where I need my app to extract info from a MySQL db stored on my website, parse that data and display each entry as an item in a pivot control. Turns out that no, SQL is not supported natively so I must go out of my way and recode my data into something that WP7 can understand; I read it's XML and that makes sense, so I have designed an auto-updating XML file on my website with data I want fed into the WP7 app. This is a workaround to connecting directly to a SQL database, as it only requires there to be a PHP file periodically creating an XML file with the info I need and it won't expose any SQL connection credentials, etc. I do not manage users on my site, so maybe win98 needs to find a way for WP7 to call a PHP page, send it a user ID or something and then retrieve that user's info. But any way, I think XML can work perfectly as a means to communicate between SQL and WP7 apps.
But, I don't know how to make this XML file populate the pages of my app. In Expression Blend I can import the XML as sample data, but it does this during design time and not at run time. This means that Blend can see my data and display it how I want it displayed, but I can't take this to runtime and have it displayed like that on the phone. So far, I haven't seen a single easy to follow step by step tutorial on how to parse information coming from an XML file on a WP7 app.
Any suggestions on how to overcome this hurdle we both face? I am familiar with web programming, but I know jack sh*t about C#, so Linq is greek to me.
Ok so I really got this wrong, that with Mango you get SQL and ports support so that you can remotely interact with an SQL server, with sql commands pretty much like you would do on a desktop and how you could do with WinMo ??
Best practices aside, You still get to do that with webservices ?

the key to hacking the KIN

the key to hacking this phone, as ive noticed, isnt getting a new os. ive paid attention and i think i know what to do. we need a new internet browser. if you think about it, the browser is the problem because of its zero functionality. what we need to do is make an html parser in java that is invoked in javascript (dezgrz thx for finding out about the javascript apps). i think we should focus on getting this done.
Its a good idea but we have no way of uploading a new browser to the device.
X-15D9W8491 said:
the key to hacking this phone, as ive noticed, isnt getting a new os. ive paid attention and i think i know what to do. we need a new internet browser. if you think about it, the browser is the problem because of its zero functionality. what we need to do is make an html parser in java that is invoked in javascript (dezgrz thx for finding out about the javascript apps). i think we should focus on getting this done.
Click to expand...
Click to collapse
Your post makes no sense.
First because that's not the key for hacking
Second cause java applications can't be invoked from javascript.
it does make sense @johnkussack
is does make sense. you can invoke a java app through js. quit criticizing me just because you dont know what youre talking about. and besides, what i meant to say (if this makes it easier to understand) is that we code a java app onto the phone that automatically connects to the browser and a download is set off in javascript that bypasses anything written into the browser by editing the permissions, etc by editing the browser and just making a new one and not being lazy. you of all people should know this makes sense because you programmed and app onto the kin! besides, the whole thing about hacking is to be optimistic or you never get it done and youre impeding development with stupid posts like your last. get a grip and post something important instead of that trash next time!
thats the point
WEM97 said:
Its a good idea but we have no way of uploading a new browser to the device.
Click to expand...
Click to collapse
exactly my point. we could just create a new app like john did only we make it work like john obviously failed to do.
X-15D9W8491 said:
exactly my point. we could just create a new app like john did only we make it work like john obviously failed to do.
Click to expand...
Click to collapse
~~~~~~~~~~~~~~Forgotten~~~~~~~~~~~~
X-15D9W8491 said:
nonsense stuff
Click to expand...
Click to collapse
First of all, you'r messing it all
Second, to run a java application you would need to have a java virtual machine (which kin has not), or interpretation for java applets (which kin has not).
Third, i do know what i talk about, cause i code in Java & Javascript.
X-15D9W8491 said:
is that we code a java app onto the phone that automatically connects to the browser and a download is set off in javascript that bypasses anything written into the browser by editing the permissions, etc by editing the browser and just making a new one and not being lazy.
Click to expand...
Click to collapse
Here one could stop reading. Also you can call Kitt to try to hack it, but it may not answer.
So, do your work before saying that other have failed where you have no success either.
And if we could do that magic stuff, last thing we should do is care about a new browser, when you could just install opera for win ce. So all the topic is going nowhere.
johnkussack said:
First of all, you'r messing it all
Second, to run a java application you would need to have a java virtual machine (which kin has not), or interpretation for java applets (which kin has not).
Third, i do know what i talk about, cause i code in Java & Javascript.
Here one could stop reading. Also you can call Kitt to try to hack it, but it may not answer.
So, do your work before saying that other have failed where you have no success either.
And if we could do that magic stuff, last thing we should do is care about a new browser, when you could just install opera for win ce. So all the topic is going nowhere.
Click to expand...
Click to collapse
first, i havent had any success yet because those were plans. i havent tried this yet.
second, if putting on opera could help, why didnt you do it, "genius"?
if this thread is going nowhere then do me a favor and stop posting on it!
piss off
soninja8 said:
You sound like a smart-ass. You think its so simple that you decide to make fun of John. Without John we wouldnt have done anything by now so you should just shut it.
Click to expand...
Click to collapse
that post was an a and b conversation between me and john so c your way out, dumbass. and you should shut it because you havent really helped at all, john has gotten me nowhere because i started from the beginning before i was part of this, and i need absolutely no input from you.
X-15D9W8491 said:
second, if putting on opera could help, why didnt you do it, "genius"?
Click to expand...
Click to collapse
because we don't know how to do that yet.
I don't own this device, but a friend does. What happens if you download an exe or cab from the browser?
xboxfanj said:
I don't own this device, but a friend does. What happens if you download an exe or cab from the browser?
Click to expand...
Click to collapse
It tells you the file type is not supported. Basically, you can't download something to the Kin that it isn't designed to handle.
X-15D9W8491 said:
that post was an a and b conversation between me and john so c your way out, dumbass. and you should shut it because you havent really helped at all, john has gotten me nowhere because i started from the beginning before i was part of this, and i need absolutely no input from you.
Click to expand...
Click to collapse
~~~~~Forgotten~~~~~
I am not taking sides here but you guys both have points. X has a really good idea though so at least try. show proof it dosent work then i will agree with you. Its a good idea but we dont have the means of getting into the KIN.
there comes a time
Code:
the key to hacking this phone,[COLOR="Silver"][SIZE="1"] as ive noticed,[/SIZE][/COLOR] isnt getting a new os.
This is a solid point. We should not examine the possibilities of a new operating system until we are able to work with the current one.
Code:
[COLOR="Silver"][SIZE="1"] ive paid attention and i think i know what to do.[/SIZE][/COLOR] we need a new internet [B]browser.[/B] if you think about it, the browser is the problem because of its zero functionality.
Maybe so. Though the current OS has many shortcommings of, you could definitely argue that none are as confining as the browser
Code:
what we need to do is make an html parser in java
I am not sure what you mean by this. My initial impression is that coding an HTML parser from the ground up in Java is far out of the scope of this project. Perhaps you will explain it's purpose in a later part of your post.
Code:
that is invoked in javascript (dezgrz thx for finding out about the javascript apps).
I guess what you mean by this is to use the current browser's javascript interpreter to invoke the HTML parser. There are a few severe hurdles you'd have to overcome to do this.
First of all and from what I understand, the Kin's built-in browser is IE 6 for Mobile. Web developers and users alike agree that IE6, regrardless of it's environment is a very broken web browser. Despite this, it is still a full-featured web browser, at least by Microsoft's standards. So for the purpose of security, Microsoft has probably constructed the browser in such a way that code run in it will be heavily isolated from the rest of the OS. I know that exploits for IE6 are a dime a dozen but even most of those require more access to the device than we have. Our situation is compounded by the fact that, even as far as other mobile versions of IE6 go, the Kin's browser is badly crippled.
Second of all, assuming you could somehow invoke the Java code through JS, the Java code would still have to be interpreted and run using a Java interpreter which the phone lacks. Java is an interpreted language. What that means is that in the most basic sense, a Java application is comprised of a bunch of text files containing programmer code. When you 'run' a java application, what you are really doing is running a special program (called a Java INTERPRETER, what we've been talking about) that takes that programmer code and turns it into computer code that is capable of being executed. The interpreter is the part that the Kin lacks. Without it, the text files of programmer code that are the java application just look like ordinary text files to the Kin.
Code:
[COLOR="Silver"][SIZE="1"]i think we should focus on getting this done.[/SIZE][/COLOR]
...and unfortunately we've come to the end of the post. I have only talked about some of the preliminary issues with your project roadmap but IMHO they'd be pretty fatal to it's success.
Let me know if you'd like me to explain anything else to you. In the meanwhile, let's wait and see what more directed people like JK come up with.
Oh thank goodness, another post. Perhaps this one will explain some of the discontinuities that arose in the first post.
Code:
[COLOR="Silver"][SIZE="1"]is does make sense.[/SIZE][/COLOR] you can invoke a java app through js.
I am not aware of any way to do so, especially on as crippled a browser as the kin one. I've already kind of addressed this in the previous post albeit indirectly.
Code:
[COLOR="Silver"][SIZE="1"]quit criticizing me just because you dont know what youre talking about. and besides, what i meant to say (if this makes it easier to understand) is that[/SIZE][/COLOR]
I've decided to minify all the psychosocial turmoil content in his posts in order to make what I am referring to more clear.
Code:
we code a java app onto the phone that automatically connects to the browser
This portion confused me for a bit as in the first post you talked about a Java HTML parser howerver now it seems to have changed to something that simply interfaces the current browser. Maybe this would be more within the scope of the project but you'd still have to get through all the aforementioned hurdles. Even so I'm not really sure what purpose it would serve.
Code:
and a download is set off in javascript that
Oh ok, here you are explaining how the Java code gets to the browser. You use javascript injection to make the browser download the Java application.
Code:
bypasses anything written into the browser
Now, this would be a real trick. Accomplishing this would be equivalent to acquiring a U-Boat by fishing in the toilet.
Code:
by editing the permissions, etc by editing the browser
Another primary problem about your train of thought is that you seemingly assume that javascript is capable of doing debug-level computing tasks such as significantly modifying a compiled binary and perform priveleged filesystem operations. Stuff like this would be a pain in the neck to do even on a desktop computer with suited programming languages.
Code:
and just making a new one [COLOR="Silver"][SIZE="1"]and not being lazy. [/SIZE][/COLOR]
Javascript is a language designed for the web, not general purpose and certainly not for creating another web browser from scratch. JS, like Java is an interpreted language except the interpreter is included in the web browser. I am not sure coding a web browser within a web browser would produce very desireable results, esp. with such limited processing power as is available on Kin hardware.
Code:
[COLOR="Silver"][SIZE="1"]you of all people should know this makes sense because [/SIZE][/COLOR]you programmed and app onto the kin![COLOR="Silver"][SIZE="1"] besides, the whole thing about hacking is to be optimistic or you never get it done and youre impeding development with stupid posts like your last. get a grip and post something important instead of that trash next time![/SIZE][/COLOR]
hm. hm.
In conclusion, have a nice day.
In fact,iirc the Kin doesnt even have Javascript but JScript. Microsoft implementation, compatible with javascript itself.
http://en.wikipedia.org/wiki/JScript
The funny commands which could expose part of the system doesnt work, of course.
That's just weird
johnkussack said:
In fact,iirc the Kin doesnt even have Javascript but JScript. Microsoft implementation, compatible with javascript itself.
http://en.wikipedia.org/wiki/JScript
The funny commands which could expose part of the system doesnt work, of course.
Click to expand...
Click to collapse
ok. first, let's forget our arguments and move on, those have nothing to do with what we are trying to accomplish. Second, how related is jscript to javascript because microsoft always has to make weird implementations of porgramming languages. This could possibly be a minor setback. Third, i'll admit that some things I posted didn't make sense, so i'll make them more understandable in the future.

[Q] cant view my dvr cameras on windows rt

Hi all
I have purchased a windows Rt and love it. The only thing I can't figure out is I can't access my dvr cameras though internet explorer on my device through my ip address and port number. I can view it on my desktop pc.
Is there any app or way I can view my dvr host on windows rt??
steve.zdravko said:
Hi all
I have purchased a windows Rt and love it. The only thing I can't figure out is I can't access my dvr cameras though internet explorer on my device through my ip address and port number. I can view it on my desktop pc.
Is there any app or way I can view my dvr host on windows rt??
Click to expand...
Click to collapse
BUMP
How is the DVR content presented? If it's HTML(5), that should be no problem at all, so it's probably not. The next most likely is Flash, which RT supports but which may not work when specifying an IP address. You could try using the registry tweak that was previously required for Flash on unknown sites (see the EnableFlash script in my signature). If it's a Java applet, you're screwed (in more ways than one; if you've had the Java browser plugin enabled on your home PC for the last few months, there's an excellent chance that your machine has been infected through it; that thing has atrocious security bugs). If it's some other third-party plugin, for example an ActiveX control from the DVR manufacturer, it's probably not going to work on RT just because RT run on ARM chips and typical ActiveX controls are compiled for x86 (it's possible to make ARM ActiveX, but nobody does and you'd need to "jailbreak" the device before installing the plugin anyhow).
GoodDayToDie said:
How is the DVR content presented? If it's HTML(5), that should be no problem at all, so it's probably not. The next most likely is Flash, which RT supports but which may not work when specifying an IP address. You could try using the registry tweak that was previously required for Flash on unknown sites (see the EnableFlash script in my signature). If it's a Java applet, you're screwed (in more ways than one; if you've had the Java browser plugin enabled on your home PC for the last few months, there's an excellent chance that your machine has been infected through it; that thing has atrocious security bugs). If it's some other third-party plugin, for example an ActiveX control from the DVR manufacturer, it's probably not going to work on RT just because RT run on ARM chips and typical ActiveX controls are compiled for x86 (it's possible to make ARM ActiveX, but nobody does and you'd need to "jailbreak" the device before installing the plugin anyhow).
Click to expand...
Click to collapse
The DVR is set up with its own ip and port forwarding number, and that how I connect to it from other desktop PC's. Or it gives me an option to view it through a program called CMS lite which the Win RT doesn't allow me the download. I have jailbroken my RT as well.
What happens when you connect to that IP and port on your RT device? What do you see in the browser (if anything)? Does it connect, or does it say it couldn't find the site? You haven't actually explained the problem very well at all, even to the point of saying what device it is. We probably don't have your exact setup at home, so you'll need to be very precise describing it so that we know how to fix it.
You also didn't answer my question in the previous post. How is the content normally presented? Flash or HTML5 should be fine, but *might* take some tweaking. Java or a plugin are unlikely to work, although I suppose it's possible that the x86 emulator could be made to work with a plugin.
For that matter, have you tried the x86 emulator with your CMS Lite program? It's unlikely to work, but worth a shot.
GoodDayToDie said:
What happens when you connect to that IP and port on your RT device? What do you see in the browser (if anything)? Does it connect, or does it say it couldn't find the site? You haven't actually explained the problem very well at all, even to the point of saying what device it is. We probably don't have your exact setup at home, so you'll need to be very precise describing it so that we know how to fix it.
You also didn't answer my question in the previous post. How is the content normally presented? Flash or HTML5 should be fine, but *might* take some tweaking. Java or a plugin are unlikely to work, although I suppose it's possible that the x86 emulator could be made to work with a plugin.
For that matter, have you tried the x86 emulator with your CMS Lite program? It's unlikely to work, but worth a shot.
Click to expand...
Click to collapse
my device is a windows rt surface. when I open internet explorer and type in my ip and port number in the search engine it comes up with my login and password which I type in. after that the screen comes to a blank white screen which gives me the option. Webserver or CMS lite setup I always view them from webserver. Once I click webserver the screen just says on a blank white screen.
as for how the content present normally im not really sure.
A simple way to tell is to load the page in a desktop browser where it works, then right-click the video and see what menu comes up. If it's the Flashplayer menu, that's something that RT can handle. If it's something else (Silverlight or Java or a custom ActiveX), that may not be possible. Another way to tell would be to save that blank page to a file (I believe Ctrl+S works for this, at least on the desktop mode of IE, or you can do it from the Tools->File menu, or the File menu on the menu bar that is shown when you tap Alt). Send or post the HTML somewhere that we can read it, and we can tell you what it will take to view the page.
another question.. im still new to the windows rt group I have jail broken the RT surface. Is there any torrent client for downloads.
I wanna download movies from a website. thanks
Free Download Manager (it is in the ported apps thread) can be used as a torrent client. However discussion of piracy is prohibited so might want to zip it on the movies part.
Monotorrent was attempted on RT but I think ended up being buggy.
SixSixSevenSeven said:
Free Download Manager (it is in the ported apps thread) can be used as a torrent client. However discussion of piracy is prohibited so might want to zip it on the movies part.
Monotorrent was attempted on RT but I think ended up being buggy.
Click to expand...
Click to collapse
can u please send me the link
Read the forum rules, especially the first one. Then, read my signature. I don't mind helping people find obscure stuff, but this does not qualify. Please put forth at least a little effort on your own part...
I shouldn't have to share a link having told you where it is. Its easy to find, a) its in the list of ported applications in the RT development and hacking section. b) it has its own thread in that same section. c) it is listed on google. d) it is listed on forum search.

[Lib][Java/JAR] RegIOLib - Java/Registry In/Out Communications Lib

Hey there,
I thought it was time to release something new
A bit of background storyline:
My last projects were all VB/.Net programs, and they were somewhat great, sure. But I was missing the Linux portability and the programs aren't available on all Windows version - Which bugged me a lot. So I finally started coding in Java again! I'm also porting Universal Android Toolkit to Java, so I can easily create a Linux version of that as well.
(If you want to make that happen faster, please donate to me. I managed to fix my laptop, but I've only got a 60GB HDD and I need that much space alone for Windows and I have no income, I'm only 16 )
Anyways, now that you know where I'm coming from, as I'm porting Universal Android Toolkit to Java, I need access to the registry to save the application's settings and easily access them. But unlike .Net languages, Java doesn't have built-in support for this kind of operation, so I looked around and grabbed bits and pieces of code and stuck them together into a Java Class Library.
Thus, RegIOLib was born.
It's licensed under the GPL 3.0 (License info included in the source).
Downloads
Sourceforge
Source Code
http://github.com/Beatsleigher/RegIOLib
EDIT:
I forgot to mention the following: To get access to the Windows registry, the application needs to be started with administrative rights!
You can either achieve this by starting the app via a launcher (Which is what I tempt to do) or by right-clicking the file and allowing it to run as admin.
Beatsleigher said:
It's licensed under the GPL 3.0 (License info included in the source).
Click to expand...
Click to collapse
So closed source applications may not use it?
nikwen said:
So closed source applications may not use it?
Click to expand...
Click to collapse
Of course they can use it
Just add a link to this thread and my website, done.
But if you're coming from some major company or something, then I would like something more
Beatsleigher said:
Of course they can use it
Just add a link to this thread and my website, done.
But if you're coming from some major company or something, then I would like something more
Click to expand...
Click to collapse
According to the GPL they can't because it requires the source code of derivative work to be published. That's the "problem" with that license if you use it for libraries.
Due to that the LGPL exists.
http://www.tldrlegal.com/license/gnu-general-public-license-v3-(gpl-3)
Limited commercial use. Must include source code. So no, GPL libraries and closed source applications do not mix.
An inelegant solution (which is the one I have always used actually) is to save settings in a file in %APPDATA%, no admin rights are required to edit files in there, or roll your own registry library for the application. Or Beatsleigher could LGPL it, but its his project, his license, I think he has full right to stick it under GPL if he wants to.
Although I dont think saving into a registry key is really cross platform Neither is %APPDATA% but using the %APPDATA% method is simple file read/write so on a cross platform application you can simply change the filepath dependent on the current execution environment.
System.getenv("APPDATA") will return the filepath for the current users APPDATA folder on windows. System.getProperty("user.home") works on linux and I think OSX to get the home directory. I dont think user.home works properly on windows. But it should be easy to switch between the 2 methods, add on an extra bit for where your settings file is and detect which to use at runtime.
Disadvantage (and to some advantage, depends on what the application is doing and whether the author likes it or not) is that saving configuration files as actual files means the user can play around with them. APPDATA is by default a hidden folder. But chances are most users dont even know what the registry is so in a way your settings might be more secure left in there.
Even possible to have an application load settings from the registry on windows and files on everything else.
SixSixSevenSeven said:
Or Beatsleigher could LGPL it, but its his project, his license, I think he has full right to stick it under GPL if he wants to.
Click to expand...
Click to collapse
Of course, he has that right. It's his code. The GNU even collected some reasons for sticking with the GPL.
Just wanted to point out that the GPL says that all derivative work (which includes programs that use libraries licenced under the GPL) must be GPL'ed (and therefore open source'd), too.
SixSixSevenSeven said:
http://www.tldrlegal.com/license/gnu-general-public-license-v3-(gpl-3)
Limited commercial use. Must include source code. So no, GPL libraries and closed source applications do not mix.
An inelegant solution (which is the one I have always used actually) is to save settings in a file in %APPDATA%, no admin rights are required to edit files in there, or roll your own registry library for the application. Or Beatsleigher could LGPL it, but its his project, his license, I think he has full right to stick it under GPL if he wants to.
Although I dont think saving into a registry key is really cross platform Neither is %APPDATA% but using the %APPDATA% method is simple file read/write so on a cross platform application you can simply change the filepath dependent on the current execution environment.
System.getenv("APPDATA") will return the filepath for the current users APPDATA folder on windows. System.getProperty("user.home") works on linux and I think OSX to get the home directory. I dont think user.home works properly on windows. But it should be easy to switch between the 2 methods, add on an extra bit for where your settings file is and detect which to use at runtime.
Disadvantage (and to some advantage, depends on what the application is doing and whether the author likes it or not) is that saving configuration files as actual files means the user can play around with them. APPDATA is by default a hidden folder. But chances are most users dont even know what the registry is so in a way your settings might be more secure left in there.
Even possible to have an application load settings from the registry on windows and files on everything else.
Click to expand...
Click to collapse
No, as far as I'm aware, only Windows has a registry. I could be wrong though. In the past 5-6 years that I've been developing, I was only developing in VB.Net - A decision that I highly regret nowadays
But I'm so used to being able to save my settings in the registry where no 'normal' user can modify them and cause the program to misbehave, that I'd like my java programs to do so as well.
And seeming as Universal Android Toolkit is a big, big project (I've been developing it for over a year now and I'm constantly adding new features and now I'm porting it to Java making it really hard to release, but I'll get there eventually.
As soon as I've got the major stuff sorted out, I think I'm ready to release a Pre-Release candidate for testing and bug-fixing, but like I said, I'm still having some trouble and then I need to figure out a way to get those settings saved on Mac OS and Linux machines, for which I've already written some classes, but only to install ADB and stuff... And I'm getting side-tracked again, aren't I?
Anywhosers, I think I'm going to leave it under the GPL, even though you're right and that that means that closed-source programs can't use it, but I'll think of something. Even if it's a commercial license, say someone pays 2$ per program. I don't know.
But for the thing you said with %AppData%, what you can do on Linux machines, is (in Java)
Code:
private final String userProf = System.getenv("user.home");
final File tempDir = new File(userProf + "/Temp/(.)<Program>/temp.file");
private void setupTempDir() {
Path tmp = tempDir.getParentFile().getPath();
if (!tmp.exists()) {
tempDir.createNewFile();
}
}
That should solve that problem, then you COULD create some sort of settings file, but then it's just a pain to get and save the settings when you're using multiple GUIs, like me.
And then there's another way of doing that in Android apps, which I haven't figured out yet, mainly because I haven't even started with Android apps and I don't have the hard drive space to do so :/
Beatsleigher said:
Anywhosers, I think I'm going to leave it under the GPL, even though you're right and that that means that closed-source programs can't use it, but I'll think of something. Even if it's a commercial license, say someone pays 2$ per program. I don't know.
Click to expand...
Click to collapse
OK, no problem. The GPL, however, says that you may not relicense it. :/
(All of my comments I've posted yet sound as if the GPL is a bad license. To clarify that: I don't think so. I prefer it for applications, but use the LGPL or Apache v2 license for libraries.)
Beatsleigher said:
(If you want to make that happen faster, please donate to me. I managed to fix my laptop, but I've only got a 60GB HDD and I need that much space alone for Windows and I have no income, I'm only 16 )
Click to expand...
Click to collapse
I'm 17 and I have a 64GB SSD. C#, C++ works great.
Anyway 700 lines of license make no sense. The same about the portable registry library for linux. Could you tell the purpose of it?
Useless guy said:
I'm 17 and I have a 64GB SSD. C#, C++ works great.
Anyway 700 lines of license make no sense. The same about the portable registry library for linux. Could you tell the purpose of it?
Click to expand...
Click to collapse
GPL isn't 700 lines last time I checked, also I left a link to a simple description of it above (I do love tldrlegal).
There is no registry for linux, no one mentioned a portable registry for linux.
SixSixSevenSeven said:
GPL isn't 700 lines last time I checked, also I left a link to a simple description of it above (I do love tldrlegal).
There is no registry for linux, no one mentioned a portable registry for linux.
Click to expand...
Click to collapse
I did
Anyways, now that you know where I'm coming from, as I'm porting Universal Android Toolkit to Java, I need access to the registry to save the application's settings and easily access them.
Click to expand...
Click to collapse
nikwen said:
OK, no problem. The GPL, however, says that you may not relicense it. :/
(All of my comments I've posted yet sound as if the GPL is a bad license. To clarify that: I don't think so. I prefer it for applications, but use the LGPL or Apache v2 license for libraries.)
Click to expand...
Click to collapse
I'm working on a license for it and any other such things. So I'll release it again for commercial and closed-source programs when it's done.
And yes, it does sound like you think it's a bad license. But meh. Everyone has their own opinion, I guess.
Useless guy said:
I'm 17 and I have a 64GB SSD. C#, C++ works great.
Anyway 700 lines of license make no sense. The same about the portable registry library for linux. Could you tell the purpose of it?
Click to expand...
Click to collapse
GPL isn' 700 lines.
That's cool for you, that you've got that stuff. I don't. Anyways, I'm getting away from .Net languages, and C# is easy for anyone to learn. Especially if they're coming from VB, like me.
C++ isn#'t my kinda thing, as you can't natively create GUIs in it. You always need some kind of library for that sort of stuff.
And I didn't intend this for use with Linux. Everyone that has basic knowledge of these operating systems knows that Linux, BSD, Mac OS etc. don't have registries. And I never even noted that I'm attempting to use registry stuff in Linux. I said I'm porting Universal Android Toolkit to JAVA, and that I need access to the WINDOWS registry to save the application's settings in the reg, so that users can actively change the settings if the program starts misbehaving.
Useless guy said:
I did
Click to expand...
Click to collapse
I said JAVA, not Linux. What I probably did say, however, is that I'm porting my program to Java so that it can easily be ported to said OSs. But never that I'm attempting to save my settings in the registry in all OSs.
Beatsleigher said:
C++ isn#'t my kinda thing, as you can't natively create GUIs in it. You always need some kind of library for that sort of stuff.
Click to expand...
Click to collapse
Lolwhat?
Beatsleigher said:
C++ isn#'t my kinda thing, as you can't natively create GUIs in it. You always need some kind of library for that sort of stuff..
Click to expand...
Click to collapse
Errm, those libraries are written in C or C++... native code such as C and C++ are the only languages which can create GUI's. VB.net/C#/anything else .NET use libraries too which in the case of WinForms and WPF are just wrappers around win32 functionality implemented in C.
Beatsleigher said:
And yes, it does sound like you think it's a bad license. But meh. Everyone has their own opinion, I guess.
Click to expand...
Click to collapse
I love the GPL. I use it for everything (except libraries).
But I'll stop the off-topic now.

[Q] Surface RT Android App Help!!!!

Hi Guys
I am after a Android app that I use and I really need which is called Mobile CMS. I want to know is there a way to install Android apps on the Surface RT and run. I connect to my work cameras using my IP address and port number to connect to my DVR.
or if they is any other software I can use for what im looking for?
Your help is much needed
Thanks
Steve
"Is there any way"? No. Why would you even think that? Can you install iOS apps on Android? No!
"any other software"? I don't know. There's a number of protocols used for those types of connections. You may even be able to just use a web browser; RT (unlike recent versions of Android) supports Flash, and some of those cameras let you view their feeds in the browser using Flash.
GoodDayToDie said:
"Is there any way"? No. Why would you even think that? Can you install iOS apps on Android? No!
"any other software"? I don't know. There's a number of protocols used for those types of connections. You may even be able to just use a web browser; RT (unlike recent versions of Android) supports Flash, and some of those cameras let you view their feeds in the browser using Flash.
Click to expand...
Click to collapse
Iv tried using the web browser but it doesnt want to open it. Its just a blank page with a grey X on the corner of the page meaning it doesnt allow to view the image.
Probably needs a different plugin then, like Silverlight or Java. RT supports Flash, but no others. That's too bad.
Just checking: is your Surface up to date? *VERY* old RT firmware would not run Flash by default on most sites.
Anyhow, if you know what protocol it uses for video streaming, you can probably find an app in the store that understands it and can display the feed.
GoodDayToDie said:
Probably needs a different plugin then, like Silverlight or Java. RT supports Flash, but no others. That's too bad.
Just checking: is your Surface up to date? *VERY* old RT firmware would not run Flash by default on most sites.
Anyhow, if you know what protocol it uses for video streaming, you can probably find an app in the store that understands it and can display the feed.
Click to expand...
Click to collapse
Yes it up to date. i just really need this app or anything on the lines that im looking for that can connect to my DVR.
Anyone else have a idea... Something??
You've had the only answer possible with the information given.
What is the DVR in use?
The forums for the DVR in question would be able to help better.
The only other possible answer: buy an android device

Categories

Resources