For arguments sake, say that we create a web application , that depends on a GPLv3 licensed component, lets say Ext JS.
Based on Section 0 of the license, the common notion is that the entire web application (the client side javascript) falls under the definition of a covered work:
A “covered work” means either the unmodified Program or a work based on the Program.
and that it will therefor have to be distributed under the same license
Ok, so here comes the fun part:
This is a short 'program' that is based on Ext JS
var myPanel = new Ext.Panel();
The question that arises is: Have I now violated the GPL by not including the source of Ext JS and its license?
Ok, so lets take another example
<!doctype html>
<html>
<head>
<title>my title</title>
<script type="text/javascript" src="http://extjs.cachefly.net/ext-3.2.1/ext-all.js"> </script>
<link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-3.2.1/resources/css/ext-all.css" />
<script type="text/javascript">
var myPanel = new Ext.Panel();
</script>
</head>
<body>
</body>
</html>
Have I now violated the terms of the GPL?
The code conveyed by me to you is in a non-functional state - it will have to be combined with the actual source of Ext JS, which you(your browser) will have to retrieve, from a source made public by someone else to be usable.
Now, if the answer to the above is no, how does me conveying this code in visible form differ from the 'invisible' form conveyed by my web server?
As a side note, a very similar thing is done in Linux with many projects that depends on less permissive licenses - the user has to retrieve these on its own and make these available for the primary lib/executable. How is this not the same if the user is informed on beforehand that he (the browser) will have to retrieve the needed resources from a different source?
Just to make it clear, I'm pro FLOSS, and I have also published a number of projects licensed under more permissive licenses.
The reason I'm asking this is that I still haven't found anyone offering a definitive answer to this.
In Rails 'helper :all' makes all your helpers 'available' to all your controllers.
This is concise and convenient, but does it have any memory and/or performance implications compared to explicitly calling the helpers that each controller actually needs?
It's unclear form the docs whether using it involves 'require'ing all those files, or whether autoload is being used. I can't tell from the source in the Rails framework docs.
thanks
I'm building a form validation script for one of my sites, and I thought I'd make the error messages international, meaning that depending on the users language I'd give such or such response.
What would the best approach be, for loading a configuration file inside of my class?
Right now I'm using the following structure for a single language:
const config = {
'errorName' : 'error message',
'errorName2' : 'error message',
'errorName2' : 'error message'
}
And calling it like this of course: config['errorName']. But I don't know how to load those variables from a file, let's say 'lang/en.js'
For the longest time I've been curious to code in Microsoft Intermediate Language (MSIL) just as an academic endeavour and to gain a better understanding of what's "happening under the hood".
Is there any sort of Visual Studio support for this in the form of: project templates, IntelliSense integration, and those kind of RAD features?
I need to generate a local timestamp in a form of YYYYMMDDHHmmSSOHH'mm'. That OHH'mm' is one of +, -, Z and then there are hourhs and minutes followed by '.
Please, how do I get such a timestamp, denoting both local time zone and possible daylight saving?
Extended Backus–Naur Form: EBNF
I'm very new to parsing concepts. Where can I get sufficiently easy to read and follow material for writing a grammar for the boost::spirit library, which uses a grammar similar to EBNF?
Currently I am looking into EBNF from Wikipedia.
I am trying to populate couple of select lists on a form and I am using @ModelAttribute to annotate the get method for these lists.
I am getting an exception when I try to access the resource:
java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'command' available as request attribute
I'm new to javascript/jquery and I've done some poking around the web, but I can't figure out why the following is invalid:
var toggleSection = function(sectionName) {
// Do some Jquery work to toggle stuff based on sectionName string
// (concatenate sectionName with other text to form selectors)
};
$('#togglecont1').click(toggleSection("container1"));
Is there something obvious I'm missing? Thanks in advance.
Hi all,
My prob in brief:
I am validating a registration form with server side using php and its working fine.
Now my prob is i need to show the error message using thickbox like popup.
Is that possible. If yes please explain how?
thanks in advance
I am working on an MVC site using NHaml for the view engine.
I have a page that needs to submit HTML code as a form value and am getting the System.Web.HttpRequestValidationException thrown at me.
I want to specify the <%@ Page validateRequest="false" % so that this page will allow this data to be submitted but am unsure on how to do this with NHaml generating the pages.
Hi all, i am currently working on a web application that needs to accept video uploaded by users in any format (.avi, .mov, etc.) and convert them to flv for playing in a flash-based player.
Since the site is OpenCms-based, the best solution would be a ready-made plugin for OpenCms that allowed to upload and play videos doing the transcode operation in background, but just a set of Java classes to do the transcode would be great and then i could make the uploading form and playback part on my own.
Hey, I made several tables and relationships using SQL server manager. I then imported them to visual studio and it all appeared in the correct form, except one of the relationships did not appear. I have checked everything I could think of and it is the exact same as the other relationships. If you know anything I can check, I would appreciate it. Thanks
I am using the entity framework, visual studio 2010.
Hi everybody,
A ComboBox within a Form (modal dialog) does not open when clicked, however an item can be selected by using the up/down arrow keys.
After clicking on another window and the back on the dialog, the ComboBox works as expected, i.e. expands on click.
Weird... any ideas what could be causing this behavior?
Thanks a lot in advance,
Peter
i have the following code
Private Sub select_color_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles select_color.Click
Dim ocolor As New ColorDialog
ocolor.ShowDialog()
Me.BackColor = ocolor.Color
End Sub
and it changes the background color of form to the color i select in colordialogue...
now i want to change the BGColor of shockwaveobject in this way...however i can change the BGColor of shockwave object manually in toolbox but i want to change it by color dialogue how can i do that...
I am working on a form with the possiblity for the user to use illegal/special characters in the string that is to be submitted to the database. I want to escape/negate these characters in the string and have been using htmlspecialchars(). However, I would like to know if there is a better/faster method.
Basically what I want to do is display an email using javascript to bring the parts together and form a complete email address that cannot be visible by email harvesters.
I would like to take an email address eg [email protected] and break it to:
$variable1 = "info";
$variable2 = "thiscompany.com";
All this done in PHP.
Regards,
JB
In an auto-generated chart based on a query (I dragged the chart object onto a blank form to start it), the chart itself is displaying and updating properly, datawise, but I want to change the Legend from reading "SumOfAvgOfield1" and "SumOfAvgOfield2" to regular words suitable for final presentations. But I can't find a way to change it!
I am using fancybox for loading a Huge form "1300px" height ( i know it is not something good but the client wants it like this) the problem that it doesn`t cover the whole height i tried
autoDimensions
$.fancybox.resize
with no luck although other parts that uses fancybox is working without a problem so any tips will be great.
also i want to know how to load data (a div) from another HTML inside fancybox?
I want to create a CCLayer with an animated tiled background from a larger texture atlas with Cocos2d.
I know how to drop a background in a CCLayer. I know how to create an animated CCSprite. I even know how to handle tiled world maps. But I can't find a proper way to combine all these elements in the desired form.
How would I do this?
I'm working on a simple spell checking app for a lecture that I'm giving. I've got the basic spell checking code working just fine using a child form and NHunspell - great lib, by the way.
However, I'd like for the parent textbox to show the highlighted text for reference, and while I'm setting the SelectedText properties accordingly, the text is not highlighted in the parent. Canceling the child window and the parent text is highlighted.
Anybody know how I can do this?
I am looking for a simple computer algebra system (cas) for JavaScript but I can't find anything with google. I only need basic functionality:
simplify expressions to some canonic form. Ability to check if two expressions are the same, i.e., a(x+y) == ax+ay
parse mathematical formulas. I want it to be able to read expressions like ax²+4x.
solve simple equations etc.
Do you know of such a library?
hi
first sorry for my English
i try to get a word under mouse
now my problem how to get the font of button
i try to use
IntPtr dc= GetDC(button1.Handle);
IntPtr last_font = SelectObject(dc, Font.ToHfont());
Font fon = Font.FromHdc(dc);
but it gave me the font of the form
and some time gave me error
Only TrueType fonts are supported. This is not a TrueType font
any body help me
I have a Django site in which the site admin inputs their Twitter Username/Password in order to use the Twitter API. The Model is set up like this:
class TwitterUser(models.Model):
screen_name = models.CharField(max_length=100)
password = models.CharField(max_length=255)
def __unicode__(self):
return self.screen_name
I need the Admin site to display the password field as a password input, but can't seem to figure out how to do it. I have tried using a ModelAdmin class, a ModelAdmin with a ModelForm, but can't seem to figure out how to make django display that form as a password input...