« first day (688 days earlier)      last day (3628 days later) » 
00:00 - 18:0018:00 - 00:00

00:00
There are 1228 unanswered questions
@Duga Wow.
@Duga O HAI
I wonder how many unanswered questions SO has...
2,208,271
00:23
0
Q: Create pairs from a set of numebrs

SteephenIs there any better solution to this problem? //(a,b) and (b,a) are allowed #include<map> #include<iostream> int main() { std::multimap<int,int> A; int num[4]={2,4,5,6}; for(int i=0;i<4;++i) { for(int j=0;j<4;++j) ...

0
Q: Implementing Sequence abstraction

overexchangeBelow is the code that implements sequence abstraction using type abstraction class Sequence(in Java) /** * * @author mohet01 * * @param <T> */ public class Sequence<T>{ /** * Abstract data type constitutes constructor and selector functions * written below under representa...

0
Q: Swift api controller

JonnnyI've just started iOS development and learning swift. My code below works. But I'm interested to know in ways I can improve it having no experience in iOS Swift prior to this attempt. import UIKit class NewsViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { var table...

God
You have a nice looking site, AirEuropa. It just sucks that every pageload takes 20 seconds.
00:43
Looks like a question for @nhgrif: codereview.stackexchange.com/questions/84746/…
00:53
0
Q: Adding data to the DB in EF without using navigation properties

mdcSo I wonder: Is there a better way other than assigning ID's manually and creating separate lists for each model the way I have? (for this particular scenario). If so, how? (Still taking the conditions into account). The conditions are: Through an external source get a list of unique book...

Tuple<List<Models.Author>, List<Models.Book>, List<Models.Topic>> newData = GetAuthorBookTopic();
twitch
0
Q: I am trying to display the volume of a sphere given the radius from 0 - 4 in increments of 0.2 C++

Taylor ClarkCode should display Radius: 0.000000 volume: 0.00000 Radius: 0.200000 volume: 0.0335103 Radius: 0.400000 volume: 0.268082 Radius: 0.600000 volume: 0.904778 Radius: 0.800000 volume: 2.14466 Radius: 1.000000 volume: 4.18879 all the way to Radius= 4.0 but 4.0 isn't showing and some of the decima...

This guy is learning about the dangers of using floats and expecting accuracy.
lol wow
01:53
0
Q: Sort a stack in ascending order

giulioSort a stack in ascending order. You may only use one additional stack to hold items. Any comments on my solution? Worst case complexities: Memory complexity: O(n) Runtime complexity: O(n^2) Also, I implemented the Stack class as having Object items and then cast these into Integers to be more...

0
Q: .Net BouncyCastle - CSR and Private Key Generation

Robin RiegerThe purpose of this code is to generate the CSR and the Private Key. The scenario is that we have some clients for whom we run websites and for the SSL component we want to have a page on our site where they can input the fields like domain name, company name etc and then the system will generat...

02:07
0
A: Adding data to the DB in EF without using navigation properties

Jeroen VannevelThere are definitely some things to say about this. As far as I can tell you're making things harder than they should be and by changing some things you can make your code a lot more readable. I'll work through your code first and look at your approach afterwards (mainly because I haven't read th...

Covered every unique line of code
I hope he likes refactoring
02:25
0
Q: Arena memory allocator

chbaker0I'm not exactly sure if this is technically an "arena allocator" but it serves a similar purpose: providing a fast way to allocate a lot of objects that can all be freed at once. #include <type_traits> #include <utility> #include <new> template <std::size_t BlockSizeIn = 1024> struct BlockProvi...

02:57
0
Q: Returning Function Calls from an Array within a JavaScript Function

JasonI'd like to use JavaScript to generate HTML. I've made a JavaScript function object that has two parameters; a string and generic object. The string is used to specify the type of HTML element you want to generate and the generic object is a container for key value pairs specifying the element's...

03:20
temp = "hello";
g1 = Integer.parseInt(temp);
> right away throws me an error. What's happening?
No. Shit.
Wat!
First off, you need to use a try catch there, don't you?
And second, duh....
parse with a try-catch makes no sense because then you should have just used TryParse
Oh, doesn't TryParse ever throw?
if the input can be something invalid, it should be done with TryParse. If it can't then you use Parse and there's no need for a try-catch
No, that's what the Try-idiom is about
no exceptions, only a return type of bool with an out parameter to return the value
Oh, OK.
Thanks.
03:32
Cuda is awesome :)
But the code looks ugly.
04:00
Probably belongs over on codereview.stackexchange.comPhil 48 secs ago
04:18
So MySql, is this a programming language by itself?
mysql is a database that implements SQL, which is considered a language, yes, but mysql is more than just the language.
Ok
Are you familiar with set theory?
to a dgree, yes. As it applies to SQL anyway, the academic side is gibberish to me.
Is the database analogous to set theory?
Mostly, yes, in the sense that it performs intersections and unions of data.
relational databases (like mysql, and most other SQL-driven databases), all have another dimension with is the columns of data.
04:26
So essentially matrices and set theory
(sorry I am a math student with no knowledge of this stuff)
so, typically you have to 'project' common fields from data sets in order to perform the intersections (joins), and that produces the 'selection'.
matrices not so much.
I want to make a website with databasing as a hobby, and I was recommended python and mysql, which they linked me to pythonanywhere.com/user
matrix implies both dimension have the same data.
a database table can have different data types in each column.,
@rolfl That would be a square matrix you refer?
no.... it would be me saying: matrices and relational databases are non-comparable concepts.
there is no analog of a matrix in a relational database.
the analog of a set is apparent though.
consider a 'simple' database with two tables..... related to music....
04:29
A relational database is like:

Person, age, gender, owns a cat

1,16,F,Y

2,18,M,Y
That's just a table.
Okay, I don't know what a relational database is haha
No, you're on the right track...
but, a table is just a collection of rows.
a set of rows.
each row has a number of fields.
all rows in a table have the same fields.
In order for there to be a relational database, there has to be another table and a relationship between them.
otherwise all you have is a tabl.e
04:31
So two tables with a relation
Correct...
Your table is not what would be considered a good table....
your table really should be 3 tables....
there should be:
PersonName -> columns: Person, Name
Ahhh I think I see, you want to have person vs each variable
PersonGender -> columns: Person, Gender
PersonCat -> columns: Person, OwnsACat
now, you have three tables, and, the Person column is common to all of them.
Yep
Okay that makes sense
So, in relational databases, you can say that the personName table has unique Person values, but the names may not be.....
for example:
1  John
2  Sally
3  John
4  Betty
1 and 3 are different people with the same name.
The set of people is (1,2,3,4)
the set of names is (John, Sally, Betty).
04:35
To continue the math analogy we are surjective but not injective, and if noone had the same name we would be bijective
With a mapping from Person \to Name
probably, that's where my limits are... ;-)
Haha alright, that's very helpful
But, what you can do with SQL, is "select" the columns you want from a row set....
so, you could select Name from PeopleNames
the result of that is another set, with 1 field.
or, you could intersect tables using projection (conditions on rows), and selection, and intersection......
select Name
from PeopleName,
        PeopleCat
where PeopleName.Person = PeopleCat.Person
    and PeopleCat.OwnsACat = 'Y'
So, there are three concepts in there....
The and PeopleCat.OwnsACat = 'Y' is a "projection"...
it reduces the PeopleCat set to only those rows where they have a cat.
Ahhhh that is very cool, very cool indeed
The middle segment is:
from PeopleName,
        PeopleCat
where PeopleName.Person = PeopleCat.Person
That's a join, or intersection.
two sets of data, intersecting on a collection of common fields.
04:40
Yep that is really good
The first line is a selection, with is a filtering of the interested columns....
Where can I learn the actual language easily? Where can I get tutorials for the coding?
for mysql to start with?
Each relational database tends to screw things up with irritating incompatibilities
04:41
Actually a tutorial on python with mysql would be great if one exists
Are you familiar with pythonanywhere.com
?
I would google for those questions....
I am "old school". I learned this stuff last century
Oh okay haha. Usually a recommendation is better than blindly googling I find.
"relational theory" is a good search term for the academics behind it.
w3schools actually looks like a decent mysql introduction....
Note that relational theory, SQL, and the interface to your favourite language, are all different problems to solve.
Does python + mysql actually make a good database website(in the sense that I want a website where you can interact with things that modifies a database and prints things from the database)
Sure, python has good "bindings", especially to mysql... it's a commonly used backend.
you will also find that "mariadb" is mentioned a lot... mysql has been 'forked', and mysql and mariadb can be handled as a single "unit".
MariaDB is a community-developed fork of the MySQL relational database management system intended to remain free under the GNU GPL. Being a fork of a leading open source software system, it is notable for being led by the original developers of MySQL, who forked it due to concerns over its acquisition by Oracle. Contributors are required to share their copyright with the MariaDB Foundation. It intends to maintain high compatibility with MySQL, ensuring a "drop-in" replacement capability with library binary equivalency and exact matching with MySQL APIs and commands. It includes the XtraDB storage...
Since most of the original mysql devs now work on mariadb, it is likely that mariadb will "happen"
My files are copied, I am off to bed.
04:51
Thanks heaps!
05:33
0
Q: Deleting email using mailcore with xcode imapSession

iamdavidlamThe following function works fine. However, deleting 1 mail takes about 4 seconds (from start of operation to the firing of the completion handler). Currently, using mailcore2, copying mails on the Gmail server. Any significant issue spotted by any guru? Or am I just making a mountain out of a m...

-1
Q: Making a link downloadable in html5

Charles WeziHow can i make a link downloadable using anchor tags? example: <div> <video src="videos/cat_video.mp4 controls loop preload width="600" height="300"></video> <a href="videos/cat_video.mp4"> Download</a> </div>

0
Q: An equation as a string. Parse it and calculate the result

Maksim DmitrievThere is a job interview question, and the source of the question is here. The solution is pretty simple. We just need to split the input string by + and then by *. Then we compute products in a nested loop and sum up all the products. Here is the code: public class Main { // http://www....

06:21
0
Q: Can you tell me if my C code is good, world class, or very good

cshlkwsdue to been unable to ask a C programming language expert or advanced user in person I'm posting this simple question about my C code, today I was refreshing my C with exercise 5.4 of the C programming Language 2nd Edition by K&R, which is a very simple exercise, the question is: do you think t...

07:00
0
Q: LiveDateTime Synchronizing with the Server Time

Kid DiamondThe following JS code object displays the time and updates whenever it changes. If a timestamp URL is supplied, this will be the source of time so that it doesn't have to rely on the client's unreliable date (which can be changed anytime and affect the result). Else, there is unfortunately no ot...

0
Q: Removing Namespace from generated XML

SandySandsThe following XML is the ideal XML for my code that I need to achieve. <ARequest xmlns="http://test.com/AClass/2015" TimeStamp="2015-01-01T06:39:09"> <Authentication UserName="ex" Password="*@#ME"/> </ARequest> But I get the following XML <ARequest xmlns:xmlns="http://test.com/AClass/2015" Ti...

0
Q: Faster way to sort a list of objects based on a attribute in Python

user3671001I've got a list of object in python which i want to sort based on a attribute. I have done it using: list.sort(key=attrgetter('ColumnName')) I have found using profiling my python script that it takes more execution time for the sort(). Can anyone suggest a better and faster way to sort l...

monking @all
07:23
0
Q: Compile-time printf format checking

Steve LorimerCompile time checking of printf-like format strings Inspired by this open ticket on boost, this seeks to complete the work there Given a printf-style format string and associated arguments, a static_assert is performed on whether the format string and arguments are valid. I'm particularly inte...

0
Q: Remove elements from an array

FernandoI'm trying to do a code which works with arrays, the thing is that I need to do a method delete(Object e) which has to delete all the objects in the array that equals "e", the thing is that I can't use any of the methods in java.util, and I can't use List or ArrayList, I can only use "for" and ha...

07:54
code optimization belongs on Code ReviewArun A.S 50 secs ago
08:22
This belongs to CodeReview.SE — amit 13 secs ago
I'm voting to close this question as off-topic because it should be on codereview.stackexchange.comJoachim Pileborg 17 secs ago
0
Q: Avoiding repetitive Nothing/Just checks in PureScript (Haskell)

adrianton3I'm trying to transition from JavaScript to PureScript (a Haskell spinoff that transpiles to JavaScript). For starters I coded this: getAt :: [String] -> Number -> Number -> String getAt strings x y = case strings !! y of Nothing -> " " Just line -> case charAt x line of Nothing ->...

0
Q: Strip non [A-z|0-9|.|_] from string?

A TInput ^#%foo.bar#%#%canhaz%# Output foo.bar#%#%canhaz Function (attempt 0) #!/usr/bin/env python from string import punctuation strip_special = lambda s: ''.join(c for c in s if c not in (char for char in punctuation ...

0
Q: C Algorithm and code feedback and suggestions

ShivarnI've put together an algorithm for an assignment. I've done my best to try and keep it to a professional and readable standard. I'm posting it here so that I can get some feedback and suggestions on what it's like and whether I could improve the algorithm in some way. /***** Algorithm ...

08:54
Update browser plugin
Installer says to please shut down browser first
shut down browser
updating starts
hmm I'm bored
opens browser
brain why
09:43
1
Q: Python script that launches a process that it needs to clean up after and kill on receiving SIGTERM/SIGINT

NobilisI'm using a Python script to run a particular program that occasionally may need to be terminated (by receiving a SIGINT or SIGTERM) in which case a clean up process needs to be invoked (before killing the original process). To test it I start the program in question and then I send a SIGINT to ...

10:09
Monking
0
Q: Wrong answer spoj SCUBADIV - Scuba diver

saravananThis problems link is http://www.spoj.com/problems/SCUBADIV/. It is basically a 0-1 knapsack problem only. The logic I have implemented is Bottom up :) and so far I have found it perfectly correct. But it give WA in spoj. Could some one help me with this. #include<iostream> using namespace ...

10:23
Monking!
1
Q: Object pool with linked list of available objects implementation

YannI was reading some gameprogrammingpatterns (Awesome book, by the way, would reccommend) and was very excited when I learned that unions are a thing that exists, so I decided to implement an object pool as outlined there. I'm looking for a review of the usual culprits. Poor readability, not makin...

Monking too!
monking @rolfl and @skiwi
10:40
early monking there @rolfl!
Well, 06:40... not that early,.
I was on holiday last week.... today I am back to work :(
Aww. Work hard! ;D
0
A: Swift api controller

nhgrifThere's quite a lot to address here, but I'm going to start with my absolute largest concern--one that will cause problems for anyone who uses this: func getData(completionHandler: ((NSArray!, NSError!) -> Void)!) -> Void There are places where it's okay to use the implicitly unwrapped optiona...

Null / nils are generally bad..
@rolfl Ah I was thinking 6 hour sdifference, but summertime already kicked in there?
11:18
0
Q: How to reduce time taken by program to run?

Raju Singhimport java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; public class TestClass1 { public static void main(String[] args) { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter No of e...

@Unihedro not really, you do have to use them correctly though.
11:36
Greetings, Programs.
@Unihedro That's what I like about Monads.
@nhgrif: never throw in null as a parameter unless you read the source code of the method.
The assumption that using nulls are ok will fail you 55+% of the time, even if the documentation hints you to try it.
s,null,nil
Should I kill User/.m2?
@Donald.McLean Monads are elegant language features, but alas not every language comes with them.
@Unihedro that rule may apply to some languages, but not to Objective-C or Swift.
Neither language has a null reference exception.
True..
And in both, we use nil quite a lot to mean different things.
@Unihedro Technically any language that is OO and has for comprehensions can have the best parts of mondads - a user could always write their own.
11:47
If nil isn't useful, why do optionals exist in the languages that have them?
@nhgrif Yes, rethinking about it I understand your concerns in your answer, as nil is expressive as a frequently used language construct in Swift.
@nhgrif In Scala, Nil is an empty list, which is different from null, which is an empty reference.
In Swift/Objective-C, nil is a typedef for null basically.
Bother. Important bug fix in IDEA finally made it into a build, but not one that is available yet.
Monking @2ndMonitor
2
11:58
@Donald.McLean Nice, you reported it?
0
Q: Add list obj to list obj

fak3i'm newbie in java, learning to do some staff with collection, etc. My task is, add list of student's which i've input from keybroad to group. And dont have any idea, how to realize it. So, shall i've use iterator to some how input my students list to group or i need to use foreach loop for it? G...

is this kind of a codereview.stackexchange question? — bitoiu 5 secs ago
@bitoiu only if OP includes his real code instead of an example. =;)- — RubberDuck 1 min ago
@RubberDuck ^^ I think in this case it's not just about that
I didn't look too close @Simon. Only far enough to know it was example code.
which is also correct
12:17
0
Q: Is this pattern for passing a LinqToEntities connection safe?

roryokI've written a Data Access Layer for an MVC app I'm working on. Several Controller methods call several functions from the Data Access Layer. If more than one function is called, I initiate the connection in the Controller and pass it to the DAL, like so public ActionResult MyView(MyModel model...

@skiwi Had to, can't use the 14.1 EAP because Jetty won't run.
12:52
If the code is already working, then the question is better suited for Code Review. Meanwhile - generating all permutations gives a combinatorial explosion, so think about better algorithms. — S.L. Barth 9 secs ago
@Donald.McLean Ah, that was a bummer then
0
Q: Am I allowed to release a fan-made version of a Trading Card Game on a fansite?

skiwiConsider a Trading Card Game that is currently available for play in digital format only, the game in question would be HEX: Shards of Fate, but this question is intended as a general question about all Trading Card Games. Now my idea is to create an AI player for that game and see how good it p...

Possibly anyone knows anything about that?
13:17
Lawyers.
You need to contact the owner of the copyright and get permission in writing or contact lawyers.
Everything written in the answers to that question also applies to your situation. When you want to ask about nuances of copyright law, you would be well advised to ask an actual lawyer, because this website is a website for game developers, not for legal professionals. But he will likely tell you the same: Using someone elses IP without permission is illegal, and you would be very ill-advised to try building a business on it. — Philipp 8 mins ago
Then I wonder how fansites actually do it
This question concerns me based on the edits...
1
Q: Deleting email using mailcore with xcode imapSession

iamdavidlamThe following function works fine. However, deleting 1 mail takes about 4 seconds (from start of operation to the firing of the completion handler). Currently, using mailcore2, copying mails on the Gmail server. Are there any significant issues? func deleteOnServer (indexSet: MCOIndexSet) { ...

@nhgrif that smells of example code based on that edit history, but it looks legit enough.....
gray area..
13:35
0
Q: Asynchronous execution in Ruby

aplavinI needed several classes with methods performing network requests which should be executed asynchronously (with callbacks). To get rid of repetition, I added a mixin and a helper class: module Asyncable def async(&callback) AsyncHelper.new(self, &callback) end end class AsyncHelper at...

0
Q: My Example Code

Андрей Семенцов<?php class SeriesController extends Controller { public function actionIndex() { $this->pageTitle = 'Сериал «Пропавшие. Последняя надежда» - смотреть онлайн'; $this->titleH1 = 'Сериал «Пропавшие. Последняя надежда»'; $count = Series::model()->count(); $se...

My Offtopic Question
I'm voting to close this question as off-topic because there's nothing wrong with the code shared in this question. This question belongs to codereview.stackexchange.com — Farid Nouri Neshat 1 min ago
0
Q: MY example code 2

Андрей Семенцов<?php namespace Compact\SiteBundle\Controller; use Compact\AdminBundle\Document\Page; use Symfony\Component\HttpFoundation\Request; use Compact\SiteBundle\Cache\RedisCache; use Compact\SiteBundle\PageHtmlCompiler; use Compact\SiteBundle\ComponentHtmlCompiler; use Symfony\Component\HttpFoundati...

If you're code works, but you want to improve the quality(which includes efficiency) of it, then codereview.stackexchange.com is the right site for you I believe. If you're code doesn't work, then state the problem, what happens and what should happen. — Farid Nouri Neshat 46 secs ago
@CaptainObvious MY example title 2
13:50
... My Offtopic Question 2
^^that
(also Monking!)
Question ban incoming.
It's not a good idea to post a duplicate of a bad question when that original bad question was closed. Please visit out help center to see how to ask a question here. Then edit your original question so that it may possibly be reopened. — RubberDuck 41 secs ago
Oh damn they posted the same question within like 20 minutes of each other
Posted 2nd q as soon as first was closed?
13:56
Apparently
@nhgrif Yeah.
Should be a minimum 6 hrs between posting questions with same language tag.
Or 24...
Because there are usually some generic enough points in the first that could be applied to your other code in that same language... So don't waste time
0
Q: New to Google Scripts and I'm not sure my script is as efficient as it could be. Could someone take a look at my Google Sheets Javascript?

cwg83This is a script I use on a Google sheet for parsing data that has been pasted from various other softwares and getting it into the correct format and columns on another sheet. function SendToWorkLogCL() { var ss = SpreadsheetApp.getActiveSpreadsheet(); sheet where data is entered: var ...

New to writing question titles and I'm not sure if mine is as good as it could be. Could Jamal take a look at my CodeReview question title? @captainobvious
3
Overloaded is actually what I'm using now. I thought that was kind of a more beginner thing to do. I want to run with the big dogs! Is it okay to overload so much? I don't want to be laughed at in a code review. — John Jenkins 39 secs ago
14:13
0
Q: Project Euler #4 Largest Palindrome Product - Is this Effective Java?

doughgleI'm kinda new to Java (<1 year) but have some background in C and Python. I've come up with a working solution to Project Euler Problem 4 - Largest Palindrome Product. However, I'm not confident this is "Effective Java"... All suggestions for improvement are welcome. I'd especially like feedbac...

0
Q: Java function that blocks until a specific file is deleted

user2813274Created for a console application that will be run in the background on a linux system, giving me a nice way to gracefully shut it down by simply deleting a file (which can be done via script/etc.) public class BlockOnRunFile { private File watchedFile; private Path path; private Wa...

@CaptainObvious Project Euler is the new FizzBuzz, it appears. Though it's far more interesting.
Project euler is better than FizzBuzz, It's all about optimization.
2
Q: "P1 attacks P2" and "P2 attacks P1"

Brained Washed <?php $p1speed = 5; $p2speed = 3; //way for next turn: 1 for turn $p1 = 0; $p2 = 0; if($p1speed>$p2speed) { $p1 = 1; $p2 = 0; } else if($p2speed>$p1speed) { $p1 = 0; $p2 = 1; } $count=0; //begin while($count<5){ if($p1==1) { echo 'P1 turns <br>'; ...

^ Some answers should be deleted MAYBE ?
AAAAAAAAAAAAHHHHHHHHHHHHH!!!! It's Monday.
@Donald.McLean Certainly is!
All day ....
14:26
NoooOOOooo
14:40
0
Q: Java Webserver, need feedback on the structure/quality of my code

hajpI have a programming assignment where I need to build a Webserver which can handle GET and HEAD requests. My webserver is working as it should but since I'm still a newbie at Java I'm not sure about my structure or quality of my code so if you have some criticism/tips I would appreciate it :) Ma...

This does not sound like a very portable alternative... Can you please expand on why you would do it this way? — Phrancis 1 min ago
Just noticed that Q and those A's are from 2012 lol.
@RubberDuck Thanks for the review.
14:56
@Hosch250 You're welcome. Maybe not what you were hoping for, but hopefully it helped
It did.
I got one of my methods "cleaned up" with linq:
return treeDirectories.ElementAt(treeItems.ToList().FindIndex(x => x.Version == version)).GetBranches();
@Hosch250 Much nicer IMO.
14:59
The other two are basically the same.
Linq is great once you get it. Until you do though... yeesh.
One of them isn't working though, because I need the break call.
Unless I do a try-catch, but I have an aversion to those.
I only use them when I absolutely need to.
OK, see you later, lots of school to do.
@Hosch250 treeDirectories.FirstOrDefault(x => x.Version == version).GetChildrenDirectories();
ahh those are two different collections
0
Q: Verilog code for a 4 function simple ALU

amalsomI am implementing a code for ALU. Now the question is My code is running for the op=2'b00,2'b01,2b10.But the fa module for adding 4 bits numbers AI and BI is not changing it's value. My problem is I can't reflect the value of sum in OUT variable. Here is my code - module ha(en,a,b,s,cout); input...

Today was my first time using an INNER JOIN for an actual project. I feel like a new person.
4
15:13
Feels good doesn't it? :D
@Phrancis Yes. Now I still need to find an actual project where I can use PROLOG to solve an actual problem.
2
@Morwenn Would you like one?
Go back in time to kill your mother.
@Unihedro Not sure I want one.
But seriously, PROLOG is not effective for production.
I am sure that it is the ideal tool for one or two problems.
15:17
Let us hope we never see either of them @Morwenn.
^^^^
@RubberDuck Come on, it would be fun, wouldn't it?
in Java on Stack Overflow Chat, 8 mins ago, by fge
$ mvn confused
Yes, I can understand that
$
"Well yeah, I wrote a PROLOG wrapper in [choose your favorite programming language] because it was the ideal tool to solve my very problem!"
0
Q: Ulam numbers/Russian multiplication

MinhsterI'm new to Java and wanted to present to you my latest project: Ulam Numbers /** * This class consists of some instance variables a constructor and some getter and setter methods * It is supposed to implement the Ulam numbers which are named after Stanislav Ulam * Furthermore we will make u...

15:25
@Morwenn It could be, but I'm the duck that thinks VB6 is fun.
I have a sick sense of what is fun.
8
@RubberDuck The sick duck
Ill for the thrillz @skiwi.
@Simon - that palindrome question is now 'cleaned up', right?
nevermind, I tried it, it works.
15:49
Finally got our debug panel working so testers can manually run SPs without needing management studio and so they can do a bit more on the debugging end with certain bugs.
Gareth Rees has been active again.
2
16:08
0
Q: Efficient use of MySQL Connections with Java

Bob StoutBackground: I'm building a dynamic in-house on-call roster that will be displayed on a web page. The end user will be displayed a list of people who are currently (at the time of the database call) on-call for various organizations, departments within the organization, and offices within the dep...

@CaptainObvious Efficient and MySQL should not belong in the same sentence.
Using any database can be more efficient than not using a database if a database is the right tool for the job.
@Phrancis Yeah, because VBA and Access are so good.....
2
0
Q: Why is a sparql returning 405 Not Allowed (culpp on c++)

Hani GocI am using the following source code in order to extract sparql queries results. As results for S._V._Krishna_Reddy I am getting: <html> <head><title>405 Not Allowed</title></head> <body bgcolor="white"> <center><h1>405 Not Allowed</h1></center> <hr><center>nginx/1.6.2</center> </body> </html> ...

16:23
@rolfl Well, there are tools you choose, and tools you're just forced to use, therein lies the difference ;)
I bet Java can actually really help compensate for the shortcomings of MySQL, to be fair.
0
Q: Java class that generates a short url string for a input string

Ajo PaulKindly help me find out if the approach I took to generate random string here is correct to be able to return appropriate short urls. import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Random; import java.util.Set; /** * ...

I still remember the old days (1 year ago?) when I'd literally need to hunt down Java questions, now we get flooded with them
> This team is going from a .Net to a java platform. The purpose of this resource is to be able to hold the fort down on the .Net side of the house while the team transitions and gets trained up on the java platform.
It's like looking back in time
@JeroenVannevel I disagree, it's more like standing still in time
Time just stands still when you're using Java
16:38
When transitioning from C# to Java it does, and vica versa
At least they are not transitioning to FORTRAN
There's no way you can convince me that Java is C#'s equal. All it has are some fancy enums and broader cross-platform support which is going to fade now
speaking of Java
Tonight in 2 hours I have a skype meeting with some tutoring service. If all goes well, I'll likely be tutoring dos chicas in Java for a few lessons
I don't know who linked this a few days ago, but definitely interesting: ijoshsmith.com/2014/07/05/custom-threading-operator-in-swift
If I didn't hate skype/calls in general so much, I'd be much more enthusiastic about it
@JeroenVannevel I don't think there's point in convincing a C# enthusiast of how awesome Java is ;-)
Who do you think linked it?
Swift > all.
The only downside of Swift is lack of multi platform support.
The more I Swift, the more I am convinced.
17:07
@JeroenVannevel bow chica bow woaw
You never know if a situation like in those adult movies I've heard people talk about arises
@Jeroen - your comment about C#/Java is uncharacteristic.... it is my observation that there are four types of software development: mobile, desktop, enterprise, and cloud. In mobile, the largest growing sector (android), is Java and Javascript based. In desktop, it is actually Javascript based more than C# - although the backends are done in a mix of C#, Java, and others (most desktop functions are now down through the browser, not a custom app).
In enterprise, the bulk of dev is done in Java, with a significant C# chunk as well. But, in the biggest growth market, cloud, almost all servers are Linux, so, you are working in everything other than C# (and .NET, etc.).
Bottom line, is that C# limits you to a small, shrinking area of IT developments.
Sure, it may be nice, but, C# is the next COBOL.
2
I have staked my career on that assessment.
Ah, I forgot to quote an important part
> This is why initiative and in depth knowledge of .NET MVC will be crucial
it is working out for m.
1
Q: Java is it a good practice to have multiple returns

Anand SunderramanI have a piece of code that looks like private Account searchAccount(String accountId) { try { Account account = service.search(accountId); return account; } catch (Exception e) { log.error("searchAccount failed", e); e.printStackTrace(); } ret...

17:13
It's about the backend of a website. No doubt that mobile frontends and those things are more Java than anything else
Meh, the backend of a website is typically not C#. StackExchange is the exception to the rule.
I don't think C# will turn into COBOL though, not with the native cross-platform support, open-sourcing initiatives and emergence of things like Xamarin
That's what they said ObjectCOBOL would do ;-)
what native cross-platform support?
Java's main selling point is being cross platform. Language vs language, I think C# has a lot more to offer
@rolfl .NET is going cross-platform now.
17:16
.NET will be able to run on Mac and Linux
Microsoft open sourced it, and they are either working on bringing it to Mac/Linux, or they want to community to, or both, not sure.
just a few days ago I saw a Github pull request that allowed simple .NET apps to run on a Mac
@JeroenVannevel I'm biased, but I'd agree with that.
The #1 thing Java has going for it is Java devs are paid better on average.
Oh, and that little embedded system thing. =;)-
And... that little Runs well on linux thingy....
2
I've got a midterm to take, and I don't like midterms :\
17:19
There is something about being a business, and looking at the price of spinning up 100 virtual machines for a job, and what it costs in Linux, vs. what it costs in Windows.
Cloud computing is all about the very low margins on resources, and the rapid availability of scale.
being able to provision a new machine in a few seconds, for a few seconds, is what it is about.
It costs $0 to do that with Linux.
(other than the hardware resource... which, would be more with Windows anyway).
There is not much context given, is this the only code you're looking to have reviewed? Typically a question on this site will have several relevant classes rather than just one method... — Phrancis 13 secs ago
^^ Anyone feel the same?
17:37
monking!
I have downvoted this question, holding off on a close vote for now. If your question is "what's the best practice regarding X?", per our help center it's explicitly off-topic on this site. Good CR questions involve your real actual working code, that answerers usually review against best coding practices. — Mat's Mug 3 mins ago
@Phrancis I see we have similar taste in good CR questions :)
0
Q: Real time head segmentation using opencv

user8264I am using opencv 2.410 to implement a project. My project allows to segment head from video sequence which get from camera. First, I detect the head region and then apply segmentation method for that ROI region. For high accurate segmentation, I have chosen Grabcut method. However, it is very sl...

1
Q: A Trivia game with SFML

The DudeSo i've been making a trivia game with SFML and c++ for quite a while now for my school project and i would like to get some constructive criticism, anything helps from best practices to overall correctness. Everything on github for readability Here goes main.cpp: #include "Trivia.hpp" int ma...

00:00 - 18:0018:00 - 00:00

« first day (688 days earlier)      last day (3628 days later) »