« first day (818 days earlier)      last day (4137 days later) » 

12:00 PM
@JamieTownsend everything is working fuckin fine..:-P i just wanna make it work with forms auth.. and i refer this support.microsoft.com/kb/301240
 
I used to do all that, then I found the login controls and wondered why the hell I was wasting my time
 
I hate it, I hate it, I hate it
but then I hate all controls
it's not a waste, make it once and do it correctly. Then you can re-use
 
@Sean , @JAmie i worked it out and its working fine .. !? i just put this forms auth stuff for improved security :-P check it with your eyes zoomed
 
See that requires copy-pasting my control around all the time
 
12:01 PM
@JamieTownsend just checked out my two tables and there the same barring one filed, my main table has an Index (AutoNumber). The Template doesnt.
 
Like I said, why bother when there's something there for me? =P
 
@JamieTownsend Do i need to replicate it?
 
@codebrain So what's your problem?
 
you can if you want to @Derek? Do you need it ?
 
Not in the template Table
 
12:02 PM
@sean no copy and pasting, use a local nuget repo?
 
then omit it from the insert and select
 
@StuartBlackler Why would I do that? That's more time wasted
 
@JamieTownsend ok mate cheers
 
@sean it takes like 1 min to setup
get a shared folder, goto vs options and put the path to the folder. Job done
 
I have a dll with all my membership stuff in it, I just include it with all my helpers. Simple
 
12:03 PM
@JamieTownsend What about the front-end code?
 
@Sean check that link i added above, there is a method to add authentication cookie , it has "chkpersistantcookie" " what is it? "
 
what two text boxes ?
 
@StuartBlackler Ah didn't know it was that easy
 
and a login button
lol
 
Oh so you write those out every time?
 
12:04 PM
once* per project. Two minute job
 
@codebrain From the article:
<td>Persistent Cookie:</td>
      <td><ASP:CheckBox id="chkPersistCookie" runat="server" autopostback="false" /></td>
      <td></td>
 
no its one checkbox.. and i dont need it ! check the link
 
You really need to move to MVC @Sean - SEE THE LIGHT !
 
@codebrain Essentially a "remember me" box
@JamieTownsend Yeah I might do if I had any use for it =P
 
I moved, it was hard and I refused to listen to people. But now my eyes are open and I fucking hate using web forms
 
12:06 PM
I don't actually do that much work, and it's even rarer that I actually do anything from scratch
 
i dont need it , what should i do with this ?
 
I'm not starting a personal project I'm not gonna finish just to learn MVC
@codebrain Get rid of it.
 
ok done ..lol
ck = new HttpCookie(FormsAuthentication.FormsCookieName, cookiestr);
if (chkPersistCookie.Checked)
ck.Expires=tkt.Expiration;
ck.Path = FormsAuthentication.FormsCookiePath;
Response.Cookies.Add(ck);
 
MVC not as smelly as WebForms
great slogan
 
@JamieTownsend im sending nuclear bomb to your ahs.. FY
 
12:07 PM
still shit though :p
 
@Sean thnks :-P m so dumb shit
 
To my "ahs" ? wtf is that
 
its how u ass
 
hi
 
lol
 
12:08 PM
I have a slideshow on a page and a textbox and button on one of the slide
 
You're not even speaking english @codebrain lol
 
@Asifa : Hi, @JamieTownsend its just a useless chkbox im ignoring it
 
on button click however I am getting the default value and not the textbox change value
 
@JamieTownsend sometimes i dont , u dumb ahs:-P
 
12:09 PM
morning!
 
@WileyMarques Morning.
 
any suggestions pls
 
@asifa put your code that updates the textbox around a if (!ispostback)
 
@Wiley: morning..its 5.41pm here
 
The textbox value is changing when the user enters any value
 
12:12 PM
yes, when you are setting the default value of the textbox, wrap that code around what I said. Because everytime you postback it is being reset
 
@JamieTownsend, This look ok :-
 
Assuming I have understood you correctly
 
DataTable dt = new DataTable();

            string sql = "INSERT INTO [TaskTable] (AgentIDAssigned,TaskName,ReportType,ScheduledDate,Completed,AssignedBy) " +
                         "SELECT (AgentIDAssigned,TaskName,TaskType,ScheduledDate,Completed,AssignedBy) FROM [TaskTemplate]";

            using (OleDbConnection con = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Documents and Settings\riversd\Desktop\OSTDatabase.accdb"))
            {
                using (OleDbCommand cmd = new OleDbCommand(sql, con))
 
@Derek use a stored procedure buddy
if your able to
 
This sounds more accurate. Azure hosting for 1 website with 1 db that contains 1gb of data and 50gb of bandwidth is $19.36US/month if you pay by the year
 
12:14 PM
but it looks ok anyways
 
@JamieTownsend whats a stored procedure dude lol
 
@JamieTownsend Ima noob
 
Google is your friend :)
 
apart from the unnecessary string concat yea that looks ok. I wouldnt use a data table/adapter though
 
12:14 PM
What database are you using @Derek ?
 
@Jamie access db by the looks of things
 
That's $100 more than my LAMP stack, it's slower, and I'm limited in terms of sites and domains I can host off it.
 
I'm having to use a god damn Access db for this :-(
 
Is there stored procedures in access? I've not used it in 8 yrs lol
 
So, @Derek (I think it was you who asked if I was going to stick with azure), I have to say no.
 
12:16 PM
@Billdr :(
@JamieTownsend I'lllook into it lol
2
Q: Can i create stored procedures in MS Access 2010?

EgyEastCan i create stored procedures in MS Access 2010 ? If yes please tell me how

 
@Jamie <asp:Textbox id="txt" value="test" runat="server" />
 
there are queries @Derek @Jamie but I don't know if you call them in the same way
im off to the physio. Wish me luck :(
 
<asp:Button id="btn" runat="server" onclientclick="return chkemail();" />
 
@StuartBlackler good luck.
@JamieTownsend going for lunch! Thanks for teh advice dude, be back soon.
 
@asifa in your code behind file do you have a btn.Text = ?
your welcome @Derek
 
12:18 PM
in the chkemail function i am alerting the textbox value which i get as test even if the user changes it to abc@yahoo.com
i am not using codebehind for this
 
I am going to need some code @asifa - have you created a question on SO ?
 
no
 
Ooooh I'm just so f-ing good
Nothing was working in a php-app that i got a mission to fix. The dude that created the system wrote <=? $variable['column'] ?> instead of <?=
changed it, and now eveything is working
 
I think the code is just the textbox and button code which i gave you and a jquery alerting the textbox value on the button click
 
well... except for everything he hardcoded :D Like it always being 2012
 
12:21 PM
@Stripps you called yourself so "f-ing good" - then mentioned PHP. Shame on you
 
Not my choise :( My boss just gave me this system with a mission to fix it
Dont think they have the budget to rebuild it to c#
 
PHP to C# is like updating your classic ASP website to .Net - you might as well just start over
 
Disagree
 
PHP and ASP are procedural, .Net is event-driven
 
I'm trying to remember what I converted from php to mvc4 recently...
 
12:25 PM
unless it was a small project, I would just start over
 
I want to say it was the basic oAuth client
 
yeah see, on a properly large system not on something piddly, I would start over
 
uhhuh
 
the amount of time you spend going "WHAT THE ACTUAL FUCK IS GOING ON HERE?!?!" is going to be equal to the time you spend getting out of them what they actually need
 
Yeah well, it aint gonna happen :P
Barely got the budget to fix the problems
 
12:27 PM
Oh. See... l2polylingual, n00b. (I was right the first time)
 
the amount of time you spend going "WHAT THE ACTUAL FUCK IS GOING ON HERE?!?!" -> all the ppl using EF / WCF / Asp.net MVC
 
I can pick up new programming languages in no time, it's understanding other people's logic and code that takes the time
 
there is no value in rewriting something completely with the same outcome
 
Well sure, that's anything.
 
you mean lack of logic :p
 
12:28 PM
@DavidDV No, I mean logic.
it might not be logicAL but it's still logic
If I had to go through my work's system to update it to .Net with all the proper separation and everything I would actually quit my job =P
all the .Net parts are still written as if it was classic ASP, it takes me long enough to figure out what's going on with one page never mind doing that hundreds of times
 
well hard to figure out code = bad code
no question about that
that is why everything I do is done as simple as possible
 
Yeah well we'd all love to be in that perfect world where no code you write or deal with is bad code but this is reality, not theory land
 
wow
are you
...
 
Hell, I spew out bad code daily just to get stuff to work, doesn't bother me =P
 
are you Captain Obvious
?
:p
 
12:33 PM
Kindly go forth and reproduce with short, sharp, jerky movements.
 
@Sean +1
 
simple code to ge things working is not always bad code
 
California knows how to paaaarty
 
"clever" code with a lot of frameworks and patterns and crap that no one really needs is bad code
 
That's nice
 
12:35 PM
@DavidDV Might be if there's gonna be alot of future development
 
no it won't
 
Altho then you can rewrite it when its time for future development
 
if the future development is 100% Sure ok
otherwise you are wasting time
better refactor when necessary
great talk about this
 
We should all go back to writing assembler. Then there will be no more ugly code.
It will either work or not
 
next you know you have assembler design patterns
and assembler best practices
and everything turns to shit again :p
 
12:40 PM
Of course
as soon as something becomes easier to do, you get shit people working with it
shit happens =P
 
@Sean or as a former mentor of mine stated 'a real programmer doesn't do 'if-then-else'; he knows what the outcome will be!
 
Oh, test result number 2: short temper. Advice: don't mix mountain dew and coffee
 
Haha :)
 
@ActionHank Then he was an idiot? Situation: if employee is director, send director email, if manager, send manager email, if any other type of employee, send standard email
 
Hi all, I want to reach current sitemapnode hierarchical level
how to do this?
 
12:44 PM
I actually scored pretty well on the assembler part of my exam when I went to school, without knowing assembler. It was just pure logic
 
@Stripps I'm looking at an exception that's been response.write straight to the page. This is not an application I can even attach the debugger to, I'm raging right now >_<
 
@Sean he programs engine management systems for a living... it doesn't get more straight forward procedural than this
 
Hey guys, loving this website so far and how i can find great answers and get them quickly. hows everyone doing?
 
Anyone who makes broad, sweeping statements about programming really doesn't live in the real world =P
 
Meta question: do any of you know how to edit tags? There's one out there for mvc4 which should be an alias for asp.net-mvc4
 
12:48 PM
@Stripps Then realising it was a typo you'd made that didn't error because a global variable with the same name as the type already existed..... 8D
 
:D
 
@Sean but then again he doesn't live in the real world. He tunes sports/supercars for a living. For us that's just a dream
 
@ActionHank Indeed
 
@Sean , @JamieTownsend, @ActionHank , @Stripps n all Bye..
 
Baba
 
12:52 PM
bye @codebrain
 
Aaaaargh ='[ why isn't this shitty thing sending the GODDAMN EMAIL?!
cya later @codebrain
 
I got this huuge task to do in the future, but still pretty soon
a register form, thats gonna send an email to an administrator, when the admin approves it shoould automaticly generate an account and set it up for a user
And the register form is a pain in the as itself, cuz you should be able to choose soo much
 
Needed: 1 DB, 2 pages, 1 email server. DONE!
Although I do hate those long forms
"Oh and when you tick this, it needs to pop a section out that lets you put x,y and z in it.."
 
@JamieTownsend Hey mate, That Inset Statement worked first time! Kapooooww!!!
 
sweet mate !
 
12:56 PM
@JamieTownsend Thanks for the advice dude. Its a big time saving lol ;-)
 
No problems, one day your give someone else the same advice :)
I just wish someone was there to give me it all those years ago haha
 
oooh I love passive agressive leaving emails... Subject: "Bye".... "FYI, After a quick meeting with my manager this morning I have decided to leave the company, blah blah blah"
so he's either been sacked or can't stand the way things are done so is leaving
 
My funniest was a good bye to everyone, gave a little personal comment about each of them. Then the one I hated I just put. CUNT! lol
 
@JamieTownsend Yeah, tbh mate, I've been self teaching myself for over a year now and until I started using StackOverflow I only had me and google. Its got me so far but theres things you do need support with. I'm teh only guy doing any coding here, so i dont even have a senior to ask for help!
 
Anybody has any question?
May I help you?
 
12:58 PM
Its alot of stuff to enter, and each thing depends on the other stuff, so its like "if you select a instead of b you can get o, p, k, instead of m, i, e".
 
@BinhTieu What is the meaning of life ?
 
haha
love and work
;)
 
love, work sex
 
haha
LOL
 
12:59 PM
If not sex,we can't generate a child
 
If you ask SIRI that question, he say's 'A movie' lol
 
@BinhTieu What is a stored procedutre pmsl!
 
lmfao
 

« first day (818 days earlier)      last day (4137 days later) »