« first day (1037 days earlier)      last day (2996 days later) » 

12:00 AM
RELOAD! There are 1919 unanswered questions (94.0218% answered)
 
12:24 AM
Don't. If you have a genuine question about your code, ask it as a new Question. If you are just asking for a code review, ask the question on codereview.stackexchange.comStephen C 49 secs ago
 
1:19 AM
0
Q: Java 8: effective usage of Optional and Function

WorldSEnderI've wrote the following constructor: class ReloadingData<D> { private Function<Optional<IResource>, D> loader; public <U extends D> ReloadingData( Function<? super IResource, Optional<U>> loader, D defaultData) { this.loader = o -> { Opti...

 
I wonder whether I should bother implementing type checks in my internal functions...
 
0
Q: Background Image in Div with Colour Caption that follows ALPHA

user2675647Background Image in Div with Colour Caption that follows ALPHA Hi All, As you can see by this fiddle, https://jsfiddle.net/postcolonialboy/ou5h0wnw/4/ everything is working great, except i would like the blue that is behind the text that is reveal on hover, to cover the entire icon (ie. until w...

 
monking
 
1:35 AM
not you too @EthanBierlein
;-;
 
??
Oh, the name thing
lol
well I gotta wait thirty days before I can change it again :P
 
lol
no more herb for you.
@PinCrash @JeroenVannevel it may someday find it's way into real code...lol
 
I wasn't joking
It actually is enough
 
1:54 AM
0
Q: Printing a binary search tree level order traversal?

Tuan Anh Tran CaraballoI'm trying to write a function that prints a tree by level: Let's say I have this: 3 / \ 5 2 / \ / 1 4 6 It should print this: 3 -> 5 -> 2 -> 1 -> 4 -> 6. Here's my function: It works for all test cases except for this one: 15 1 3 2 5 4 6 7 9 8 11 13 12 10 15 14 , wh...

 
If your code actually works, but you are looking for a peer review, you probably want Code Review instead. — Tieson T. just now
 
8
Q: Who said that? 2016 Presidential election

soktinpkIn this challenge, your task is to make write a program with less than 300 characters that takes a short paragraph or a few sentences that a candidate has said and output who said it. Input: Can be taken as a parameter to a function, input to a program etc. It will be a short paragraph, properly...

lol
 
lol wtf PPCG, that's a weird question
 
2:47 AM
@JeroenVannevel I figured as much. I know you were serious. I was just making a statement unrelated to the citation...if that makes sense
how do I make a list of objects I created with a class, so that I can run Linq on them?
 
I want to order my list of objects using a simple Linq .OrderByDescending on a date field, and it won't allow me to assign it back to the list of objects
 
that's because .OrderByDescending returns an IOrderedEnumerable or something
 
class Sibling : Human
{
    public DateTime DOB { get; set; }
    public Sibling (DateTime dateOfBirth)
    {
        this.DOB = dateOfBirth;
    }
}
 
Call .ToList() or .ToArray() or whatever is appropriate
 
2:49 AM
OMGosh! that is so simple
I tried to do a siblings = (List<Sibling>)siblings.OrderByDescending(x => x.DOB) but that didn't work
but if I do siblings = siblings.OrderByDescending(x => x.DOB).ToList<Sibling>(); that works!
I am actually coding this (closed & deleted) question --> codereview.stackexchange.com/q/121972/18427
 
You don't need the generic type argument
Just .ToList()
type is inferred
 
nice to know. I am still learning Linq, please forgive me....lol
haha, VS told me the same thing
I think that I will post it first thing I do when I get onto the computer tomorrow
I wonder if I have resharper on this machine..... wonder if this machine can handle it
does 2015 have it automatically?
eh, TTGTB
thank you for the help @JeroenVannevel, I look forward to reading a lot of your reviews and learning from you as much as I can
 
3:06 AM
Resharper is paid -- it's not part of Microsoft
My pleasure
I like to feel smart
4
 
If you have a student ID, you can get it for free.
You can get it for free if you work on an open source project too, but I'm not sure of the conditions.
 
Or you could get VSDiagnostics. I use that at work instead of resharper
because what kind of business cares enough about code quality to get resharper
 
@Quill do you for real?
 
yes
 
And it works?
 
3:13 AM
yeah....
I had a pirated version of resharper on for '13, but it kept crashing '15
 
And it is actually useful? Or it's just there and doesn't really say much?
 
@Quill the place I am working for cares enough to get resharper
anyway I have merged my branches and I am going to bed now
for real this time
 
@JeroenVannevel it depends. realistically, it's designed to be used so that it's future use is unnecessary; you improve your code which improves you, which eventually you shouldn't need it.
I'm still in that phase of writing stuff that can trigger stuff, I suppose
 
What analyzers do you trigger the most, ballpark?
 
not really sure actually
 
3:16 AM
Look at me. Holding a user survey under the entire userbase
2
 
it used to be the string.empty one
 
And you've never stumbled on a bug before?
The update from last week closed about 20 bug issues
 
not that I've seen
 
Including a string.Empty one for example
Well, that's good then I suppose
Alright, tomorrow I'll finish the chrome extension and then I'll continue with VSD. Gotta keep my user satisfied
 
I'm finishing up the source control for RD, but I'll get you those inspections as soon as I can.
 
3:38 AM
0
Q: Any suggestion about the code for trie implementation

Robin Liu#include <memory> #include <unordered_map> #include <vector> #include <iostream> using std::cout; using std::endl; using std::unordered_map; using std::shared_ptr; using std::make_shared; using std::string; struct TrieNode { bool isLeaf = false; unsigned int child_num = 0; unordered...

 
4:19 AM
hmm. javascript's promises yet again screw with my head.
Hmmm. I think my room joining thing isn't working.
yeah. it ain't working at all
 
0
Q: Tree processing for series and parallel execution

NavysealI have a tree processing application where some of the nodes are "executed" in parallel and some in series. I managed to do this but I feel that the solution looks a bit "hacked up" and can be improved on. Need your help on this. I have a JobObject class using which I am build a tree [Serializa...

 
4:59 AM
@Quill Sounds like my typical saturday night with a girl as well
5
 
0
Q: How to initial the game?

Ping LinI am making a game for my computer science class. And what my professor's requirement are: Write a Processing program that draws a triangle in the middle of the window. Rotate the triangle when the left and right arrow keys are pressed using the translate and rotate methods. When the spacebar i...

 
@JeroenVannevel lol
 
5:23 AM
Chen greatly answered your question, but I would also suggest (for later code review) to rename your "employees" variable to "employee" and "listemployee" to "listOfEmployees" or just "employees" — httpNick 52 secs ago
 
0
Q: Factory Design Pattern in Java

DontForgetTheSemiColonTrying to learn the factory design pattern, came up with some code based on a Shape Factory (found this example here).Is this implementation the right way to implement the factory pattern? interface Shape{ void draw(); } class Rectangle implements Shape{ @Override public void draw...

 
5:50 AM
0
Q: Best method to read a file byte by byte in Java

Dabba raajuI am right now using, Path path = Paths.get("c:\test\test.txt"); byte[] all= Files.readAllBytes(path); The problem with this is that I have to load the entire file in memory. My requirements it to read the file byte by byte, but in a manner like first 4 bytes mean X, next 16 bytes mean Y and u...

 
 
1 hour later…
7:07 AM
0
Q: How to detect if BufferedInputStream was over while filling an array in Java?

Dabba raaju FileInputStream fin = new FileInputStream(path); BufferedInputStream bin = new BufferedInputStream(fin); byte[] inputByte1= new byte[500]; byte[] inputByte2= new byte[500]; byte[] inputByte3 =new byte[34]; bin.read(inputByte1); bin.read(inputByte2); bin.read(inputB...

 
7:42 AM
0
Q: NDArrays in C: slicing/transposing/polynomials

luser droogThis is the primary module for my APL interpreter. The general idea is motivated by my two stackoverflow questions, but the details I fear are easy to get wrong and I suspect there are a few corners that my eyes simply don't observe critically since they have the authority of having lain in the f...

 
8:02 AM
0
Q: Compare user input from string to text file

user6024646Take user input as a string and compare it to the contents of a text file. Do comparison only using length() and charAt() methods. *Currently using arrays, shouldn't be using any arrays import java.io.*; import java.util.ArrayList; import java.io.BufferedReader; import java.io.FileReader; im...

 
0
Q: How to get feedback over multiple solutions of a particular exercise of a book?

user31782I am self studying C++ from Robert Lafore's OOP in C++. I am solving the exercise questions of chapter-3 loop and decisions. For the first question(say X) I've written three different codes using different approaches(y1, y2 nd y3). I want to get feedback over my codes like a teacher is supposed t...

 
8:41 AM
0
Q: Implementing a watchdog timer in C++11

UnTraDeI'm trying to implement a small watchdog timer class in C++ 11 that should call some code when it expires. Watchdog.h: #pragma once #include <thread> #include <atomic> class Watchdog { public: Watchdog(); Watchdog(unsigned int milliseconds, std::function<void()> callback); ~Watchd...

 
9:00 AM
Naruto answer; accepted non-selfie answer with 0 score: Coconut, Sailors, and Monkeys
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Recursive function in JS
 
0
Q: Simple Multi-Threaded Web Server

Loki AstariNeed a way to test a web crawler. Through together this web server that will replay previously saved pages from a real web server. Headers #include <stdexcept> #include <memory> #include <map> #include <iostream> #include <sstream> #include <fstream> #include <string> #include <algorithm> #inc...

 
9:20 AM
Generally, SO is a site for the code that is not working. If you need advice about improving your code suggest you asking at codereview.stackexchange.comFedor 35 secs ago
 
0
Q: GAE Sample Site: a sample website hosted on Google App Engine

MoriI just wrote a tutorial on MDN regarding how to host your website on Google App Engine, and included a sample website as a starting point/template for beginners so they can download and develop it as they wish. Please review the source code and provide feedback. global.css html, body { margin...

0
Q: Simple Guessing Game C# MVC uses Session Variable and Cookies

seablueI'm learning C# and MVC. Would greatly appreciate critique on my code written for a simple guessing game using MVC. Here our requirements: Randomly generated number, hidden from the user of the page. The random number, as well as the list of guesses, should be stored in the Session state. Cou...

 
9:49 AM
@CaptainObvious Ha, Loki. I needed a web server so I just kinda wrote one.
5
 
This is any easy mistake to make. I'll have to do a quick code review of my latest RX code. I sure wish there was a set of good practices and patterns for using reactive extensions. — Magnus Lindhe 35 secs ago
 
10:05 AM
0
Q: Recursion task - optimization

mynameismaoredriI need your review and suggestions how to make this code better. I'm just learning recursion and sure that this solution is not ideal. question - Write a function that given an input array of integers with a varying length input integers array, and the desired target_sum, returns the number of ...

 
 
1 hour later…
11:09 AM
Stack Overflow tends to prefer exact question, and this question is pretty vague. You might have better luck in Code Review. Good luck. — Kobi 7 secs ago
 
0
Q: Efficient way to parse deep nested tag in xml -Python

Veerendra<conntrack> <flow> <meta direction="original"> <layer3 protonum="2" protoname="ipv4"> <src>172.25.30.2</src> <dst>52.8.104.253</dst> </layer3> <layer4 protonum="6" protoname="tcp"> <sport>59158</sport> <dport>4343</dport> </layer4> <...

 
@Kobi It would be off-topic for CodeReview. CodeReview is for working code only. — Eugene Podskal 26 secs ago
 
11:24 AM
0
Q: Typing game in Javascript

nikola1970I recently made a Typing game in JavaScript and i would like it to be reviewed so i can become better knowing where did i make mistakes and what should i improve. :) I will paste the code here and leave the CodePen link as well :) Any advice will be welcome :) http://codepen.io/nikola1970/pen/o...

 
possible answer invalidation by 200_success on question by Thomas: codereview.stackexchange.com/posts/121533/revisions
 
0
Q: Arranging People in Rooms

user266002I'm trying to generate some code that will compute ways of arranging people into rooms. In the code, there are $n$ sites labelled $1, ..., n$ , each with $r_i$ rooms available left (as we've already managed to fit some people into our rooms during a previous iteration of the code). We have to f...

 
11:50 AM
I'm voting to close this question as off-topic because it belongs to codereview.stackexchange.com — Markus Safar 34 secs ago
 
12:02 PM
0
Q: Having some trouble with the try/catch and objects constructors for intializing my game in SDL. Would love some advice on some code.

Ryan SwannI have recently learnt about RAII and exceptions and I have been trying to implement them into my code but I have met an impasse. With this code here what I am trying to do is manage everything that is being created so that there is nothing left over for when the program ends. I have deliberate...

 
12:26 PM
0
Q: Different approaches to generate formatted mathematical multiplication tables in C/C++

user31782I am self studying C++ from Robert Lafore's OOP in C++. I am solving the first exercise questions of chapter-3 loop and decisions. I've written three different codes using different approaches. I want to get feedback over my codes like a teacher is supposed to give feedback to his student. I want...

 
12:40 PM
They say working code should be go to Code Review. — MikeCAT 26 secs ago
 
1:02 PM
OMFG Microsoft!! Why the heck do you loose the theme when I sign in to my "IDE Account"??
 
1:27 PM
Nice talk @Quill, thanks for sharing.
 
SO is for questions related to code that doesn't work. If you are looking for improvements, perhaps you should visit codereview.stackexchange.comzondo 27 secs ago
 
1:45 PM
possible answer invalidation by Dieter Lücking on question by Dieter Lücking: codereview.stackexchange.com/posts/47347/revisions
 
1:57 PM
0
Q: Singly Linked list implementation in C++

Dhruv SehgalPlease tell proper indentation and usage of camel-case. #include <iostream> using std::cout; struct Node { int data; Node* next; }; Node* Create(int data){ Node* root=new Node(); root->data=data; root->next=NULL; Node* head=root; return head; } void push_back(int ...

 
incoming
 
@DJanssens Yeah =D Joel's stuff is really good.
 
someone is going to tear apart my AgeIntoDays method for sure
 
HULK SMASH
 
0
Q: Age Calculations (First Draft)

MalachiI found another user asking for an application to be written, it sounded simple enough and a good way to "work out" my C# "muscles" and try to get them into a better "shape". I really liked the idea of learning the difference between people's ages so I decided I would code this, I did enlist the...

 
2:17 PM
and I didn't make that a true extension either
 
nice question @Malachi +1
 
thank you
 
afk now, maybe I'll review it later
 
I am looking through some of the other projects on this machine to see if I have an extension project that I can add my DateTimeExtensions too and include in this as well
@JohanLarsson awesome, sounds good. I will be AFK for a while today as well
I don't think I have any Extensions Project on this machine, I will have to create one! yay! I am excited!
should I link to the now deleted question?
 
2:39 PM
I wouldn't bother. there's not too many >10k users around these days
 
2:54 PM
I think this question would be more appropriate under codereview.stackexchange.comSebastian Proske 12 secs ago
 
3:11 PM
0
Q: One class unit-tests

userbbIts my first attempt to unit-test in Js. Not yet TDD. What I can change? EventsPersistancyService.js: var Q = require('q'); var EventsPersistancyService = { accept: function acceptService(msg) { var worker_id = WorkerCacheService.get('some login'); var app_category = AppCategoryServ...

 
3:28 PM
@CaptainObvious Only one answer: remove everything and go for nodatime.org
Unless it is explicitly intended as a training exercise
There are some things you want to homebrew but datetime libraries are not it
 
If you have working code that you think could be improved, see Code Review. However, you state "prob_3 does not seem to work", which suggests that your code is broken; if so, again, provide a Minimal, Complete, and Verifiable example. — jonrsharpe 32 secs ago
 
4:00 PM
Please Steve, follow @SebastianProske's suggestion and move this to coderview.stackexchange.comTom Brunberg 49 secs ago
 
0
Q: SICP - exercise 1.11 - tree recursion

morbidCodeFrom SICP Exercise 1.11: A function f is defined by the rule that f(n) = n if n < 3 and f(n) = f(n-1)+2f(n-2)+3f(n-3) if n >= 3 . Write a procedure that computes f by means of a recursive process. Write a procedure that computes f by mea...

 
Hi guys, can someone help me with formatting my code? Is it good enough? Thanks! codereview.stackexchange.com/questions/122066/…
 
4:20 PM
0
Q: A phone troubleshooting program

Jainish PatelThe code should ask the user multiple solutions and find the problem with the users phone. The program should be efficient as possible and have a possible of 10 outcomes. I would like some tips on how I can make the code more efficient and meet the task requirements. This is what the task states:...

 
4:37 PM
@morbidCode Looks great!
 
@PinCrash thanks! I have a lot of trubble with code indention lots of times :)
 
@morbidCode I made some edits to add Mathjax formatting to the formulas, hope that's OK with you. If you want to use that in the future you can just wrap math formulas in a \$ (backslash-dollar) on each side
 
@PinCrash sure. Thanks again
 
4:53 PM
0
Q: hellp stub code vb.net

Geared Silently Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click Dim Brow1 As New FolderBrowserDialog Dim Brow2 As FolderBrowserDialog = Brow1 If Brow2.ShowDialog() = Windows.Forms.DialogResult.OK Then Dim a As String = NumericUpDown1.Value ...

 
possible answer invalidation by MAG on question by MAG: codereview.stackexchange.com/posts/119444/revisions
 
5:11 PM
0
Q: Student/Class Project Java MySQL

RassislandI have a Java application that uses a few switch statements to get user information about students and classes. I have three MySQL tables: students student_id | student_name | hometown classes class_id | classname | description student_x_classes student_id | student_name | class_id | classn...

0
Q: C# Reduce repetitive code in derived methods

denisi have interface with 2 functions. This interface is being inherited by an abstract class which implements just 1 of those functions the other 1 is left to be implemented by the derived classes of the abstract class. public interface ICombination { bool Check(IReadOnlyList<int> hand,UsersPro...

 
Zak
@CaptainObvious Doesn't look Off-Topic (despite the title), but is very poorly asked.
 
So tired.
That Java/MySQL question has a silly table
 
5:29 PM
0
Q: In TCP, does a client side packet have RTT since the server will send a cumulative ACK instead of ACK for each packet?

Cf WangWhile calculating RTT for each packet in Wireshark, it occurs to me that several packets sent may have less corresponding respond packets. For example, as shown in the figure attached to this question, the client sent packet #10 and #11, but will only receive packet #14 as a response. The server ...

1
Q: Simple worker class

JoséI just wrote a basic worker class for this person http://stackoverflow.com/questions/35827459/assigning-a-new-task-to-a-thread-after-the-thread-completes-in-c and I wanted to ask if the code has been written properly, it's supposed to have multi-thread support. Any feedback would be nice. Liv...

 
If you have working code you are looking to optimize, it might be fit for Code Review. This would be off-topic for SO. However, make sure to read how to ask to ensure you stay on-topic. — idjaw 39 secs ago
 
5:46 PM
0
Q: I receive the following error in code when I browse to http://127.0.0.1:8000/chats//:

rabiyaValueError at /chats// invalid literal for int() with base 10: '' Request Method: GET Request URL: http://127.0.0.1:8000/chats// Django Version: 1.8.4 Exception Type: ValueError Exception Value: invalid literal for int() with base 10: '' Exception Location: C:\Users\Rabiya Abdul Jabbar\Anacond...

 
6:00 PM
@nhgrif I take it you mean that students_x_classes table? lol
 
Yeah.
The trouble is... Is the database his, or is it what was distributed as part of the homework?
Because teachers make terrible technical decisions all the time.
Maybe I'm really jaded, but I mostly think that the industry demand is too high for there to actually be highly skilled teachers at any level programming courses...
 
-1
Q: Implement Class Accounts

RamiI have this homework for tomorrow and I'm having trouble with some stuff can anyone please help me with it?!! Implement a class Account with: account number, Client name, and account balance. Use a constructor and the following methods: Deposit: withdraw: interest: display:

 
I don't mean they are bad teachers or lack teaching skills.
But if you've only learned the course material and not learned how to learn technology, your institution has massively failed you.
 
I can see that
in SQL Helpline, Mar 1 '15 at 18:26, by nhgrif
If programming teachers were good programmers, they'd be programmers, not teachers.
 
Broken record, I guess. That was a year ago, heh
 
6:19 PM
0
Q: Simplifying LZW compression & decompression

KrakenJawsI have wrote code that takes an input file text that can be compressed, and should contain ascii values, and then a new file is created with an appended ".lzw" and that file can then be decompressed. I want to know if I can improve this code, e.g. Simplifying buffer read/write bytes using Random...

 
6:37 PM
0
Q: Dijkstra's algorithm in Javascript

WinchenzoMagnificoI couldn't find any other versions of Dijkstra's in Javascript online other than one that used a priority queue and needed a start vertex and end vertex as arguments. So here is my attempt at coding Dijkstra's algorithm in Javascript, I used the Wikipedia pseudocode as a base and the simple exam...

0
Q: Tic-Tac-Toe project in Python

Anthony AlridgeHere's a tic-tac-toe program I wrote in python. How can I improve it(eg. make it more readable) ? class Gameboard(): def __init__(self): self.gameboard = {1:' ' , 2: ' ', 3: ' ', 4:' ', 5:' ', 6:' ', 7:' ', 8:' ', 9:' '} def setPeice(self, user, position, gameboard): gameboard[pos...

 
7:00 PM
0
Q: Is this the most efficient way to print the minuend and subtrahend in a Minimum Difference Algorithm?

csheridanI have a Minimum Difference Algo, and I wanted to expand on it by printing the actual elements that were subtracted. I'm just wanting to know if this is the best way to do it? public static int findMinimumDifference(int[] arr) { int minuend = 0; //initialize them here int subtrahen...

0
Q: My Code is written in the Editor Processing and it codes a Pong - Game! Would be glad if someone could rate my Code! TY

Panden //Variabeln werden erstellt int untere_spiel_grenze; int obere_spiel_grenze; float spieler_x; float spieler_y; float ball_x; float ball_y; float ball_geschwindigkeit_x; float ball_geschwindigkeit_y; float spieler_2_x; float spieler_2_y; int runde; int spieler_leben; int spieler_2_leben; i...

 
7:39 PM
1
Q: Simple calculation program in assembly MASM

Syed Qasim AhmedI am a beginner in assembly. This program calculates: (Z-Z)+(X-Y) DATA_SEG SEGMENT X DW 2 Y DW 3 Z DW 5 RES1 DW ? RES2 DW ? DATA_SEG ENDS CODE_SEG SEGMENT ASSUME CS:C...

-1
Q: How can I scan a string of very large length

tryst001I am using s = raw_input() to read the string but not getting right answer for very large len(s) ? Please help me with that. Thanks. PS :- I thought of using file input but i have to submit this code somewhere online. So I have to use some other approach.

0
Q: Distributed (asynchronous) averaging

Tom KealyThis code simulates a distributed averaging protocol. There is a network of nodes, and at the clicks of a Poisson process: 1/ A random node wakes up 2/ Transmits it's current average to all the nodes it is connected to 3/ These nodes have a coroutine which waits to accept new values and comput...

 
8:28 PM
That is one fiendish security vulnerability.
 
0
Q: Code style with function pointers vs. without function pointers

httpNickI am unfamiliar C coding styles and I had an idea to use a function pointer for this given piece of code. Typically, would it be aligned with current C coding style to use function pointers here or keep it as-is and semi-duplicate this little bit of code. Part of function in question: struct no...

 
@Hosch250 lol
 
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.comTom Brunberg 56 secs ago
 
8:43 PM
monking
 
monking
 
user image
3
 
the r# runner has been different kinds of broken since forever
r# and nunit 3 is a perfect mess
 
@JohanLarsson Yeah, I know.
Just a couple weeks ago, they tests were passing, but saying they were failing.
If I ran the test individually, it would say Fail, but when I ran the all tests, they would all pass.
 
also pretty common that nodes in the tree has red circle or the red hand when all descendants are green
 
8:58 PM
@JohanLarsson I've seen that too.
> Wouter wrote, "If anybody needs me, I'll be entering my PIN for the next few days."
 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Tornado chat with SockJS and Redis
 
 
1 hour later…
10:06 PM
0
Q: Strategy pattern improvement

denisi have implemented some sort of the strategy pattern using abstract class and interface : public interface ICombination { void Check(int[] hand, UsersProperties user); void UpdateHand(UsersProperties user, int combinationType, int powerType); } public abstract class ICombinationAnalyzer...

 
10:50 PM
You wanna know how to shipwreck someone's confidence?
Superlike them on Tinder and then unmatch
SCREW YOU TOO 'LEVA' OR WHATEVER THE HELL YOUR NAME IS
 
11:01 PM
Note that asking for performance tips regarding working pieces of code is usually off-topic here, and usually on-topic at Code Review Stack Exchange. But they might also get a heart attack from your function:) — Andras Deak 50 secs ago
 
@DavidHarkness : See play.golang.org/p/T7sLjGFBgc and ping me in the 2nd if you want to chat ;-) — rolfl 1 min ago
 
@AndrasDeak so you say it's better to transfer the question to Code Review? Why a heart attack? Do you mean my way of coding is problematic from the begining? Can you think of any other way to implement the algorithm of this articlesepideh 46 secs ago
If your code is working, please bring it over to code review. You have a lot of other obvious problems besides performance that we will help you clear up, in addition to algorithm inefficiencies and performance problems. — Hosch250 48 secs ago
@AnonSubmitter85 ok , thanks. I have to move the question to code review and delete it from here — sepideh 11 secs ago
 
11:29 PM
0
Q: What are the problems of this code? Any idea to accelerate the code?

sepidehI have the following code which I want to apply on 3 images of the sizes 676x718, 1430x1440, 5576x9444. But the code is too slow even for the 676x718 image. function [Ps,Pd,Pv] = Arii2011_Modified(C11,C12_imag,C12_real,C13_imag,C13_real,C22,C23_imag,C23_real,C33) [Ps,Pd,Pv] = arrayfun(@Arii201...

 
11:48 PM
0
Q: php get string between two strings with offset

Nurettin Kayafunction getdatabetween($string, $start, $end){ $sp = strpos($string, $start)+strlen($start); $ep = strpos($string, $end)-strlen($start); $data = trim(substr($string, $sp, $ep)); return trim($data); } $dt = "Hello cat bye Hello dog bye"; echo getdatabetween($dt, 'Hello', 'bye'); ...

 
11:59 PM
@CaptainObvious RBA
 

« first day (1037 days earlier)      last day (2996 days later) »