« first day (197 days earlier)      last day (3831 days later) » 

1:55 AM
1
Q: Multi producer/consumers lockfree stack

EmanueleCan you please take a look at the following x86-64 c++ code which should implement a multi consumer/produce lockfree stack? Do you think have I missed anything? namespace lockfree { // NOTE: this lock-free stack uses the highest 2 bytes // of each pointer to store a 'counter' (an "id...

 
 
3 hours later…
4:28 AM
0
Q: Invalid pointer?

JackI apologize in advance, but this is kind of a long one. In my program, I read in the student's information, but when I go to output it, it comes out scrambled, and then gets a pointer error. #include <stdio.h> #include <stdlib.h> #include <string.h> struct student{ char *firstName; ...

 
5:27 AM
0
Q: I have a simple PyQt4 Image slide show player, looking for review

sanI have written a slideshow application, I am looking for some reviews have a look here on github

 
6:14 AM
@what's up everyone?
 
6:32 AM
@Malachi: Eating at midnight (yet again). You?
 
lol. checking out some questions on Code Review at the inlaws house. fixing an answer for .... codereview.stackexchange.com/questions/33657/…
 
@Malachi: By the way, did you see that we've already gotten the answered percentage back to 89%? It didn't take too long, either. We just need to maintain it and also get it over 90%.
 
I didn't see that. is that what it says on Area51? where is that? @Jamal
 
@Malachi: Yes, Area51. Since we're reached that number not too long ago, it could easily go back down if we don't keep up.
 
@Jamal: I am not sure that the numbers there are real time. I think it has to be done by someone and changed there? or something like that? what do you think?
 
6:45 AM
@Malachi: I really have no idea. I just read the numbers and say things about them. :-P It'd take me even more time to understand moderator-only numbers.
 
are you moderator now? do you have the cool diamond?
 
@Malachi: Not yet. I was told that I'll be contacted again soon. It'll happen when it happens.
 
@Jamal: I am excited for you man
and really tired at the same time
 
@Malachi: Thank you. :-) I still admire your commitment as well. Keep in mind that I'll just be a pro-tem, so there's always a chance at elections.
 
@Malachi, I am not worried I have several languages that I want to learn, so I will be busy.
 
6:59 AM
@Malachi: I'm just going to wait until I have my Java class. I will be sure to post my first program on CR.
 
oops....@jamal: I should go to sleep. I need to finish this answer and then pass out....lol
 
@Malachi: Alright, goodnight!
 
@Jamal: good night
 
7:22 AM
I forgot that I don't have to wait for someone to review my edits.....lol
 
 
1 hour later…
8:53 AM
0
Q: Is asking for correctness check on-topic or not?

ChrisWueAs per this and this question on meta, asking about correctness is on-topic yet this question was closed. The comment given was: This question appears to be off-topic because it is about reviewing the code to figure out if the given problem is solved and not about improving code quality The...

 
 
3 hours later…
11:40 AM
0
Q: Python around 40 times slower than c++

SatvikI was implementing a rolling median solution and was not sure why my python implementation was around 40 times slower than c++ implementation. Here are the complete implementations C++ #include <iostream> #include <vector> #include <string.h> using namespace std; int tree[17][65536]; void in...

 
12:26 PM
0
Q: How to optimize C# console application

Marki'm wondering is there any way to optimize this code? It must be able to work with big files, for example, formatting raw 140kb .txt file (12.5k words) takes 2 seconds (measured with Stopwatch class). Maybe i used here some bad techniques or there is some part to simplify? Maybe multithreading?...

 
 
3 hours later…
3:17 PM
0
Q: Review request for interactive table

skiwiI've got a page on a website that shows a table, and upon clicking on a row in the table it can dynamically load in more results. I am new to JQuery though. index.php page: <!DOCTYPE html> <html> <head> <title>Knife kills</title> <script src="jquery-2.0.3.min.js"></script> ...

 
 
1 hour later…
4:24 PM
0
Q: Batch process as an OO design solution in Java - am I on the right track?

user103388I was given the task of batch process a single-level control break program to produce a lecturer information report by lecturer from a university course file. I have attempted to create a solution using a OO design in Java. I have run into some problems as I don't think the the modules are cohes...

 
5:04 PM
0
Q: the better method of I/O from file

BaRudI am very new to python (probably too new to consider efficiency etc.). But I am bit confused about which method to use while reading a file for post-processing. Here I am reading it line-by-line. There is other methods also for reading the file(e.g infile.read()), one of them is to load the comp...

0
Q: In-memory data cache architecture

Dmitri ZaitsevI am designing basic in-memory cache storage with thin CRUD (actually CRD) interface. The design is inspired by the Backend solutions such as Parse and StackMob. Main requirements: Cache consists of tables (schemas) storing hashes. The keys (fields) in a table are fixed (enforced). Maximum mem...

 
5:37 PM
0
Q: ”check” function – OK to throw in destructor?

BenMy goal is to provide a function with the following functionality: // Will throw iff a != 42. check(a == 42) << a << " is not equal to 42!"; I have the following: class CheckStream { public: CheckStream(bool should_throw_ = false) : should_throw{should_throw_} { } Check...

 
6:07 PM
@retailcoder: Good Morning
 
 
2 hours later…
7:42 PM
0
Q: Answering Guidelines (answer length)

retailcoderFrom Grace Note's CR review (emphasis mine): Time to Answer Jon Ericson, another Community Manager, ran some numbers on the site and discovered that the average time it takes for a question to receive its first answer is actually several hours (averaging somewhere between 8 and 10 hours)...

 
Today is a long day. Ran out of votes at around 11AM. And there's plenty of answers I want to upvote!
 
lol
you made sure to up vote the answers of mine that you wanted to first, right @retailcoder?
 
@Malachi I missed a couple, I'll catch up when I can vote again! BTW I just paid a 100pts bounty for my revisited IsTypeSafe method, it's been unanswered for too long. And I have earned way much more rep recently than what I'm used to (saw last week's user rankings?)!
 
7:58 PM
@retailcoder I will look at it again today or tomorrow when I have a chance, I think I favorited it to. you are flying. I jumped almost 100 points in a day the other day when I past the 1K mark
 
@Malachi I know! 94 points just yesterday! I used to do that in a whole week!
@Malachi well you have 7 days to write a single answer that will make you jump another 100pts :)
 
@retailcoder: I am going to try!! don't know if I can tell you anything you don't already know about that coding language though....lol
I haven't seen this before can you explain the syntax please? IsTypeSafe = this.TItem = vbNullString Or this.TItem = TypeName(value)
 
@Malachi I'm really not a guru (at least I don't perceive myself as such), the bit-shifting work-around-the-long-integer-overflow code was way beyond my skill level - as for the syntax you're mentioning, it's because VB is stupidly using = as both a comparison and an assignation operator. It's equivalent to IsTypeSave = (this.TItem == vbNullstring || this.TItem == TypeName(value))
 
@retailcoder, I think that I might have something but I need to do some research on something.
 
actually return (TItem == string.Empty || typeof(TItem).GetType().Name == value.GetType().Name);
 
8:05 PM
so it is equal to whatever is true?
 
@Malachi this.TItem = vbNullstring verifies if the list has a type already - if the list instance wasn't ever specified a type, it takes any type it's given, but then when adding more items to that list instance, the items must be of that same type.
 
gotcha
 
@Malachi see Private Function ValidateItemType(value As Variant) from the linked post (the actual full code of the List<T> implementation)
 
@retailcoder I guess I should read that before I try to figure out the other stuff...lol trying to wrap my head around the isSafe Functions at the bottom. I think I almost have that figured out.
@retailcoder: Time to take a break and eat
 
@Malachi that one looks like very long code, but most of the code there is super-small methods/functions that implement List members. The reason for the TItem string is because there's no generic types in VB6, so you can't declare a List and say it's going to contain, say String items - hence you have a List<Variant> until you add an item there. - re: Time to take a break and eat: LOL!
 
8:19 PM
I guess that I still have some time
 
I added this bit of useful context into the question.
 
8:49 PM
0
Q: Review Request - A simple NAT library

SIFEI created a simple NAT library, with four essential functionality: Find the UNPN device(The router in my case). Get the external IP address. Add a port forwarding entry. Delete a port forwarding entry. Currently, updating an entry in the NAT table will change only the internal client ip add...

 
 
1 hour later…
9:54 PM
0
Q: Is this a good way to print output?

Fez VrastaI've learned PHP following only tutorials on the web and I'm quite sure my style is not at top. I'd like to understand how this code could be written in a more elegant way: <? $posts = // array with informations about posts fetched with PHP PDO from DB $html = "<ul>"; foreach($posts as $post) ...

0
Q: Regex parser - request for review and optimization

JavaDeveloperThe whole question is Better implementation of a simplified regular expression engine?. I have solved the question, and in turn felt the need to get it reviewed. Any suggestions for clean up and optimization would help. public class Regex { private static final char STAR = '*'; ...

 
10:21 PM
0
Q: nodejs dynamodb callback question

ClustermagnetFolks, I am writing an API which gets results from a DynamoDB table, and puts back JSON to the browser. The code below works, and returns desired results... however, after reading about async and callbacks, its becoming important for me to know if i should be writing this in another way? Does...

 
10:47 PM
0
Q: Function for reading bits

alexandernstI done this simple function for reading N bits from an unsigned char* (with a possible offset) and I'm willing to share it here, get a review, suggestions for imporving it, etc... typedef struct bits_t { unsigned char *data; unsigned int len; } bits_t; bits_t *read_bits(unsigned char *...

 
11:01 PM
0
Q: code review for a 2 way carousel for Ipad and tablet

MonicaI just finished a js for a 2 way carousel meaning, if I click left or right, you are able to go up and down, depending where you are. This is suppose to work for ipad or tablet only. I would like to know how to make the code better or I there are any suggestions I would appreciate it. I am new a...

 
11:14 PM
0
Q: COMBINATIONS GENERATOR program

AlexI am looking and happy to pay for a downloadable program I can run from my desk top which will return all possible combinations of numbers for 3,4,5,6,7...(up to 9?) from any given set of numbers (up to 99?), Generated combinations should be numbered/ordered from 1-X. Generated combinations and ...

 

« first day (197 days earlier)      last day (3831 days later) »