« first day (559 days earlier)      last day (3460 days later) » 
00:00 - 17:0017:00 - 00:00

12:00 AM
COBOL programmers get paid a lot...
 
How about Autocode:
Autocode is the name of a family of "simplified coding systems", later called programming languages, devised in the 1950s and 1960s for a series of digital computers at the Universities of Manchester, Cambridge and London. Autocode was a generic term; the autocodes for different machines were not necessarily closely related as are, for example, the different versions of the single language FORTRAN. In the 1960s, high-level programming languages using a compiler were commonly called autocodes. Examples of autocodes are COBOL and Fortran. The first autocode and its compiler were developed by Alick...
 
@nhgrif yes
 
LISP is still used too.
 
because they're the only ones insane enough to take on a COBOL job
 
Well, I had to learn COBOL 2 years ago
so there's that
 
12:03 AM
@hosch250 yes
Clojure is a Lisp dialect
it targets the JVM and is getting very popular
 
I wonder what programming languages will be common 50 years from now...
And whether people will be saying that it isn't worth it to learn modern languages.
C#, Python, C++, JavaScript, HTML and CSS...
Java...
 
CSS is not a programming language
nor is HTML
 
I guess, they are markdown languages.
 
/nitpicking
 
12:40 AM
@Edward @jsanc623 @Abbas Please read about expectations for First Post reviews.
 
@Jamal well, he made me vote at least.
 
1:27 AM
0
Q: Python: algorithm for describing chess positions

UdenizI have an interesting problem with my chess application. The application reads PGN files, and at any time while viewing a game from the file, the function below, when called, iterates over the chessboard, gets the square names for each piece, and then constructs a string containing the descriptio...

0
Q: Generate a random integer of length N with unique digits

AmitThe task is simple: given N, generate a random integer with no repeating digits. Here is what I have now: ''' Generate a random number of length, N and all digits are unique ''' from __future__ import print_function import random from collections import OrderedDict # keep generating till all ar...

 
1:48 AM
0
Q: Implementing `concat` using `foldTree` on Rose Tree

Kevin MeredithI attempted (incorrectly) to implement foldTree here. Recently, I updated it per Petr's help: treeFold :: (b -> [b] -> b) -> (a -> b) -> Tree a -> b treeFold f g tree = f (g (rootLabel tree)) (map (treeFold f g) (subForest tree)) I implemented toList: toList :: Tree a -> [a] toList = treeFol...

 
@200_success Thanks for pointing that out.
 
2:04 AM
0
Q: Refactoring a Crawler

Lucien LachanceI've recently ported an old project and made it object-oriented. However, I've noticed that rubocop points out the following status: Assignment Branch Condition size for fetch_images is too high. [22.41/15]. Can I make this method be made more efficient, perhaps? Snippit class WebCrawler ...

 
2:16 AM
Hi - I'm working on a 2013 homework [question](http://www.seas.upenn.edu/~cis194/spring13/hw/08-IO.pdf):

`nextLevel :: Employee -> [(GuestList, GuestList)]
-> (GuestList, GuestList)`
could someone please take a look at it and help out?
 
0
Q: WinInet c++ Wrapper

nimssonBecause I don't like complex sequences of code for simple functions, I wrote a wrapper for http/https access in c++. Are there any bad programming practices I am using. Is there any functionality I should add? One thing I have not figured out yet is how to determine 'content-length' if it's not s...

 
2:35 AM
Does this belong here or on SO?
0
Q: Algorithm for describing chess positions

UdenizI have an interesting problem with my chess application. The application reads PGN files, and at any time while viewing a game from the file, the function below, when called, iterates over the chessboard, gets the square names for each piece, and then constructs a string containing the descriptio...

Ooops, yes it is.
 
Would general discussion about programming language syntax be on topic here?
 
No it wouldn't
 
I was thinking the programmers chat room but I can't seem to find it
Wait nevermind. Problem solved
 
2:56 AM
well in the chat.. sure
 
0
Q: Create a binary that links to libraries statically using premake

KamI would like to create a binary that links to 2 libraries statically using premake4. library mbm was originally designed to be built using cmake. So to go around this issue I call ./configure then I build it. library jansson was originally designed to be built using cmake. But calling ./configu...

 
3:13 AM
The Captain is a little behind on his announcements.
 
0
Q: Mutual Exclusion with Mutexes

hosch250After I wrote this question: Producer/Consumer programs, I realized that I had forgotten to write a version using mutexes. I have now written a Producer/Consumer problem solver using mutexes using the tips I received from that question. It appears to be working correctly; however, unlike my oth...

 
3:53 AM
0
Q: Shorten if-statement

SpedwardsI want to start off by saying sorry, I wasn't able to search for this problem as I couldn't exactly describe it myself. I have a series of if-statements to account for each scenario. As you can see in the mammoth block of code below, I want arguments to come in any order. How, if possible, can I...

 
@CaptainObvious Hardcode... ALL THE POSSIBILITIES.
Also, PHP indentation looks phenomenal in Java. Especially without spaces.
 
4:23 AM
0
Q: Folding over a Rose Tree : Tree a -> [a]

Kevin MeredithI posted this question on StackOverflow. Given this algebraic data type: data Tree a = Node { rootLabel :: a, subForest :: [Tree a] } deriving (Show) and function: treeFold :: (a -> [b] -> b) -> Tree a -> b treeFold f (Node x ts) = f x (map (treeFold' f) ts) Write a function (usi...

 
 
1 hour later…
5:39 AM
monking
 
0
Q: c# compressing a stream asynchronously, and returning a byte[]

JimAssuming I have to leave the contract intact (take byte[] and return byte[] what's the correct way to structure this asynchronous method? Will this deadlock running in ASP.NET in a web server thread? public async Task<byte[]> CompressAsync(byte[] buffer) { using (var outStream =...

 
5:50 AM
Monking @all
 
Monking @Heslacher
 
6:29 AM
Monking @janos @Heslacher
 
Monking @Phrancis
how's it going guys?
 
6:46 AM
Firefox Developer just messed up a page I was working on... otherwise, good :)
How are you @janos?
 
pretty happy it's Friday :)
 
Band I made orchestral music for just posted their newest song... Anyone want to hear, help yourself!
 
I'll check it in the evening, wife's still asleep
 
I know the feeling @janos :)
Wife's just coming up with a bad cold, trying to let her sleep
 
7:39 AM
0
Q: Reduce code size in calculating a sum over the values of a map in Python

marius_neoI'm coming from the Java world and making my first steps on Python and see how good it is to express more with less code. I'd like to know if via Python the size of the following code could be reduced : column_entropy = 0 for k in frequencies.keys(): p = frequencies[k] / 10 column_en...

 
time to go to work, bye
 
8:00 AM
TTGTB
 
Night @Phrancis
 
8:39 AM
0
Q: NSAssert or NSLog in defaults switch case

SzuI am wondering if I should use NSLog(@"Switch out of range") or NSAssert(FALSE,@"Switch out of range"); in the following example: - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { switch (section) { case kSectionFavoriteCarpark: re...

 
hey
 
8:57 AM
hey @skiwi
 
9:24 AM
0
Q: Image manipulation PHP class using PHP's Image Functions

andrewniteI am working on a image manipulation class for a project to re-size uploaded slider images to 780 X 397 and uploaded avartar pictures to 220 X 220. I am wondering if this is a good way to construct it. A question I have is what would be the best way to handle an image that is smaller then 780 X ...

0
Q: Using I18n in capybara feature specs

papirtigerRSpec.feature "Classic Authentication" do let(:submit) { find(:css, 'input[type="submit"]') } let(:user) { FactoryGirl.create(:user) } context 'Registation' do background do visit new_user_registration_path page.fill_in 'Email', with: 'test@example.com' page.fill_in...

 
9:48 AM
0
Q: calling a function more than once but getting the same

Iman#include <stdio.h> #include <stdlib.h> #include <time.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int Integration () { int t=0,d=0; //printf("%d",RAND_MAX); srand(time(NULL)); double ...

 
10:06 AM
Does anyone here know how I could match in a string like *a* the words a? (Generally: I want to match all words directly between asteriks)
 
?
 
Or am I thinking too difficult... I was thinking about greedy matching
But don't think it's neccessary
 
give sample strings and wanted matches
 
THEN *minCost* <- length of the tour represented by *R*
That should match minCost and R
But I also want to match the actual *'s, as they should be replaced with some other constant string (different for the asterik before the word, and after the word)
 
What about He*llo* world?
 
10:09 AM
That I don't care about, wouldn't be "valid"
 
so (word boundary or start of line) asterisk any characters asterisk (word boundary or end of line)
Hmm...
 
private static final Pattern REPLACE_PATTERN = Pattern.compile("(\\*)(\\w+)(\\*)");
That probably works in principle... but
The replacement is more tricky
I kind of want to do a "rolling replacement", where based the match id (first asterik, word or second asterik) I do different replacements
 
wait, what?
how about just matching asterisk whole word asterisk first
then replacing it via replacing the matched character count with your new substring
 
Something like that could also work
I'm trying to figure out how to obtain the un-matched sequence using a Matcher
 
hmm
I have XML that describes what a set of functions will return
... I'm wondering how bad of an idea it would be to parse it and generate code that will automatically handle function output.
 
10:21 AM
I'll probably break a whole bunch of things
Matcher matcher = REPLACE_PATTERN.matcher(inputCopy);
StringBuffer stringBuffer = new StringBuffer();
while (matcher.find()) {
    String leftAsterik = matcher.group(1);
    matcher.appendReplacement(stringBuffer, "\\mbox{\\emph{");
    String word = matcher.group(2);
    matcher.appendReplacement(stringBuffer, escapeString(word));
    String rightAsterik = matcher.group(3);
    matcher.appendReplacement(stringBuffer, "}}");
}
matcher.appendTail(stringBuffer);
Aaargh, my laptop decided to reboot just now
 
argh
"body": "Could not connect to target server. Please check the following: Do you have a valid network connection? Does the target server have a valid network connection? If the problem persists, please contact <a href="
weeell?
Contact who?
Contact the person who forgot to escape double quotes?!
There's no way to fix it either, not without some evil regex of sorts
 
10:36 AM
Laptop rebooted within 10 minutes, a new record
Is , included in \\w+?
Apparently not I see
 
17
A: Java equivalent to PHP's preg_replace_callback

jdmichalIMPORTANT: As pointed out by Kip in the comments, this class has an infinite loop bug if the matching regex matches on the replacement string. I'll leave it as an exercise to readers to fix it, if necessary. I don't know of anything similar that's built into Java. You could roll your own witho...

 
-1
Q: how to upload/export any data/items from liastbox to datagridview?

user58107i have total 56 combination(data/numbers) in listbox in listbox in listboxt in listbox, so i want to sent/transfer/upload to datagridview into 7 row, 8 Columns ( datagridview ) and i m working in visual Basic 2010 Button1 (Browse) Listbox1 (56 Combination in the listbox...

 
I ****** hate LaTeX!!! With Algorithm packages
@Pimgd We're stupid, you can also use backreferences when replacing strings of course
Except, it's not that easy as I need to convert the backreferences as well
 
11:10 AM
Stupid bugs
0
Q: Regex does not match text in Java, while it does match in PCRE

skiwiExecuting the following code does not return any matches: private static final Pattern ALGORITHM_REPLACE_PATTERN = Pattern.compile("(\\w+)\\(([\\w,]+)\\)"); Matcher matcher3 = ALGORITHM_REPLACE_PATTERN.matcher(fullAlgorithm); Concretely matcher3.find() returns false. The input string...

 
is something like camera.auth.authenticate() camera.infrared.isEnabled() a bad design?
 
People on SO officially cannot read at all.
 
When compared to camera.authenticate() and camera.isInfraredEnabled()
 
@Pimgd Depends how modular it will become I guess
 
auth, wifi, movement, zoom, infrared, motiondetection, firmware, audio, video, recording, ...
storage...
I'd get a camera object with 100+ functions
 
11:17 AM
I think modular is better then, it's the users responsibility to extract it to the module object if they're using it a lot
 
yeah...
 
Ok I see I made one typo in that question... Doesn't warrant the -2 though, I'll stay away from SO meanwhile
 
delay between the camera and the client might be big, so I probably need to use an object that represents partial state
but I don't want a 9 second freeze just because I have to load data
maybe make everything return boxed primitives
and have requestInfraredStatus and getInfraredStatus
hah, and we planned a week for this?
pff
 
I thought you were using C, but now you are using Java?
Any reason at all why Pattern.compile("(\\w+)\\(([\\w,]+)\\)") wold not match TSP_BruteForce1(R,S)?
Oh, I forgot to call Matcher#find()...
 
0
Q: Speed optimization for transparent gradient blend algorithm

ZhenyaThe next algoirthm works correctly for the porpuses that I need, which is to set the top side of an image with a transparent gradient blend. Any tips to optimize it for speed? Thanks void ImageUtil::sectionAlphaGradient(uint32_t* pixelBuffer, const int width, const int gradientHeight) { unsi...

1
Q: IsNullOrWhiteSpace check for Java

David PilkingtonI am needing to write my own IsNullOrWhiteSpace check for Java but am wondering if this is the best method to do so public static boolean isStringNullOrWhiteSpace(String value) { if (isStringNullOrEmpty(value)){ return true; } for (Character chars : value.toCharArray()){ ...

 
11:30 AM
Welp. It's something
 
0
Q: AngularJS project with modular structure

A1exandrI create a modular structure for my Angular application. The main idea is to have a folder of modules which may be reusable later by simple copying them to the new project. With help of gulp I created a tasks which iterates over each folder in modules and makes a final build. Here is my source ...

0
Q: Csv writer implementation

InBetweenI've recently been assigned to write up a Csv writer with "as much flexibility" as possible concerning pretty much all (output stream, string fields with potential new line characters, separator collisions, etc. you name it...) No specification, no design guidelines, no nothing and I'm not expec...

-2
Q: Writing a program to search a string, getting an error

TechngroPlease help me correct this code. data = "Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required." datalower = data.lower() while True: usr = raw_input("Enter search term: ") if usr in datalower: print...

 
@skiwi JNI! Yay, native code~
 
@CaptainObvious if usr2 == 'y' or 'Y': LOL
 
11:45 AM
so now I'm designing a library that's gonna make extensive use of Future
... that's gonna be nasty
 
12:22 PM
0
Q: More elegant way of randomly selecting few coordinates inside a Polygon

simenI have a polygon named as 'poly'. I attempted to randomly select 5 coordinate points that lies inside the polygon. import numpy as np from shapely.geometry import Polygon, Point poly = Polygon([(141.4378366,-25.95915986), (165.4279876,-29.43400298), (163.1382942,-47.65345814), (133.1675418,-42....

 
12:51 PM
@200_success: what was wrong with ?
 
@all How do one do time measurement using java, like the .NET StopWatch ?
 
Timer/TimerTask?
Alternatively, System.getCurrentTimeMillis
 
Thanks
 
Thanks again
 
1:19 PM
Monking @all.
Happy Friday to one and all.
 
@Pimgd use java8 links, man
 
I'm still using java 7
 
but java8 docs are prettier
 
@xDaevax You too?
 
1:25 PM
I don't have snow.
 
Oh crap! You're in Ohio too! lol
 
I like it. Pretty to look at, makes driving more fun, makes (most) other people more cautious drivers.
Yep.
 
Multi-threaded native code, yay~
That's just bound to go horribly wrong somewhere
and when it does, I don't get a stack trace.
 
Yeah, but you won't be able to find it
;)
 
That's my point...
... I think that even although I don't have snow and it's not that cold, I'm already treading on ice here
 
1:28 PM
threading on thin ice.... ;)
 
0
Q: wrote a code for race in java won't work

xXLemonProgrammerXxCan anyone do a review of my code? I am new to Java. I tried to run it. It gave an Illegal Monitor State Exception Error in Race and RaceMain class. Thanks a lot if you read it. public class RaceMain { public static void main(String args[]) throws InterruptedException{ Pitstop p...

 
@CaptainObvious noooo
It's the spirit of the near future
(also, that looks off-topic)
 
agreed
 
more likely than it breaking, I think I will just get horrible performance
because I have multithreaded spinning on network sockets, awaiting input
Is it okay to check the network socket once, and if there's nothing there, currentThread.yield?
> It is rarely appropriate to use this method. It may be useful for debugging or testing purposes, where it may help to reproduce bugs due to race conditions.
 
1:47 PM
0
Q: Thread Pool Implementation (still get occasional terminate called after throwing an instance of 'std::system_error')

ryanSo here is my implementation of a threadpool: thread-pool.cc /** * File: thread-pool.cc * -------------------- * Presents the implementation of the ThreadPool class. */ #include <mutex> #include <iostream> #include "thread-pool.h" using namespace std; mutex addWorker; ThreadPool::ThreadP...

 
damn this code looks evil
FutureTasks that contain a FutureTask
 
Greetings, Programs.
 
@Pimgd So you're creating both the C and Java code?
 
2:03 PM
@skiwi Yeah, I had to wrap a pre-existing C library with JNI, then use it in Java
and since it's for network communication, I need to use async (futures)
the result is a minefield, I think
 
A minefield layed by you, directed by your boss?
 
yeah
Oh well... at least it's a reuseable, platform-independant minefield.
4
As long as that platform is Windows, Unix, Mac OSX or Android.
iOS gets shafted and has to write their own implementation on the C library
 
2:18 PM
Woo, it's broken
"HTML Device Driver Installation Failed", it says
maybe it can't install from https
 
@Pimgd That would concern me too.
Monking all.... Fun Fun Fun!
 
@Override
public FutureTask<Byte> requestGetDemoValue()
{
    DemoComponentImpl component = this;
    FutureTask<Byte> future = new FutureTask<Byte>(() ->
    {
        Future<JSONObject> responseTask = component.sendRequest("readExample.json", null);
        while (!responseTask.isDone())
        {
            Thread.currentThread().yield();
        }
        try
        {
            JSONObject result = responseTask.get();
            if (result.has("response"))
            {
                JSONObject response = result.getJSONObject("response");
it's as clean as I can make it, I think
 
You are suffering from C-Brace style there, but... OK.
 
Dictated by company standard.
One formatting style for all languages.
 
Python too?
 
2:27 PM
@Pimgd Enjoy Python in your company!
 
They've solved that problem too
simply don't use python
 
Future<JSONObject> responseTask = component.sendRequest("readExample.json", null);
while (!responseTask.isDone())
{
    Thread.currentThread().yield();
}
OMG.... ^^^^
 
What's bad about that
 
That's a spin-loop.
CPU @100%
Plus a scheduler overhead.
 
so how do I prevent spin loops
 
2:29 PM
Just say:
 
@Pimgd Just don't do them
 
responseTask.get()
Will return when the task is complete.
 
But internally I'm waiting for a network socket
in C
will it automatically go bother another thread once it sees it has no input?
or will it just spinloop there
 
Future.get() blocks until the task being run in the other thread completes.
(or there's an interrupt, etc.
 
0
Q: Code for displaying Hello World

EdeniaI have this nicely written and complex code for displaying the popular and really needed by the world wide relationship term: #include <stdio.h> #include <stdlib.h> int main (void) { printf("Hello World!\n"); return EXIT_SUCCESS; }

 
2:31 PM
so...
            while (!responseTask.isDone())
            {
                Thread.currentThread().yield();
            }
            try
            {
                JSONObject result = responseTask.get();
I can remove the while?
 
No..... not quite.... you need to worry about spurrious interrupts.
Since your code returns null on InterruptedException, you don't
Give me a moment...
 
the return null is a way to signal "reading went wrong"
I'm adding an ErrorManager later because I can get a large amount of errors back, varying from HTML Device Driver install errors to query model parse errors to connection timeouts and whathaveyou
if you get null back, you need to pass the FutureTask to an ErrorManager who will give you the error object
ooooor you just ignore it
Interrupts are confusing...
 
    @Override
    public FutureTask<Byte> requestGetDemoValue()
    {
        DemoComponentImpl component = this;
        FutureTask<Byte> future = new FutureTask<Byte>(() ->
        {
            Future<JSONObject> responseTask = component.sendRequest("readExample.json", null);
            try
            {
                do {
                    try
                    {
                        JSONObject result = responseTask.get();
                        if (result.has("response"))
                        {
 
it's like the thread is prodded, but you don't get any info
 
0
Q: detect headers status takes too long

andrewI have a table in my database with 35000 unique urls. I use them to create my xml sitemaps for the site. I have setup crontab jobs to create automatically new urls, delete non existend urls and determine if a url is vallid. For the last part i use the following function: function get_url_status...

 
2:39 PM
I see
what happens if the thread is interrupted, but the task is done already?
 
The exit-conditions from a spurrious interrupt are complicated.
 
Then I don't return anything at all
 
The get() will return immediately on the next loop.
 
oh?
 
get() on Future can be called multiple times.
It just blocks until the task is complete.
InterruptedException is a PITA. Handling it right is very context dependent, and because it is so rare, people do not have much practice at seeing it, and dealing with it.
 
2:42 PM
huh, I removed the exception catcher for ExecutionException, but it's not whining about it
 
ExecutionException is RuntimeException
 
riiight, it was auto generated
 
Sorry, no, it's not.... scratch that.
But, Callable.call() is the FuctionalInterface you are using, and Call is declared to throw Exception.
 
ah that's why
 
0
Q: Code Optimzation by constant If structure iteration removal

Bialy R BertBelow you will find the specific code that I am attempting to optimize. I have a method previous to called getCount() which, based on similar parameters as below, calculates how many record sets of 75 will be pulled based on one of the below query. The Query that is executed is based on the "dep...

 
2:46 PM
minefields are fun.
2
You never know when
KABOOM
 
0
Q: Transparent encryption of HTML5 storage engine(s)

jas-I am looking for feedback and possible suggestions regarding a piece of JS code that performs transparent symmetric encryption/decryption of user specified data using the HTML5 localStorage, sessionStorage or depreciated cookie options. Again any suggestions or feedback is appreciated. Thanks! O...

0
Q: fix the loops on my game please

FlameThePrince1.I'm making a story game where the choices that you make affect the outcome of the entire story, I tried to use a do while loop for the gender option but it isn't working. Please help me fix it. 2.import java.util.Scanner; public class StoryGameRoughDraft { public static void main(String[] arg...

 
hi
im going to have a few days away, just entered to ask for some good book about code review or lean or coding practices. anything to recommend ?
 
Hello Bart
Clean coder, Clean Code
 
already read those
something along the lines of those would be great
 
What else have you read on the subject?
 
2:58 PM
lemme see
pro agile .net development with scrum
the art of learning
and I guess that's it. the rest are just technology oriented.
so I guess there's still a lot I can read
 
Great Book:
http://www.amazon.com/Code-Complete-Practical-Handbook-Construction/dp/0735619670/ref=sr_1_2

Great Articles:
http://lostechies.com/wp-content/uploads/2011/03/pablos_solid_ebook.pdf
http://www.codemag.com/article/1001061

Here is a decent book as well:
http://www.amazon.com/gp/product/0470292784
 
code complete and Professional ASP.NET Design Patterns that is then!
thank you!
 
For .NET Language specific reads, I'm currently reading (and enjoying):
http://www.amazon.com/gp/product/0735667454/ref=oh_aui_detailpage_o06_s00?ie=UTF8&psc=1

http://www.amazon.com/gp/product/161729134X/ref=oh_aui_detailpage_o06_s00?ie=UTF8&psc=1

http://www.amazon.com/gp/product/0990583430/ref=oh_aui_detailpage_o06_s00?ie=UTF8&psc=1
Bahhh, I hate when I have a pending edit suggestion and someone else trumps by directly making the edit
 
0
Q: Deserialize JSON Strings Directly into Models?

Pat NewellI have Ruby models which are populated from the responses of API calls in the following way: JSON.parse converts the response to a Hash the Hash is passed into the initialize method of a class the initialize method converts camelCase hash keys and assigns underscore_case instance variables cont...

 
interesting
i'll buy those too
 
3:11 PM
Open session: OK
Connected with pimtest
Default value
0

Reading value
Mid-read value:
0

Read value:
{"demoValue":50}
50
Navigation through minefield SUCCESS
 
@xDaevax Finished the last one, halfway the second, thought about buying the first
good books
 
@CaptainObvious ?
 
0
Q: Can any please debug this code for deleting a node from BST

Shashank GauravNode *BST::del(int key, Node* root){ if(root == NULL){ //cout<<"Element Not Found "<<endl; return NULL; }else if(root->data > key){ root->lchild = del(key, root->lchild); }else if(root->data < key){ root->rchild = del(key, root->rchild); }else if(root-

 
@CaptainObvious No. >:)
 
Anyone here a cryptography buff?
 
3:29 PM
great thk you @xDaevax got my literature on kindle already :D cya!
don't miss me
 
0
Q: WA for Codechef problem DOUBLE

M. KlugerfordMy code gives the wrong answer (according to the judge) and I'm unable to figure out why. I just started solving the easy set of questions on CodeChef a couple of days ago. Link to the problem statement def main(): t = int(raw_input()) for i in xrange(t): n = raw_input() ...

 
@Bart Have fun travels
 
0
Q: simple, pythonic IRC interface

whereswaldenAll of the other Python IRC packages I've seen out there are overly complicated for simple tasks, and they don't abstract away much of the complexity of the protocol and asyncronicity. I've taken a crack at a better interface, but I'm new to the IRC protocol. It runs under Python2 and 3. How's it...

 
3:46 PM
ty
 
Hey hey.
 
Heyyyyyyyyyyyyyyyyyyyy
 
0
Q: Is this code solid? If it's not why not? And how should the dependencies be managed?

Ryan-Neal MesI am very interested in following the SOLID principles of writing code, but for the life of me I consistently run into more questions than answers. One of the questions I have now related to the code below that I found at thoughtbot. Code before refactoring class DealProcessor def initialize(...

 
Heeeeeyyyyyyyyyyyyyyyyyyy
 
4:02 PM
Heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeyyyy
3
 
So, I get 'distracted' by work, and suddenly 200 is #1 again .... hmmm.
2
 
wtf
why the heeeey
 
Because @Pimgd.
 
and then my coworker accidentally the power switch
3
 
This is hilarious: kotaku.com/…
 
4:22 PM
0
Q: Is this code perfect to stop sql injection in python?

CS GOI'm new to python and i am learning Database connection from here This is the code i am using to insert data: conn = mysql.connector.connect(user="user", password="password", host="127.0.0.1", database="db") cursor = conn.cursor() query = ("INSERT INTO test(name,email) VALUES(%s,%s)") data = ("...

 
perfect eh?
How exciting, I've never seen perfect code before.
 
Hello Code Review, long time.
 
4:38 PM
lol.. think about it
 
Code Review, doesn't talk back these days
 
We've cut down on the sass. ;)
 
*ass
 
Is there a ruby on rails dev around here ? And Hi everyone btw!
 
Is my comment on point, or did I misunderstand? codereview.stackexchange.com/questions/69862/…
Hello
 
4:47 PM
@JeroenVannevel and are too redundant. Either one should be enough.
 
@200_success I second that.
 
Sorry I am not Ruby.
 
Hey no problem! I've just started ruby and rails! I'm already stuck a bit :P
 
Sorry, does anyone else think FF7 when they hear Ruby?
@Marc-Andre Whatcha coding in Ruby?
 
which language have you used before? @Marc-Andre
 
4:49 PM
@xDaevax I'm suppose to do a Rails app, but I guess I'm faillaing at the moment :P
@Anirudh Java mostly
 
So I can understand your pain, I mostly worked on Java but now suddenly forced to learn Python... I quit last week _
 
You quit because you had to learn python, or is it just a coincidence?
 
Ruby to Java is easier then Java to ruby I guess
A mix of both @rolfl
 
@Anirudh I'm not quitting at all! I'm just trying to understand where I must do certain things ! I'm trying to execute rake routes but can't find which console I must use or where I must do it :P
 
Well I know a guy from my first company who was Ruby Pro, maybe he can suggest something
 
4:56 PM
Ruby seems really cool, but since I already use Python, I lack the motivation to learn another scripting language.
 
Yeah I wanted to do a bit more web and learn a new language so Ruby was a good choice I think! And I think I need the rake gem
 
@Morwenn How do you cope up with the Python's version mess?
 
@Anirudh I know some of the differences and use the most suitable version for a project (2.7 or the latest 3.X).
Il depends on the libraries I need.
 
Consider them to be two languages, python, and python3?
 
Even I need two Python versions here. :p
 
4:58 PM
That's how we deal with it here on Code Review.
 
Actually, I hope that the main 3rd party libraries will finally be compatible with the 3.X branch.
 
Hey @rolfl
 
Like PIL for example...
 
@kleinfreund - long time ;-)
 
Yep, again.
 
4:59 PM
Getting cold in .de too?
 
Yeah. It's horrible.
 
Snowing today.
 
I hate it. :D
Oh, it's not snowing, yet.
 
Opinions on whether this is reviewable?
0
Q: Is this code perfect to stop sql injection in python?

CS GOI'm new to python and i am learning Database connection from here This is the code i am using to insert data: conn = mysql.connector.connect(user="user", password="password", host="127.0.0.1", database="db") cursor = conn.cursor() query = ("INSERT INTO test(name,email) VALUES(%s,%s)") data = ("...

 
Just a matter of weeks I believe.
I'm doing Python! Also I'm going to do Java soon!
Isn't that exciting?
2
 
00:00 - 17:0017:00 - 00:00

« first day (559 days earlier)      last day (3460 days later) »