« first day (472 days earlier)      last day (3548 days later) » 

10:00 AM
redeploy should do as "workaround" though..
 
nice workaround
 
aaand it's because we're adding and not editing.
fuck
if (mode == Mode.ADD) {
	roleService.add(currentRole);
} else {
	roleService.update(currentRole);
}
and we can't remove rights...
(killing baby unicorns)
4
laters, grabbing a bite
and DON'T YOU DARE STAR KILLINGS OF BABY UNICORNS AGAIN! ♥♥
 
Everytime I say "this is Code Review", what I really mean is "THIS IS SPARTA!!!"
4
 
10:29 AM
1
Q: Benchmarking of SQL data crunching using a common datum

Phrancis@nhgrif and I were curious about a couple different ways to aggregate a number of records based on a duplicate/common datum. Two different ideas will be shown. Any advice on all code but especially making it perform better is appreciated. Note: @nhgrif did not write most of this, so if it's wro...

0
Q: decouple software components via nameconvention

csteinmuellerI'm currently evaluating alternatives to refactor a drivermanagement. In my multitier architecture I have Baseclass DAL.Device //my entity Interfaces BL.IDriver //handles the dataprocessing between application and device BL.IDriverCreator //creates an IDriver from a Device BL.IDriverFact...

0
Q: Nested Sets in JavaScript

nandI created a procedural implementation of the nested set model in JavaScript. The use case for this small library was that the front-end(presented as an MVC) needs to traverse hierarchical data from back-ends. The library that I created satisfies the following: DSL-like architecture, with clea...

1
Q: find duplicates strings in a column and loop it once - optimizing code - VBA

musiclandiaI have col D(in sheet1 called Students), col A (in Sheet2 called Students too)and col B(in sheet2 called Age).In colD there are a lot of similar Students name and are sorting A to Z. I have this code that finds matched students name and put his age in col D(sheet1): Set rngSearch = Sheets("Shee...

0
Q: Function return a value without return statement

LOsunGIt is found that Function can return a value without using the keyword Return, function name is in same datatype as its return value. the following code will explain this: Public Function SSNvalidate(ByVal SSN_input As String) As Boolean SSNvalidate = (SSN_input Like "###-##-####") End Funct...

1
Q: SortedSet of scored items

Konrad HöffnerI want to return a set of items with an attached score to the user so that the user can easily iterate from highest to lowest and get the n-th highest items. Problems The JavaDoc of SortedSet.first() says "Returns the first (lowest) element currently in this set.". However in this case it is a...

0
Q: detail view, edit field: create input, buttons

user348173I have a detail view for my object. There is only one field available for editing. When I click on the Edit button I want to hide text for field and show input with OK and Cancel button. This is my ugly code: // create kendo buttons $('#editGrnz').kendoButton({ icon: "k-icon k-i-pencil", }...

0
Q: Design of class hierarchy for a object formatter api forces derivatives to know too much

TazManWhile learning object oriented design I'm judging my own design critically. This framework should be able to print objects in either XML, or JSON, I've stubbed in a basic implementation to avoid getting into details of XML and Json parser apis for now. So I made the Formatter be the base class....

 
▲▲▲ WHAAA
too much
 
@CaptainObvious did you sleep well ? The first one is 6 hours old.
 
@Heslacher what the...
@CaptainObvious considering VTC for that one...
design question ftw..
 
1
Q: Parallelizing some model fitting code using multiprocessing

ali_mI'm trying to refactor some code for fitting parametric models that are defined symbolically using Theano. My goal is for all models to expose a common interface so that, as far as possible, they can be drop-in replacements for one another. To that end I've tried to encapsulate each model within ...

 
10:53 AM
I smell a reversal badge. — Vogel612 8 secs ago
 
@Vogel612 Meanwhile it still doesn't work in our TCG room
 
@skiwi the atom-feed?
seems to be somewhat chat-wide...
on so-chat the xkcd-feeds stopped working.
 
@Vogel612 I have been afraid that CR would one day be a "1000 questions, 10 answers"-type of site
 
@SimonAndréForsberg why you telling that to me??
 
It felt like we got quite a lot of questions yesterday as well
 
11:08 AM
hum. Wasn't here that much ...
 
because you seemed shocked when @CaptainObvious posted 8 questions at once
 
jumped between meta-chatrooms and our meta-discussion, my code, and a few SO questiosn..
well..
8 questions at once is kinda heavy.
(well 2 instaclosed, but...)
 
wait a minute...
 
8 questions in separate messages not a problem
 
@CaptainObvious that question was posted 7 hours ago
2
 
11:09 AM
@SimonAndréForsberg exactly
 
@CaptainObvious You sick? (...er than usual?)
Incoming reversal badge:
-19
Q: How could I optimize this script?

irywJust wondering if there was someone out there that could offer help in optimizing my script. <?php /** * If you don't understand what this does * you have no hope as a programmer. * */ function usage ( ) { // Ahhh the marvels of echo, such a wonderful tool // yet so advanced that a begin...

 
yep. Already upvoted the answer ;)
 
I need more votes for my reversal badge on that question.
17
A: How could I optimize this script?

nhgrifThis script is a total of 99 lines. Of that, 49 lines are insulting, annoying, and ironic self-congratulating comments. In general, comments are good. They help any future maintainer (including yourself when it's been 6 months since the last time you looked at the script) to understand what ...

 
Already done @nhgrif
 
▲ that ♥
 
11:18 AM
I wonder if Reversal badge can be given multiple times to the same question?
This post doesn't say anything about it:
247
A: List of all badges with full descriptions

PopsQuestion Badges Return to Top Altruist bronze; awarded once Award a bounty on another user's question Awarding means manually selecting a bounty winner; letting the system auto-award half the bounty does not count (source) Not awarded on per-site metas, since those sites do not have bount...

so I assume that it can
 
Yeah.
 
I was actually almost downvoting the highest scoring answer, @nhgrif, to make it easier for you to get the badge
 
@Vogel612 Yes... oh it's chat-wide? That's good.
Well... "good"
So I am not stupid.
 
lol.
 
0
Q: Sorting numbers into bins

MrXSo I have two 2D arrays of doubles a and b, both have two rows and different numbers of columns. a [[ 1,2,3][4,5,6]] the list b represents a number of bins of numbers and the list is a list of numbers I'm trying to sort into these bins. I need to go through each of the numbers in b to look ...

 
11:37 AM
@Vogel612 Do you know if TPTB are aware of the Atom feed issue?
 
@skiwi no clue..

 Tavern on the Meta

MY GOD, IT'S FULL OF STARS AND BACKLOG! General friendly chit-...
ask there ▲
 
Greetings, Programs.
 
0
Q: Generic Entity Framework Query in CQRS

Frederik P.I've been working on our application (CQRS and DDD) for awhile now. The application architecture is well layered and thought through. However we are having difficulties in decide where to put the below code, in such a way that it makes sense from an architectural point of view. What the code do...

 
@Donald.McLean Greetings, User!
 
Greetings User!
 
11:47 AM
Greetings
 
How is everyone this morning?
 
quite fine ;)
 
Happy to hear it. =)
 
java y u no have String.Empty??
 
12:03 PM
@Vogel612 What's wrong with String#isEmpty()?
 
@skiwi String.Empty == "" -> true
 
@skiwi He's referring to the way superior semi-constant that translates to an empty string
 
it's a value, and not a boolean method.
 
What is wrong with "" then?
 
@JeroenVannevel I still don't know why it's better but when writing C# I got used to it.
 
12:06 PM
It reads easier and clearly conveys that it's an empty string and not a typo
 
0
Q: How to use 503 page when my site is maintenance mode?

PrakashThis is my code for 503 page. header.php if(getOption('maintence_mode')==1) { header("location:503.php"); exit; } and 503.php <?php $protocol = "HTTP/1.0"; if ( "HTTP/1.1" == $_SERVER["SERVER_PROTOCOL"] ) $protocol = "HTTP/1.1"; header( "$protocol 503 Service Unavailable", true, 503 ); hea...

 
The only negative point of it is that it isn't a constant
so you can't use it as the value of an optional parameter
there you have to use ""
 
Why does MySQL/MariaDB know no lists? :(
 
@JeroenVannevel wait that was the whole point??
 
@Vogel612 It bothers me when I have to use those quotes, okay?!
 
12:09 PM
hmm. Yea it definitely clarifies the intent..
 
Code's been added, can we get some reopen votes?
0
Q: Nested Sets in JavaScript

nandI created a procedural implementation of the nested set model in JavaScript. The use case for this small library was that the front-end(presented as an MVC) needs to traverse hierarchical data from back-ends. The library that I created satisfies the following: DSL-like architecture, with clea...

 
and it looks much better like this:
whatever = (whatever == null)
    ? String.Empty
    : whatever;
 
<=> whatever ?? String.Empty
 
Optional<String>
 
well I just did that...
and it sucks..
 
12:18 PM
@janos thank you, and Congratulations to you too
 
Monking @Bhathiya-JaDogg-Perera.
 
damn firefox always starts on 2nd monitor, Monking !!
(both physical one and the chat room)
2
;)
 
1
Q: Is it ok to review only a part of the code

TopinFrassiRecently, I went through a question where there was quite alot of code and I didn't have time to read it all carefuly (I still went through the code!). I still posted an answer that reviews the code that I read, is it okay to do this? Should I tell the user that I didn't have time to read the who...

 
IMO a duplicate.
but as I was unsure which question exactly I took this one:
20
Q: Jack of All Trades, Master of None - Let's work together to offer ultimately better content, faster

jt0ddNhgrif pointed out a great idea: Teamwork "I think it's probably best if the question instead has several good answers that each address a specific topic. The result will be that no single answer is complete, but every problem is addressed between all the answers." Alright, so that ...

btw. that question is still unanswered....
 
some pretty images are there wow
 
12:40 PM
I wish SQL tables could extend each other...
I may need to be careful for what I wish though.
 
reverse ORM maybe
 
I mean (practicaly) all my tables are having an addedDate and updatedDate with corresponding triggers
it's lame to remake that everytime
 
hehe, If only there were a reverse ORM framework that can create tables based on OOP
 
Woot, HeidiSQL lets me copy-paste columns into different tables
 
I love HeidiSQL too bad it only works on windows
I need a serious favor
 
12:58 PM
@Bhathiya-JaDogg-Perera um. There's like.. tons?
java got hibernate for starters
and c# got EF, code-first
 
eh good to know
I need a serious favor, can someone review this It's not code however gist.github.com/JaDogg/6f8457af06ceb353afd8
 
@Bhathiya-JaDogg-Perera wtf. New Tab got 21 secs on my dashboard..
 
no idea it's not that long just a gist
 
hum...
it would be easier if I could just edit it myself...
 
wait give me a second
^^ that one can be edited
 
1:13 PM
I'm starting to feel that we're kids in the backseat of a car going "Are we there yet?" over and over again. I hope the Community Managers does not think of us like that. — Simon André Forsberg Jul 25 at 9:22
2
 
@Bhathiya-JaDogg-Perera too late, already posted a comment, running from top to bottom.
but have a review from someone else, too. I am no native English speaker.
@Malachi damn it took you long enough..
 
Thanks
@Vogel612 Imagine if you are an interviewer would you hire me if I say those things ?
 
@Bhathiya-JaDogg-Perera not in the current form and depends on how much I'd need you..
probably yes, but very much depending on the personal encounter.
are you acting professional ...
also if I were an interviewer I'd maybe not know whether there are reviews of intern's code
next error btw...
or whether we perform database backups or not.
that's mostly technical, and I am not sure how the practice is about that...
 
I have no Idea, I usually spend a lot of time in front of a computer, I rarely talk with people, This chat room is my social life
 
In Germany interviews are often led by one of HR, with one for learning how to interview, and one for possible technichal knowledge
 
@Bhathiya-JaDogg-Perera welcome to the club..
btw, that "about yourself" 2. is maybe a bit overkill....
 
I used to start it as "I started programming when I was 14 years old..." Then I thought it might sound arrogant
 
@Vogel612 I have no idea what it means in the first place
 
@JeroenVannevel somehow that's getting quite close to the point I am trying to make in a more sensible way here...
after all I already smashed his face quite a few times in my comment on the gist.
 
1:33 PM
Monking!
 
@Vogel612 thanks for the support btw.
 
@Bhathiya-JaDogg-Perera also a nice exercise for myself.
 
proofreading english text and "CV" ;)
I'll need to write my own CV's again in no time,.
 
I have to update mine as well. It has to reflect my responsibilities more
but I have only 1 line of whitespace left
after that it'll start a new page
 
1:37 PM
@Vogel612 what are you talking about?
 
Jul 25 --> today: ~1 month
 
"Which database runs on the staging server?" Answer: "The staging database"
3
Yeah... uh, that helped me a lot
 
0
A: Sorting numbers into bins

Heslacher Here's the code I have, which works perfectly int k = 0; for (int i = 0; i < a.GetLength(1); i++) { for (int j = 0; j < b.GetLength(1); j++) { //if fragment falls in bin, add it to the new object if (a[0, i] <= (b[0, j] + binSize / 2) && a[0, i] > (b[0, j] - b...

"Here's the code I have, which works perfectly"
Now I wait for his/her answer on this.
 
1:57 PM
1
Q: A long conditional active record query that seems like it could be solved in a more clever fashion

EcnalyrI have a conditional active record query that checks to see if a relationship of type X exists (.count > 0) where attribute x and attribute y match specific input or if they match when attribute x and attribute y are switched. I currently use an || operator with two long active record queries to...

 
rescue time ?
 
chat.se > eclipse > cr > idle-process > chat.so > chat.mse > gist > git-bash > localhost site
yep
 
other than 1hr anime and 1hr chat, rest is very productive for me
 
2:08 PM
This works in every other SQL engine, but of course not in Access... duh thanks Micro$oft.
 
shouldn't that be in a where ?
I have no idea though
 
I'll try it in where but just last night that worked just fine in and
Though a bit slow
Nope, doesn't work in where either (gives incorrect result set)
 
@SimonAndréForsberg - added Summary and Conclusion sections. — rolfl ♦ 9 secs ago
 
@Phrancis you could go for the "old-style" "join" using where.
 
2:18 PM
@rolfl Implementation only conclusion is formatted quirky
 
I don't see what you mean, @Vogel612?
can you edit it to fix the problems you see?
 
you mean that single space?
> * This is on topic*
 
ahh, I see.
 
should probably be: This is on topic
but all else, nice summary.
 
2:21 PM
Fixed.
and thanks.
I just realized that the summary is bigger than the previous content.
 
@Vogel612 turns out I was as usual... this here works perfectly and instantly:
select
  entries.Serial_Number
, sum( switch( entries.Status = 'ADD', 1) ) as [Added]
, sum( switch( entries.Status = 'CAN', 1) ) as [Cancelled]
, sum( switch( entries.Status = 'DEL', 1) ) as [Deleted]
from HVAC_Duplicate_Entries as entries
group by entries.Serial_Number;
 
@rolfl well it's a specification by example. maybe "summary" is a bad name.
@Phrancis that's definitely easier ;)
 
JAMAL HOW'S THE JAVA?
3
 
Sanity check... my results are incorrect....
2
 
HI I JUST WOKE UP TOO LOUD NOISES
 
2:32 PM
SORRY!!! I WAS JUST DOING SOME THINGS IN META
 
Monking! MONKING!
 
(begins frantically searching for ohropax)
@Mat'sMug monking
 
select
  entries.Serial_Number
, sum( switch(
    entries.Status = 'ADD', 1,
    entries.Status = 'CAN', 0,
    entries.Status = 'DEL', 0
    )
  ) as [Added]
, sum( switch(
    entries.Status = 'ADD', 0,
    entries.Status = 'CAN', 1,
    entries.Status = 'DEL', 0
    )
  ) as [Cancelled]
, sum( switch(
    entries.Status = 'ADD', 0,
    entries.Status = 'CAN', 0,
    entries.Status = 'DEL', 1
    )
  ) as [Deleted]
from HVAC_Duplicate_Entries as entries
group by entries.Serial_Number;
^^ there we go
 
(finds them and, with a satisfied look on his face, proceeds to block his ears for any loud noises)
@Phrancis wtf???
 
2:34 PM
I know, right. Access is weird like that. There's no else function in a switch (read case when...then) looks like you have to explicitly define each possibility
 
HVAC? You in the cool air industry?
 
That would be a PITA with more than a couple possibilities
Sort of, it's insurance/warranty related
But yeah I talk to HVAC contractors day in and day out
 
coooool ;-)
 
ba-dum, tss
 
2:43 PM
Actually, I found out it's my source data that's wrong, not my query. Great.
 
hey everyone!
 
Hi @Marc-Andre
 
How is everyone ?
 
Not bad for a Tuesday
 
@Vogel612 what took a month? me getting to 10 k? what are you talking about?
 
2:46 PM
0
Q: CLI Command Search Tool - XML Framework

vbiqvitovsI'm working on the OSCP, and Information Security certificate based around penetration testing. CLI-based tools seem to be the core of most pen-testing assignments, so I'd like to build a tool aiding in command/switch searching. The goal of the program will to (eventually) load command line arg...

 
@nhgrif you going to Bikes Blues and BBQ? not sure if I am going to be able to ride down or not.
 
@Malachi well you referenced the comment.. That comment was posted one month ago.
Hi @Marc-Andre, btw ;)
 
@Vogel612 oh I see what you are saying, I like to reminisce about old times!
 
@Malachi "unobvious behavior should be commented" ;) --> how would I know you like being "sentimental"
4
 
@Vogel612 I like funny stuff and think it should be observed frequently to reduce the stresses or Work or whatever stresses the stressee
 
2:51 PM
You should stress that more in your (sometimes very short) visits here, then we can adjust ;)
 
see the comments btw
 
Ew, YouTube comments.
 
@Bhathiya-JaDogg-Perera LMAO
 
3:12 PM
@Vogel612 what are you talking about? short visits? I am here all day long! :) intermittently.....
@Bhathiya-JaDogg-Perera SQL? no one mentions SQL?
 
congrats for hitting 10K @Malachi!
3
did you contact Tim?
 
0
Q: How much code is too much?

Hanii PuppyI have a small set of classes that form an events system that I would very much like opinions on, but they're made up of a few classes that together amount to around 1kloc. I'm a little worried that this might be considered a little bit taking the piss ^^; How much code is considered acceptable w...

 
congratz :D
 
@Malachi well SQL won't count as a language for the guy who wrote C++ compiler..
 
@Mat'sMug no I haven't, but I should....
@Mat'sMug and thank you
 
@StackExchange I should try to find a dup for this.
 
> Mehdi Mirzai1 month ago

For me it's Java, C++ , C#, PHP and Javascript. Although I do agree that Python is useful, it's not powerful compared to Java or C++/C#. For me Python is a language for people who are beginners.
Python is used by tons of people, including Hackers IIRC
2
 
What, hackers don't write VBA?
3
 
maybe windows hackers, those weird vb script viruses
 
I'm starting to consider my VBA repository pattern implementation as a hack...
19 more questions and is badgeable!
 
3:29 PM
@Mat'sMug The best hackers write VBA.
They use windows API calls. =)
 
VBA is a hack
 
^^^that.
 
LOL
 
> The best hackers write VBA.
they have no choice. VBA implies Hacker.
4
 
I've written a few beautiful hacks to make things work.
Of course, beauty is a bit subjective.
 
3:30 PM
there's just something about the term "beautiful hack" that doesn't add up...
 
That's the point.....
 
...but I see what you're saying :)
 
Remember this?
5
Q: Extending the VBA Extensibility Library

ckuhn203The Microsoft Visual Basic for Applications Extensibility library let's us meta-program VBA, but the way it handles (or rather, doesn't handle) getting to the actual subs and functions is clunky at best. I decided to write a few class modules to make it easier. Considering this can be kind of da...

That whole project is one big hack.
 
damn right
we need to hack delegates into VBA. Seriously.
 
Trying to find the time brother.
I mean, pointers are available... and I've seen some crazy things done with next to the metal memory management.
I want to give @ptwales' method a shot first though.
 
3:39 PM
yeah, haven't had a chance to dig into that yet
 
Neither have I. I've been waiting to post Enumerable until I get the chance to.
foooooooddddddddd bbl
 
0
Q: PHP Session Checking

CrizlyI've got a website where the user can log in and when they do two session variables get set: if (validate_password($password, $user_hash)) { $_SESSION['usrnam'] = $username; $_SESSION['uid'] = $user_id; $stmt -> close(); $con -> close(); dirto_homepage(); exit(); } Then...

 
@CaptainObvious is it just me or the most common tag used with , is ?
3
 
Isn't that ironic? lol
 
3:50 PM
 
@Mat'sMug fancy a SEDE query? (need to get my SQL up and running, else I'll lose it completely)
 
1
Q: Reviewing reviews

DaggIf I find a review that seems to have a lot wrong with it, as in, I want to go through the review line by line and review it as if it had been a question, what action should I take? A downvote is a good start, but it doesn't help explain what's wrong with it. Comments could help in cases where ...

 
... codereview.stackexchange.com/questions/tagged/php ~> "Related Tags" - x240 / x226 / x170 :)
3
 
^^ ew.
Well, I guess it can, if it's done properly. Which it almost never is.
 
actually != by definition
is getting closer, as well as
 
4:17 PM
@ckuhn203 thoughts?
Private Function IRepository_Search(ByVal terms As SqlResultRow) As SqlResult

    Dim sql As String
    sql = selectString & " WHERE CONCAT(Code, ' ', Description) LIKE CONCAT('%', ?, ' ', ?, '%');"

    Dim result As SqlResult
    Set result = cmd.QuickExecute(sql, terms("code"), terms("description"))

    Set IRepository_Search = result

End Function
should I put it up for review?
 
um... SQL-Injection?
 
not quite
Private Const selectString As String = "SELECT Id, CustomerGroupId, RepId, Code, Country, Name FROM Planning.Customers"
 
@Mat'sMug isn't that kinda irrelevant?
as long as you can go for:
 
none of the values come from user input
 
makes more sense now.
 
4:22 PM
actually...
 
reminds me of that one php review I had.
 
damn
you're right
 
if your method were private, you were secure against SQL Injections.
 
wth
 
0
Q: d3 stacked charts and transitioning scales

lebolofirst time poster and looking forward to contributing! I'm new to d3 and wanted to create a stacked chart. I'm trying to link elements to the data when possible and let d3 handle the rest. So I'm hoping for a review with comments about my logic and suggestions around performance, efficiency and ...

 
4:23 PM
anyway bbl, lunch time
 
laters ;)
Ima just leave you a link here, gimme a sec.
 
I feel pretty sure MySQL would throw a syntax error if you tried to close the statement within the inserted values (because of the concatenated closing parenthese) but that's luck
 
6
A: Updating necessary data using just one function

Vogel612You are vulnerable to SQL Injections. Even when you are using Prepared statements, doing It wrong will kill you. $sql = "UPDATE users SET " . $data[0] . "=? WHERE username=?"; This makes you exposed to SQL injections because your function is not private. You should not allow "user" access to...

 
Unless... you ended it with --
 
@Phrancis which is why most SQL injection examples do exactly that..
 
4:26 PM
Is that supposed to be a whole word search @Mat'sMug?
Yeah. What @Phrancis said.
I'm not sure if that's the kind of thing you can really abstract safely.
 
I'd be tempted to create a stored procedure on the SQL side and just pass the parameter to it... safer & faster. But I feel VBA should have a way to sanitize it too
 
@Phrancis write your own mysqli_escape then
 
^^ that's gonna happen. Right lol.
 
0
Q: Neighbours from point connections

JohnI am working with a mesh of points (in 3d, although I doubt it makes a difference). The mesh is given as list of lists, each list containing the three vertices of a triangle in said mesh: for example: 0 2 6 0 12 15 2 66 10234 I want to find the neighbours of each point, i.e. to have an array ...

 
@Vogel612 still at work!?
 
4:31 PM
@skiwi about to leave, y u ask?
 
because it's 6.30pm
 
well it's not like I am really working anymore at this time
 
hm, reasons then I guess
 
I logged until 18:15..
@skiwi to be exact a limit to 3 hours internet / day and only until 10 pm at home..
not that the PC would then stop running..
 
3h/day, only until 10pm... so you're home around 7pm and eat at work?
 
4:36 PM
Ah, another new std::vector reimplementation. Still better than a linked list.
 
0
Q: STL Vector Implementation

Kaidul IslamI've implemented a simple vector like STL C++. template <class T> class Vector { public: typedef T* Iterator; Vector(); Vector(unsigned int size); Vector(unsigned int size, const T & initial); Vector(const Vector<T>& v); ~Vector(); unsigned int capacity() const; ...

 
Why do linked lists get such a bad rep?
 
@skiwi usually home at 6:45 eating something and then...
but in principle that fits the bill..
 
@Phrancis A lot of people like to try to implement one themselves, and they usually get it wrong (myself included). I believe they also don't have too many use cases.
 
@Jamal shouldn't this be ?
 
4:42 PM
New guy out hunting zombies.
1
A: Does this unusual data access pattern create any problems?

TopinFrassiFirst of all, your code doesn't compile, you have a poor lonely extra closing bracket in your Update method. Next, your Update method shouldn't Insert if Update doesn't work. If the entity doesn't exist, you should return false. Otherwise rename your method UpdateOrInsert so that it is clear wha...

 
0
Q: Effective usage of multiple joins in Eloquent dependent on variable

azngunit81I have an Eloquent model that has multiple types of joins that is used to filter out different request to grab the data of movies e.g.: Actors, Directors, Writers, etc... The joins are necessary because they use unconventional pivot tables. All the queries and eloquent here works and gives the d...

 
@Vogel612 Yeah, it can be.
 
4:55 PM
You know... there used to be a time when I actually managed to read all messages in The 2nd Monitor...
I have stopped trying to do that these days.
So if you have anything that you think I should read, ping me
I do scan through a lot, but I guess I'm missing a lot
5
 
I miss a lot too @SimonAndréForsberg. It's always in the background, but I only glance at it unless someone pings me.
@Mat'sMug Oh shoot. No. Those are parameters. So, the like is ok, but... I don't know. There's not enough context. I'd have to see how it's called.
 
For the record, me too. I can't keep up, and I suspect the other mods too.
so, @rolfl works for me.
 
0
Q: Creating a "Produce and Consume" using Swingworkers

Sillicon TouchI am experimenting with the produce and consume concept while trying to incorporate it into my own project. I basically have two Workers in a small example I made: ProduceWorker: Populates a list with random numbers with a delay to emulate a real world adding in the doInBackground() method. The...

0
Q: Google Map, SVG Graph and ruler

gedysanI would like to get feedback on the code. It is working and can be seen here. I welcome any kind of feedback, since I am just starting to use JavaScript. Epecially in the case of performance, there might be better ways to code. $(document).ready(function () { var latlng, altitude, time, di...

 

« first day (472 days earlier)      last day (3548 days later) »