« first day (1138 days earlier)      last day (3177 days later) » 

20:00
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Script to pick random answers for a vocabulary quiz
This doesn't contain a specific question and working code and is therefore on topic on codereview.stackexchange.com . You can do something like syn_error ^= s[i] as a hint. The fewer branching instructions the better. Minimizing the number of variables (registers) also helps. — Maarten Bodewes 57 secs ago
@SimonForsberg I don't know for certain TBH
Me either, as you can see :)
I'll take a look this weekend. Remind me!
I will :)- just checked, doesn't look like you have
Shame on me!
2
20:10
Mostly trying to boost my SQL / Databases numbers, most my endorsements are from back when I worked customer service
20:24
Recruiters are a curse on humanity. At best they are a potent symbol of market inefficiencies, but the reality is they usually introduce inefficiencies and obfuscation for little benefit to either party. — Flexo 22 hours ago
@Legato I've tried, a couple of months back, to write a monopoly simulator to find the optimal tactic.
This is partly to blame on my wife whom challenged me to a match of said game.
@Phrancis linkedin.com/in/ardaozkal add me and I'll endorse
Turned out to be way challenging than I thought, but perhaps I'll take a shot at it anyway. I got a little more time now than I used to.
@ardaozkal great, just added, thank you :)
monking
20:31
just finished 2.5 hours long debugging of asynchronous calls. Never thought that they are so evil
1
Q: Creating a simple 52-card database for Blackjack in Python

Cole DooleyI am fairly new to Python so I am trying to learn more about its conventions and ways to make my codes more efficient. I am making a Blackjack game and so far have this class that draws, organizes, and scores a hand of cards. class Hand (object): def __init__(self, card=[], card2=[], score=0...

@OlzhasZhumabek async is the worst
Monking
@ardaozkal ermph... you can make them more manageable
@ardaozkal, android doesn't allow synchronous calls on ui thread, so I had to figure out how to synchronize 3 calls. In the end, I just wrote some kind of CAS on each of the calls. @Vogel612, monking
@OlzhasZhumabek why do you need 3 calls? why not dispatch a single async call from the UI Thread and do the three calls on a background thread?
20:35
@Vogel612, it is due to glide api and that android doesn't allow downloads on ui thread
@OlzhasZhumabek That's a good thing, download is I/O, I/O shouldn't be done by the UI.
Seperation of concerns.
then you can still synchronize in your background thread
@Vogel612, understood.
Something like chaining calls?
depends...
you could fire and await, too
@Vogel612, I can't wait :) even dummy while loop kills the app
@Mast, I wish it'd be optional
20:37
@OlzhasZhumabek don't wait in a while loop
@Vogel612, I heard that it kills the battery. But I don't have any idea, cause that's my first engage with multithreading
IIUC you should receive a Future from Glide... you can just .get() on the Future
Sometimes it's a good thing a language won't allow a lousy construct.
@Vogel612, get() waits? great
@Mast, C++ never did it, and no one using it complains :) well, at least not to the noticeable extend
You don't know the half of it how many complaints there are about C++.
But it's quite workable and has a very good trade-off.
20:44
@Mast, I'm 24/7 java developer now, and still can't get why timer.cancel() throws all the time
that's why I think that any old/ancient language is cumbersome :)
lol...
Ad 1) Java != Android
Ad 2) timer.cancel() is in almost all cases the wrong way to go about cancelling something
ASM is old. Stop complaining about C++.
@Mast actually complaining about android...
@Vogel612, anything, because I'm so green developer. But had a good knowledge retrieval from today.
Hmm interesting, just found this article, I sent them an email for more information since that's right in my local area
20:48
Android is, uhm, special.
Like a quirky library.
I'm glad I don't have to deal with that.
interestingly Timer doesn't declare any Exceptions to be thrown on cancel()
That's odd, than what does it throw...
RuntimeExceptions
@Vogel612, sorry. It throws everytime I use it after I cancel
even after newing
that's kinda the point
and that sounds like you're doing something wrong when trying to restart your timer
> If the timer's task execution thread terminates unexpectedly, for example, because its stop method is invoked, any further attempt to schedule a task on the timer will result in an IllegalStateException, as if the timer's cancel method had been invoked.
20:51
yeah, but I thought creating new instance will vanish that
sidenote: Timer is basically obsolete
> Java 5.0 introduced the java.util.concurrent package and one of the concurrency utilities therein is the ScheduledThreadPoolExecutor which is a thread pool for repeatedly executing tasks at a given rate or delay. It is effectively a more versatile replacement for the Timer/TimerTask combination
@OlzhasZhumabek it should, so long as you're actually newing up correctly (if you can even do that)
@Vogel612, newing incorrectly with default constructor... hmmm....
@Vogel612, woops, not default
-1
Q: Perl: Good solution to "warning: Use of uninitialized value"

hello worldI am using this code: $page = int(param('page')); This sometimes results in: warning: Use of uninitialized value in int Is this a good solution to resolve this warning, or is better and more succinct code available? if (defined param('page')) { $param_page = int(param('page')); } else ...

either case, you may have more luck in the Android room
gonna grab a good book and have nice read. Cause my C++ way is a bit irrelevant in java :( I can't even write range loop. @Phrancis, you tried to apply? :D
20:54
TTQW
lol yea.. just today I hacked by-ref semantics into Java for a university assignment
Java basically sucks at everything
See yall tomorrow
@syb0rg, bye
@Vogel612, it's actually pointer by value :) because reference can't be null (at least from what I know)
@OlzhasZhumabek apply to what?
You may want to check my profile on CR...
@Phrancis that "teach 50 people to code" thing
you're job-hunting?
20:56
@Vogel612 Yeah I just sent them an email
@Vogel612 Yes, I'm between jobs right now
Things didn't work out where I was working, and besides I almost never got to write any interesting code, it was always just working support tickets
look on the bright side, you don't get a few thousand emails a day anymore :)
That's a fact :)
@Vogel612, ++. Our university has really bad organization with it. Every message is global...
only those that are specifically adressed are not
But yeah I let them know I was interested, that I had lots of experience in SQL, was currently learning Java (which is in high demand here, along with C#) and had been exposed to a lot of various types of code
sounds like someone I'd interview...
20:59
Java doesn't even have pure generics (type casting stuff under the hood), that's why I hate it the most
which reminds me
is @JeroenVannevel around?
anyway if anyone is interested in some madness:
0
Q: How to make LINQ-to-Objects handle projections?

Mat's MugI have implemented a basic (naive?) LINQ provider that works ok for my purposes, but there's a number of quirks I'd like to address, but I'm not sure how. For example: // performing projection with Linq-to-Objects, since Linq-to-Sage won't handle this: var vendorCodes = context.Vendors.ToList()....

@Mat'sMug doesn't seem like it.. "talked 4h ago"
21:01
seen 40s ago, though
also balpha went from dev to Product Manager
> Employees will never be poked with a sharp stick
I think that's in every single of their Job Adverts
0
Q: Combinations: How do I calculate number of combinations a learner could take of qualifications offered in a college?

DarrenSo we have: 2 types - Award and Cert 5 Levels 3 subjects I.e. Award Level 2 in History, Award Level 2 in Art, Cert Level 2 in History, Cert Level 2 in Art, Award Level 3 in History, Award Level 3 in Art...et al Sorry if its too easy, Ive spent the day thinking the answer lay in permutations an...

Doesn't sound like a good position for a programmer, but I hope they find someone good. Sounds like a great (but probably stressful) job
21:04
btw if you have any c++ templates questions, feel free to ping me :) though I probably won't be able to get it faster than Loki, Jerry or Janos
Does Code Review deal with "Workflow review" questions? I have setup some Jenkins jobs using pipelines and Jenkinsfile and I have a feeling that I'm not doing things the most optimal way.
@SimonForsberg hmm... it's probably not much different from hadoop or spark or [insert big data framework] code, IIUC
it seems to be gitty
Probably need to create a tag or two for it, sounds like it may be kind of a grey area, like database design review
@CaptainObvious Haha, the tag is a nice touch.
21:08
@Vogel612 Judge for yourself: github.com/Zomis/Commons/blob/jenkins/Jenkinsfile . The thing is that to recommend better solutions, familiarity with Jenkins plugins would be handy. The solution I am looking for might just be "Use this Jenkins plugin, configure it like XYZ, run builds with ABC."
21:30
0
Q: Vectorizing a biometric matching score calculator involving for loop and if conditions?

shreyas kamathI am working on a biometric matching system and I would like to have few suggestions regarding vectorizing the following code: ref_points=size(tpol,1); %number of rows=number of reference image points in_points=size(ipol,1); %number of rows=number of input image points radsize=7*ones(re...

0
Q: Will it ever cause problems to remove NSNotification observers if one already exists for a given notification name?

Eli AllenI ran into a problem in my app where under some conditions, a view controller might be loaded more than once before its deinit (where I was previously removing the observer) is ever called. So the notification was being added twice occasionally and causing some problems. To fix this issue, I ju...

0
Q: Removing leading white space in question code blocks

forsvarirI've made a couple of suggested edits to this question. The first one was rejected because it deviated from he original intent / it edited code. When I looked at the suggested edit, it did look like I had just hacked away at the code, so I wasn't surprised it had been rejected. I made a second...

Woo
I got good feedback on my first answer here
feels good man
This may be more appropriate for Stack Exchange Code Review. In general I agree with you - layers for the sake of layers is not good design. Each layer needs a purpose; every class needs a responsibility. If you don't have any meaningful business logic, then the BAL may not be valuable for your case. — Tim Copenhaver 14 secs ago
21:51
0
Q: Rot13 JavaScript

Kaan Karacafunction rot13(str) { var codeA = "A".charCodeAt(0); var codeN = "N".charCodeAt(0); var codeZ = "Z".charCodeAt(0); var newArr = []; for(var i =0; i<str.length; i++){ var code = str.charCodeAt(i); if(code>=codeA && code<=codeZ){ if(code>=codeN) newArr.push(String.from...

monking
@Quill monking
22:15
@N3buchadnezzar it does!
And it's a FizzBuzz too hahah, so many of those
Yeah...
However everyone needs a place to start
It's a good beginner exercise
Especially when one generalizes it. I was wondering mentioning you could do it with a dict.
22:18
I think I've made 2 of those, if not 3. One in SQL, it was really overdone but it could do some pretty cool stuff
But I really did not feel the need
0
Q: n-tier c# applicaiton with BAL and DAL methods with exact same names ( signatures etc.. )

Jeremy MillerI was just asking this question over here: http://stackoverflow.com/questions/37846123/n-tier-c-sharp-applicaiton-with-bal-and-dal-methods-with-exact-same-names-sign?noredirect=1#comment63152704_37846123 I'm on a project in which I'm failing to see the point of how a previous developer made dec...

Congrats @janos on the bounty! :)
5
A: Scraping the date of most recent post from various social media services

janosHandling HTTP errors This code seems to be intended to handle 404 Not Found response when downloading a url: # Grab the page, raising an exception if it doesn't work response = requests.get(url) if '40' in str(response): raise Exception('Couldn''t find page!') Unfortunately this is very...

Actually, I have made 4 FizzBuzz, musical FizzBuzz with ChucK, SQL‌​, Java, PHP. The musical one and SQL ones are pretty cool, maybe you should check them out
'def fizzBuzz(num):
    string = ''
    tple = [('Fizz', 3), ('Buzz', 5)]
    for pair in tple:
        if num % pair[1] == 0:
            string += pair[0]
    return string if string else num`
22:28
4
Q: Join us for the second MSE Town Hall on Wednesday June 22nd

AnaLast month we got together with many of you in the Tavern for our first Meta Stack Exchange Town Hall. Like we shared in my original announcement, amazing as meta is, we need to do more to keep lines of communication open with the users who work alongside us to make our software great in the long...

22:39
0
Q: C# derived classes

digital_fateI'm trying to keep my data separate from my UI controls and as such have the following classes: //Data classes public class DataA { public int someNumber; } public class DataB : DataA { public int anotherNumber; } //ControlA only knows about DataA public class ControlA : UserControl { ...

0
Q: Cloning Distinct XML structures without data in PHP

Jeff Puckett III struggled for the last couple days on this question and finally came up with a solution. But it's got so many loops I get dizzy just looking at the code - from recursive functions with loops to loops within loops. I really expected to find a canned function in a popular XML class to extract al...

23:02
2nd SE Town Hall meeting, Wednesday, June 22nd, at 1pm EDT/17:00 UTC
7
@Quill thanks for the FYI
hey no worries
Topic is chat moderation, bring your blame stick and flags
@ardaozkal thank you for the endorsements, much appreciated :)
@Quill You look good in moderator blue!
:) thanks
the tools are pretty cool
Is LL a pretty active site?
for example, you are fourth in network invites @Phrancis
@Phrancis I haven't seen a flag in like 8 hours
23:09
You still got 4 pro-tems if I saw that right
I might check it out, being bilingual I may find something to contribute. Are there tags for specific languages, or is it more general questions?
general questions
@Quill not sure what that means
@Phrancis like when you move messages it invites people into that room
lol and he's got fourth place network wide?
23:10
Ahh ok, well I move messages fairly often since I'm RO in at least 3 rooms
That doesn't really mean much...
I'm RO in 3 rooms, and I barely move messages
0
Q: Extracting queries from controller to model

Szilard MagyarI had a complex query in the controller like: def outgoing_tasks @tasks = current_user. assigned_tasks. uncompleted. includes(executor: :profile). order("deadline DESC"). paginate(page: params[:page], per_page: Task.pagination_per_page) en...

not that I find much time to lurk in the rooms lately
@Vogel612 well you're tenth place, so that's still something
Yea It's missing all the trash I moved out of Chat.SO's Java room
23:15
SQL (or even database) beginner and want to use @StackExchange Data Explorer? Try the new tutorial: http://data.stackexchange.com/tutorial
23:36
113
A: How secure is 'blacking out' sensitive information using Paint?

Ben NAs mentioned in the answers to a very similar question, scribbling over part of an image will destroy the original pixels, assuming that your editor doesn't store any layers or undo history. (Paint doesn't.) There are some things to watch out for, though: The width of the blanked region places ...

hmmm
23:49

« first day (1138 days earlier)      last day (3177 days later) »