Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

09-09-2012 , 04:19 PM
Quote:
Originally Posted by Chips Ahoy
Make a new c# windows forms app. All defaults.

In solution explorer, right click on project, add existing item...
files of type *.*
pick your file, it is a .edmx, yes?

I basically did this. I don't do database this way so no warranty.
the file type is just .xml -- i did the above steps, but all it did was import the xml so that i could view it in the editor. is there another step to get the graphical representation of the schema?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-09-2012 , 05:01 PM
Is it like this? (This is my blank database model)

Code:
<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="2.0" xmlns:edmx="http://schemas.microsoft.com/ado/2008/10/edmx">
  <!-- EF Runtime content -->
  <edmx:Runtime>
    <!-- SSDL content -->
    <edmx:StorageModels>
      <Schema Namespace="testdbModel.Store" Alias="Self" Provider="System.Data.SqlServerCe.3.5" ProviderManifestToken="3.5" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
        <EntityContainer Name="testdbModelStoreContainer" />
      </Schema>
    </edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="testdbModel" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
        <EntityContainer Name="testdbEntities" annotation:LazyLoadingEnabled="true" />
      </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
      <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2008/09/mapping/cs">
        <EntityContainerMapping StorageEntityContainer="testdbModelStoreContainer" CdmEntityContainer="testdbEntities" />
      </Mapping>
    </edmx:Mappings>
  </edmx:Runtime>
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  <Designer xmlns="http://schemas.microsoft.com/ado/2008/10/edmx">
    <Connection>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </Connection>
    <Options>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="True" />
        <DesignerProperty Name="IncludeForeignKeysInModel" Value="True" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams>
      <Diagram Name="Model1" />
    </Diagrams>
  </Designer>
</edmx:Edmx>
OK, it looks like it's just a part of this file he sent you.

http://drc.ideablade.com/xwiki/bin/v...dmx-xml-editor

add / new item / data / ado.net model

then paste your xml in the storage model sections.

He should have sent you a complete file?

I'll repeat that I don't use this stuff, so my value here is pretty low.

Last edited by Chips Ahoy; 09-09-2012 at 05:12 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-09-2012 , 05:07 PM
Code:
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-09-2012 , 05:11 PM
Quote:
Originally Posted by daveT
kerowo: That Obj-C thread is pretty interesting. I don't want to muddy up the thread, but I was wondering how you like the language.
Too soon to tell really, this is the 3rd of 4th shot at it and the thread is mostly motivational and an attempt to reinforce what I'm getting from the book. Not using dot notation or () for sending messages to methods (and the whole message nomenclature) is pretty strange but Hillegass makes it seem less strange.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-09-2012 , 05:41 PM
ok, I think what you have is a SSDL file: http://msdn.microsoft.com/en-us/libr...2819(v=sql.105)

I have no clue what to do with it!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-09-2012 , 06:22 PM
yeah pretty sure it's SSDL
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-09-2012 , 07:35 PM
Quote:
Originally Posted by gaming_mouse
yeah pretty sure it's SSDL
http://blogs.msdn.com/b/dsimmons/arc...gner-ctp2.aspx
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-09-2012 , 08:04 PM
Quote:
Originally Posted by Chips Ahoy
Thanks Chips. Looks like that requires the MSL and CSDL files too which I don't have. Or would those be optional?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 11:40 AM
2B: "you just go and punch George in the mouth". Amazing haha.

Anyone have a good reference for the math skills required to get through the exercises without cheating? I've been reading through them and trying to follow em on Bill's blog but I have almost no knowledge of any math above standard +-*/.

That means all forms of math notations look alien among other things. The wiki on math notion helps a little bit but some highly recommended light reading material would be nice.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 11:54 AM
which notations?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 01:46 PM
I'm sure you'd hate to see this: Go check out the Single Variable Calculus courses. For the the vector overview, check out Lecture 1 of the Multi-variable Calculus.

Wolfram math has also been an excellent resource for some of the math stuff. http://mathworld.wolfram.com/

It was because of missing concepts and certain struggles with this book that I decided to work on math. I generally do about 5 hours a week, or at least try to. The interesting discovery is that, despite being the pita kid who was the only one in class who could do the "bonus questions," thus maintaining a score of 120% on all the test, and creating an impossible-to-compete-with curve, I am not very good at math these days (outside of poker math, I guess), and... I have changed immensely over the years: I used to love math and doing math equations, even to the point of teaching myself how to multiply and divide when I was in grade school, and teaching myself more advanced math in HS, and understanding concepts that were mostly intractable for people my age. Now I hate math. Where did the passion -- and intelligence -- go?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 01:48 PM
Quote:
Originally Posted by Shoe Lace
2B: "you just go and punch George in the mouth". Amazing haha.
If this advice was followed, there'd be no need for TDD.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 01:48 PM
daveT, I have to say I'm impressed with how much time/effort you spend learning.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 01:51 PM
Quote:
Originally Posted by jjshabado
daveT, I have to say I'm impressed with how much time/effort you spend learning.
I don't have a TV and I ride a bus to and from work.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 01:59 PM
Quote:
Originally Posted by daveT
I'm sure you'd hate to see this: Go check out the Single Variable Calculus courses. For the the vector overview, check out Lecture 1 of the Multi-variable Calculus.
That's probably going to be way over my head. My math skills are abysmal at the moment. I'm good at basic stuff like + - * / but that's about it.

Since starting the book I got used to a few notations like exponents and factorials (^ and !). Even wrapped my head around the sum one that represents a loop using the wiki.

http://en.wikipedia.org/wiki/Table_o...atical_symbols

That has basically been my source so far but it leaves a lot to be desired. I don't even know all of the order of operations and had to look up what you're supposed to do when you see 2 values next to each other (multiply), etc..
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 02:12 PM
Quote:
Originally Posted by Shoe Lace
That has basically been my source so far but it leaves a lot to be desired. I don't even know all of the order of operations and had to look up what you're supposed to do when you see 2 values next to each other (multiply), etc..
I don't know this stuff either, probably good to learn (edit: just looked it up and learnt it lol) but I personally like just adding parenthesis to make it totally clear:

Code:
var x = 3 + 4 * 2;
I would write as:

Code:
var x = 3 + (4*2);
As it's lots easier to understand for me. Maybe this is one of those things again that I do that no one else does though lol.

There's some stupid thing on Facebook going round along the lines of:

Quote:
90% OF IDIOTS GET THIS WRONG! WHAT IS:
4+4*4/4+4+4*4-4*4 = ???
Perfect example of why you should use parenthesis! It's valid math but when humans are able to start misinterpreting it, just add parenthesis. For me the limit of where misinterpretation is possible is pretty much anything with more than 2 parts
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 02:16 PM
One of the examples was written like:

Code:
x2 + y2
There were no exponents or the opposite of exponents (I don't even know what this one does or is called but it's used all over... the number is floating below the bigger number).
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 02:16 PM
Quote:
Originally Posted by daveT
I don't have a TV
No TV rules! I can't say I don't have one as we have one for computer games but can't remember the last time I ever sat down and watched it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 02:25 PM
Quote:
Originally Posted by Shoe Lace
One of the examples was written like:

Code:
x2 + y2
There were no exponents or the opposite of exponents (I don't even know what this one does or is called but it's used all over... the number is floating below the bigger number).
You need some algebra books
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 02:33 PM
It really goes to show you how little math skills you need to program web sites/apps. I don't know anything about algebra.

I was really happy when the author of SICP explained how to add and multiply fractions because that is something I forgot too. My instinct said to just convert them to decimals first and avoid fractions but I went along anyways.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 02:48 PM
Your right, the answer is to use more parentheses:

4+4*4/4+4+4*4-4*4

Code:
(- (+ 4
        (/ (* 4 4) 4)
        4
        (* 4 4))
    (* 4 4))
At least Python would eat that up and spit out the right answer. Doesn't most infix computer programming languages follow the classical order of operations?

Last edited by daveT; 09-10-2012 at 02:50 PM. Reason: Python says the answer is 12
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 03:23 PM
Quote:
Originally Posted by Gullanian
No TV rules! I can't say I don't have one as we have one for computer games but can't remember the last time I ever sat down and watched it.
From a strictly personal perspective, it's a good thing I guess. Then again, I don't know much about the world news and I don't know what people are talking about when they talk about the Kardashians, or why The Wire is the greatest show of all time.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 03:43 PM
Quote:
Originally Posted by Gullanian
90% OF IDIOTS GET THIS WRONG! WHAT IS:
4+4*4/4+4+4*4-4*4 = ???
Oh man, that reminds me of the OOT post asking:

Quote:
48÷2(9+3)=?
Good times.

FTR: I'm the 288 camp, but agree that its an ambiguous and poorly written question.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 04:37 PM
Quote:
Originally Posted by daveT
Doesn't most infix computer programming languages follow the classical order of operations?
I think pretty much every language gets it right, but the idea is to always add parenthesis to make your intentions clear and unambiguous.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-10-2012 , 06:17 PM
Quote:
Originally Posted by Shoe Lace
There were no exponents or the opposite of exponents (I don't even know what this one does or is called but it's used all over... the number is floating below the bigger number).
"superscript" and "subscript", respectively
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m