« first day (660 days earlier)      last day (3357 days later) » 

12:04 PM
hi @chillworld
 
Nope, but you can flag dfor mod attention with a specific message
 
it's so so I don't know if you can help me @rolfl
0
Q: Display image from DB on zk zul listbox

emreturkaI have an entity that includes image that type byte[]. So the return type is byte[].I have to get image and show on a listbox.My codes are below. public class KitapListesiControl extends SelectorComposer<Component> { private static final long serialVersionUID = 1L; private List<Kitaplar> kitap...

he did an edit of the question, with mine code in it (but of course poor copied)
 
Is zk a programming language?
 
@nhgrif nope. Java framework.
@rolfl You've got mail answer.
 
0
Q: a small web service using scotty

Tobias HermannI'm writing a small tool that allows to manually protocol dial-in-actions. That means a user can say he dials in to a site or he dials out of a site. (What this means is not important for the sake of this software.) These action are stored as plain JSON text with automatic backups. The communica...

 
12:07 PM
@nhgrif indeed gui framework for java, like asp
 
@chillworld Stack overflow has different rules about answer-invalidating edits.
I am not even going to pretend I understand them.
 
@rolfl I'll leave it, as long I don't have to edit mine answer
 
@SimonAndréForsberg I do, indeed, and I like it... I see a follow-on....
 
@rolfl oh, I just thought of one thing that I forgot to mention! Edit incoming!
 
Stack Overflow is really bad about chameleon questions.
 
12:23 PM
@rolfl Edit complete. Note about using e.getMessage() added.
 
12:33 PM
0
Q: Python IF statement without comparison operators

Yannik AmmannI know people on SO/SE are a bit butthurt that no one knows where to asks the questions, so I hope this thread somehow fits into this sub forum ;-) If i have to check if a value in my django model is set (!= None) i do it like this: if not model.fiel: model.field = some_logic() It feels p...

0
Q: Contact Form Sanitized Inputs

fightstarr20I have the following as my Ajax / PHP contact form on a site I am building. I have sanitized the inputs but just wanted to make sure I havent missed anything... // Only process POST reqeusts. if ($_SERVER["REQUEST_METHOD"] == "POST") { // Get the form fields and remove whitespac...

 
Argh, -25, and I have to go to work..... at least today I turn over a new leaf. Defenestrated my work laptop this weekend, it's running ubuntu now.
 
0
Q: First big attempt with classes

setevoyI'm creating command-line tool, which supposed to work on both Windows and Linux OS. It will be used to manage our application - start, stop, deploy etc. We have it in bash scripts now (and it's work very well about 6 month), but I want rewrite it in Python with classes. It's big enough, so - h...

0
Q: WLP (Weakest Liberal Precondition) Transformer implementation in Java?

Boris JakovljevićInput for our program is array of instructions (Expression [] instructions). Then iteratively starting from last instruction, and going backwards we searching for weakest pre-condition of single instruction. First (last in array) instruction has post-condition {true}. Then next instruction has p...

 
12:48 PM
@rolfl gl in that weather
 
Monking
 
monking skiwi
 
@Simon - thinking it through, the api should eliminate the task interface entirely.
The addTask should be:
public <R> void addTask(String name, Supplier<R> toBenchmark, Predicate<R> check)
it should have a predicate-less option.
it should have variants for long, double, and int suppliers/predicates.
 
huh, R type parameter but it's not being used up there?
 
@rolfl so a whole lot of overloaded methods...?
@skiwi s/<R>/<T>/
 
12:57 PM
I'm not sure if the overloads are neccessary there for simple projects
 
Greetings, Programs.
 
I believe it can automatically get boxed to the non-primitive version
 
I'm voting to close this question as off-topic because it is about review of a working code and as such belongs to codereview.stackexchange.com. — TLama 1 min ago
 
Greetings, @Donald.McLeans
 
@Duga that's a tricky one... does it really belong here? TLama is a CR member though.
 
12:58 PM
@skiwi - I don't want the boxing to be part of the benchmarked time.... I want as little as possible in the way of verhead.
 
Greetings, Donald.
 
@rolfl Then it seems fair
 
@rolfl neither do you want the actual checking to be part of the benchmarked time, right?
 
Correct, and the checking is a convenience function.
I see a possibility of running the checks in parallel as a bit of a 'see how fast it could be in parallel' and still works.
(for example)
It allows you to use the UBench system as part of a development process, not just a validation process.
No point in making it go fast, if it suddenly produces the wrong results
It allows you to do iterative performance development, in other words.
Yup, thanks Simon, it needs a rewrite.... but, as it is open source..... anyone can contribute ;-)
 
@rolfl I was considering making a pull request for you ;)
I am not certain that my suggestion of extracting an interface would help with performance though. Not sure how much that layer of abstraction would slow things down.
 
1:05 PM
@rolfl "Please make a PR"
 
If you already know how to do it, this isn't a question for stackoverflow. Instead, you should post your completed code on codereview.stackexchange.com. That site is designed for improving working code. — forgivenson 1 min ago
@forgivenson This would be considered as "example code", which is off-topic for Code Review. There's no context in this code. Unlike SO, CR does not want the context to be stripped away. — Simon André Forsberg 15 secs ago
 
* gone working in garden
 
1
Q: Get local Dropbox path with Delphi XE7

user1580348I've put together a function in Delphi XE7 which returns the Dropbox directory path on my machine, as this path can be customized by the user. This function currently works on my computer, but it could have many defects preventing it to work for other users on different machines. So I would be...

0
Q: merging array of objects based on common property

AkshatI need to merge two arrays of objects and I know there are many ways to do it but I am just curious what would be the best way to do it. e.g - I have the following arrays, array1 :[{ id :1, name : a, class :c1}, {id :2, name :b, class :c2}] array2 :[{ id:1, score :20}, {id:2, score :30}] wh...

 
1:31 PM
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.comDavid Heffernan 42 secs ago
Calling Pos again and again passing the same arguments is wasteful. Don't do that. And don't loop character by character adding to a string. You don't initialise Result before writing to it. You use Copy once, but then fail to use it to assign to Result. But this isn't a code review site. You should post this question here: codereview.stackexchange.comDavid Heffernan 1 min ago
Wouldn't this be more suited to Code Review? But you'd have to read their policies on the matter. — J. Steen 18 secs ago
 
Hey there, Would a question about the structuring and usage of properties in a Maven POM.xml file be valid for the codereview format?
 
0
Q: Alternatives to function in delphi

NickFuryyHello I just finished this function and wanted to know if anyone know another way to do the same: function findtext(archivo,Delimit1, Delimit2 :String) :String; var Buffer :AnsiString; ResLength :Integer; i :Integer; PosDelimit :Integer; begin Buffer := read_file_z(ar...

0
Q: Kata: Harry Potter books with discounts

InvisiblePandaI have implemented a solution to the Potter Kata. Basically, there are 5 different (types of) books, and the buyer gets a discount depending on how many different books he has bought. Multiple instances of the same book (type) don't get a discount. The discount values are the following: 2 diff...

 
1:50 PM
@dot_Sp0T it's not code.
... but we did review xml once...?
 
@Pimgd as long as it's a working pom, why not
 
yeah why not
 
I've seen many crapy poms
and find this a very good start for people to let them see pom's don't Always have to be crappy
2
and why does many sites put Always with a capital A? ... (I write them without a capital a and it transforms itself)
 
@dot_Sp0T I think the consensus is "Yes" but be prepared for comments on other things.
 
@Donald.McLean don't make him leave yet ;)
@dot_Sp0T we are a friendly community, there can be comments what you don't expect, but who know's they are correct
 
2:05 PM
well then I'll go on and ask that question haha. From my understanding build-manager configs as well as normal configs should be allowed on here, as the term code stretches far enough to allow html if I recall correctly (and html is markup, not code)
 
0
Q: What is a best approach to match an array in RSpec?

Bruno CasaliI was struck with multiple paths to write a test in rspec of controllers. But do not know which of these is the best, I will outline what I think the approach and would love for you to tell which should really be the one. For specs more readable: describe 'GET #index' do it 'assigns all acqu...

 
2:22 PM
Right... If html is allowed, why wouldn't XML be allowed?
 
we have tag for xml
mhh I see questions of a person sevo but they are more transparent then the others, what's the reason for that?
oke lol I see, some filter of me for haskell
 
Maybe I made a mistake when I wondered that xml would be off-topic
probably... actually quite sure
 
3
Q: String Token Generator for ExpressGenGen

JaDoggStringTokenGenerator is an interface (or abstract class) I've created to the specific task of generating a string token of a given character set. It allows appending characters to it and then It can be used to receive a string token. I wrote this for the second version of ExpressGenGen a code gen...

 
2:37 PM
2
Q: Get local Dropbox path with Delphi XE7

user1580348I've put together a function in Delphi XE7 which returns the Dropbox directory path on my machine, as this path can be customized by the user. This function currently works on my computer, but it could have many defects preventing it to work for other users on different machines. So I would be...

 
@Pimgd everybody make mistakes (lol I gave last week course through webbex and after break forgot to unmute me, talking all for myself ^^)
 
Code highlighting got murdered
 
> This function currently works on my computer, but it could have many defects preventing it to work for other users on different machines. So I would be very grateful if anybody could point to these defects.
is that on topic?
 
yes
maybe the question isn't but the code is
sentiment hiding behind it is "I know it works for me cuz I have dropbox and am using windows version something, but maybe it crashes if it's some other version of windows"
@JaDogg I saw those comments and I was like "why"
 
@Pimgd grey zone ;)
 
2:52 PM
If I protect a post, does that mean you have to have +10 rep to edit it?
 
y-I don't know
for answering, yes
 
I found a post that has had a bad answer, and a vandalizing edit by two people with 1 rep.
 
editing who knows
 
roll back then with vandalism or report it to rolfl or 200_succes
 
The vandalism didn't make it through.
I caught it in the queue.
You can go help kill it though, it needs more votes.
 
2:56 PM
Need some help....
8
Q: Test runner for Scala problems

David DaedalusI'm learning Scala and could use another set of eyes on the code below. I'm creating a test runner for the 99 scala problems set. I figure between actually solving the problems and working through the pains of setting up a new IDE (trying IntelliJ from Eclipse), using new build tools (trying SBT ...

^^ this question was edited a while ago
three large code-snippets were added
then there was an answer, relating to some of the new code
now I saw this today and rolled back, as well as commenting the tin-can comment
but... I'm completely invalidating the answer
 
that I got an answer of my own there doesn't help
 
@200_success @Jamal ^^
 
well that's a shame that it happened but nothing we can do
 
I'm just thinking it may be wrong to rollback
especially since the edit didn't invalidate my answer (from what I saw)
 
3:03 PM
@Vogel612 flag for moderator attention, and/or VTC as "unclear what you are asking"
@Pimgd if there's a deleted answer by that user (I'm assuming there is), then flag that answer for moderator attention and state that it seems to be a vandalism user
 
we can't see deleted answers on user profile pages..
and it's a hassle to sift through recent questions in search for a single answer, that may not exist in the first place
@SimonAndréForsberg I hoped for community input...
 
@SimonAndréForsberg Nope.
Just a horrid answer by Erik.
 
@Pimgd In future, it is equally useful to flag the vandalized post with a for-moderator flag.
(more useful, in fact).
 
It wasn't actually vandalized, just an attempted vandalism.
 
I'm out walking the dog... I'll be around later.
 
3:08 PM
12
Q: HTTP server and multi-threading optimization

user1883212I wrote an HTTP server for the management of scores for users and levels. It can return the highest score per level. It has a simple login with session-key. What do you think could be improved in this code? What's wrong? And particularly, are there any multi-threading issues that I didn't take...

That is the post.
 
0
Q: Is it ok to use Thread.Sleep and Thread.Interrupt for pausing and resuming Thread like this?

Claudio PI need to observe a ConcurrentQueue, but to minimize the ressources I want to pause the Thread if the Queue is empty and resume it from another Thread if there is a new Entry in the Queue. I implemented a pausing and an resuming of a thread like this: My Worker, where the DoWork() method is call...

 
I am trying to find information on setting up a send password reset from an admin page for SQL Membership Provider. can anyone help me out?
I already have a deal that allows the user to enter their secret question and have a new password sent to them, but I want to be able to have an admin click a button and have a new random password sent to them.
I think I might have found something. nope, I think the answer is that since I have the password reset question I can only go that route.
 
3:26 PM
@Vogel612 then where's the vandalism if there's no question or answer?
 
But, it's not easy to decide what to do, so I am in a watch-and-see mode.
 
@Vogel612 @Pimgd Suggested edits are not enough to ban a user IMO. There's a reason there's review-queues.
 
@rolfl wow....
 
Who knows, maybe they will reform and be a future mod (although I can't see that happening).
 
0
Q: Partial views with angular how can I load a script

Pablo David I'm converting a website using angular to make it more responsive. I'm using partial views but I dont know how to make angular to use the scripts that give animations to my website. <code> var app = angular.module('pageViews', ['ngRoute']); app.config(function ($routeProvider) { $routePr...

 
3:42 PM
@Hosch250 what about this answer --> codereview.stackexchange.com/a/82276/18427
 
I don't know. I don't think it is good.
 
I flagged as not an answer, it looks more like a comment to me
 
If I didn't have school to do, I would rework my search method again.
I want to make it a full binary search, instead of partial binary, partial iterative.
Not sure if that will seriously speed it up though.
 
1
Q: Creating an async consumable object in Node

theWanderer4865Background I have a situation where I have fixed number of objects with their own routines that would need to be called with the same initial message. To accomplish this, I have a Factory that binds objects to a Composite object whose main method is to call methods on its subordinates without ...

 
4:47 PM
VB.net event handling is a little crazy.
 
Why don't you use C# event handling?
It is all part of .NET, so it will integrate fine (or it should).
 
0
Q: Testing a graph in Java

new_to_codingI am working on an application that supposed to help a user navigate around a building. I have to create a graph which the algorithm I will implement can operate of. This is what I have done so far: class Vertex.java : package testalgo; public class Vertex { /** * @param args */...

 
@nhgrif How should I close code that has never been tested?
Is that broken code?
Hypothetical code?
NVM, question deleted by user.
 
0
Q: Having problems with judging if a nested for loop looks OK or not

KarkoonThis code works but I'm not really sure if I wrote it good enough. It seems a bit vague but I can't really assess it properly. Sorry for a such question but I don't know if I should move on or not. I'm particularly concerned with the xAxis variable. I don't like how I have to initialize it inside...

 
5:19 PM
0
Q: Speeding up create CRC function

GameDevHi i have function like this: BOOL CGameData::GetCheckSum(BYTE o_byObjCheckSum[32], int *o_pnFileSize, char* pFilePath) { memset(o_byObjCheckSum, 0x00, 32); *o_pnFileSize = 0; UINT uiCheckSum = 0; if(strlen(pFilePath) <=0) { return FALSE; } FILE *fp; fp=fopen(pFilePath, "rb"); if(NULL == fp) ...

 
5:40 PM
0
Q: Refactor two jQuery filter functions into one function

JoelLI have two separate lists both sitting side by side. How can I refactor the code below to only have one filter function for both lists? $("input.filterInput").keyup(function() { filter(this); }); function filter(element) { var value = $(element).val(); $(".pdfList > li").each(func...

 
5:56 PM
Has anyone used this kind of library (as posted in SO answer)?
30
A: Java Metric Unit Conversion Library?

dfathere is a specific JSR 275 (javax.measure) with JScience as RI (Reference Implementation). For example converting 100 Miles to kilometers is easy as: UnitConverter toKilometers = MILE.getConverterTo(KILOMETER); double km = toKilometers.convert(Measure.valueOf(100, MILE).doubleValue(MILE)); (n...

@rolfl Related to what you were showing me last night (in relation to TimeUnit)
 
0
Q: JAVA - JSON extraction

NSaidGiven the code below, is there a better way to essentially create different native objects without changing the native constructor or the nativeList.json file? The only option I can see is adding a "String nativeType" variable to the constructor and creating the native object based on that the ty...

1
Q: Read from DataInputStream (Socket connection)

conorI am interfacing with a network device and must read a response after I issue a command. Sometimes when I attempt to read, nothing has been returned from the terminal. This means I must wait, but not forever, right!? My soltution: Enter a loop with a time comparison guard (time elapsed since sta...

 
@CaptainObvious Oh look, some JAVA!
 
User admitted too. Shocking.
 
0
Q: Different factorial algorithms

JCPedrozaI'm new to Ruby, and as an exercise I implemented different factorial algorithms. Other rules are: raise an ArgumentError exception if n < 0 or n is not an integer. I'm interested in whatever feedback you can think of, including Ruby idioms (can something be implemented more idiomatic?). If you ...

0
Q: Using global variables in Python unit tests

Wojtek ErbetowskiHere's a very simple test in nose def simple_test(): x = 2 + 2 assert x == 4 Imagine x = 2 + 2 is setting up a test. I'd like to keep it in setup function. I thought of three different ways to pass prepared x to a test case. It seems to me that none of them is elegant. A class class...

0
Q: C++ Text Analyzer

UnknownI am working on a code that will be able to analyze a text. I am currently able to open the file, but I am having trouble stripping punctuation and converting each word to lower case letters. #include <iostream> #include <fstream> #include <vector> #include <string> using namespace std; int ...

 
6:14 PM
Reading an argument about whether Windows/Linux has more viruses.
The Linux guy is providing no proof except his word.
The Windows guys are using a report released by Eugene Kaspersky.
"Linux has no problem with viruses and malware"
They both have problems.
I don't trust open source software as a general rule because anyone can edit it.
Anyway, be internet-smart, and that helps a lot either way, except from direct attacks.
Then, be computer smart.
What did the (internet) pirate say on his birthday?
Aye matey!
 
o.o
 
What part of the keyboard do astronauts like best?
The space bar.
 
Anyone versed in the arts of Func around?
 
I just realize that I can be really evil if I want to
I can take a Java exam and then use the ScriptEngine/Nashorn(JDK8) to program in Javascript
 
6:34 PM
@skiwi Why would you want to do that?
 
@Hosch250 Do evil people ever give a reasonable answer on why they do something?
 
How would it be evil?
 
1
Q: Parsing log files of HearthStone: Loading card data without external libraries for JSON

skiwiI'm still working on a parser that can parse log entries from a game called HearthStone, the overall idea is that it will read the log file live when the game is running, parses the log file and show interesting and useful data in real time. The focus for this question is to load the card data f...

 
1
Q: Parsing log files of HearthStone: Loading card data without external libraries for JSON

skiwiI'm still working on a parser that can parse log entries from a game called HearthStone, the overall idea is that it will read the log file live when the game is running, parses the log file and show interesting and useful data in real time. The focus for this question is to load the card data f...

 
I wonder what chat message has the most stars.
And how many stars it has.
 
6:43 PM
0
Q: C++: Palindromes with stacks

T145I'm creating a simple function to verify whether or not a string is a palindrome, and must use stacks in solving it. Here's my implementation: bool isPalindrome(string word) { // #1 determine length int n = word.size(); // #3 make sure we have an even string if (n % 2 != 0) ...

0
Q: Starry Night Python Programming

lizCreate a function that draws one star. Then create another function that draws 5 stars at random positions on the screen: • Make the stars 100 on a side • To generate a random number, use the random.randrange(low,high) function. This function takes 2 parameters: the first is the lowest int...

 
@Hosch250 I would wager this one is reallllly close to the top:
Sep 29 '14 at 19:16, by Simon André Forsberg
Code Review IS FINALLY GRADUATING! (in 6-8 weeks months)
22 stars
 
Probably.
Make that 23.
 
7:00 PM
0
Q: How can i make this code more efficient?

Ankit AgrawalProblem: I have two lists. For the element at position i in each of these lists, I want to take the minimum of these elements, and then add them up and append the sum to a separate list. In the case below that would be: min(0.2,0.1) + min(0.3,0.4)+min(0.5,0.21). I want to append this sum to a new...

 
7:13 PM
@CaptainObvious How can I make this title more efficient?
 
0
Q: Loop through object and send analytics code based on objects properties value

BlexyThe code I have now is currently working, but I'm looking for ways to optimize it, and really, to just get any feedback. I'm implementing this code through Ensighten (a tag management platform) as a custom javascript tag. Ensighten works by injecting tags either sync or async scripts on to a pag...

 
7:36 PM
Come on, stupid DNS system
update your records
 
7:47 PM
0
Q: Improving performance of Fractal Creation?

Trevor MayoI created a program which recreates the Queen Ann's Lace fractal. However, when the amount of points that are being plotted increases, the points are plotted way slower. Is there any way to make it so that I only add a point, instead of adding a point and repainting all of the others. I've looked...

0
Q: Palindrome Checker with Stack

Hosch250In my answer to this question, I wrote a new solution. Personally, I would not use a stack, but given that a stack was required, how good is this solution? bool isPalindrome(string word) { stack<char> s; for (int i = 0; i <= word.size() / 2; i++) { s.push(word[0]); word...

 
@JeroenVannevel What you doing?
are
 
My dog is an absolute brat.
She was trying to eat a yarn leash made for our schnauzer, and I caught her and sent her under the bed.
My brother, who was holding the leash, accidentally let it fall between the wall and his bed.
She immediately grabbed it.
They had a brief tug of war, the leash snapped, and I had to take it away from her.
 
8:05 PM
@skiwi waiting for the world's lazy DNS system to pick up my records so I can install WordPress on my domain
 
Ah, cool
 
@skiwi Almost catching up to you.
51 points away.
 
0
Q: If a message is there, but you cannot see it, is it really there?

CaridorcI have created a space encoder program, because it is fun to generate invisible messages. (This programme is not cryptographically secure, it is just for fun) import doctest def to_spaces(text): """ Each char with ASCII code x gets converted to a line of x spaces. >>> to_spaces...

 
@Phrancis closely followed by this one with 20 stars:
Aug 25 '14 at 17:14, by Pops
Wow, this really is a star-happy room.
 
8:25 PM
@CaptainObvious Nice title!
 
Anyone around who's knows something about native binaries?
I don't know whether to use the x86 or the amd64.
 
@RubberDuck What is the difference between a native binary and plain binary?
 
I don't know. I just know that's what people keep refering to these *.dll s as.
 
8:42 PM
@RubberDuck It appears that it is machine code.
The biggest difference is the amount of data the program can handle and the amount of space it can take up.
x64 bit data is 64-bits, and can only run on 64-bit computers.
 
So, which one is 32 bit and which is 64?
I think I want to use the x86. I think it's 32 bit.
 
x86 is, if I understand correctly, is 32-bit and can run only on 32-bit computers.
However, some x64 computers support running x86 programs (Windows does).
So, not sure how that works.
 
x86 is 32 bit, yes.
 
I would definitely go x64 unless it is much harder.
x86 is being phased out more and more, with rumors each Windows release that it will be x64 only.
 
Okay. So, what I really need to do is build two different installers.
 
8:46 PM
@RubberDuck What is this for anyway?
Rubbderduck?
 
x86 = 32 bit, amd64 = 64
@Hosch250 Yeah.
 
32bit can run under 64bit
 
@JeroenVannevel Only when the computer provides specific support.
 
New version has a dependency on an external library that has a dependency....
@JeroenVannevel So, just build the 64bit version?
 
I just took a class that discussed hardware, and the teacher said so specifically.
 
8:47 PM
@Hosch250 What does "the computer" even refer to?
 
This is going to be windows, if windows supports it, then it's fine.
Not getting into the mess of supporting office for mac....
 
Dunno when @Captain is goin to get to this: codereview.stackexchange.com/q/82413/27623
 
Anything built 32bit for the same CPU architecture, can run on that architecture's 64bit version
 
@JeroenVannevel The hardware.
 
@JeroenVannevel So build the x86 (32 bit) then?
 
8:48 PM
There's a reason you this in your C: folder
 
2
Q: "Set" your expectations low for this ADT

syb0rgFor my third assignment in CS2, I was given the following: A set is a special bag that does not allow duplicates. Specify each operation for a set of objects by stating its purpose, by describing its parameters, and by writing preconditions, postconditions, and a pseudocode version of i...

 
If you have 64bit, you can run all 32bit apps for that platform
 
Okay. Thanks man.
 
@RubberDuck if your OS is 64bit then you should take the 64bit version
 
@CaptainObvious Oh, there you are. Ahoy matey
 
8:49 PM
Anyway, when I build my Windows app, it creates an install package in x86, x64, and ARM for me.
 
You can run the 32bit but there's no point in doing that
 
So I do need to build an installer for each then?
This isn't for me, it's for distribution.
 
I would create one for each.
But, you need to specify which to download then.
 
Okay. That complicates the build a bit, but I think I can do that. So long as I can keep it straight in my head.
86 = 32, 64 = 64
86 = 32, 64 = 64
86 = 32, 64 = 64
 
Just remember that 64 == 64.
And actually, an x64 processor is probably not a real x64 processor.
 
8:52 PM
In computer architecture, 64-bit computing is the use of processors that have datapath widths, integer size, and memory addresses widths of 64 bits (eight octets). Also, 64-bit CPU and ALU architectures are those that are based on registers, address buses, or data buses of that size. From the software perspective, 64-bit computing means the use of code with 64-bit virtual memory addresses. The term 64-bit is a descriptor given to a generation of computers in which 64-bit processors are the norm. 64 bits is a word size that defines certain classes of computer architecture, buses, memory and CPUs...
 
The modern x64 processors are actually only x48 processors because the true x64 processors are more expensive and we don't need their power yet.
 
> older 32-bit software may be supported either by virtue of the 64-bit instruction set being a superset of the 32-bit instruction set, so that processors that support the 64-bit instruction set can also run code for the 32-bit instruction set
 
OK.
> or by the actual implementation of a 32-bit processor core within the 64-bit processor
 
@Hosch250 TMI cuz. Don't confuse poor @ducky. He's a lowly dev, not a CS student. =)
 
OK.
16
Q: Why do 64 bit systems have only a 48 bit address space?

er4z0rIn a book I read the following: The 32-bit processors have 2^32 possible addresses, while curent 64-bit processors have a 48-bit address space My expectation was that if its a 64-bit processor the address space should also be 2^64. So I was wondering what is the reason for that limitation?

 
9:02 PM
@Hosch250 Isn't it just that they have a 48-bit bus, but are for the rest 64-bit I believe?
 
No, they only have a 48-bit address space.
See the post above.
 
0
Q: Would the non recursive method be a more optimal solution for finding a ^ n?

committedandroiderI am working on an interview question from Amazon Software The particular question I am working on is to "to write a program to find a^n." Here is my recursive solution to this problem (in java) int pow(int a, int n) { if(n == 0) { return 1; } else { return a * po...

 
9:24 PM
0
Q: Creating a Text Parser in Ruby

ProtoI've created some methods to help me convert PDF to text and then text to a JSON object. I've never done this before and I'm using this exercise as a way to improve my knowledge of Ruby. The following code does what I want, it works ...it just returns a very ugly object. Right now I'm trying to...

0
Q: Printing simple histogram Horizontally

John JacksonI am new to programming. I want to know if this is really bad code. I know my variable names may seem arbitrary but I spent some time trying to get them right. I am struggling on that. Would you do this the same way? #include <stdio.h> #define MAXLINE 100 void printHistogramHorizontally(int al...

 
Evening
 
Evening.
 
9:47 PM
0
Q: Particle class for physics simulation

OrfbyThis is a very lengthy class called Particle, it relies on two other headers, one of them is a simple struct which contains an x and y (Vector2), and the other header gets a material's properties (materialProperties.h). The class is no where near done, and I am struggling to get my collision dete...

0
Q: Removing uneeded C++ vector variable?

C.W.Holeman IIThis code fragment from 2009: #include "../asklib.hxx" std::vector<AskBase*> questions; AskUI<std::vector<AskBase*> > ui(questions); ui.add(new Ask<std::string>("Enter your name: ", 3, 25)); ui.add(new Ask<std::string>("Enter your city: ", 2, 25)); ui.add(new Ask<std::string>("Enter your state: ...

0
Q: How do I streamline this code?

User_143I was creating a program and I was trying to explain it to some of my coding friends. They commented that it was too complicated. How do I streamline this code? Note: this is a ".bat" program. Waiter.bat @echo off set /p Food="What would you like to eat? " if /i %Food%==pizza findstr "Pizza" M...

0
Q: Plasma effect slower with asm.js

GameAlchemistI did a few times ago what i called a plasma in plain javascript : http://jsfiddle.net/gamealchemist/kwt4p8st/ The idea is to use 2 oscillators (LFO) which have their frequency + phase driven by two oscillators each. Then we use those 2 main oscillator output to decide of the r, g, b of each ...

 
10:03 PM
Shiny
SHINY! We’re about to ship an all-new User Activity page. See it early & give us feedback: http://meta.stackexchange.com/questions/249951/help-us-test-the-shiny-new-user-activity-page-plus-a-bunch-of-new-features http://t.co/tw7q8USpdd
 
yeah they're not particulary "review-y"
 
Nope
 
10:20 PM
Hmm. Yesterday I was talking about some programming bad habits.
Making a thread sleep has got to be one of the worst though.
 
10:33 PM
@mjolka I've locked the post and redirected the OP here (he has enough rep to chat, at least as long as the upvoted answers remain). I'll be leaving soon, so if it does get sorted out, just flag for unlocking.
In other news, I've made an A on my first Unix exam. :D
4
 
@Phrancis I meant to comment about the Java sample you posted in chat. It's hard to comment on the OOP-ness of your code. Effectively, you're just writing procedural code... but it's Java, so it has to be in a class. :/
 
I wouldn't really know the difference very well just yet, will get there though
 
So to me, someone who doesn't write Java/C#, it looks ludicrous. And from a certain standpoint, something so simple would never be a full app, and it's probably too early to fret over your OOP-ness.
 
200_success had a great answer to the question I posted
@nhgrif That is something I have considered as well (being too early) I just felt that the book doing literally everything in main was... odd and probably something I should not get in the habit of doing
 
10:43 PM
I don't want to (at) anyone and draw too much attention... but be careful who you take advice from in here. Most of the regulars know what they're talking about. Most, but not all. (And I'm not trying to imply 200_success doesn't know what he's talking about--he does)
 
Guessing they are saving OOP for later chapters
 
Jamal: you locked codereview.stackexchange.com/questions/82334/… do to my many answers, they are all improvements (I think)
 
If you're following the book, it might be best to just stick to it exactly
 
I'd like the comments to be open
 
@JasonLind Open a question on the Meta.
If you want a discussion about the status of your question.
 
10:44 PM
how do I do that?
 
@Phrancis Just keep in mind that putting everything in main is a bad habit and you'll be certain to break it later.
 
his comment said to go to chat
 
@JasonLind meta.codereview.stackexchange.com or have a chat here about it.
 
I think I'm being productive
am I not?
 
Well, here's what I'll say
Your answers are barely more than code-only.
They look more like commits with a short barely descriptive commit message.
And the fact that they're all self-answers...
To me it looks more like you need a Github account.
 
10:47 PM
I have a Github account, I was looking for feedback on the various stratiges
 
Good CodeReview answers tend to be more plain-English than code.
 
I got alot of help on IRC but they didn't post comments
 
And you're not going to get feedback on the comments.
 
I already did
 
Or, you're not supposed to... that's not how this site works.
 
10:47 PM
^that
 
You should post your current working version in the question.
Then reviewers will post their suggestions/critiques/etc. as answers.
 
should I open up a new question?
 
You could just fix this one up. Fix the question and delete your self-answers.
 
and post the various implementions to compare and contrast?
ok
 
I wouldn't post various implementations.
I would post the implementation you think is the best.
 
10:49 PM
I can't edit it's locked
 
Or, worst case scenario, post the best two.
Can you delete your answers?
 
Now that you know what to do, I'll unlock it now.
 
ok thanks
let me know when it's unlocked
 
Done
 
ok I'll have you guys review when I'm done
 
10:52 PM
Remember: if the answer is not a direct review of the code, then it shouldn't be posted as an answer.
 
0
Q: python: Networkx VS graph-tool

Mohsenuss91I'm working on graph mining, so I'm trying to find the best library to do that. I read in http://graph-tool.skewed.de/performance that "graph-tool" is faster, so I tried the same program who count the duplicated graphs (I call them frequent in the program) in networkx and graph-tool. graph are ...

 
10
Q: Can a professor refuse to introduce any textbook for a course?

nonameIn a technical course, our professor refused to introduce any textbook. He officially stated (included in the course syllabus) that all the course content will be discussed in the class, and cover all questions in the final exam. I think this is a trick to bring the students to the class instead...

Ugh. Why do people want to buy overpriced text-books?
 
@nhgrif I for one don't want to.
 

« first day (660 days earlier)      last day (3357 days later) »