« first day (1349 days earlier)      last day (3601 days later) » 

user1804599
1:00 PM
wat do
 
0
Q: Can I use an if statement in a while loop with PHP?

DF340I'm making a login form for my site and I need multiple if statements and an if statement in a while loop. Would this work with PHP?: <?php $email = $_POST['email']; $password = $_POST['password']; require("connection.php"); $login_query = mysql_query("SELECT * FROM users WHERE ...

ffs
 
anyway it's certainly true when using a 100W amp in a small room like me :D
 
hmm
I'm thinking about emailing my CV to that guy trolling for VC++ jobs
I should probably make sure I put on it my proposals to Committee, right?
 
if you got an accepted proposal then definitely yes
 
no
 
1:06 PM
otherwise perhaps just a link
unless your proposals were destroyed :)
 
it's not that they were destroyed, I couldn't afford to go back to Committee with revisions, plus the fact that they were giant dicks
 
Put a link and write a comment that they are dicks.
btw, do you happen to know if there ever was a proposal for "strong typedef"?
 
I don't believe there were any serious proposals
 
strong typedefs are like ranges- everybody seems to want them in principle but disagrees about what they actually should be and how they should behave.
 
@Puppy which guy?
@Puppy also are you still in total job limbo? Or do you have anything promising?
 
my surgery is on July 1st
after I'm done recovering from that I'm planning on ramping up
assuming that it's not delayed or cancelled again
 
so you're waiting for after the surgery, I see
 
@rasharm_, Seattle
I do things and stuff. Mostly things, sometimes stuff.
2.6k tweets, 208 followers, following 317 users
 
thanks brother for your reply but i have findout the reason and that is this line int size = sizeof(obj.name); i have replaced it with int size = strlen(obj.name); — shujat7 Oct 6 '13 at 20:36
...
 
1:20 PM
but technically
my sickness benefit ended on 21st and I'm on jobseeking now, so I've gotta get some real jobseeking done this week
 
you better
I'm having the 2nd meeting with Quantum on 30th
 
good luckj
 
it's going to be mostly finances I think
since they said upfront they always have 3 meetings, and then followed up with "if finances are OK when can you start" after the 1st one
I am still going to try to negotiate a Surface Pro 3 from them as my PC :3
apparently Thinkpad T440 is still topping the Ultrabook charts
 
user1804599
I wonder how assoc is implemented because defrecord.
 
oooh new laptops from dell
uh wtf 4GB RAM
are we fucking medieval now or what
 
1:29 PM
But they have SSDs.
 
actually no :/
I can't seem to find the professional series
 
no idea
ahh there they are
8GB1 Dual Channel DDR3L at 1600MHz
256GB Solid State Drive
Intel® HD Graphics 4400
looks ok.
I wish it had Iris GPU tho
aaah there's an option with i7-4650U
great.
 
wooo. Got a new job
 
congrats!
where?
 
1:35 PM
my school haha, making mobile apps
counts for course credit so can't complain
 
You're unhappy.
 
lol
hmm you know the only fucked up thing
 
They're paying you in course credit? :lol:
 
is that they still don't have thunderbolt
I mean why would you not have thunderbolt
oh wait.
 
The fuck is thunderbolt
 
1:37 PM
waaaait
> n addition to the XPS 12, Dell also upgraded its XPS 27 all-in-one with a Haswell processor along with a new Nvidia graphics chip and a thunderbolt port.
 
user3010322
@Xeo I'll use range-for when range-based abstractions feel... nicer to use.
 
FUCK WHY NOT ON XPS 12" :/
 
Xeo
@ThePhD err
Wrong answer
 
@ThePhD wut
 
@CatPlusPlus nope, free class, paying money, and course credit
 
1:38 PM
@CatPlusPlus PCIe-over-cable, basically
 
Xeo
replace your stupid integer loops with range-for. That's the least you can do
 
very fast extension port for everything
 
user3010322
But integer loops are niiice. :c
 
PCs use thunderbolt ports now?
 
1:38 PM
Thunderbolt (codenamed Light Peak) is a hardware interface that allows for the connection of external peripherals to a computer. It uses the same connector as Mini DisplayPort (MDP). It was released in its finished state on February 24, 2011. Thunderbolt combines PCI Express (PCIe) and DisplayPort (DP) into one serial signal alongside a DC connection for electric power, transmitted over one cable. Up to six peripherals may be supported by one connector through various topologies. Description Thunderbolt was developed by Intel. It was commercially introduced on Apple's 2011 MacBook...
 
yay the interview went well, I think
 
Thunderbolt is that protocol that got to version 2 before version 1 gained any adoption.
 
@Crow of course? why not?
@ThePhD they are not.
 
@BartekBanachewicz I mean I've only really seen them on mac laptops. I kinda just thought it was an apple thing at this point
 
said I'll get a call in <= two weeks with an answer
 
1:40 PM
@Crow no, it's not.
 
Xeo
@ThePhD You suck.
 
I enjoyed talking with the guy about baldur's gate and my ancient PC
best part
 
but only Apple is pushing it enough in mobile market, sadly
 
user3010322
:(
 
Never heard of it
 
user3010322
1:41 PM
It doesn't even matter. :c
 
@ThePhD it does.
 
@ThePhD nope. plain integer loops like yours are boring
 
@CatPlusPlus basically if your device is to have only one interface, it should be it
especially in a small thing like an ultrabook or a tablet
 
USB3 is hard to beat as a competitor.
 
Yeah right
 
user1804599
1:41 PM
@BartekBanachewicz no, it should be USB.
 
here is a funny loop:
for (auto i = N; i --> 0;)
 
@BartekBanachewicz So that you cannot use it anywhere, duh.
 
you can't connect a screen over USB
 
user1804599
Because there are more USB devices than Thunderbolt devices.
 
I have it on my macbook. The only problem is buying all the dumb adapters
 
1:42 PM
USB is pretty much limited to peripherals only
 
FireWire was faster than USB too
 
@BartekBanachewicz And there's little else than Apple screens that you can connect over Thunderbolt.
@BartekBanachewicz Screens are peripherals, btw.
 
@R.MartinhoFernandes what? Of course not
@R.MartinhoFernandes oh well I meant stuff like mice and keyboards
@CatPlusPlus it's not only about raw data transfer speed
@R.MartinhoFernandes it's backwards-compatible with mini-DP so you can use any screen you want
 
@BartekBanachewicz and yet I do
 
@BartekBanachewicz What else then
 
1:43 PM
@BartekBanachewicz Well, screens, then.
 
@BartekBanachewicz yep
 
@CatPlusPlus the fact that you can connect for example, an external GPU using it
 
Even Google knows it's all about screens.
 
@R.MartinhoFernandes and who would ever want to connect a screen to their computer, eh? :D
 
@BartekBanachewicz Which is about speed
Also I'm thoroughly unimpressed
 
1:44 PM
@jalf And who would ever not want to connect anything else? (context: chat.stackoverflow.com/transcript/message/17387811#17387811)
 
Well there's speed and there's speed.
@R.MartinhoFernandes a full docking station
that, incidentally, has USB on it.
 
:lol:
 
Everything is USB, which is exactly why USB3 is hard to beat.
 
It's not on technical grounds.
 
1:45 PM
dunno about you, but I like my docks to have screen support
 
I figured it out
 
I'm pretty sure the computer he's looking at also has USB though. :p
 
Laptops need to be able to plug in external GPU via this thing, because Intel GPUs are bad
 
supporting thunderbolt doesn't take that away
 
especially if you have a 12" laptop that doesn't have two DVI ports
 
1:46 PM
Dunno about you, but I don't care about you.
 
Booyah
 
Docking stations are unbelievably common.
 
I don't really care about me either
 
@R.MartinhoFernandes as specialized per-device solutions
 
@jalf Exactly. Everything has USB.
 
1:47 PM
Thunderbolt makes it very possible for third parties to provide nice docks
USB has been around for a while, but the lack of reasonable screen support is a dealbreaker in that area for me
 
You're one tough audience
 
@BartekBanachewicz Makes it very possible, yet it didn't.
 
@R.MartinhoFernandes what? It did.
 
@CatPlusPlus ... of one.
 
what do you think was the pic I've posted
 
1:48 PM
@BartekBanachewicz Yeah, that's why Thunderbolt is so incredibly popular.
 
Wiki says Thunderbolt was created in 2011
I haven't heard of it till now
 
@R.MartinhoFernandes it's gaining popularity alright.
Point being, laptops use mini-DP already
 
there's zero cost for the user to switch from mini-dp to thunderbolt, but it gives you much more
like, right now my GF uses two cables to hook up to her screen: miniDP and USB 3
 
Seriously.
 
1:49 PM
Just found this unfun bug:
Clock::time_point valid_until = Clock::now() + duration;
    // ^ duration was seconds::max() => overflow :(
 
Wikipedia can have a list of Thunderbolt compatible devices.
These products support the Mini DisplayPort/Thunderbolt port, certified products can be found on Intel's interoperability website [https://thunderbolttechnology.net/products Thunderbolt Products] Laptop Computers ;Acer * Aspire S5 ;Apple * MacBook Pro (February 24, 2011) * MacBook Air (July 20, 2011) * MacBook Pro with Retina Display (June 11, 2012) ;Asus * G55VW * G75VW, G75VX * G750JW, G750JX, G750JH ;Clevo * P370SM * P375SM ;Hewlett Packard * HP Envy Spectre XT TouchSmart (December 2012) * ZBook 15 Mobile Workstation * ZBook 17 Mobile Workstation ;Lenovo * Thinkpad Edge S430 (...
 
I don't get your attitude now TBH
it's just a fucking interface. Like headphone jack
 
My attitude is that you're wrong. Thunderbolt is not in any way popular.
@BartekBanachewicz ... which is everywhere, therefore popular.
 
whatever
 
But can you mine buttcoin with thunderbolt????
 
1:50 PM
yeah, that's the level of discussion I bail out.
EOT.
forget I ever said anything about thunderbolt.
 
Never forget
 
The amount of devices supporting Thunderbolt is so small that a machine with no other interface would be annoyingly crippled.
 
Somehow my butt analogy is more apt than I thought
 
I'm so going to abuse cursors for this T-SQL exam
 
1:52 PM
Why are you annoyed at people making fun of butt interfaces
Thunderbutt
That's how I'm gonna call it
 
basically, I'm going to use variables and cursors to mimic foreach on any data set that I can find
I don't feel guilty at all, anything in T-SQL looks like a fucking hack
 
It's you
You're the hack
#mysterysolved
 
I'm not a hack
 
I'm a hack #woah
 
1:55 PM
the XPS 12 also have WiDi support
 
It was me all along
 
I'm a haxxor
 
@LightnessRacesinOrbit Coulter is such a fucking troll
 
Plot thickens
 
@AlexM. Exhibit A: "basically, I'm going to use variables and cursors to mimic foreach on any data set that I can find"
"cursors"
I rest my case.
 
1:55 PM
inb4 Miracast critique ITT
 
@R.MartinhoFernandes wut, I didn't get it
 
@LightnessRacesinOrbit WTF
 
@LightnessRacesinOrbit Ahahahahaahahahahhaahah this is indescribable
Just
Wow
 
@AlexM. If you want to emulate foreach, yes, anything in T-SQL looks like a fucking hack. You wrote it, though.
 
> Even in football, by which I mean football
 
1:57 PM
> Individual achievement is not a big factor in soccer. In a real sport,
 
@R.MartinhoFernandes well, I didn't invent the cursors
 
> in addition to learning English
 
@AlexM. So what.
You used them.
 
> It's foreign.
 
1:58 PM
To hack a foreach.
 
325
Q: SQL Server: Check if table exists

VincentI would like this to be the ultimate discussion on how to check if a table exists in SQL Server 2000/2005 using SQL Statement. When you Google for the answer, you get so many different answers. Is there an official/backward & forward compatible way of doing it? Here are two possible ways of doi...

 
Yeah, no cursors.
 
seriously, even for something simple as this, the portable solution is like
IF (EXISTS (SELECT *
                 FROM INFORMATION_SCHEMA.TABLES
                 WHERE TABLE_SCHEMA = 'TheSchema'
                 AND  TABLE_NAME = 'TheTable'))
BEGIN
    --Do Stuff
END
 
> Soccer is like the metric system, which liberals also adore because it's European.
 
@AlexM. Which looks like a hack why?
 
1:58 PM
lol
 
In no way it's because it's an international standard no
 
TIL you can buy a 320x240 projector for 200PLN
talk about HD
 
Cue "because I don't know SQL"?
 
user1804599
@AlexM. IF is not portable AFAIK.
 
user1804599
There's CASE.
 
1:59 PM
Is "conservative" a synonym for "brain-damaged" because that's what I'm getting here
 
user1804599
@BartekBanachewicz HD is nice.
 

« first day (1349 days earlier)      last day (3601 days later) »