« first day (1964 days earlier)      last day (3210 days later) » 

16:01
like a charm
ok.. so i have a model/class in MVC. one property will be a string value that gets selected from a dropdownlist. this dropdownlist needs to be bound from a SQL database. where is the best place and HOW do i bind it? I have a stored procedure ready to deliver the data, i just need to figure out where/how to do the binding.
@DemCodeLines you can put a WPF project in your UWP solution and build it separately, both UWP and WPF projects can use the class libraries
I've had a few things I've raised on UserVoice implemented
What is the Best way to import many tables into a database?
@juanvan need more context. Is this from one database to another? Does it have to be repeatable or is it a one-time thing?
user47589
how are those tables currently stored?
16:08
@Amy I put them in the basement until the weather warms up
Tables are not being stored - I am storing them to a Type setting the properties then executing an SQL to insert it
should I set them all to a List<T> then insert them all at once
Keep getting random errors where the access table is locked
inserting a datatable into access is a pita
going to try this
5
Q: Insert dataset records in database

web duniaI need to insert the dataset records(C#) into the MS Accessdatabase table. I need to do the bulk insertion of records. How can I do this in C#

@juanvan The data table/adapter method is well suited for your situation. What is the volume of records. Will there be transformations on the data?
1500 rows
nothing is being transformed that I can think - doing all the check while the db is open
@juanvan Try the suggestion in the related question
4
A: Insert dataset records in database

Jørn Schou-RodeFor this sort of task, consider using the data adapter abstraction. With an Microsoft Access database, you can use the OleDbDataAdapter implementation as shown in the example below: // Prerequisite: The data to be inserted is available in a DataTable/DataSet. var data = new DataTable(); data.Col...

hi. Good evening everyone
I am trying out my college home work. I have a unmanaged dll file which has written in C++
16:24
@CrazyNinja Welcome to C# chat!
so, I have a wrapper class to invoke the methods in that DLL
@Squiggle thanks! :)
@CrazyNinja which compiler? Cygwin? visual C++?
Crazy Ninja and Shotgun Ninja should combine forces
[DllImport("Calculator.dll")] public static extern int add(int no1, int no2);
@mikeTheLiar they fight crime!
16:25
@ntohl i'm using visual studio 2010
@Squiggle or commit crimes!
@mikeTheLiar Neither are probably sane soo...
@mikeTheLiar me crazy enough to shoot myself :p
@NickSuperb they definitely come across as more of a Bonnie and Clyde type instead of Turner and Hooch
when I call this, return CallDLLWrapper.add(j, k);
Unable to load DLL 'Calculator.dll': The specified module could not be found.
^ error is giving me. I am a newbie to C# devlopments. can you just point me what i'm doing wrong here?
@mikeTheLiar yes
I have moved my external DLL file to System32 folder. but still no progress
Well I'll be damned, somebody actually did some research for once.
user47589
messing around with system32 is dangerous
I usually embed and then load the resource programmtically
16:30
i got a better idea, how about include that dll in your build folder...
good enough for homework...
@tweray that's how the instruction has given in the class. I tried it at first. but I got this same error
um, then confirm you did it the right way. build your project, then look into bin/debug folder and see if that dll is there
yes. it's there. I built it twice
maybe you did a 'clean' by accident?
16:33
let me try again
if still doesn't work, check if that c++ dll has some weird dependencies
negative :(
@CrazyNinja did you add references?
sometimes it requires Visual C++ Redistributable dependency
Hi. Where Can I download Microsoft visual studio 2008 express edition for windows 8.1 ?
16:35
how about... use a more modern version if you can?
@Michael nope. When I try to add it, it didn't add
what error does it give?
user47589
the DLL and the C# project need to both be 32-bit or both 64-bit. you can't mix them
(abusing OOP to avoid refactoring)++
user47589
are you sure they're the same bitness?
16:36
!!wiki bitness
In computing, word is a term for the natural unit of data used by a particular processor design. A word is a fixed-sized piece of data handled as a unit by the instruction set or the hardware of the processor. The number of bits in a word (the word size, word width, or word length) is an important characteristic of any specific processor design or computer architecture. The size of a word is reflected in many aspects of a computer's structure and operation; the majority of the registers in a processor are usually word sized and the largest piece of data that can be transferred to and from the working...
Witness the bitness
withness my fitness
@Michael ^
Mine yo bitness foo'
user47589
16:38
you can't add native libraries as references in VS. that won't work.
then, how do I make the linking ?
um... from what i see, that dll name is a bit different from what you wanted to load
regsvr32 "Calculator.dll" ?
user47589
Put it in the bin folder as has been previously suggested, ensure they are the same bitness (32-bit or 64-bit), and make sure the filename is correct.
user47589
Your error message says Calculator01.dll
16:40
Can he add it to his solution and then add it by reference that way?
@tweray Holy Shhhhhh.... You nailed it. my bad
woooo LOL
user47589
He doesn't need to add it to the solution. He needs to proofread.
indeed
16:40
heheh
sorry guys.
user47589
Happens to all of us.
+1 Amy
yeah. ++10 for Amy
user47589
Can I spend these imaginary internet points?
user47589
I want a diet soda.
user47589
16:41
And a squeaky toy.
no, only way to spend it is panini
@Amy ponies don't get squeaky toys. How about some hay?
Each panini comes with a free asshole expander
When I was in preschool, there was a vending machine. Multiple days I would go to it and press a button for a soda (With no money). One would come out, the teacher would take them from me and not let me have them.
and you have to use them instantly
16:42
Hi. Where Can I download Microsoft visual studio 2008 express edition for windows 8.1 ?
user47589
free?
!!panini->asshole
@mikeTheLiar Working Software
16:43
what the heck?
@karan why?
@karan I dn't think they sell that anymore
user47589
@karan well I used "google", and found this: stackoverflow.com/questions/15318560/…
ohh
@Amy what is this "google" you speak of?
16:44
Actually I download in ISO format
user47589
I googled "download Microsoft visual studio 2008 express edition"
but that dint work
Why do you want software that's 8 years old anyway?
@karan did you mount the ISO?
@Michael I am the ISO that will mount the world
16:45
nope
user47589
I <3 Khaleesi
what the heck does ISO stand for?
user47589
@Failsafe its this revolutionary service that helps you find things
user47589
!!wiki ISO
!!wiki ISO file
16:45
The International Organization for Standardization (ISO) is an international standard-setting body composed of representatives from various national standards organizations. Founded on 23 February 1947, the organization promotes worldwide proprietary, industrial and commercial standards. It is headquartered in Geneva, Switzerland, and as of 2013 works in 164 countries. It was one of the first organizations granted general consultative status with the United Nations Economic and Social Council. == Overview == ISO, the International Organization for Standardization, is an independent, non-g...
An ISO image is an archive file of an optical disc, a type of disk image composed of the data contents from every written sector on an optical disc, including the optical disc file system. ISO image files usually have a file extension of .iso. The name ISO is taken from the ISO 9660 file system used with CD-ROM media, but what is known as an ISO image might also contain a UDF (ISO/IEC 13346) file system (commonly used by DVDs and Blu-ray Discs). ISO images can be created from optical discs by disk imaging software, or from a collection of files by optical disc authoring software, or from a different...
@Failsafe it's a bing copycat
I downloaded from the same link
hmm. One of these things is not like the other.
so.....
bing, formerly MSN® Search
user47589
16:46
Then why are you asking where you can download it, if you've already downloaded it?
@Michael it's a virtual disk
VD != ISO
I used MagicISO to open the file
but setup.exe file failed to work
how about just mount it...
you know software in 2008 is not that fancy as it is now
@BoltClock Interesting
16:47
so it literally is International Standards Organization
never heard of it
@mikeTheLiar whats for lunch?
user47589
You never answered why you want to use 2008 edition software
@Michael dunno yet.
@Amy for the lulz
16:48
he wants to hack the iphone
Had a burrito yesterday
user47589
lies
user47589
there are no burritos
Food truck season hasn't started yet. :(
@Amy only paninis
16:48
There is only panini
user47589
yes
Panini is love, panini is life.
They get sickening after to many
user47589
you're such a liar, @mikeTheLiar
Panini holds us all in his warm, salty embrace
16:49
some winCE devices still only support debug on vs 2008
@Amy Mike knows much, tells some.
that's the only reason i would assume ppl will need vs2008
@mikeTheLiar Kajiit has panini's, if you have coin
trust me, as a previous college kid with unlimited food swipes.. blahhh they get so gross
May you walk on warm bread.
16:50
ohh . better I go for 2010 professional
um... just to remind, it's 2016 now
@tweray lmao
@tweray What? seriously?
hmm I know it.
checking calendar
16:50
Mike once had two spells, and burned his panini.
@Michael I'd tread lightly. Panini's are no joke here
@mikeTheLiar Pyroblast is not the appropriate spell for paninis
even begginers can use latest version ?
some one tell me if he's serious
i can't tell
16:52
Who?
@karan yes, I would recommend beginners use the latest version
@karan The new VS2015 Community Edition is free. I suggest downloading it.
here is the creating the table in the access db
http://pastie.org/private/nkht3w4yttccjcbw2pmiva
Here is how I am making the Datatable and Inserting the data
http://pastie.org/private/0ufwafymzcrm6codphki6a

but I have an Insert Error (no real message other then that.
oh. wont it be difficult to them to use the lattest one directly?
@karan What is your goal? What are you trying to accomplish?
16:53
@karan The application doesn't get easier to use the more versions you go backwards
I see multiple ponies.
ohh ok. I will install 2015 version
Good choice
!!clap
16:55
@karan Are you learning a new language?
Or learning how to program?
@juanvan you need those "@" in the InsertCommand.Parameters.Add too
yeah . in the process of learning
Do you need help finding resources to learn how to program?
user47589
why did you want 2008 in the first place?
@Amy he though it would be easier for a beginner
16:57
yeah
user47589
older != easier
which is true for a lot of things, start at the beginning
but not in terms of this
ohh. .
The older VS gets the worse it becomes
Editors improve with age/new revisions
@tweray adapter.InsertCommand.Parameters.Add("@Field1", OleDbType.VarChar, 250, "Field1"); still tossed the INSERT error
16:58
whats the difference between express professional and ultimate?
Express is for the everyday developer, working by himself or for school
Professional is for Developers who are working on production applications for a job/ a team
Community is the equivalent of Express now days... I think
Ultimate is for users/organiations who want the whole package, including all the tooling, testing, and enterprise features
such as Team foundation server
INSERT INTO **space here**[
you don't have to worry about that
just download the community edition
it has more than enough
17:00
com'on chat room
community edition?
We're designing a repository mechanism for synchronizing data across systems. "Repository" is too common a word in our code already. Originally a joke name, "synchole" is gaining traction.
user47589
Repository -> Silo
@juanvan and you need to wrap paren to the values
like VALUES (@field1....)
17:01
Newbie errors lol
@karan download that application
"silo" (and "field") are already terms in the agriculture business
@Failsafe: what community edition is about?
@karan it's for everyone
it's the only free version
TTFN all have a delightful evening <3
user47589
17:03
What is the appropriate HTTP status code when the request attempts to do something in violation of business rules?
@Amy I usually send back a 500, but here's a list of them: en.wikipedia.org/wiki/List_of_HTTP_status_codes
@Failsafe: ohh. I didnt know this.
400 or 405
17:04
if you are interested in C# or VB.NET
@tweray INSERT INTO space here Asshole ["Panini"
user47589
I don't think 400 is applicable. the request isn't malformed.
@NickSuperb 400 are client errors, meaning something went wrong based on the client's information.
Both languages use the same core libraries so you can hop back and forth between the 2 languages
I do it all the time
user47589
okay @RyanTernier i'll use 500
user47589
17:05
thank you
501 Not Implemented
The server either does not recognize the request method, or it lacks the ability to fulfill the request. Usually this implies future availability (e.g., a new feature of a web-service API).[63]
Isn't the client trying to do something it shouldn't
Feb 12 '14 at 22:12, by Tom W
colleague of mine put http codes like this:
1xx: Nothing to see here, move along
2xx: here it is
3xx: It's over there
4xx: You fucked up
5xx: We fucked up
2
@Failsafe: ohh. Thanks a lot!!
so, If I download community edition , that is enough. right?
@karan Yes
17:06
Hello!
@tweray had a few other errors in the insert statement is working now see if it right in a second
The only thing you will be missing is TFS integration, which you wouldn't be using anyway
and some other advanced testing/diagnostic features
I think a lot of people here use Community
ohk . I can work mvc , wcf ?
oh..
17:08
If you work for a business or have access to a MSDN enterprise license, feel free to use enterprise
Abstractions are literally abstractions
If a request is violating business rules.. to me that's a "You fucked up" situation
@Failsafe: thanks a lot for the info!!
@Amy use code 418
@karan You're welcome
user47589
418: I'M A TEAPOT
17:10
Depends what business rules
@Failsafe: am downloading it now
Some of them HTTP has comprehension of, like 409 conflict
400 bad request sounds right for the rest
Question: When you're writing your resume you order your work experience/positions from oldest to most recent or the opposite?
user47589
17:15
I start most recent -> oldest
user47589
potential employers care less about what i did 10 years ago
Okay, I need to reverse the order and apply for the offer in US
user47589
> 762 - Stoned
^ 420 FTFY
user47589
> 756 - Insufficiently polite
17:17
Ah, excuse me there, m'lady. I do apologize for my inappropriate behavior.
704.1 GOTO Failsafe
I'm going to spank myself with IL JIT Debugging.
@Amy 748 - Confounded by Ponies
@AdrianK. Amy is correct. I've do a lot of interviews, and have been to a couple this week. The recruiters / HR dpt. will care WHAT you have done recently, Tech interviewes will care about if you have the technical skills, capability, and understanding to "do" the job technically, and the boss will decide if you have what it takes to work "with" the company
I had interviews this week, and when I got past the HR and the Technical interviews, I had to switch gears to tell the CTO/CEO "why" they should hire me and what I will do to make their business succeed.
@RyanTernier oh I'm not denying it, believe me. I just wanted to do final polishing to my resume prior to sending it to the company. I appreciate both your and @Amy's answers
Interesting fact: I've only reversed the order and suddenly the resume ended having 3 pages instead of 2 like it had before.
17:23
Cover Letter: This is fore play for the HR department. You need to butter them up so they let you in the door.
Resume: This is your story, sell it. You want your skills and expertise to be front and center, and you will want to modify this slightly dpeending on the job to highlight specific skills they want.
user47589
if you want to butter HR up, send them butter.
they'll add chocolate and make brownies :3
Don't send them brownies.
Amy, are you looking for work atm?
@RyanTernier I'm not sure if I'll have to write a cover letter. First I had to realign my old resume and delete whole bunch of stuff unrelated to the position.
user47589
not really, but i'm open to options.
17:25
@Amy Ahh. That's a good position to be in :)
user47589
why?
user47589
you wanting to hire a pony?
user47589
or, do you want butter?
My manly figure needs butter! Puts hair on the chest. I was just curious, saw you talking about resumes and thought I'd ask. I'm in the same position as you, happily employed, and had a few offers this week from other companies =D
user47589
17:27
oic.
user47589
lunch time
@Amy get some butter
17:43
@MikeAsdf That's paula deans son as a child
user47589
It's Paula Dean as a child.
She ate so much butter her hair turned into the color of butter
makes sense
Is there a way to store lists in AppSettings, without using stringly typed objects?
@KendallFrey Not really no
You can do a delimited string
and then parse it when you read it
17:56
What about elsewhere in a config file?
Dunno if that's feasible
Maybe try adding your own section?
Basically we have some app settings that we want to refactor to be a list of lists
I have vague memories of setting up custom configsection handlers
<MYSection>
<someCollection>
<add key="blah" value="blah" />
</someCollection>
</MYSection>
18:00
So excited .. @KendallFrey is here and alive!
Question for you, Oh Skillful One?
Lately we put all our complex settings in the sql database so we can change at runtime in auzre without a role restart.
hmm... looks like setting up a custom section is probably overkill
@Darek *O
I got a RegEx: (\'[^\']+\'+) which correctly captures all names from this string
/content/folder[@name='Claim Ad-Hoc']/folder[@name='UK']"
But it fails flat if the name contains an apostrophe
clearly
Any way to change it to permit a single or double apos inside?
18:02
not without more information
Like?
How do you tell the difference between a ' in the name and a ' as a delimiter?
As always an excellent question, I'd say if the opening apos follows = and the closing apos is followed by ], all other apos are to be considered inside
='(.+?)'\]
the name will be in the first group
alternatively
is it possible to get rid of the ] at the end?
18:06
(?<==').+?(?='\])
@Darek end of what?
Never mind, the second one work and made me pee a little bit in my pants because I couldn;t control my excitemtn
You are the best
user47589
erm
regex has a tendency to do that
How does one read this construct of yours
Never mind
one sec
18:33
guys I'm digging in the new code base and I'm a little confused on how they do validation
Given the id of the element, how should I displace the error message if jquery validation fails?
They have an on click event
which checks if the fields pass jquery regex
and if it does, then append the elements to the list
but I want to add the else condition if the validation fails
@CuddleBunny That still doesn't make sense. MS themselves said that the new start menu and taskbar are XAML. And they're not WPF components.
@DemCodeLines you can build something in XAML and turn that into anything... it's just a markup language.
need some help populating a dropdownlist in MVC. i have this in my class:
`public SelectList LicenseNames { get; set; }`
this in my controller:
DataTable LicsTable = BW.SQLServer.Table("GetLicenses", ConfigurationManager.ConnectionStrings["ProfressionalActivitiesConnection"].ToString());

                ProfessionalActivities.Models.Licenses model = new ProfessionalActivities.Models.Licenses();
                model.LicenseNames = new SelectList(LicsTable.AsEnumerable().Select(row =>
                new SelectListItem
                {
                    Value = row["Description"].ToString(),
                    Text = "test"
                }));
and this in my view:
@Html.DropDownList("LicenseNames", new SelectList(Model.LicenseNames, "Value", "Text", Model.LicenseNames.SelectedValue), new { htmlAttributes = new { @class = "form-control focusMe" } })
when i run the page, i get a dropdownlist but all the items are like "System.Web.MVC.SelectItemList" instead of my text value field. any ideas why?
Anyone wanna buy a Jetbrains license key? Any product for 1 year :D
@Bubbas it looks like you're making a new selectlist with your other select list in it?
18:45
yea... it does kinda look like that
so what would the syntax be on my HTML helper?
i think thats where ive fucked up?
@tweray @NickSuperb - got the code running really nice now using a datatable. (need to read up more on some other datatable tricks)
@CuddleBunny There are only 2 technologies on Windows that use XAML: WPF and UWP. The start menu is not a wpf app. So uwp?
@DemCodeLines C/C++ is the start menu most likely
Start Menu existed prior to UWP, and UWP requires windows in order to run, so windows can't be built using UWP ;)
They literally said that they rebuilt start in xaml
@Sippy, how much? lol
18:55
Decided against it lol
Cos the cheapest thing on there is like £45
And the most expensive thing is like £120
so kinda hard to figure out how much
Good evening, gents.
@DemCodeLines saying "I used XAML" is just like saying "I used HTML." My HTML can be in websites, mobile apps, desktop apps, etc.
there are also a handful of lesser used things like silverlight and workflow that use xaml.
Assembly is fun but thank you to everyone who invested their time and intelligence into developing the high level languages we enjoy today
user47589
@DemCodeLines where did MS say this?

« first day (1964 days earlier)      last day (3210 days later) »