« first day (1125 days earlier)      last day (3191 days later) » 

00:00
RELOAD! There are 2398 unanswered questions (93.0780% answered)
why move the take 16>
?*
Because map returnNote $ fibonacci 0 1 is the core of what you are doing.
You could, in theory, stream those notes forever.
You're just deciding to stop after sampling the first 16.
So you're saying just take 16 of the entire thing instead of running through the map and then taking 16 of the fibonacci function. Running the code forever would result in a repeating pattern every 16 notes, hence the 16.
Yes, that is my suggestion.
I see why that makes more sense then what I have. Beside it being the most logical place for the take 16, is there a speed improvement? I just want to grasp as much as I can about whatever changes Im making so im not just rewriting what you guys tell me to and not actually learning from it
00:06
I would expect performance should be virtually identical. Haskell is lazy.
Oh yea that's right. Thanks for the help.
You're welcome.
@dkisonas If you're going to fail because you don't know, learn. There are plenty of free, online resources if you can't afford or don't want to pay for an in-person tutor. Once you have code that works (that is, it compiles and does what it's supposed to) you can post it at Code Review.SE and they'll tell you how you can improve it, which is also a great way to learn. Note that you shouldn't post homework there until after it's turned in, or only turn in the non-reviewed version; otherwise, there's a good chance your professor will say you're cheating. — QPaysTaxes 14 secs ago
0
Q: How to write a program in Python Code for generating a Pascal Triangle?

user106940 Notice that the program should be terminate when encounter the integer that given by user, that is the Hardest point in the assignment. Also, Recursion is not allowed in the question.

 
1 hour later…
01:17
24
Q: June 2016 Community Challenge

EBrownI don't see one of these yet, so here's the question for the proposals for the June 2016 Community Challenge! (I skipped May, as there wasn't enough time to get a good pool of suggestions.) It's time to choose a community-challenge for June 2016. Post your challenge as an answer to this ques...

01:49
0
Q: The D+J programming challenge from Kattis

GiggsThe problem is as follows: Dick is d=12 years old. When we say this, we mean that it is at least twelve and not yet thirteen years since Dick was born. Dick and Jane have three pets: Spot the dog, Puff the Cat, and Yertle the Turtle. Spot was s years old when Puff was born; Puff was p ...

 
2 hours later…
03:27
0
Q: Spring MVC controller

dwjohnstonMy code has a nasty smell that looks like this: @RequestMapping(value = { "/updateGraph" }, method = RequestMethod.POST) public ResponseEntity<ArrowsGraph> updateGraph(@RequestBody ArrowsGraph g){ try{ g = arrowsBo.updateGraph(g); return new ResponseEntity<ArrowsG...

03:39
This question may be better suited to Stack Exchange's Code Review site. — Brandon Anzaldi 5 secs ago
0
Q: Can recursive solution for merging two sorted list pass the time constraint?

Mona JalalSo I came up with a recursive solution for merging two sorted list in Python in interviewbit but I wonder if the problem is with recursion or the code I have written. I don't have access to the dataset that fails this code: class Solution: # @param A : head node of linked list # @param...

04:03
> You've earned the "Excel" tag badge
3
04:30
Should be possibly moved in Code Review codereview.stackexchange.comDaniil Ryzhkov 44 secs ago
Monking
hi
0
Q: MPI BMP Image comparison more efficient

Andrés ArámburoI made a simple program in which I compare two images pixel by pixel and determine if the pictures are the same. I'm trying to adapt it to MPI, but I'm afraid that the communications are taking too long making it way more inefficient than its sequential counterpart. I have tried with images of ve...

05:00
possible answer invalidation by Mik3c on question by Mik3c: codereview.stackexchange.com/posts/129509/revisions
@Duga thanks Jamal :)
05:38
0
Q: Weaving through the MIST - Strategy change?

Mik3cNew Question- Original post here for reference I've developed (and use) a IL "weaving" solution for auto-implementing property change notification in .NET applications but I'm considering using a different tactic for making the IL modifications, I can replace the InsertNotificationsIntoProperty ...

05:57
OP: You might get better responses on Code Review instead of here. — Kevin just now
06:31
0
Q: Move a folder to another in C#

Nicolas RaoulIn C# I wrote a method to move a folder into another existing folder: public void MoveFolder(string folderToMove, string destination) { String destinationFolder = Path.Combine( destination, Path.GetFileName(folderToMove)); Directory.Move(folderToMove, destinationFolder); } It ...

06:43
0
Q: Formatting a date in ClojureScript

iGELI want to convert strings with the iso date format (2015-08-02) to the default format of our app (2 Aug 2015) in ClojureScript. As I don't need anything else, I don't want to pull in libs like cljs-time. I'm quite new to Clojure & ClojureScript, so I want to ask for some feedback on this small s...

06:55
hey guys im new here, and i want to ask something, i recently made my own firefox user script which makes firefox spit out less indentiefiable information on the web. it also tightends security by disabling weak crypto. but i want to let some more knowlegdeable people take a look at it to see if i missed something or made a mistake, so do i need to postethe link and question here in the chat, or do i need to poste it as a question on the site. greetings, blacklight
Welcome @blacklight, you need to ask a question and you need to place the code inside the question. A link to the code (if you don't show the whole) can be added but only a link will make the question off topic.
Make sure that the code is working like intended because broken code is off topic as well.
hi guys, should bug fixing self answers be upvoted? Not sure if he found all of them, but fixed the most critical places.
07:15
@OlzhasZhumabek link ?
0
Q: RadixSet - A growing-only Radix/Patricia Tree

MephyI'm looking for a structure to store large amounts of strings (5k to 100k) and then test for existence of new strings against the previous inserted data, in the least possible amount of time (memory is mostly irrelevant). The structure would first be fully loaded at the program start, without any...

As it is written as a code review it is a valid answer so yes
If you think its deserves an upvote
i have now asked it on the site, if i did not use the correct format on how to ask things here or if I did something wrong in anyway, please tell me and i will try to correct it.
@blacklight looks good
just be patient and you will hopefully get some good answers. Just don't expect to get answers very soon because code review can be a lengthy task.
@Heslacher i understand, thank you
07:25
1
Q: Userscript to tighten security in Mozilla Firefox

Lone DarknessHello people of codereview, im new here so if I got something wrong than feel free to correct me. I have recently started writing a userscript for mozzilla firefox to tighten security and make it more private, but before I want to start publishing it, I would like to have some experts take a look...

where can I get big amount of text? Need for test file, but googling gives how tos
wanted to write random generator, but std::uniform_int_distribution doesn't support chars.
1
Q: PHP class which preserves line break by splitting the line into as many line break as it have

forethoughtCan anyone here please review my PHP code which preserves line break by splitting the line into as many line break as it have? class PerserveLineBreak { //Preserves line break in HTML element content while stripping by splitting the html element content into two items protected $text; ...

07:42
@OlzhasZhumabek Dump
With thanks to random.org
Monking
Monking @DanP
how's it going?
@Mast thanks, wrote my own. Took me 4 GBs of RAM :D
07:55
possible answer invalidation by iGEL on question by iGEL: codereview.stackexchange.com/posts/129896/revisions
@Duga handled
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: SessionHandlerInterface Class
Zak
Zak
Monking @all
monking like morning?
Monking is a time-zone neutral "morning" :-)
08:06
28
A: What's a Zombie? And what are the many other memes of Code Review?

Vogel612Meme: Monking Originator: Morwenn Cultural Height: The 2nd Monitor Background: A morning greeting to the Monkey doing his monkey-business, in other words: monking Examples: A small chat search Variations: Monkernoon, Monkevening, Monknight, ... Important is only that it begins with Monk... ;...

I've read that one, but not to the end
Monking
Second opinion?
@Mast I know what should I do when someone answers, But this was not an answer. AlanT ask me to add some code to more understanding. In a result I updated my question. I used the edit link on my question to add additional information. What is the problem? — MegaTron 10 hours ago
@OlzhasZhumabek RAM is irrelevant.
It's there for a reason. Use it.
@Mast, yeah, just used static vector. btw it run for 2 minutes, got crazy stuff on memory usage (it was increasing and decreasing randomly) and died, lol
@Mast I would tend to agree with OP
08:25
@MathiasEttinger I'll let it be.
Thanks
0
Q: What is better: join(dirname(__file__), '../../../testdata')) or join(dirname(__file__), '..', '..', '..', 'testdata'))

noisyBoth ways works: os.path.join(os.path.dirname(__file__), '../../../testdata')) or os.path.join(os.path.dirname(__file__), '..', '..', '..', 'testdata')) First is shorter. Is there any reason to use 2nd syntax?

@MathiasEttinger I'd say it invalidates Heslachers answer though.
If I'd encounter it again, I'd roll back again I think.
possible answer invalidation by Pere on question by Pere: codereview.stackexchange.com/posts/129806/revisions
@Phrancis I prefer the bugs I didn't know about. "I had no idea that was happening."
3
@Mast no, the bug is still in the code
08:35
Ok.
@Duga Seems OK
0
Q: CLP(FD) labeling on possibly infinite domains

FatalizeAs a follow-up to this SO question, I implemented, for my Prolog-based language Brachylog, my own labeling predicate brachylog_equals/2 which is not guaranteed to terminate but works for infinite domains: brachylog_equals(Z,Z) :- brachylog_equals_('init',10,Z). brachylog_equals_(I,J,'intege...

09:19
What is the exact problem you experience with this code? I'd suggest moving this question to codereview.stackexchange.comGeorge Polevoy 48 secs ago
-1
Q: How to select a node using co-ordinates and then create a set in Abaqus?

Malpe90I'm a student and have just started to work on Python. I have a 2D square model and need to create 8 sets from each of the corner and mid nodes of the outer edges. I tried to follow this code. But it doesn't work. Is this not the right code to achieve what I need? Is there a way to directly selec...

09:33
@CaptainObvious One more VTC.
this question should be moved to codereview network — Ilya 25 secs ago
09:57
0
Q: Express Input Validation Middleware

Alex BookerI am building an API where the client can send a url and some comma-delimited tags: { "url": "https://www.youtube.com/watch?v=pquxHIBx8ks", "tags": "JavaScript, Sequelize" } Before processing this data, I want to validate the input. To do that, I wrote a middleware function called valid...

0
Q: Get blob URL to download as File

Rahul ParasharI am trying to get the file stored on the browser to download. Files have URL like this, blob:http%3A//sitename/46a1f2cf-002c-408d-a545-55f55200696f These files are view-able with this URL in new tab. Below is my present code, I am injecting this code into the page. But, no success. var blobUr...

0
Q: SMTP Body Layout

RGdentI don't know if I can ask a question this way, but I need to send automated emails generated in my WCF service with SMTP, and I am busy building an HTML body for the email but not everything looks accurate. The Main issues are with the CSS: HTML Coding <div style="padding:10px 10px 10px 10px...

10:24
You should probably ask this question in codereview.stackexchange.com as that is the place where people will review your code — RemcoW 12 secs ago
@RemcoW Heck no, this would be closed as example code. There's too much code missing. Please take a look at our help centre. — Mast 19 secs ago
10:37
@skiwi Can you teach me Dutch?
Zak
Zak
Ooh. SQL Server 2016. Shiny!
10:49
0
Q: ualble to read clear data from pdf file

Pankaj PathaniaI am trying to copy some data from pdf to txt file here is the code public void readPDFFile() throws IOException { InputStreamReader reader; OutputStreamWriter writer; FileInputStream inputstream; FileOutputStream outputStream; BufferedReader bufferedRead...

Zak
Zak
11:01
VBA in Word. This is going to be fun.
@EBrown You don't want to learn Dutch.
Maar je mag het gerust proberen.
my phone screen is brighter than my future
6
@EBrown Depends on what kind of Dutch ;)
@CaptainObvious One more VTC.
@Mast done
11:09
I got banned from SO — Pankaj Pathania 26 mins ago
Not a valid argument to post it here...
2 more VTC here.
You gona be banned from here too :) Register another account on SO — Bogdan Mart 15 mins ago
..really
I more like VTN
@skiwi Flagged NC
> A duck is offering a bounty for more donkey contributions! Quack! :)
0
Q: Python: Argument Parsing

AlanI'm trying to cover the following 4 scenarios: 1) No parameters 2) DB param 3) DB param and 1 option 4) No DB param and 1 option So far I have the program working for all scenarios however I'm not happy with the way it's implemented. Is it possible to change this to a cleaner solution, rather...

Hmmm, on an highway that's like one hour driving away:
That doesn't look that good drivable
is it sill?
11:28
I think this question is probably more suited for programmers.stackexchange.com or codereview.stackexchange.comSpaceTrucker 51 secs ago
11:41
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.com — Jägermeister just now
@OlzhasZhumabek Some kind of sand/mud I think, it's supposed to be in that slope to the right, but it rained a lot
0
Q: JavaScript-function for to attach CSS-animations

st88The purpose of the function is to attach CSS-animations to HTML-elements with a text-content property. Like for example h1, div, p etc. It's not fully elaborated. Nevertheless have I decided to put it here for review. So: Any hints and recommendations welcome. /** * Adds an CSS-Animati...

possible answer invalidation by Fatalize on question by Fatalize: codereview.stackexchange.com/posts/129924/revisions
possible answer invalidation by Alan on question by Alan: codereview.stackexchange.com/posts/129936/revisions
11:57
Monking!
hey @syb0rg
nitschinger.at/First-Steps-with-Rust-and-JNI No, No, No, don't do this, this is bad!
Or maybe it's good... but mixing two languages that are that different is often a bad idea :p
but mixing C and C++, or C++ with C# often gives great advantage
though now I'm dealing with strange behavior that leads to 6 Gig memory usage
Calling into unmanaged code from a managed application leads to headaches
@skiwi Belgium?
Especially when the unmanaged code turns out to be leaking memory yet in the task manager it doesn't show up at all
@Mast Venlo
12:03
Close enough.
They should stop staring south. Don't learn about roads from the Belgians.
@OlzhasZhumabek You almost never have to.
@Mast wondering what you said :D
@OlzhasZhumabek You almost never have to combine them.
I just cleaned out my keyboard that my company gave me without cleaning it out themselves first
There was a fingernail in there
And so much hair
0
Q: Implementation of the Minimum Stop Algorithm in Javascript

Aswin MohanI started taking the Algorithm design class from Coursera. So into the third week they talk about Greedy algorithms and walks through a sample problem. This is the Problem Statement that I could find which was close. Professor Midas drives an automobile from Newark to Reno along Interstate...

0
Q: Parallel process interest in C#

XIAN YUIn web api controller: I am a newer in parallel and Async&Task programming.Need someone help me code review. Many*n thanks! public async Task<IHttpActionResult> DoWork() { List<string> listTask = await Helper.GetBlockBlock(); u...

Someone got Popcorn?
Turkey vs. Germany goes into the next round
12:09
Are we talking about football or that other discussion?
@skiwi Thanksgiving dinner
@syb0rg Free nails.
Pro: Free nails; Con: Free nails
@Vogel612 Madness, they voted whether they'd recognise a genocide. Like the voting changes history...
@Mast After that thing with Böhmermann, I expect that to blow really out of proportion
12:13
Monking @RubberDuck
@Vogel612 Perhaps USA will follow suit, to make matters more complicated.
12:27
There's so many funny Dutch posts and none I can share :(
0
Q: Finding two indices of numbers which sum to N

DeanI'm solving some online puzzles and I had this problem: Given a vector, write code to find the indices of TWO values which sum to a given number N so if I'm given [2, 5, 6] and N = 8, I should output the 0-based indices [0, 2]. I wrote the following code to do this in O(N) vector<int> two...

Greetings, Programs.
I'm getting a segfault thrown at me before main() is being run... wtf
@syb0rg, wow. Can I screenshot that?
@OlzhasZhumabek Its kinda a pain to screenshot on windows haha
12:39
:)
the real pain is std::ofstream, which seems to have bug that causes it to print garbage
Ah, I got it, the buffer wasn't being flushed so nothing I was outputting was being printed
<Compiler error>, @Donald.McLean
Tho I thought puts() flushed the buffer automatically...
@syb0rg Snippy?
@Mast Didn't know that existed
Now I do, but it turns out everything is working fine now
12:43
Also, Paint can crop.
I just disabled buffering to stdout and boom everything works
Alt+Screenshot takes a screenshot of the only the active window
Powertools.
@Mast, I can't find that snipping tool :(
@OlzhasZhumabek What's your Windows version?
12:45
@syb0rg, are you about std::ofstream? If yes how can I do that? :D
windows 10 :(
@OlzhasZhumabek Hit the Windows button and start typing 'snipping'. It will show up.
Assuming your computer is configured in English. No support if it isn't.
@OlzhasZhumabek I'm using C, but it should still work on C++
setbuf(stdout, NULL);
I put that at the beginning of main for now
Monking @DanPantry
@OlzhasZhumabek programs -> accessories
@syb0rg Hello!
@syb0rg guess what I just had to do in CS class when I wrote the challenge :D
@DanPantry hi! @Mast thanks. @syb0rg, that makes me kinda worried :D
12:48
@Vogel612 I was actually pretty good at DFA's if I remember correctly
Not so good at everything else, but I kinda liked DFAs
Those were probably the easiest part, aside from RegularExpressions
@Vogel612 Yep, I needed the low hanging fruit in that class
anyways my battery is running dry. I won't be back today most probably :)
@Vogel612 Awww
So jerry-rig yourself a charger.
12:50
Monking @Zak
@OlzhasZhumabek I doubt it's a good practice, but I'm not sure it's all that bad either
@syb0rg It's C. If it works, it's good.
4
Worry about pretty code later.
Zak
Zak
Why does everyone assume that me appearing = me appearing for the first time today.
I've been around for 5 hours now ^^
@Zak First time I've seen you since I got on an hour ago
12:52
@Zak I assumed you haven't been online yet because the starwall is not full with 1-star things
4
So I figured I'd say hi
Plus I've been saying hi to everyone entering the room
@OlzhasZhumabek Found the caveat: stackoverflow.com/questions/7876660/…
It also slows performance down a bit, but I'm just looking to debug rn, I'll focus on performance later
@Mast no outlets in the lecture room
@Vogel612 Use magnetic flux to generate an electric current
@syb0rg it's better than the electronics lecture I have to take
Rub your shoes back and forth on carpet realllly fast while touching the power outlet on your laptop.
6
12:56
@DanPantry My screen flickered
@syb0rg where do I get the magnets from? And how do I effectively generate enough watts wirhout frying my mainboard and harddrive?
@DanPantry wooden tiled floor:\
@Vogel612 Rub a balloon on (preferably a friend or foe's) a cotton shirt and then ask them to touch your power outlet on your laptop.
Note: This may hurt the friend (or foe). Your mileage may vary.
On the upside, you get a balloon stuck to you, and frankly I think that's worth the pain.
@syb0rg, yeah. Flushing all the time solves the problem
@OlzhasZhumabek Were you having a similar problem?
@syb0rg, I had a long ago, trying to answer someone's question. It was about concurrency, so I thought it's race condition. That took me 2 hours to find the bug
was*
woops, found that I can edit the message, sorry
13:00
@OlzhasZhumabek It's all good, part of the learning process haha
@Vogel612 None in the entire room? Odd.
@Vogel612 In the US that's against building codes actually
@syb0rg, :) If you're about me searching the bug, it wasn't fun at all :D First time standard library betrayed me
You ever heard of those people that write scripts to do tasks for them that take more than 10 seconds to complete each time? I'm starting to do that
@Mast good Luck finding one in this room
That's about half the room
The better filled one at that:)
Zak
Zak
13:12
@DanPantry Starred for out-of-context
Today I try to educate one of our advisers on why Password-Protecting Office documents is little more than kabuki theatre in terms of actually securing it.
@Vogel612 Nothing under the table?
@Zak What's the threat model?
Zak
Zak
@Mast Preventing people with access to a general email account from opening the file.
> All it takes to break a password-protected Excel File is the ability to google “Break Password Excel File”
I offered to actually encrypt it.
Guess which option was chosen.
13:28
@DanPantry in @Zak's defense, a starwall could be the result of me coming online as well...
4
Our first community challenge post has arrived
3
0
Q: Arduino Snakes and laddered using the console and an addressable LED board

Josh KirkpatrickA snakes and ladders game i made using an arduino, using the serial terminal, a set of adressable LEDS to create a physical game board, a 7 segment display and a piezo to create sound. It is quite long but it's well commented. i'd love to get some feed back on this regarding what i did right. w...

13:43
Could we suggest those who seek for performance provide host code and some sample inputs? I'm not lazy, but if the code is buggy it makes me wonder is bug in my host code or the OP's code
@OlzhasZhumabek Nothing stops you from asking for some sample input, but OP doesn't have to add what you asked for.
@syb0rg Captain being a slowpoke?
@Mast What's new lol
Yup.
13:58
It's a large chunk of code that question, shame I don't have time to review it
gonna buy LEDs for my Arduino uno to test it :D seems promising
@OlzhasZhumabek You could probably give a really good review then
it looks really overwhelming :D will try to in the future
are classes and structs arrays? I mean the internal structure looks like arrays, given the worst padding.
@OlzhasZhumabek A struct is not an array
Arrays must be of uniform type, structs can contain different types
but when there is padding, they make them the same size, which is actually what type is for the assembly
14:09
@OlzhasZhumabek Why do you think it makes them the same size?
@syb0rg, I thought that it simplifies the implementation (or probably it is the only implementation) of classes and structs
1
Q: Data Stream as Disjoint intervals

sc_rayI was asked the following question: Given a data stream input of non-negative integers a1, a2, ..., an, ..., summarize the numbers seen so far as a list of disjoint intervals. For example, suppose the integers from the data stream are 1, 3, 7, 2, 6, ..., then the summary will be: ...

@OlzhasZhumabek Don't interchange structs and arrays.
Monking @Mat'sMug
I'm assuming you're the one that cleaned up the comments on that community challenge post?
monking!
:)
yup
14:32
Well, my program "works"
It's like I built a ladder using nothing but sticks and duct tape, but those were the only materials I was given
2
time for codereview then? :D
@OlzhasZhumabek Nah, have to test it first which is actually the hard part
I have to hook it up on the remote machine, hope that the test configuration can send requests through the Ethernet drivers without any intervention by me, and see what I get out
@syb0rg well you got sticks so it's already that! others are happy with just duct tape!
would you sacrifice 75Gigs of memory to have arguable speedup? Given that you're on PC
@OlzhasZhumabek Uhhh, how much of a speedup?
Are we talking about installing an SSD?
14:35
I'm comparing radix tree and simple vector with binary search
I've tried to benchmark a code but got out of memory really fast
@OlzhasZhumabek Running out of RAM? Writing to the HD is going to be very costly on time
yeah, I've got an SSD. Paging (?) seems too slow to cope with allocation speed
75gb of memory isn't that much depending on how you are "losing" it
Love Hungarian oRange =) — Mat's Mug 26 secs ago
my ssd is ~500gb though, so..
14:38
so, what would you choose? radix tree or vector with binary search?
@OlzhasZhumabek I smell a XY problem.
yeah, should I put link to the question?
but he says that the memory is irrelevant
@Mat'sMug I should've made pictures last time I did that.
@OlzhasZhumabek What task are you trying to accomplish?
I'm trying to make fast search if the string is present or not
14:41
In what, in an array?
In a struct?
In a file?
actually it is a word. Input file is given
@OlzhasZhumabek A sub string?
So it's a word in a file?
Let me reorder messages: We have an input file with list of words. We need to find if the queried string is present in a file
@Mast yes
C approach: open file, read contents into buffer, strstr() buffer for word, close file
14:43
Yup.
the OP wrote radix tree, he thought that it is faster. But my calculation gave that with tree height of 10 it would be 256^10 pointers ... 70+ Gigs
@OlzhasZhumabek He's doing a lot of unnecessary work
And adding a lot of complexity to the problem
@syb0rg, yeah. I'm wondering if I should say so
Where is this question?
@OlzhasZhumabek it does not cause segfault for my test cases nor a real 750k words input, I've run it multiple times. In the destructor I'm checking for nullptr before deallocating, as said but not shown. — Mephy 3 hours ago
woops
14:45
@OlzhasZhumabek if it's true, then why not? it's all in the tone :)
0
Q: RadixSet - A growing-only Radix/Patricia Tree

MephyI'm looking for a structure to store large amounts of strings (5k to 100k) and then test for existence of new strings against the previous inserted data, in the least possible amount of time (memory is mostly irrelevant). The structure would first be fully loaded at the program start, without any...

Oh, C++. That makes it easy.
@Mat'sMug gonna do so soon. btw I always have google translator on adjacent tab when chatting with you guys :D
We don't have many people from Kazakhstan here.
keep it up, eventually you won't need it anymore :)
14:49
Learn by practice.
thanks, will try to :) Should I change my nickname to something shorter? Cause typing my name is really long procedure
0
Q: Publishing project to a community

paulustl;dr I'm about to finish an open-source e-commerce engine based on PHP/Yii2 (yes, yet another one) but I'm shy to give it to the people. I'm not sure to which stackexchange to address this question, guess this is the most relevant. See I have a problem a bit of a psychological nature. Some time...

@OlzhasZhumabek It automatically picks you.
what close reason would you use ?
@Olzh works as well.
14:52
@Heslacher No code included
@Heslacher Blatantly off-topic is not available unfortunately...
Put one in for Too Broad.
thanks.
I just posted the link to programmers chat to ask if it would be on topic over there
@Heslacher not really sure if psychological problems are on topic there @Mast that's how people call me in reality, adding 'ik'
@Heslacher I foresee the response: "We don't know."
I'm voting to close this question as off-topic because it is asking for code review. — Felix Kling 42 secs ago
14:56
@Duga They should really stop doing that.
@Duga 367k user too, really?
I got the answer: no ;-)
@Mast note it doesn't say "because it belongs on code review" but "because it's asking for a code review" - different
4
@Mat'sMug Which is a minor improvement, I'll give them that.
"because it belongs on SiteX" isn't valid. "because it's asking for something-that's-off-topic-here" is.
15:05
I didn't say it's invalid. I said they should stop voting to close for the wrong reasons.
> can't figure it out for the love of god can I just send you the sheet? I need it by tomorrow morning!!! – Nemesis_NXT 1 min ago
uh, no.
4
shameless plug hoping to get people to take a short look at a problem of mine
0
Q: How to make ng-transclude behave like ng-include?

PimgdI'd like to transclude content as such that it acts as if I copy-pasted the content into the file where I write my <div data-ng-transclude="">. How do I do this? I know I can use ng-include to include a template, and I can use script tags to define a template. But this clutters the template cach...

btw I have a bounty expiring in 5 hours :(
> Please vote to nuke this user from the internet
@Pimgd Auto-upvote, everyone needs all the help they can get posting on SO
@Mat'sMug Where was this?
15:14
I wish I could get away with ng-include but my co-worker doesn't like it
@syb0rg Sad thing, it's true. However, it would make a good CR question as well if rephrased.
not even when I suggest using compile-time UUID's or something
meanwhile I've spent 3 hours on this problem already where the entire user story ought to take about 4 hours in total
/rant
I have no clue what I'm doing in Rust
But my code sometimes compiles
@skiwi Same, but apply that to life
2 hours ago, by Mast
@syb0rg It's C. If it works, it's good.
but then for Rust.
15:17
Actually in Rust you have to guarantee to not get a segfault if you don't use any unsafe code
@skiwi fallback to C++ :)
//I solemnly swear to not make the computer blow up segfault
(Joke's on them ofc, it's in a comment and everyone knows those get stripped out during compilation)
-1
Q: Key simulation code is not working

Prabhakar raivar on = 0; var typingData = 'something'; function simulateKeyPress(character) { jQuery(this).trigger({ type : 'keypress', which : character }); } function justtype() { if (typingData.length) { console.log("justtype"); simulateKeyPress(typingData); } } var bd = docum...

seriously... cracking a VBA project with standard password protection is a joke.
15:21
I can't stop laughing at this post XD — syb0rg 8 secs ago
ow, that's mean
I have a macro-enabled workbook in my documents folder, called "CrackerJack.xlsm", that thwarts standard VBA protection in a matter of seconds.
If you have working code but want to find out how you could've written it better then you actually should be on Code Review not StackOverflow codereview.stackexchange.comHack-R 12 secs ago
You are hackarrrr!!!111
... why do people put protection on there?
You might want to ask this on codereview.stackexchange.com instead — Farhan.K 45 secs ago
Now get your code properly reviewed at; codereview.stackexchange.comLoki Astari 12 secs ago
@Pimgd to prevent the illeterate from viewing the source code and screwing things up
...but it's a nuisance to the actual dev more than anything else
15:27
If your code goes haywire from being SEEN, you've got more serious problems
quantum programming...?
well it can effectively hide connection strings and hard-coded credentials :)
or the password is there to prevent against self modifying code =D
Hmmm, Rust macros are interesting
is it like lisp
I think I can create macro that accepts a closure and a list of value pairs to generate tests for the method I want to test via that closure by using the values
Warning: This will blow up
4
I mean you can write code that writes code and tests itself, how awesome is that?
15:34
So, turns out I'm gonna have to fiddle with my Ethernet drivers... yay
@skiwi gosh, have I been doing it wrong all this time?
@Mat'sMug Well, you are writing VBA
no, I'm writing C# that analyzes VBA
but then, I should be writing lisp code that writes C# code that tests C# code that analyzes VBA code
3
But therefore you need to write VBA
@Mat'sMug Exactly... wait what?
@skiwi oh there's plenty of ugly broken VBA code to test everything on CR and SO :)
15:37
LOL I like this answer already
5
A: Macro that generates a function with arguments determined by the macro

DK.Two hard things in Rust macros: counting and unique identifers. You have both. Then again, I'm the one writing the answer, so I suppose it's my problem now. At least you didn't ask about parsing the string (which is outright impossible without compiler plugins). Another impossible thing is ma...

15:52
@Mat'sMug soo... we're not really here to get confronted with SO garbage :/
Life's hard enough :)
true that
beats me what makes people think they can link to a file on a google drive and expect people to "finish the code" for them.
but they said please?
Zak
Zak
@Mat'sMug Well, it costs them nothing to ask.
@Zak except getting closer to being blocked from asking on SO when they actually have something useful to ask
Zak
Zak
@Mat'sMug You're assuming they ever would have something useful to ask ^^
15:58
yup. I still have hope for humanity

« first day (1125 days earlier)      last day (3191 days later) »