The Answer is Orange The Winners 35 Winner for the first time I think  , Good job guys (Y) The First: fwitema The Second: Amira The Third: Ahmed Magdy Then Abdullah Mhmoud Najuib Rana FOSHY EnasMohey Eman El-Maged BODA yayoelmasry Mohamed Emarah EgyDev Abdelmenem Diab TeCNoYoTTa Amr Ahmed عمر أيمن Kasparov92 Ahmad Farrag Ismail A.Mhana AlaaShaker Abu-Bakr Taha Eman basma Muhammad Zidan mohamed awad Hamada Emad hamed_abdelhamed emad said Azza Noran AboDoma hano2a Ashraf Badr nourhan asraf Ahmed alaa




Drilling 2 steps in Reports Viewer 2005
icon1 Ahmed Mohammed AL-Sayed | icon2 ASP.NET 2.0, SQL Reports, Visual Studio | icon4 12 30th, 2009|

Imagine a situation where you have a report that has a link to another report. The other report also has a link to another third report. This sounds logical and easy, and it works perfectly in the report server viewer. But when you try to deploy your reports and view them using the report viewer you have in Visual Studio 2005, it throws an exception:

The path of the item "(null)" is not valid. The path must be less than 260 characters long and must start with slash. Other restrictions apply. (rsInvalidItemPath)

As far as I know, this problem is only available in the report viewer of Visual studio 2005. I worked out a work around for this issue.

The Idea:

You have to handle the event of drilling and tell the report viewer to cancel the event, collect the parameters of the new report and set them, and finally set the report path of the report viewer to the new path. Now you are done. Have a look at the code below.

   1: protected void ReportViewer_Drillthrough(object sender, DrillthroughEventArgs e)
   2: {
   3:     /// This version of the report viewer doesnt support the nested reports
   4:     /// this section is used to rerender the whole thing.
   5:     string[] values = null;
   6:     
   7:     // Get All possible parameters that this report takes
   8:     ReportParameterInfoCollection reportParms = e.Report.GetParameters();
   9:     // Create an empty list of parameters that i will send
  10:     List<ReportParameter> parms = new List<ReportParameter>();
  11:     foreach (ReportParameterInfo i in reportParms)
  12:     {
  13:         // if the parameter value in nullable, and I didnt choose to send a value
  14:         if (i.Values.Count == 0)
  15:             continue;
  16:  
  17:         else if (i.Values.Count > 1)
  18:         {
  19:             values = new string[i.Values.Count];
  20:             i.Values.CopyTo(values, 0);
  21:             parms.Add(new ReportParameter(i.Name, values));
  22:         }
  23:         else
  24:         {
  25:             parms.Add(new ReportParameter(i.Name, i.Values[0]));
  26:         }
  27:     }
  28:  
  29:     // Now reset the viewer, as if its a new request
  30:     ReportViewer.Reset();
  31:     // Cancel the drilling action
  32:     e.Cancel = true;
  33:     // Reset the ReportServerURL, this is optional.
  34:     // If you dont know what to write here, try removing it.
  35:     ReportViewer.ServerReport.ReportServerUrl = new Uri(Session["SSRS Server"].ToString());
  36:     // Set the new report that will be displayed, and set its parameters
  37:     ReportViewer.ServerReport.ReportPath = e.ReportPath;
  38:     ReportViewer.ServerReport.SetParameters(parms);
  39: }

One draw back of this solution, is that the back button of the report viewer is not effective anymore. On the other hand, the browser's back navigation button is effective, and can take you to the previous parent report. However, if you clicked any other link in the parent report, it will throw an exception:



Execution 'vzlnjkfdkub0oan53dig5g55' cannot be found


I thought of a solution, which I don't know is acceptable for you or not, which is disabling the browser's back button using JavaScript (see below), and adding a navigation expression in my report. i.e. adding a textbox in the report, with text something like "<< Back" which jumps to the parent report, and sending the needed parameters.



   1: <script language="javascript" type="text/javascript" >
   2:     history.forward();
   3: </script>




Alslamo Alikom w r7mat ALLAH w brakato Summary of “Career Options” session which was presented by Mohamed Meshref, is now available at this link  http://www.box.net/files#/files/0/f/35951450/Career_Options . Wa ALikom Alslam w r7mat ALLAh w brkato




Trap doors
icon1 acmACIS | icon2 Problem, The Weekly Challenge | icon4 12 25th, 2009|
There are five doors, one leads to the exit, the others lead to traps. They are in a line. The clues tell you which position the doors are in the line and where the door to freedom is. All the clues are true. Each door has a clue written on it. The clues read: The blue [...]





Al Salamu 3alykom Wa Ra7matULLAH Wa Barakato (peace be upon you)


God willing, this post will be a start of a series of posts about Cons and Pros i found in the companies i’ve worked/interned in.

of course all of those Cons/Pros are from my own point of view.

but first i want to mention what i’ve seen in the internship.

don’t know but i didn’t like the internship in the summer vacation after the third year, i felt that it wasted lots of my time

may be that i had my internship in Cairo where the transportation time is measured hours so the days just ended by the end of the day at the company and in the weekends i traveled back to Alex so i couldn’t read anything or do anything by my own.

i can not deny that i had some experience during these internships but i think if i had stayed at home i would have read more and studied any other thing better or even practiced ACM further.

thats why i advised every third year stud who asked me about the internship as:

“it depends on you.. if u know that if you stayed at home u can study or  develop some apps or even participate in some open source apps, then it would be better not to look for an internship, you’ll gain the experience of working in a company whenever you get hired but the technical experience or the science u’ll study would be hard to gain later – as u wont be free after this vacation to do anything unless u enter IS department D – else if you know that you will just have the vacation to facebook and hangout then you HAVE to look for an internship -badal el sarma7a fel mawake3-”

unless it’s abroad, it would be a life experience rather than working in a company.

Tagged: acm, Alexandria, Cairo, Cons & Pros, FCIS




I will ask one computer what will be the answer of the other computer if i asked it about the right door of life, then i will take the opposite door entrance. The Winners The First Haytham Alaa The Second Noran The Third AlaaShaker Then Mohammed Sharaf Mohamed Wagdy yayoelmasry Ibrahim Hamed Aya EnasMohey Emarah Lo2Lo2a Wafaa Ahmed Magdy Ahmad alaa el din A.Mhana أحمد فراج





Those are the videos that as what a friend of mine calls them “Never Gets Old”

Steve Jobs’ 2005 Stanford


Randy Pausch Last Lecture


Life Mechanism


Validation


if you have others put them in a comment and i’ll put them here.

Thanx )

Tagged: Last Lecture, Life Mechanism, Randy Paush, Stanford, Steve Jobs, Validation




Alone in a room :(
icon1 acmACIS | icon2 Problem, The Weekly Challenge | icon4 12 18th, 2009|
You are in a room. You don’t know how you got there. There are two ways to get out. One: A door that leads to life. Two: A door that leads to death. The doors are exactly the same. There is zero difference between the two. The only thing in the room is you and [...]





And that would be my first extension for Google Chrome/Chromium )

as i’m have been using FireFox -and still using it- for a long time, getting used to double clicking text links to be opened in another tab using the FireFox plugin Text Link so i don’t have to go into the process  ”Select” – “Ctrl + t”- “Ctrl + v” + Enter to navigate to that link

you just go and double click the plain link to open it in a new tab

Features are to be added in future updates God willing, so u should install it from the chrome extensions gallery to ease the updating process, but until it’s approved to be in the gallery u can get it from here

Current Features,  it Opens:

V1.0

1- Simple links in only one format (either it’s all bold, Italic,…, the same color, unformatted) https://test.com

2-Links surrounded by any combination of Spaces, Single Quotes, Double Quotes

3-http://, ftp://, https://, file:// links

4-Simple links with mixed formats, if it didn’t work just change the click position http://google.com

5-Simple links in the format xxx.xxx/xxx (i.e en.wikipedia.org/wiki , news.yahoo.com/s/ )

any comments are welcome )

Tagged: Chrome Extension, Chromium, Google, Google Chrome, Text Link




What should I talk about?
icon1 Haytham Alaa | icon2 Uncategorized | icon4 12 17th, 2009|

Alsalam alikom wa ra7mat Allah wa barakatoh (aka Peace Upon You)

One of the problems every blogger faces is how to answer the above question… We often ask our fellow friends for suggestions, or even post a whole post and let people suggest topics in the comments… well, no more! skribit (http://skribit.com/) tries to find a better solution to that, by subscribing, it gives you a widget code that you can put as a side bar in your blog to let people suggest topics to talk about…

And I’m starting this right away, I’ve included the suggestions box in this post, please use it to suggest topics for me to talk about… after a while I’ll move it into the sidebar and keep it there for the foreseeable future :)

Note: if you are using RSS, you might not be able to get the box, please visit the original post link.

Loading...
 
 
What should I write about?
logged in as Anonymous
logincancel login | sign up

 

Thanks,

Stay tuned ;)






Copying is not a theft !!!
icon1 Tasniem Seliem | icon2 just talking | icon4 12 17th, 2009|
Actually I don't know to what extent is that right :D 





I used to copy many things but with no intention of theft or abuse, it was always for benefit and learning sake.
Lately I keep in wondering is this a bad deed or immoral !!
I keep wondering and ... copying, except there's another way rather than copying to get what I need.


What do you think about this ?!!








Emergence
icon1 OmniaNour | icon2 CleanCode | icon4 12 14th, 2009|

What if there were four simple rules that you could follow that would help you create good designs as you worked? Kent Beck’s four rules of Simple Design are of significant help in creating well-designed software.

According to Kent, a design is “simple” if it follows these rules:

• Runs all the tests

• Contains no duplication

• Expresses the intent of the programmer

• Minimizes the number of classes and methods

(The rules are given in order of importance.)

Simple Design Rule 1: Runs All the Tests

First and foremost, a design must produce a system that acts as intended.

A system that is comprehensively tested and passes all of its tests all of the time is a testable system.

Systems that aren’t testable aren’t verifiable. Arguably, a system that cannot be verified should never be deployed.

Fortunately, making our systems testable pushes us toward a design where our classes are small and single purpose. So making sure our system is fully testable helps us to create better designs.

Simple Design Rules 2: Refactoring

For each few lines of code we add, we pause and reflect on the new design. So, we clean it up and run our tests to demonstrate that we haven’t broken anything.

The fact that we have these tests eliminates the fear
that cleaning up the code will break it!

No Duplication

Duplication is the primary enemy of a well-designed system. It represents additional work, additional risk, and additional unnecessary complexity.

Duplication forms:

Lines of code that looks exactly alike

Duplication of implementation

The TEMPLATE METHOD pattern is a common technique for removing higher-level duplication.

Expressive

The clearer the author can make the code, the less time others will have to spend understanding it. This will reduce defects and shrink the cost of maintenance.

Design patterns, for example, are largely about communication and expressiveness. By using the standard pattern names, such as COMMAND or VISITOR, in the names of the classes that implement those patterns, you can succinctly describe your design to other developers.

Well-written unit tests are also expressive. A primary goal of tests is to act as documentation by example.

Minimal Classes and Methods

In an effort to make our classes and methods small, we might create too many tiny classes and methods. So this rule suggests that we also keep our function and class counts low. This rule is the lowest priority of the four rules of Simple Design. So, although it’s important to keep class and function count low, it’s more important to have tests, eliminate duplication, and express yourself.

Following the practice of simple design can and does encourage and enable developers to adhere to good principles and patterns that otherwise take years to learn.






Hello all,

I’d like to introduce CaS (Case-Based Strategies) its a CBR system that is able to adapt itself depending of the opponent strategies. We consider CaS as a future work for CaT (CBR system developed bt David W. Aha). CaS is a mixture of CBR techniques and is mapped to BDI model. Till now we’ve finished the design of:

  • Case representation technique.
  • Retrieval method.




SA :)
Here we're again talking about images, it's all about image processing course :D
well I needed my package to do a specific action depending on whether the image is colored or grayscale.
So, how to achieve this ?!
I searched a lot but I reached nothing :S
so I had to loop the pixels of the image and make sure that the RGB components of each pixel are equal to detect it as grayscale.
How bad !!
But finally I discovered another simple method ;)
consider you have a Bitmap object called Myimage.
the condition of grayscale is( Myimage.Palette.Flags = = 2)
so if this condition is true Myimage is grayscale, else it's colored :D
Yes..That easy ;)
Enjoy it ;) :D




SA :)
Finally there's an efficient way to adjust your controls in the form and to keep their relative positions and sizes.
review this and this :D


this method is very easy with perfect performance ;)


let's see a sample code for this:


    public partial class Form1 : Form
    {
        int oldHeight = 299, oldWidth = 436;
        int newHeight, newWidth;
        float verticalScale, horizontalScale;


        public Form1()
        {
            InitializeComponent();
        }


         private void Form1_Resize(object sender, EventArgs e)
        {


            newHeight = this.Height;
            newWidth = this.Width;
            verticalScale = (float)newHeight / oldHeight;
            horizontalScale = (float)newWidth / oldWidth;


            foreach (Control c in this.Controls)
            {
                c.Height = (int)(c.Height * verticalScale);
                c.Width = (int)(c.Width * horizontalScale);
                c.Top = (int)(c.Top * verticalScale);
                c.Left = (int)(c.Left * horizontalScale);
            }


            oldWidth = this.Width;
            oldHeight = this.Height;
        }
    }


all you have to do is to copy the parameters in your form, and set the oldHeight and oldWidth by the current Height and Width of your form in design mode.


        int oldHeight = 299, oldWidth = 436;
        int newHeight, newWidth;
        float verticalScale, horizontalScale;


and then copy the code in the Form1_Resize() in your form resize handler and enjoy the results ;)




Our 1st Seminar
icon1 Christina Saweres | icon2 First Seminar | icon4 12 11th, 2009|




SA :)
This is a summary for a paper that proposes an automatic computer-aided diagnosis (CAD) system
for early detection of lung cancer by analyzing chest 3D computed tomography (CT) images. 
This is a very useful paper, it discusses the steps followed by the system and states the algorithms used briefly.


For the summary : Click here
For the original : Go here and then download the full issue, the paper's name is:
"Computer Aided Diagnosis System for Early Detection of Lung Cancer Using Chest Computer Tomography Images


It's a good site by the way with many papers available for free :D




CBIR in medicine General survey
icon1 Tasniem Seliem | icon2 Documentation | icon4 12 10th, 2009|
SA :)
This documentation is a general survey collected from recent papers in CBIR in medicine, this document is collected by me (Fatma) and Reham
Enjoy it ;)





Hello world!
icon1 Christina Saweres | icon2 Introduction | icon4 12 10th, 2009|


How to convert 2D image to 3D model in order to simulate the real world like (visualizing, navigating and simulating buildings and museums), that will help games developers in getting game environment that game models can walk within it, that will happened when the user get more images that he will use it as game background and then convert every image using our program into 3D model from with this method the user can build the game environment.

Our Goal:-

Reviving image with converting it into 3D model, and we assume that the image contains neither humans nor cars, and our output will be:-

-         An image video to let the user to see the 3D model and how we do navigation inside it.

-         A 3ds file that contain the 3D model of the image that file will help the user to interact with the model.

and this video for more clarification , have fun :D :D

Our Problem Definition:-

How to convert 2D image to 3D model in order to simulate the real world like (visualizing, navigating and simulating buildings and museums), that will help games developers in getting game environment that game models can talk within it, that will happened when the user get more images that he will use it as game background and then convert every image using our program into 3D model from with this method the user can build the game environment.

Our Goal:-

Reviving image with converting it into 3D model, and we assume that the image contains neither humans nor cars, and our output will be:-

- An image video to let the user to see the 3D model and how we do navigation inside it.

- A 3ds file that contain the 3D model of the image that file will help the user to interact with the model.





First Seminar
icon1 Mina | icon2 Seminars | icon4 12 10th, 2009|

Three weeks ago, we had our first seminar .. It went great!

Posting this now might be a little bit late .. we’re actually getting prepared for the next siminar .. next week!, but you know .. seminar.. midterms .. Eid .. a BREAK  .. and  a post!





« Previous Entries