Re: [Legal] Code from Stack Overflow

2017-07-03 Thread Justin Mclean
Hi,

> My understanding is that CC-BY-SA is “strong copyleft” and not really 
> compatible with Apache licensing. Is that right?

Not quite. Unmodified images and the like can be included [1]. Source code can 
not be included [2]. There was a discussion about this on legal discuss a 
little while ago where this was changed. [4]

> Does that mean we can not use even small code snippets from SO from before 
> March 2016?

In general that’s correct.

Alternative you could contact the author and ask them to license the code under 
another license.

> For code from after March 2016, where should attribution be put? Should a 
> link be included in the code? A mention of the author in NOTICE? Should we 
> include a link back to the SO post?

You must included the full MIT license somewhere (as per terms of the MIT 
license) and it’s ASF policy it to add the MIT license or preferably a pointer 
to the license in the LICENSE file [3], nothing would be added to NOTICE. 
Including a link to SO may be helpful but links change over time.

Thanks,
Justin

1. https://www.apache.org/legal/resolved.html#cc-sa
2. https://www.apache.org/legal/resolved.html#category-b
3. http://www.apache.org/dev/licensing-howto.html#permissive-deps
4. 
https://lists.apache.org/thread.html/46b628e47e2461834066835ff7d696b2a55e00cf81a98b4daed444f0@%3Clegal-discuss.apache.org%3E



Re: [Legal] Code from Stack Overflow

2017-07-03 Thread Alex Harui
There have been past discussions about code from SO on legal-discuss.
IIRC, the answer is, don't use code from SO that is copyrightable.  My
understanding is that, for example, you want to know how to convert a Java
Array to ArrayList, if you find that answer on SO, that really isn't
copyrightable.  There is really only a few ways to do it and the answer
isn't a "creative work".

So, for your case, is it a "creative work"?  IMO, yes, given the variety
of approaches.

There is old browser detection in flex-sdk's
templates/swfobject/history/history.js.  Maybe you can extend it to work
for Chrome and Edge and other browsers.  There is also some feature
detection in SWFObject on GitHub that may help.

-Alex 

On 7/3/17, 8:42 AM, "Harbs"  wrote:

>I would like to include some code from Stack Overflow, but I’m not sure
>what the guidance is regarding that. My specific use case is some code
>here.[1]
>
>I went poking around on SO, to discover what the licensing terms on code
>there and discovered that for code before March 1 2016 code was licensed
>under CC-BY-SA. after March 1, 2016 it’s licensed under MIT.[2]
>
>My understanding is that CC-BY-SA is “strong copyleft” and not really
>compatible with Apache licensing. Is that right? Does that mean we can
>not use even small code snippets from SO from before March 2016?
>
>For code from after March 2016, where should attribution be put? Should a
>link be included in the code? A mention of the author in NOTICE? Should
>we include a link back to the SO post?
>
>Should this be asked on legal?
>
>Harbs
>
>[1]https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstacko
>verflow.com%2Fa%2F2401861&data=02%7C01%7C%7Cea0529dfe7f64ca1482808d4c22a19
>a0%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636346933467510439&sdata=r
>XYpiTkpQHnqqpOgrt5fCQ1ME2L%2FciP63VNfKLoddFU%3D&reserved=0
>[2]https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmeta.s
>tackexchange.com%2Fquestions%2F272956%2Fa-new-code-license-the-mit-this-ti
>me-with-attribution-required%3Fcb%3D1&data=02%7C01%7C%7Cea0529dfe7f64ca148
>2808d4c22a19a0%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63634693346751
>0439&sdata=5qmZjcYRe5fRCsLXYvN5hbwa%2BTM25c%2FS7eUFa896xUM%3D&reserved=0



[Legal] Code from Stack Overflow

2017-07-03 Thread Harbs
I would like to include some code from Stack Overflow, but I’m not sure what 
the guidance is regarding that. My specific use case is some code here.[1]

I went poking around on SO, to discover what the licensing terms on code there 
and discovered that for code before March 1 2016 code was licensed under 
CC-BY-SA. after March 1, 2016 it’s licensed under MIT.[2]

My understanding is that CC-BY-SA is “strong copyleft” and not really 
compatible with Apache licensing. Is that right? Does that mean we can not use 
even small code snippets from SO from before March 2016?

For code from after March 2016, where should attribution be put? Should a link 
be included in the code? A mention of the author in NOTICE? Should we include a 
link back to the SO post?

Should this be asked on legal?

Harbs

[1]https://stackoverflow.com/a/2401861
[2]https://meta.stackexchange.com/questions/272956/a-new-code-license-the-mit-this-time-with-attribution-required?cb=1

Re: Stack Overflow

2014-08-27 Thread Jeffry Houser


 Approved!

On 8/27/2014 8:27 AM, Justin Mclean wrote:

Hi,


I would have changed it - but I'm not well versed in editing Wikis and more
importantly, I wouldn't know exactly where it should actually land.

I've changed it but needs to be peer reviewed in order to take effect.

Thanks for pointing it out.

Justin



--
Jeffry Houser
Technical Entrepreneur
http://www.jeffryhouser.com
203-379-0773



Re: Stack Overflow

2014-08-27 Thread Justin Mclean
Hi,

> I would have changed it - but I'm not well versed in editing Wikis and more
> importantly, I wouldn't know exactly where it should actually land.

I've changed it but needs to be peer reviewed in order to take effect.

Thanks for pointing it out.

Justin


Stack Overflow

2014-08-27 Thread Jack Ring
In the description Wiki for the "Flex" tag in stackoverflow <<
http://stackoverflow.com/tags/flex/info >> the link for "Getting Started
with Flex" leads to an old Adobe page...
<< http://www.adobe.com/devnet/flex/getting_started.html >>


I would have changed it - but I'm not well versed in editing Wikis and more
importantly, I wouldn't know exactly where it should actually land.

Jack Ring


[jira] [Resolved] (FLEX-17079) 1023 stack overflow in component

2013-05-11 Thread Justin Mclean (JIRA)

 [ 
https://issues.apache.org/jira/browse/FLEX-17079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Mclean resolved FLEX-17079.
--

Resolution: Won't Fix

Can't see any way of easily detecting this and would happen infrequently.
    
> 1023  stack overflow in component
> -
>
> Key: FLEX-17079
> URL: https://issues.apache.org/jira/browse/FLEX-17079
> Project: Apache Flex
>  Issue Type: Bug
>  Components: mx: DataGrid
>Affects Versions: Adobe Flex SDK 3.2 (Release)
> Environment: Affected OS(s): Windows
> Affected OS(s): 
> Browser: Internet Explorer 7.x
> Language Found: English
>Reporter: Adobe JIRA
>
> Steps to reproduce:
> I created a numeric stepper component in order to be used within a datagrid. 
> For a mistake I added to the numeric stepper this:
> value="{data.value}"
> I insert this numeric stepper in a datagrid as an item editor when I run it a 
> got the 1023 stack overflow error, and than IE 7 and Firefox 3.0.5 hangs. 
> I know I shouldn't add value="{data.value}", but FB should raise a warning or 
> Flash player shouldn't make my browser hang.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (FLEX-14394) Error: Error #1023: Stack overflow occurs on dispatchEvent

2013-04-30 Thread Justin Mclean (JIRA)

 [ 
https://issues.apache.org/jira/browse/FLEX-14394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Mclean resolved FLEX-14394.
--

Resolution: Not A Problem

sample code contained infinite loop

> Error: Error #1023: Stack overflow occurs on dispatchEvent
> --
>
> Key: FLEX-14394
> URL: https://issues.apache.org/jira/browse/FLEX-14394
> Project: Apache Flex
>  Issue Type: Bug
>  Components: Events
>Affects Versions: Adobe Flex SDK 3.0 (Release)
> Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Browser: Firefox 2.x
> Language Found: English
>Reporter: Adobe JIRA
>
>   My real problem application uses 7 components in the view stack and if 
> you need it, I can make it downloadable from my server.  It is about 50 meg, 
> but some of that is video.  I am attempting to design an OO style approach to 
> shutting off a video player when the View Stack is switched away from the 
> View that has the player component.  I can do this in another design pattern 
> that is tightly coupled, but I want the behavior to be transfered via event 
> bubbling.   My component will listen for the IndexChangedEvent.CHANGE, test 
> it and start or stop the video.
> The issue is that when I select to change the View Stack, it goes into an 
> endless loop from the handler method until it blows with a stack trace.
> Compile and run the example code below...
> 
> http://www.adobe.com/2006/mxml"; layout="absolute"  
> initialize="regEvents(event);">
>   
>  >
>   
> 
>width="99%" height="98%"  childIndexChange="this.dispatchEvent(event); " >
>  hideEffect="WipeUp"  width="100%" height="100%"/>
>  hideEffect="WipeUp"  width="100%" height="100%"/>
>  showEffect="WipeDown" hideEffect="WipeUp"  width="100%" height="100%"/>
>     
>   
>   
>dataProvider="{appViews}"/>
>   
> 
>  Actual Results:
>  It seems to blow acording to the number of buttons on the Control Bar (or 
> objects in the viewStack)
> 1st Stack Trace after selecting 2nd button
> Error: Error #1023: Stack overflow occurred.
>   at flash.events::EventDispatcher/dispatchEventFunction()
>   at flash.events::EventDispatcher/dispatchEvent()
>   at 
> mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
>   at 
> TestApp/viewChanged()[C:\EclipseProjects\Procontent\test\TestApp.mxml:12]
>   at flash.events::EventDispatcher/dispatchEventFunction()
>   at flash.events::EventDispatcher/dispatchEvent()
>   at 
> mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
>   at 
> TestApp/viewChanged()[C:\EclipseProjects\Procontent\test\TestApp.mxml:12]
>   at flash.events::EventDispatcher/dispatchEventFunction()
>   at flash.events::EventDispatcher/dispatchEvent()
>   at 
> mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
>   at 
> TestApp/viewChanged()[C:\EclipseProjects\Procontent\test\TestApp.mxml:12]
>   at flash.events::EventDispatcher/dispatchEventFunction()
>   at flash.events::EventDispatcher/dispatchEvent()
>   at 
> mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
>   at 
> TestApp/viewChanged()[C:\EclipseProjects\Procontent\test\TestApp.mxml:12]
>   at flash.events::EventDispatcher/dispatchEventFunction()
>   at flash.events::EventDispatcher/dispatchEvent()
>   at 
> mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
>   at 
> TestApp/viewChanged()[C:\EclipseProjects\Procontent\test\TestApp.mxml:12]
>   at flash.events::EventDispatcher/dispatchEventFunction()
>   at flash.events::EventDispatcher/dispatchEvent()
>   at 
> mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
>   at 
> TestApp/viewChanged()[C:\EclipseProjects\Procontent\test\TestApp.mxml:12]
>   at flash.events::EventDispatcher/dispatchEventFunction()
>   at flash.events::EventDispatcher/dispatchEvent()
>   at 
> mx.core::U

[jira] [Resolved] (FLEX-27585) Spark DataGrid skin produces Stack overflow in release build

2013-04-12 Thread Cyrill Zadra (JIRA)

 [ 
https://issues.apache.org/jira/browse/FLEX-27585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cyrill Zadra resolved FLEX-27585.
-

   Resolution: Cannot Reproduce
Fix Version/s: Apache Flex 4.10.0

Could not reproduce.. Tried against Apache Flex  4.9.1.

> Spark DataGrid skin produces Stack overflow in release build
> 
>
> Key: FLEX-27585
> URL: https://issues.apache.org/jira/browse/FLEX-27585
> Project: Apache Flex
>  Issue Type: Bug
>  Components: Spark: DataGrid
>Affects Versions: Adobe Flex SDK 4.5 (Release)
> Environment: Affected OS(s): Windows
> Affected OS(s): Windows 7
> Language Found: English
>Reporter: Adobe JIRA
>Assignee: Cyrill Zadra
> Fix For: Apache Flex 4.10.0
>
> Attachments: FLEX-27585.zip
>
>
> Steps to reproduce:
> 1. Create a new Web Flex project
> 2. Drag a spark DataGrid to the work area
> 3. Create a new skin using the generated default and add to grid
> 4. Comment out lines 121-122
>   /*const color:uint = dataGrid.getStyle("caretColor");
>   caretIndicatorFill.color = color;*/
> 5. Export a release build and run in browser.
>  Actual Results: 
> Works when running from the workspace but breaks when using release build.
> VerifyError: Error #1023: Stack overflow occurred.
>   at spark.components.gridClasses::GridLayout/intializeGridVisualElement()
>   at spark.components.gridClasses::GridLayout/layoutIndicator()
>   at spark.components.gridClasses::GridLayout/layoutCaretIndicator()
>   at spark.components.gridClasses::GridLayout/updateDisplayList()
>   at spark.components.supportClasses::GroupBase/updateDisplayList()
>   at spark.components::Group/updateDisplayList()
>   at spark.components::Grid/updateDisplayList()
>   at mx.core::UIComponent/validateDisplayList()
>   at spark.components::Group/validateDisplayList()
>   at mx.managers::LayoutManager/validateDisplayList()
>   at mx.managers::LayoutManager/doPhasedInstantiation()
>   at mx.managers::LayoutManager/doPhasedInstantiationCallback() 
>  Expected Results:
>  Should work in release build also.
>  
>  Workaround (if any):
> Always add a value to caretIndicatorFill.color or remove the interface 
> implementation from the Rect. Seems like any change in the method body like 
> simple statement can resolve this issue.
> Digging deeper it seems to be a compiler bug, when settings -optimize=false 
> the problem goes away but the file size is doubled.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (FLEX-27585) Spark DataGrid skin produces Stack overflow in release build

2013-04-12 Thread Cyrill Zadra (JIRA)

 [ 
https://issues.apache.org/jira/browse/FLEX-27585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cyrill Zadra updated FLEX-27585:


Attachment: FLEX-27585.zip

> Spark DataGrid skin produces Stack overflow in release build
> 
>
> Key: FLEX-27585
> URL: https://issues.apache.org/jira/browse/FLEX-27585
> Project: Apache Flex
>  Issue Type: Bug
>  Components: Spark: DataGrid
>Affects Versions: Adobe Flex SDK 4.5 (Release)
> Environment: Affected OS(s): Windows
> Affected OS(s): Windows 7
> Language Found: English
>Reporter: Adobe JIRA
>Assignee: Cyrill Zadra
> Attachments: FLEX-27585.zip
>
>
> Steps to reproduce:
> 1. Create a new Web Flex project
> 2. Drag a spark DataGrid to the work area
> 3. Create a new skin using the generated default and add to grid
> 4. Comment out lines 121-122
>   /*const color:uint = dataGrid.getStyle("caretColor");
>   caretIndicatorFill.color = color;*/
> 5. Export a release build and run in browser.
>  Actual Results: 
> Works when running from the workspace but breaks when using release build.
> VerifyError: Error #1023: Stack overflow occurred.
>   at spark.components.gridClasses::GridLayout/intializeGridVisualElement()
>   at spark.components.gridClasses::GridLayout/layoutIndicator()
>   at spark.components.gridClasses::GridLayout/layoutCaretIndicator()
>   at spark.components.gridClasses::GridLayout/updateDisplayList()
>   at spark.components.supportClasses::GroupBase/updateDisplayList()
>   at spark.components::Group/updateDisplayList()
>   at spark.components::Grid/updateDisplayList()
>   at mx.core::UIComponent/validateDisplayList()
>   at spark.components::Group/validateDisplayList()
>   at mx.managers::LayoutManager/validateDisplayList()
>   at mx.managers::LayoutManager/doPhasedInstantiation()
>   at mx.managers::LayoutManager/doPhasedInstantiationCallback() 
>  Expected Results:
>  Should work in release build also.
>  
>  Workaround (if any):
> Always add a value to caretIndicatorFill.color or remove the interface 
> implementation from the Rect. Seems like any change in the method body like 
> simple statement can resolve this issue.
> Digging deeper it seems to be a compiler bug, when settings -optimize=false 
> the problem goes away but the file size is doubled.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (FLEX-27585) Spark DataGrid skin produces Stack overflow in release build

2013-04-12 Thread Cyrill Zadra (JIRA)

 [ 
https://issues.apache.org/jira/browse/FLEX-27585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cyrill Zadra updated FLEX-27585:


Assignee: Cyrill Zadra

> Spark DataGrid skin produces Stack overflow in release build
> 
>
> Key: FLEX-27585
> URL: https://issues.apache.org/jira/browse/FLEX-27585
> Project: Apache Flex
>  Issue Type: Bug
>  Components: Spark: DataGrid
>Affects Versions: Adobe Flex SDK 4.5 (Release)
> Environment: Affected OS(s): Windows
> Affected OS(s): Windows 7
> Language Found: English
>Reporter: Adobe JIRA
>Assignee: Cyrill Zadra
> Attachments: FLEX-27585.zip
>
>
> Steps to reproduce:
> 1. Create a new Web Flex project
> 2. Drag a spark DataGrid to the work area
> 3. Create a new skin using the generated default and add to grid
> 4. Comment out lines 121-122
>   /*const color:uint = dataGrid.getStyle("caretColor");
>   caretIndicatorFill.color = color;*/
> 5. Export a release build and run in browser.
>  Actual Results: 
> Works when running from the workspace but breaks when using release build.
> VerifyError: Error #1023: Stack overflow occurred.
>   at spark.components.gridClasses::GridLayout/intializeGridVisualElement()
>   at spark.components.gridClasses::GridLayout/layoutIndicator()
>   at spark.components.gridClasses::GridLayout/layoutCaretIndicator()
>   at spark.components.gridClasses::GridLayout/updateDisplayList()
>   at spark.components.supportClasses::GroupBase/updateDisplayList()
>   at spark.components::Group/updateDisplayList()
>   at spark.components::Grid/updateDisplayList()
>   at mx.core::UIComponent/validateDisplayList()
>   at spark.components::Group/validateDisplayList()
>   at mx.managers::LayoutManager/validateDisplayList()
>   at mx.managers::LayoutManager/doPhasedInstantiation()
>   at mx.managers::LayoutManager/doPhasedInstantiationCallback() 
>  Expected Results:
>  Should work in release build also.
>  
>  Workaround (if any):
> Always add a value to caretIndicatorFill.color or remove the interface 
> implementation from the Rect. Seems like any change in the method body like 
> simple statement can resolve this issue.
> Digging deeper it seems to be a compiler bug, when settings -optimize=false 
> the problem goes away but the file size is doubled.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira