DCSIMG
DEV - מקודד לשווא

Browse by Tags

All Tags » DEV (RSS)

Pong Applied Box2DFlex Physics Engine by danielisimo

I decided to learn by example and assigned myself the goal of building pong in box2d. box2d is an overkill for pong , but what do you know, it's damn easy. the gist of it is : layout world setup event handling read more

Working With Large Arrays in Action Script by danielisimo

While working on partly connected system using flex technology I figured out quick enough that working with large data sets (thousands of records) is not applicable. Especially because i held a number of those sets which I needed to cross reference in number of occasions. My solution was to create an indexed collection which i can benefit both worlds of Dictionary and ArrayCollection , with that in mind I designed and implemented the IndexedArrayCollection. The collection extends ArrayCollection...

Box2D Flex Complex Shapes Mapping by danielisimo

One of the drawbacks in box2d is that it's not supporting concave polygon shapes . for that box2d flex employs several algorithms and converts a complex shape to a set of polygons (I took the idea from 3d modeling) at this point i would like to give credits to sakri.net for he's shape outline algorithm makc.coverthesky.com for he's polygon2d both state that their algorithms are far from perfect but for a v0.2 it's a good start. in this case I'll start from the demo and then.....

Simple Box2D Flex Example by danielisimo

following my previous post announcing Box2D Flex framework i want to share some techniques via examples on how to use the library. First thing we create add a SkinableContentContainer to and drop some contorls inside it This, still, does not do anything fancy it just initializes box2d and registers & measures all controls inside our physics container. next step we add some bindable controls that will change our physics gravity and debug and the bindable properties to our physics container now...
תגים:, , , , ,

Announcing Box2D Flex framework by danielisimo

Prefix In a previous post demonstrating box2d integration with flex I made a promise (mainly to myself) to share the demo code. When I started to review with sharing in mind it looked cumbersome and overly verbose. So I started cranking on it fixing and straightening the code & architecture and step by step I realized that I'm creating a small Integration layer rather then a POC. Announcing Box2DFlex Box2DFlex framework allows you easely integrate box2d into flex framework using mxml. The...

CSS Mask in HTML 5 by danielisimo

< התוכן שמופיע כאן מועמד לסטנדרטיזציה ב html5 יתכן וחלק מהדברים לא יעבדו כרגע על כל דפדפן > בהמשך לפוסט הקודם על css ב html5 עשיתי עוד ניסוי קטן לגבי masks (אולי מיסוכים?) . רציתי להחליף צבעים תכנותית לתמונה קיימת . כדי לעשות את זה ניגשתי למלאכה והתחלתי לנבור ברשת , די מהר מצאתי שגם לזה יש פתרון ב css3. מיקמתי שני div אחד מעל השני - בראשון תמונה של מכונית (המכונית חייבת להיות לבנה כדי שנוכל לצבוע אותה בקלות) read more
תגים:, , , , , ,

Flex 3 hebrew textbox by danielisimo

following my last post on flex3 RTL label , next challenge was input text with RTL support , in that case I decided to cheat and use html input overlying flex. Not so elegant solution, but a solution non the less. the trick is to pass the flex component coordinate and position the HTML input accordingly , and on the HTML side handle keyboard and mouse event to let the flex developer feel @ home with regular focus and key press events. Add the... read more

Flex 3 label RTL support by danielisimo

If you know or not , I'm leaving and working in Israel, where we have the most annoying text rendering issues. we write in right to left order - that means in the opposite direction of most languages. Letters and words are left to right, though numbers and other symbols remain right to left. Through the years I've seen (and even wrote) noumerous attempts to build an AS class that will provide this functionality to flash, all of them suffered from quirks and different edge cases. About a year...

HTML5 Client Side Storage by danielisimo

ישנם שני ממשקים שתפסו את עיני לגבי שמירת נתונים דרך הדפדפן אכסון נתונים - מאפשר שמירת נתונים בדפדפן בצורת key - value . אכסון מקומי בצורה עבודה לא מכוונת - אפשרות לשמור נתונים במבנה sql מקומי (משתמש ב sqlite). אכסון מבנה נתונים פשוט שמירת הנתונים נעשית דרך api חדשים בשם localStorage sessionStorage שניהם ממשים את אותו ממשק ומבצעים את אותן הפעולת אך תחום שמירת התנונים הוא שונה עבור sessionStorage התחום הוא ה session ועבור localStorage הוא הדומיין (בדומה לשמירת cookies). ה api מאוד פשוט וניתן... read...

לחלץ להפוך ולטעון by danielisimo

בהמשך לפוסט הקודם החלק הראשון בבנית ה EPG הוא למצוא את המידע ולטעון אותו לתוך מסד הנתונים , אחרי שמצאתי באינטרנט קובץ XML שמכיל רשימת ערוצים ותכניות התחלתי לחשוב איך אני מכניס אותם לרייבן :) הנסיונות שלי להכניס את המידע למסד הנתונים לימדו אותי שלושה דברים ניהול מידע במסד נתונים מבוסס מסמכים בניית אינדקסים עבודה עם סטים ניהול מידע לוח משדרים מורכב מהמאפיינים הבאים Channels Programs Tags or Categories במסד נתונים רלציוני הייתי מכין שלוש טבלאות והייתי שם מפתחות (forigen keys) במקומות המתאימים בכדי לקשר...
תגים:, , ,

צפייה במסמכי רייבן דרך הדפדפן by danielisimo

כחלק מהמשחקים שלי ניסיתי לבנות לעצמי מן סביבת עבודה נוחה . שליפת מסמכים מרייבן נעשית דרך HTTP ורציתי לנצל את היכולת של הדפדפן ושל רייבן בכדי לצפות בקלות במסמכים ממסד הנתונים. כשניסיתי לגשת בפעם הראשונה הדפדפן פתח את דיאלוג \"שמור קובץ בשם\" , למזלי השתמשתי בפיירפוקס בזמן הבדיקה וראיתי כי הMIME המוחזר הוא application/x-www-form-urlencoded אחרי משחקים רבים וחיטוט בקוד המקור של השרת ראיתי כי ה MIME מגיע משדה METADATA של המסמך שנשמר ברייבן כמובן שישר ניסיתי לשנות את השדה דרך ממשק הווב (ראה...

RavenDB web admin by danielisimo

אחרי ההתקנה , אפשר להתחיל לשחק עם הממשקים השונים , אורן האדם מאחורי הפרויקט מדגים הרבה באמצעות curl , יש בזה הרבה בכדי להראות שרייבן לא חייב לעבוד עם דוטנט , שממשק התקשורת מאוד פשוט (על בסיס עקרונות REST) והנתונים נשמרים בפורמט מאוד "רזה" ונח (JSON) . הממשק שאני (ואתה קורא יקר) אשתמש בו הכי הרבה לדעתי זו ספריית הקוד ב C# שממסכת את הקריאות . אבל לשם התחלה , דווקא נתחיל עם אתר הניהול לאחרת הרצת השרת ניתן לגשת לאתר הניהול בכתובת http:/localhost:8080... read more
תגים:, , ,

ScriptObject + DynamicObject = DynamicScriptObject by danielisimo

בסילברלייט ניתן לתקשר עם הדפדפן ולקרוא למתודות ג\'אואסקריפט לדוגמה : HtmlPage.Window.Invoke(\"method\") בצורת תקשורת זו מקבלים חזרה אובייקטים מסוג ScriptObject שבכדי לתשאל אותם צריך לבצע משהו בסגנון : myScriptObjct.getMember(\"memberName\") כמובן שתשאול ישיר היה יכול להיות יותר נוח וקריא myScriptObjct.memberName בעזרת dynamic ו DynamicObject ב C# 4 ניתן לבצע תחבולה שכזו וליישם אוביקט פרוקסי דינאמי שמקל על הקידוד read more

RavenDB חלק א\' - ההתקנה by danielisimo

ונתחיל בחלק הכיפי , מורידים את הגרסה האחרונה מהאתר (קובץ zip) ופורסים . מכיוון שרייבן (עדיין לא החלטתי אם לעברת אותו ל\"עורב ד.ב.\") לא מצריך התקנה וניתן להריץ במקביל גרסאות שונות שלו החלטתי לפתוח תיקיה ראשית כאשר כל גרסה נשמרת בתיקיה נפרדת . [caption id=\"attachment_296\" align=\"alignnone\" width=\"171\" caption=\"התקנת גרסאות שונות של רייבן במקביל\"][/caption] התקנה של רייבן כוללת מספר תיקיות ,השמות של כל תיקיה די מסבירים את עצמם וכרגע נתרכז בשתיים...

היום התחלתי עם עורב by danielisimo

כבר תקופה ארוכה אני סקרן לגבי מסדי נתונים לא רלציוניים (עברית בבקשה מישהו ?) , אבל אף פעם לא מוצא את הזמן או להתחיל. ההשקה לאחרונה של RavenDB דירבנה אותי להתחיל לחפור בענין. כמובן כמו כל אחד התחלתי מהסוף , הורדתי ,התקנתי ,הרצתי שיחקתי קצת והחלטתי שזהו - הפעם זה זה. הפרויקט האישי הבא שלי מתחיל. התחלתי סולושן חדש הוספתי פרויקט MVC ומשם דברים התדרדרו ... כל שורת קוד שכתבתי העלתה שתי שאלות וכל תשובה שמצאתי העלו עוד שלוש. אז כדי לעשות לי סדר... קרא עוד
More Posts Next page »
Powered by Community Server (Commercial Edition), by Telligent Systems