kolombet / maashaack Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/maashaack
Automatically exported from code.google.com/p/maashaack
In the emitDate() method of the Serializer class you use inside the
serialization with the pattern :
{{{
return "new Date(" + data.join( "," ) + ")";
}}}
Why you don't use the timestamp ?
{{{
return "new Date(" + date.valueOf() + ")" ;
}}}
Original issue reported on code.google.com by [email protected]
on 22 Dec 2007 at 7:25
historically we used brackets such as
----
some code
{
some other code
}
----
from now on we ll use
----
some code
{
some other code
}
----
Original issue reported on code.google.com by zwetan
on 11 Oct 2008 at 12:05
Chained evaluator
fast example :
{{{
var me:IEvaluator = new MultiEvaluator( new Evaluator() , [ new
EdenEvaluator(), new DateEvaluator() ] , ... )
var str:String = me.eval( "Date(2006,1,2,3)" ) ;
}}}
Original issue reported on code.google.com by [email protected]
on 6 Jun 2008 at 10:04
Must finalize the class and this unit tests
http://code.google.com/p/maashaack/source/browse/branches/maashaack_data_version
1/AS3/src/system/data/maps/SortedArrayMap.as
Original issue reported on code.google.com by [email protected]
on 11 Nov 2008 at 5:20
when adding new code, functionalities, etc.
we should always test
- a build in Flex
- a build in Flash CS3
and when redtamarin will be a little more complete
- a build in redtamarin
ideally we would want to run the test runner
in those 3 hosts and have the builds autogeneraated with ant
Original issue reported on code.google.com by zwetan
on 3 Sep 2008 at 12:47
on the same principle of Strings.format
where you can replace indexed {0} or named {name} tokens,
we want to define an eval token ${}
with this format
${<index>,<index>,<indexN>;<string to evaluate>}
for a start, Strings will contain an evaluators array
Strings.evaluators = [];
the <index> part pointing on the index of the array to find the evaluator
to use
use case 1:
Strings.evaluators = [ MathEvaluator ];
Strings.format( "my result is ${0;2+3}" ); // "my result is 5"
-> the MathEvaluator directly take the string "2+3" and evaluate with a
MathParser for example
use case 2:
SomeClass.someprop = "hello";
Strings.evaluators = [ EdenEvaluator ];
Strings.format( "my word is '${0;SomeClass.someprop}'" ); // "my word is
'hello'"
-> here the string "SomeClass.someprop" is evaluated by EdenEvaluator which
use the eden parser
use case 3:
Strings.evaluators = [ EdenEvaluator, DateEvaluator ];
Strings.format( "my time is '${0,1;new Date(2008,1,21,10,15,0,0)}'" ); //
"my time is 02 h 15 mn 00 s am"
-> here we first parse the string with EdenEvaluator which return a Date
instance and then we pass this instance to the DateEvaluator which return a
formated string
notes:
- evaluators can be chained, cf ${0,1,2,3 ...}
- the chain of evaluators is processed in order, cf ${3,1,0,2 ...}
Original issue reported on code.google.com by zwetan
on 29 Mar 2008 at 4:22
for some time we kept it all in system.Reflection
but now it's time to add more and have a proper reflection package
Original issue reported on code.google.com by zwetan
on 27 Apr 2008 at 7:32
Contains all static mathematics methods
Original issue reported on code.google.com by [email protected]
on 27 Apr 2008 at 10:49
system.Sortable :
/**
* Determinates the Comparator object used in the map to sort the entries.
*/
public function get comparator():Comparator
{
return _comparator ;
}
/**
* @private
*/
public function set comparator( comp:Comparator ):void
{
_comparator = comp ;
}
Original issue reported on code.google.com by [email protected]
on 11 Nov 2008 at 7:43
Example :
system.data.collections.formatter (a CollectionFormatter instance) and
system.data.maps.formatter (a MapFormatter instance)
The CollectionFormatter and the MapFormatter class are public and i use
singleton to optimize the reflection of the ADT.
Original issue reported on code.google.com by [email protected]
on 10 Nov 2008 at 10:20
The MultiMap implementation (need the SimpleCollection class to be
implemented)
Original issue reported on code.google.com by [email protected]
on 15 Nov 2008 at 12:04
an implementation of IEvaluator
Original issue reported on code.google.com by zwetan
on 26 Apr 2008 at 8:50
See :
compare( obj1:*, obj2:*, options:* = null )
Original issue reported on code.google.com by [email protected]
on 11 Nov 2008 at 7:45
use the tri-licences in the alpha ADT branche !
Original issue reported on code.google.com by [email protected]
on 10 Nov 2008 at 2:07
we should clean the headers
little things:
the authors/contributors should be formated as
[firstname] [lastname] <[email protected]>.
the end of the header should always contains Contributors
empty
----
Contributor(s):
*/
----
non-empty
----
Contributor(s):
- Marc Alcaraz <[email protected]>.
*/
----
ther should be always one CRLF between the end of the header
and the start of the code
----
*/
package something ...
----
example:
----
/*
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
The Original Code is [MaasHaack framework]
The Initial Developer of the Original Code is
Zwetan Kjukov <[email protected]>.
Portions created by the Initial Developer are Copyright (C) 2006-2008
the Initial Developer. All Rights Reserved.
Contributor(s):
- Marc Alcaraz <[email protected]>
*/
----
Original issue reported on code.google.com by zwetan
on 11 Oct 2008 at 12:01
this need to change in such a way so external serializer/deserializer could
be added dynamically
Original issue reported on code.google.com by zwetan
on 19 Nov 2007 at 8:28
See and test indexOfAny and lastIndexOfAny
+ adds methods
Original issue reported on code.google.com by [email protected]
on 29 Mar 2008 at 4:34
Must use this properties in the SortedArrayMap class who extends the
ArrayMap class.
Original issue reported on code.google.com by [email protected]
on 11 Nov 2008 at 5:21
problem with a source :
///
var o:* = eden.deserialize("new foo.Bar( { prop : new foo.Yoo() } )") ;
///
must test it and fix it.
Original issue reported on code.google.com by [email protected]
on 11 Oct 2008 at 2:05
Based on system.formatters.DateFormatter class.
Original issue reported on code.google.com by [email protected]
on 30 Apr 2008 at 10:15
Insert the € symbol and more
Original issue reported on code.google.com by [email protected]
on 6 Aug 2008 at 6:28
The basic implementation of the Collection class
Original issue reported on code.google.com by [email protected]
on 15 Nov 2008 at 12:02
here the situation for now
the source is under MPL with me as original author
and most of the time Marc as contributor
changes in the futur:
- both Marc and me should be original author
- the license should move to a tri-license MPL/GPL/etc.
- we should define a clear form for contributors
so a patch or contribution would not void the license
Original issue reported on code.google.com by zwetan
on 11 Oct 2008 at 12:03
Contains all Formatter objects.
Original issue reported on code.google.com by [email protected]
on 27 Apr 2008 at 10:52
the title is clear
Original issue reported on code.google.com by zwetan
on 18 Nov 2007 at 7:51
don't inherit from Array, make the methods static for now
Original issue reported on code.google.com by zwetan
on 19 Nov 2007 at 8:29
See to implement object with the Comparator interface :
Comparator.compare(o1:*, o2:*):int
I need implement this interface to create PriorityQueue, SortedArrayMap
etc. class in the ADT library of Maashaack.
We need talk about it.
Original issue reported on code.google.com by [email protected]
on 11 Nov 2008 at 5:18
implement the class
Original issue reported on code.google.com by [email protected]
on 27 Apr 2008 at 10:53
for certain case it will be possible to use different namespaces
the goal is to keep the same signatures (method, function, etc.)
- standard
standard use with all functionalities
can be slow
always supported
- optimized
less functionalities to improve speed
must be fast
once implemented should be supported
- experimental
when we are not sure if the implementation worth it or not
as the name says "an experiment"
no support
Original issue reported on code.google.com by zwetan
on 25 Sep 2008 at 6:03
very small and light package
to provide a thin layer of UI
the code should be completely independant
of any other maashaack framework classes
and should be able to be used as a kind of UI template
Original issue reported on code.google.com by zwetan
on 11 Oct 2008 at 12:17
When i launch the unit test of Maashaack i have an error :
----------------------------------------------------------------
[x4a core tests] #1
.....F................................
......................................
......................................
......................................
......................................
........
Time: 0h:0mn:0s:78ms
There was 1 failure :
0) testFormatEvaluatorsParsing( StringsTest )
ComparisonFailure: expected:<...b:"}",d:"}",a:1,c:"$",e:"$...> but
was:<...e:"$",c:"$",a:1,d:"}",b:"}...>
at buRRRn.ASTUce.framework::Assert$/assertEquals()
at system::StringsTest/testFormatEvaluatorsParsing()
at buRRRn.ASTUce::Runner/doRun()
at buRRRn.ASTUce::Runner$/run()
at buRRRn.ASTUce::Runner$/main()
at Framework_data_TestRunner$iinit()
FAILURES!!!
we must fix it :)
Original issue reported on code.google.com by [email protected]
on 10 Nov 2008 at 2:17
The Arrays.initialize() method contains the first parameter "elements:int"
and i think we must change the type of this parameter with the uint type.
{{{
initialize( elements:uint = 0, value:* = null )
}}}
Original issue reported on code.google.com by [email protected]
on 8 Aug 2008 at 9:45
An AS3 port of the google-prettify library
http://code.google.com/p/google-code-prettify/
project started
expect some code commits tonight
- basic structure
system.text.prettifier
system.text.html
- HTML entities encoding/decoding
maybe using/porting a HashMap for that could be usefull
some thoughts:
- using basic function scope to do a lexer not gonna cut it in AS3
it's possible but less clean than a basic Lexer clas
- the basic idea is to do a Prettify.parse( somestrings )
and to inject it into a TextField
- my guess is we gonna need a Lexer that generate tokens
and from there generate HTML or XML structure from those
tokens
- we can use google-prettify as a guidance but we're not
gonna really reuse any of the source code
open to ideas
Original issue reported on code.google.com by zwetan
on 17 Mar 2008 at 2:02
I change the logic in the Strings.format and i use the MultiEvaluator
class. The unit test works.
Original issue reported on code.google.com by [email protected]
on 13 Nov 2008 at 9:46
Next step in this interface :
1 - Add the invoke( params:Array) method
2 - implement it in the ClassInfo and Reflection class.
Original issue reported on code.google.com by [email protected]
on 15 Aug 2008 at 12:43
Implements and unit test :
* BooleanComparator
* ComparableComparator
* DateComparator
* GenericComparator
* NullComparator
* NumberComparator
* ReverseComparator
* StringComparator
Original issue reported on code.google.com by [email protected]
on 13 Nov 2008 at 10:48
add metrics utilities
- Common Prefix
- Common Suffix
- Levenshtein Distance
- Longest Common Substring
- Longest Common Subsequence
Original issue reported on code.google.com by zwetan
on 13 Apr 2008 at 5:50
I begin the AS3 implementation of the Google Prettify.. (not easy to
implement it ;) )
In the prettify.js file we can find the util method : "spliceArrayInto"...
See my proposal in the system.Arrays version of VEGAS :
http://svn1.cvsdude.com/osflash/vegas/AS3/trunk/src/system/Arrays.as
Documentation :
http://www.ekameleon.net/vegas/docs/system/Arrays.html
EKA+ :)
Original issue reported on code.google.com by [email protected]
on 12 Mar 2008 at 11:40
Create a Range class and this tests.
Original issue reported on code.google.com by [email protected]
on 27 Apr 2008 at 3:15
Test 1 :
trace( Strings.center("hello world", 20, "_" ) ) ; // ____hello world_____
( On obtient bien le résultat escompté )
Observons : 4 fois le séparateur en préfixe du mot "hello world" et 5 en
suffixe.
Test 2 :
trace( Strings.center("hello world", 20, "=>" ) ) ;
résultat : =>=>=>=>hello world=>=>=>=>=>
Soit 4 fois le séparateur en préfixe du mot "hello world" et 5 en suffixe.
Test 3 :
trace( Strings.center("hello world", 20, "=========>" ) ) ;
Avec le séparateur égale à 10 caractères ( sachant que "hello world" en
compte 11, on dépasse allègrement le maximum de 20 caractères )
résultat : =========>=========>=========>=========>hello
world=========>=========>=========>=========>=========>
A nouveau : 4 fois le séparateur en préfixe du mot "hello world" et 5 en
suffixe.
Proposition Code :
var long:int = Math.round( m / separator.length ) ;
return repeat(separator, long) + str + repeat(separator, (size - n - m) /
long) ;
Original issue reported on code.google.com by [email protected]
on 31 Jul 2008 at 7:49
Implement a shortcut static method in Reflection invokeClass...
See to refactor or optimize this a next time.
Original issue reported on code.google.com by [email protected]
on 15 Aug 2008 at 2:06
The new implementation in system.eden of the debug mode with namespace
don't work in Flash CS3, the debug namespace in the GenericParser class
isn't find during the compile process :(
We must fix this problem, for the moment i comment the namespace
implementation and return to an easy verbose mode :)
EKA+ :)
Original issue reported on code.google.com by [email protected]
on 1 Sep 2008 at 8:18
I finish all entities in the class system.text.html.Entities
Original issue reported on code.google.com by [email protected]
on 21 Mar 2008 at 9:05
Hello :)
For the moment the white list dont' work in my applications. I must test it
..
Original issue reported on code.google.com by [email protected]
on 11 Oct 2008 at 2:03
In Windows Vista the Capabilities.os returns the value : "Windows Vista"
I can add it in the the switch..cas of the method ?
Original issue reported on code.google.com by [email protected]
on 8 Aug 2008 at 10:35
Problem in StringsTest.testFormatEvaluatorsParsing and
StringTest.testFormatEdenEvaluators
Example :
{{{
var str1:String = "my result is ${{a:1,b:2}}$";
Strings.evaluators = { eden: new EdenEvaluator(), eden2: new
EdenEvaluator(false) };
trace( Strings.format(str1) ) ; // "my result is {a:1,b:2}"
}}}
In the FP9 no problem the result is "my result is {a:1,b:2}"
But in the FP10 in winXP the result is : "my result is {b:2,a:1}"
The order of the properties is not the same !! The Strings.format work but
problem with the order of the enumeration and the unit tests don't works in
all case !
For the moment i change the unit tests :
{{{
assertTrue(Strings.format(str1) == "my result is {a:1,b:2}" ||
Strings.format(str1) == "my result is {b:2,a:1}"); // TODO FP10 hack
}}}
But it's a hack ! We must find a good solution.
EKA+ :)
Original issue reported on code.google.com by [email protected]
on 13 Nov 2008 at 9:45
http://fr.wikipedia.org/wiki/ISO_8859-15
Original issue reported on code.google.com by [email protected]
on 27 Apr 2008 at 11:04
In the Strings class we can find the indexOfAny method but not the
lastIndexOfAny method :)
Original issue reported on code.google.com by [email protected]
on 22 Dec 2007 at 8:10
Contains all numeric and mathematics tools
Original issue reported on code.google.com by [email protected]
on 27 Apr 2008 at 10:48
The MultiMap implementation (need the SimpleCollection class to be
implemented)
Original issue reported on code.google.com by [email protected]
on 15 Nov 2008 at 12:04
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.