« first day (780 days earlier)      last day (3241 days later) » 

3:04 PM
1
Q: Text centering function in bash

pi.sashaI wanted to center some text in my commandline application, so I came up with this function. centerText(){ textsize=${#1} spacecount=$(tput cols) spacecount=$((($spacecount-$textsize)/2)) while [ $spacecount -gt 0 ] do printf " " spacecount=$((spacecount-1)) done printf "$1" echo...

 
Transferring 5 years of knowledge in 3 days..... right....
 
@RubberDuck make the short version: this code sucks, good luck!
7
 
@Mat'sMug that is more or less what I said about that 13k LoC app we built.
 
@RubberDuck context?
 
Or, more simply: This is why I am out of here.
5
 
3:11 PM
> I don't even know where to start.
@Quill I got a new job. So, right now I have about 3 days to transfer everything I know to someone who honestly isn't qualified.
3
 
Congratulations.
 
@RubberDuck Why 3 days? Are you on contract? Also Congratulations!
 
@RubberDuck 13k? Is that it?
 
Because I've not taken a day off all year and I'll be damned if I'm losing all those personal days.
@nhgrif of VBA.
 
Congrats on the new job @RubberDuck!
 
3:13 PM
Instead of teaching them, write a basic manual or something and let them read through it and figure it out themselves
 
basic manual for a VBA app.... HAHAHAHAhahahahahahahahahaheheheheheeeheeeeheeeeee!
6
 
@Quill you know full well that that's impossible in 3 days for a 13k LoC VBA business app
 
Sorry, let me catch my breath here.
 
What's funnier, is that I was writing object oriented VBA. They're screwed.
 
^^
Implements IView
 
3:15 PM
and they be like.. wat
 
Public Event OkButtonClicked
uh-huh
 
 
^^ that's assuming the person saying "WTF" knows the language the code is written in
 
That sounds a bit like me reading my old code :-P
 
Yeah.... so... they're going to have my half of the code, which is potentially over engineered, and my counterpart's half of the code that looks like... that ^^^.
 
3:19 PM
potentially ?
5
 
Reminds me of a certain true programmer.
 
@rolfl I implemented IoC in OOP VBA last year for a CRUD app that works wonders, and I've got it under unit tests that don't hit the database. the code itself was written offline. not over-engineered VBA can't do that.
now don't ask me why I made a CRUD app in VBA
 
@rolfl Okay... certainly over engineered.
5
 
3:37 PM
@Mat'sMug Why did you make a CRUD app in VBA?
2
 
cough
to see how far down the rabbit hole I could go with OOP in VBA
 
in TCG Creation, Jun 10 at 20:16, by Phrancis
I think all of us need to get in the habit of writing documentation while we're writing the code
 
@Phrancis Phrancis the wise (and yeah)
 
@Phrancis pffffftttttt Oh. I have documentation. It's just 3 years out of date for the most part.
 
@RubberDuck Case in point ;p
 
3:41 PM
lol
4
 
turns out the rabbit hole goes pretty freakin' deep if you know what you're doing.
6
 
0
Q: Refactor Ruby code using loop

user3437721So I have a lot of methods which does the same thing, they just do it on different fields. The fields are as follows: NUMERIC_FIELDS = [:cost_single, :cost_aggregate, :shop_uw_single, :shop_uw_aggregate, :line_manager_single, :line_manager_aggregate, ...

 
@Mat'sMug and deeper when you don't?
 
nah, if you don't know what you're doing, you just write 10K-liner procedures and say "VBA isn't OOP"
 
@Mat'sMug It does man..
 
3:46 PM
@rolfl There's a difference between falling down a hole and taking a ladder down a hole
 
You go deeper, faster, when falling ;0
On the other hand, I am learning a new dev-stack at the moment... and not sure I am having fun....
 
Why's that?
I thought learning new stuff was always fuN?
For some values of fun at least...
5
 
@RubberDuck "Fun fun fun"
@rolfl "new", COBOL?
 
Javascript, express, eclipse, REST, jade, mongodb, and more.
It's MEAN
angular.js in there as well, I guess
 
If this is working code that you think could be improved, see codereview.stackexchange.comjonrsharpe 11 secs ago
 
3:53 PM
@rolfl Ah, the new hyped thing all 20-30 year old programmers are trying?
 
Hmmm... 11-30 I believe....
 
@skiwi urk.. then I would need to start doing stuff like that...
 
Eh, I'm too old for this then
 
@RubberDuck Fire, unfair fighting and nuclear weaponry
and that folks is how you end up on the NSA watchlist ;)
4
 
@Vogel612 wow
 
4:02 PM
but I think I messed up the Verses...
 
You could try Code Review stackexchange site for this question, though it requires that it works, so be sure that's the case. — Daniel 50 secs ago
This is not the Stack Exchange you are looking for *wiggles fingers* : try codereview.stackexchange.comCD001 50 secs ago
Even over on codereview, you're going to need to say what you expect the code to do, what it is that you want feedback on, etc. — T.J. Crowder 19 secs ago
I'm voting to close this question as off-topic because it is asking for a code reviewRowland Shaw 29 secs ago
Although worded as a code review, if it were worded as "How can I efficiently split a string with a character, here is my first attempt" it would be quite acceptable. Not voting to close. — Eric J. 11 secs ago
 
1
A: iTunes playlist copier

QuillYour code is really nice, and I could even say I learnt something reading this (song.text[0:7]), but it could be improved in places: Python's official style guide: PEP8, dictates that variables not be named like dstFile but rather, dst_file. (So on, for the rest of your variables named unaccor...

 
@Quill I learnt something reading this (song.text[0:7]) you didn't know strings in Python can be addressed like that?
 
@Mast I really didn't, no
 
Inverting a string: [-1::]
Python is funny like that.
 
4:15 PM
This would not fare good on Code Review. Please re-open, since the OP is looking for help changing how the code works, rather than a general review for improvements. — Phrancis 14 secs ago
 
Scratch that, it's [::-1] ofcourse.
 
That one's bad for SO, but even worse for CR
 
@Phrancis That's one long complete title
 
0
Q: How to Efficiently Run My First Query in SAS Using SQL?

AcemanhattanAs a part of an internship I am expected to learn how to use SQL in SAS to run queries. I have little experience with programming, and just a week with SQL and SAS. This, the first cod I've written, was left running last night and when I came in today it had an error; unfortunately I tried to fix...

 
> when I came in today it had an error
vtc broken code
 
4:22 PM
Greetings, Programs.
 
@CaptainObvious Broken. Too bad, I got excited there for a minute.
@Donald.McLean Hello, World.
 
@Phrancis I guy that I sort of know, who is also a Scala developer, has decided to get into home brewing. He named his first effort "Hello, World".
 
@Donald.McLean That's funny! If you get to sample it I'd be curious to know how it tastes!
 
@Phrancis Well, a) I hate beer; and b) he lives on the other coast of the US.
 
0
Q: I would like to have this code analysed to know what problems in my code are. This code may have scripts from javascript code

JozefCan someone lead me to the good path. in my code you may find some problems for ex: javascriptcode that do not belong in php code. I would like to know what the code should be instead or look like. Here my code <?php $hoeveel = 1; $bordBreedte = 500; function tekenBord(aantal){ $uitvoe...

 
4:26 PM
@Donald.McLean Ah, OK lol
 
@Quill I hate it when I leave my code alone for a day, and then next day it suddenly has an error
2
 
because that's totally what happens..
 
I think I might hit +200 again today... two days in a row!
 
@Mat'sMug You're raising @Simon's bar!
 
4:42 PM
0
Q: Simple html and css website

JimmyI'm making a really simple html website with CSS and I was hoping on some feedback. A few notes: There will be more content under this, but I want the starting screen to take up the full page and then scroll under it. I've used a bit of a hack to remove the padding from the first list element ...

 
This should be flagged off-topic. That's code review and does not belong here. — Elyasin 43 secs ago
@Elyasin that won't help anyone. use a custom flag to help migrate the post to Code Review instead. — Mat's Mug just now
 
aaand capped!
 
Was reading/voting on a bunch of questions, found this gem on a C++ question:
Was using the goto command the best option for this code?
Hell no
 
Yay, IBM opens up a new location in The Netherlands here, all the way in Groningen :|
 
Hello, all
 
Hello, Edward.
 
I needed to take a break from writing. Grant proposals are painful.
 
5:18 PM
Welcome.
@skiwi Beats me what IBM has to do in Groningen.
 
5:33 PM
One more vote on this answer and I think I get the "Performance" badge.
11
A: The loaderless bootloader

EdwardI see a number of things that may help you improve your code. Eliminate "magic numbers" This code has a number of "magic numbers," that is, unnamed constants such as 2, 0x0e, 0x10, etc. Generally it's better to avoid that and give such constants meaningful names. That way, if anything ever ne...

 
0
Q: date validation with html5 dates

morbidCodeThis code validates the following: enddate should not be less than startdate startdate should not be less than or equal to the date today unless document.getElementById("ltype").value === "1" The maximum gap between startdate and enddate is one year, more than that should cause an error alert ...

 
@Edward It already had my vote.
Afar from that, I'm out of ammo.
 
@Mast No problem. It will happen soon either way.
Thanks for the vote.
Anybody here use CMake?
I'm looking for something to automatically generate a CMakeFiles.txt file in the way that autoscan does for automake projects.
Maybe it should be an SO question...
 
@Edward Yea, but the configuration always takes way too much time.
So if you find something like that, feel free to ping.
 
That's why I want to further automate it. Maybe I'll write my own...
 
5:47 PM
@Edward Here, have an upvote
And I'm also reading the question and all its answers
 
I was quite surprised that there was so much interest in an assembly language question.
And thanks for the vote!
 
@Edward I'm also surprised... yes
 
The [Qt braces style][1] requires blocks on both sides of an else to match brace usage -- this example would require the braces on the else block in order to pass a code review. [1]: wiki.qt.io/Qt_Coding_Style#Bracespixelgrease 26 secs ago
 
The accepted answer is a bit supercilious but technically useful.
 
0
Q: Removing whitespace and space in list that contains different types of elements

user65165My goal is to remove whitespaces from string elements of my list, and to remove empty string elements altogether. My code: def modifylist(lst): lst = [elt.strip() if type(elt) is str else elt for elt in lst] for i in lst: if i == '': lst(se...

 
5:57 PM
@Edward That word just made me Google...
what exactly do you mean with supercilious?
 
Haughty, disdainful.
 
@skiwi Arrogant.
 
It's more "look how smart I am, you ignorant sod" rather than "here, I think I can help you."
That's my complaint about that answer.
 
I see I've upvoted all answers accept the accepted and the one from Hurricane.
I agree with you Edward. Users like that can get dangerous.
There's one person on electronics.SE who is very, very knowledgeable but has a tendency to forget his people-skills.
He gets rude.
 
@Mast I think I know which one you mean.
 
6:02 PM
I certainly know which one.
 
Somebody already asked my question.
17
Q: How to generate CMakeLists.txt?

celavekI need some pointers/advice on how to automatically generate CMakeLists.txt files for CMake. Does anyone know of any existing generators? I've checked the ones listed in the CMake Wiki but unfortunately they are not suitable for me. I already have a basic Python script which traverses my projec...

The answers seem to mostly say, "Don't."
Silly internet!
4
 
@Edward Do it anyway and post it on CR.
If it works good after review, you can post it there as an answer.
 
@Edward I haven't perceived it as such, but maybe more English skill is required to be able to notice that
 
@Donald.McLean Greetings and welcome back, Scala.
 
You should probably only ask one question at a time. And your first question seems like a series of code review tasks, not a programming question/problem. — Frank 6 secs ago
In case you're wondering you get no answers: You're asking for code-review which does not really qualify for this stackexchange website. For further review questions please consider to look if codereview.stackexchange.com makes sense for you. Next to that, there is no "expert" "right way". For a quick benefit, please look at the examples given on the foreach manual page, you most likely don't need the $key variable (just a quick hint). — hakre 15 secs ago
 
6:30 PM
0
Q: Radix sort implementation in MASM

Paweł KupiduraI'm implementing in-place radix sort in MASM. Although code looks fine for me (I created it basing on my C radix sort implementation), sorting is not correct. Probably it's some obvious mistake I cannot see after some time spent with this code. Also, I would appreciate some suggestions regardi...

0
Q: Vectorizing in Python

FacundoGFloresI have the following code: for j in range(rows): for i in range(cols): k = j * rows + i k1 = k + 1 if i < cols - 1 else k - 1 k2 = k - 1 if i > 0 else k + 1 k3 = k + cols if j < rows - 1 else k - cols k4 = k - cols if j > 0 else k + cols w1 ...

 
0
Q: Code Review on Visual Studio 2013 Professional + TFS

Ricardo SilvaIs there any code review extension for Visual Studio 2013 professional + TFS as source control, for free, that already has community support or still under development?

 
Huh, @StackOverflow?
 
obviously didn't read the excerpt
 
Did you know Stack Exchange has a Code Review community? — Mat's Mug 51 secs ago
 
@CaptainObvious Broken
 
6:35 PM
@Mast I love the song by Seether and Amy Lee.
 
No, I didn't know. But, as I can see, Code Review community is only to review codes, right? And not to propose code review technologies, or am I wrong? — Ricardo Silva 15 secs ago
 
@SimonAndréForsberg Any summer TV in your plan?
 
Of course it's to get your code peer reviewed... BTW did you see the tag wiki excerpt for the code review tag? — Mat's Mug 48 secs ago
 
0
Q: Python Knapsack problem: greedy

Caridorc A tourist wants to make a good trip at the weekend with his friends. They will go to the mountains to see the wonders of nature, so he needs to pack well for the trip. He has a good knapsack for carrying things, but knows that he can carry a maximum of only 4kg in it and it will have to last t...

 
@Donald.McLean Never heard it, but the lyrics look pessimistic.
 
6:38 PM
@Donald.McLean I'm planning to watch The Voice Australia, other than that nothing is planned. Any clue when POI will air?
 
@SimonAndréForsberg I'm still catching up on the old ones, but I'm almost there.
 
@Mast POI? Good, good good.
 
@SimonAndréForsberg My understanding is that it's in reserve as a mid-season replacement, so we won't know until the season is further along.
 
@SimonAndréForsberg Early S4 at the moment.
 
in reserve!? How dare them!
I want to be waaaaaaaatched!
 
6:41 PM
@Mast I'm still watching the 24hr LeMans race.
Highlights programs are for sane people.
I watch every minute...
 
@Mast You're kidding, right? It's a powerful love song about two people who have gone through tough times but now understood how much they love each other.
 
@Edward I knew there was a reason you liked Assembly.
 
@Edward Nice ;)
 
Ever thought of learning VHDL?
 
@Mast Guilty as charged, your honor.
I actually already know some VHDL, but don't use it often
 
6:43 PM
@Donald.McLean Perhaps I recognize it when I put it on, I'll try it later tonight.
 
@Mast It's one of my 39 five star songs.
 
@Donald.McLean You star your songs?
I know stars write songs, but songs shouldn't be starred IMHO.
 
6:56 PM
@SimonAndréForsberg So, what makes you so avid?
 
Visual Studio 2015 Professional will support code review. — Daniel Mann 12 secs ago
@Frank so where do you advise me to post my "code review tasks" then ? It is a problem of efficiency of my codes, so I do not see why it is not a programming question. — giacomoV 35 secs ago
 
@Mast I went through my entire library and rated every song on a 1-5 star scale. It took me almost 10 years to go through all 10,373 songs.
 
@Donald.McLean Worth it?
 
I didn't read it as a question about efficiency (like, how fast the code runs); there's a performance tag you might consider using if you have such a question. If you're asking for simpler code that doesn't use a loop (as seems the case here), that's not really about efficiency, despite what people may say against loops. There is a code review site that might be of interest: codereview.stackexchange.comFrank 23 secs ago
 
@Mast Well, it simplifies some of the ways in which I like to organize my music. My iPod, for example, only gets loaded with 4 and 5 star songs. And when I'm home I have this really complicated smart playlist that I listen to. It's almost complicated enough to be code-reviewed. :-)
 
7:11 PM
@Mast It's a great show :)
 
@SimonAndréForsberg I know ^^
 
@Donald.McLean almost?
 
@Donald.McLean I dare you :-)
 
POI is my wife's favorite show, and definitely one of my top 3.
The problem is that there isn't really any "source code".
 
@Donald.McLean then what is it? How can it be complicated if there's no source code?
 
7:16 PM
0
Q: Memory efficient A* (AStar) Algorithm

NickI am writing a solved for 15 puzzle game which will find the solution path to any NxN board. For easier boards the algorithm works great solving almost any 3x3 boards, most 4x4 boards, but when I go 5x5 and higher I will often run out of memory. This is the implementation: @WorkerThread public S...

 
It starts with two "Smart playlists" - one matches all 4 star songs that are "checked", the other is all checked 5 star songs. They're called "4 star" and "5 star" respectively.
 
@SimonAndréForsberg He directly writes executable code
(Obviously)
@Donald.McLean Now comes the most important question... Why do you keep your 1-, 2- and 3-star songs?
 
@skiwi Like Bash and Python?
 
Then there's "Underplayed fours" which is everything from "4 star" with less than 3 plays and last played not in the last 3 days, limited to 100 randomly selected songs.
 
So you have 3 lists, out of which your player randomly selects?
 
7:20 PM
"Underplayed fives" is everything from "5 star" with less than 5 plays and not played in the last 3 days.
 
4 lists?
I feel there are more coming.
 
@Donald.McLean What star rating does Hotel California have?
 
@Donald.McLean Just listened to it, well executed.
Reminds me of Breaking Benjamin
The style probably has a name, but I'm not well versed in those categories.
 
Then there's "Top Songs" which is: rating greater than 3 stars (in other words 4 or 5 stars)
Then there's "Bonus Tracks" which is" playlist is "Top songs", playlist is not "Underplayed fours", playlist is not "Underplayed fives", last played is not in the last 30 days, limited to 25 randomly selected items.
Then there's "Full Underplayed" which is: anything from "Underplayed fours", "Underplayed fives" or "Bonus Tracks"
 
And how does your player choose between all those songs in all those lists?
 
7:30 PM
Finally there's "Radio Free Popsy" which is: Playlist is "Full Underplayed", last played not in the last 15 days.
 
Just when you think he named them all, there's more.
 
@Mast At each point, there's a simple, finite list. That's part of why it takes 8 lists to get the effect I want.
 
has many through is typically for many to many relationships. You're modeling looks fine. But you should prob ask this at codereview.stackexchange.com — osman 7 secs ago
 
@Donald.McLean Ok, how does that list get compiled?
 
@Mast I'm not sure I understand the question.
 
7:34 PM
@Donald.McLean You have 8 lists. Your final list somehow has to grab songs from those 8 lists, right?
And at what point do your 'last not played in the last x' get refreshed, at every song? Every hour/day?
 
@Mast iTunes, for a "smart playlist" it's just a group of filtering rules.
 
You just click 'smart playlist' and you're done?
 
All of my music fits on a 16G microSD card which is perpetually on shuffle-play in my car.
 
I guess the refreshing probably depends on the nature of the filtering rules. The actual "Up Next" that iTunes uses is created by shuffling "Radio Free Popsy".
 
@Edward I'm using my laptop as MP3 player, but afar from that I'm using the same system usually.
@Donald.McLean So the only thing re-viewable would be your filter rules.
If we define that to be a language, it would be on-topic.
 
7:38 PM
@Mast That is correct.
@skiwi Hotel California gets four stars.
 
I'm tempted to write my own implementation in C++, but I really don't have time for such a project at the moment.
Perhaps after the first week of July, when my schedule opens up.
 
@skiwi Originally, I shared the library with four other people. Now it's the master library that goes into the cloud backup (from which people can grab what they need).
 
0
Q: Rails comment association-model structure

railsrI'm building a small kind of blog website and some of it's models are post, user, comment, obviously. The question is: Is the Comment model/table structured the right way? I'm asking this because it looks like has many through association but I only use has many. I'm a little confused. Is this ...

 
in VBA Rubberducking, 6 secs ago, by Mat's Mug
note to self: next time we ship new features, update the website after we release them.
 
stupid question: do i iterate through sectors, heads, then cylinders... or sectors, cylinders, then heads; in order to obtain disk sectors sequentially?
 
7:43 PM
@Donald.McLean Ah okay
 
@MotokoKusanagi Not a stupid question at all. Let me look it up so I don't give a stupid answer!
 
@Edward thanks
 
OK, it's Cylinder Head Sector, in that order, just as a three digit number is Hundreds, Tens and Ones in that order.
 
@Edward The converted versions (128k AAC) that go onto my iPod take up less than 16GB (13.7).
 
@Donald.McLean Are you using lossless compression?
 
7:46 PM
@MotokoKusanagi I'm interested in the purpose of iterating over them. You want to check whether they're still good?
 
this might be a better question for codereview.stackexchange.com since you don't have a specific question — DLeh 53 secs ago
 
@Mast still working on this
 
@MotokoKusanagi You might find some useful bits on my website
 
@MotokoKusanagi Ah, that one. Good question.
 
@Mast Yes, I enjoyed it too.
 
7:48 PM
@Edward The full-up versions on the computer vary widely. Most of the CD rips are lossless compression, but some are from CDs I no longer have access to. And of course iTunes only sells 256k AAC. And there are a few from misc sources (purchased directly from artist website) that are mostly 128k MP3.
 
It came up earlier today in the chat as well.
 
0
Q: Converting a 1D Array of Strings to a 2D Array in Python

HussienKso I was solving this question on a site that gives you a 1d array called grid grid = ['top left', 'top middle', 'top right', 'middle left', 'center', 'middle right', 'bottom left', 'bottom middle', 'bottom right'] and you're expected to write a method fire(x,y) t...

 
@Donald.McLean A good friend of mine has his entire (large!) collection exclusively in FLAC.
Me, I only compress it to the degree I can't tell the difference and then stop there.
 
@Edward Are you sure it's not sector, head, cylinder? The reason I ask is I already fetch sector two at head zero and cylinder zero.
 
@Edward Well, since music is the least of my media (space wise), using lossless isn't really an issue.
With my hearing, 128k MP3 is sufficient. :-(
 
7:53 PM
@MotokoKusanagi Yes, I'm sure, if you're going to follow the usual convention. See this Wikipedia entry:
Logical block addressing (LBA) is a common scheme used for specifying the location of blocks of data stored on computer storage devices, generally secondary storage systems such as hard disks. LBA is a particularly simple linear addressing scheme; blocks are located by an integer index, with the first block being LBA 0, the second LBA 1, and so on. IDE standard included 22-bit LBA as an option, which was further extended to 28-bit with the release of ATA-1 (1994) and to 48-bit with the release of ATA-6 (2003). Most hard drives released after 1996 implement logical block addressing. == Overview... ==
Note that unlike Cylinder and Head, Sector numbering starts at 1 instead of 0.
As though it wasn't already confusing enough!
 
pretty much
and bios returns heads - 1, which means starting at zero, while sectors is returned as starting at 1
it's a mess, and i want to get this portion written, so i can start writing fun stuff again
 
Right. Here's some assembly language code that actually implements all of that if you'd like to use it. I released it to the public domain about 20 years ago.
 
@Edward You still know where to find the code you wrote 20 years ago?
 
It's MASM rather than NASM, but you can probably make the translation. If not, ping me here and I'll see if I have time to help out.
 
ok thanks
 
7:59 PM
There's something of a half-life decay on my code. Every so many years I've lost half of it.
 
@Mast I even know where to find code I wrote 30 years ago. Backups are goooood.
 
I do have back-ups, there's just nothing organized about them.
 
Too bad you don't have a computer for that.
:)
 
My Ubuntu now backs-up iteratively, which works quite well.
For the rest, it's kind of haywire.
 
Seriously, though, it takes a lot of effort to keep things organized.
 
8:02 PM
I really should set-up a decent back-up scheme which is human readable.
 
I had not yet purchased my own computer 30 years ago.
 
@Donald.McLean I bought my first almost 40 years ago.
 
And much of the code I wrote in that timeframe was classified.
 
@Donald.McLean That's different. Code I wrote professionally is generally not in my archives.
Only my own toys are here.
 
I didn't write much outside of work until after Java came along.
 
8:06 PM
@Donald.McLean I came at the other direction and had been programming for some time before I got anyone to pay me for it!
 
Of course, my first professional career wasn't as a programmer.
 
13
Q: JediScript - May the 4th be with you

Ethan BierleinIn honor of Star Wars day, I've put together this small Python program I'm calling JediScript. JediScript is essentially a scrapped-down version of BrainFuck without input or looping. Here are the commands in JediScript. SlashWithSaber: Move forward on the tape. ParryBladeWithSaber: Move backwa...

@Donald.McLean In what field did you start?
Don't tell me it's astronomy.
 
@Mast I was a "non-morse communications signals analyst"
 
@Donald.McLean A what?
 
@Donald.McLean Communications officer?
 
8:10 PM
@Mast No.
 
Sounds like SIGINT
 
0
Q: Brainf**k to Ruby converter, written in Ruby -- v1.0

QPaysTaxesI've seen a lot of Brainf**k interpreters in various languages. I decided that actually interpreting Brainf**k is too hard, so instead of that, I wrote a 'compiler' in Ruby that directly transcribes BF to Ruby code. This is Version 1.0, and I'm looking for any tips on how to make it more efficien...

 
Radio part of crypto analist?
 
@Edward Yes, exactly
@Mast Sort of. I worked in what they called "new signals search and development"
My first duty assignment:
The Teufelsberg (German for Devil's Mountain) is a hill in Berlin, Germany, in the Grunewald locality of former West Berlin. It rises about 80 metres (260 ft) above the surrounding Teltow plateau, more precisely the north of Berlin's Grunewald Forest. It was named after the Teufelssee (i.e. Devil's lake) in its southerly vicinity. == History == It is an artificial hill with a curious history: It was heaped up after the Second World War from part of the rubble of Berlin, approximately 75,000,000 m3 (98,000,000 cu yd) all over the city, during the following twenty years as the city was cleared and...
 
So you're one of the guys who made the world realize we needed OFDM?
That's quite a base.
 
8:16 PM
@Mast I was always fascinated by CDMA, personally.
 
@Donald.McLean I agree. I know it works, but it doesn't seem like it ought to be able to work.
 
@Edward this is a little beyond my experience. I've been working with assembly for no more than around two weeks...
 
@Edward Spread spectrum in general is sort of counter-intuitive.
 
@MotokoKusanagi OK I think I can find a C language version of parts of it.
 
@Donald.McLean Definitively. At first glance it feels like making it worse.
 
8:18 PM
@Donald.McLean Yes, I've been playing with SDR lately (for fun, not work).
It made me dig out my old signals and calculus books...
 
@Edward Software Defined Radio?
 
@Donald.McLean Yes, exactly.
 
My last assignment was to split up radar echo's with a FPGA, that turned out to be way more work than my boss thought.
 
That kind of tech didn't exist when I was an analyst. I got out of that field in 1988.
 
Now I'm writing NodeJS. What a difference between two projects...
 
8:22 PM
@Mast That's ELINT - not my bag.
 
It's basically still splitting up signals till you have something you can work with and analyze those.
 
@Mast Yes, but that's on the RF/modulated side of things. That's the boring part. The interesting part is the communications part.
 
Yea, there wasn't any communications going on. Just reflections.
I wouldn't dare saying it's boring though.
By the time it was downmixed it was audio range though, no longer RF.
 
@MotokoKusanagi Maybe this will be more useful to you. It's in C and shows a simple way to map from CHS to LBA if that's what you're after.
 
cool
@Edward but what is "this"
 
8:35 PM
Oh, sorry. Forgot the link: wiki.osdev.org/LBA
 
thanks
gtg
 
See you later
 
@Edward Take care.
 
Ciao! I'm going too.
 
Hey, the regex works!
 
8:50 PM
0
Q: Submit an array as html form value using JavaScript

GeraintI'm sending data from a form with a variable number of fields via an ajax call. Some of the fields are grouped together so I have opted to send them as an array of JSON objects to keep the groupings but there are a number of ways of doing this. Client side is it better to read the form as JavaS...

0
Q: Speed up React render during infinite scroll

BenI'm converting a plain javascript infinite scroll into one using React. There's a decent delay (feels like a few hundred MS) before a new chunk is rendered, so it's a very choppy experience. Any thoughts how I can speed things up? topOfElement = (element) -> if !element return 0 element....

0
Q: Too many controllers or one controller with too many methods? I'm not sure how to handle this

user2994883This is more of a language agnostic question, but for the sake of clarity, I'll stick to PHP since that's what I know. Let's assume I'm building a site about cars. A user can upload a car and other users can download the car that other users uploaded. They can search for a specific kind of car w...

 
@CaptainObvious Off-topic.
 
@QPaysTaxes I do that with non-code text (such as output) formatted as code.
 
@CaptainObvious Wall of text, no code.
 
9:13 PM
Is it just me or does webapps require a whole lot of memory?
 
@SimonAndréForsberg Never measured.
Just for kicks, have you tried it in a different browser?
 
it's @Duga, I don't use a browser for her.
 
0
Q: The number of WaitHandles must be less than or equal to 64

user3579341I am new to multi threading.I am getting exception with the below code.Can anyone please help? Public Class test { public void Run(string rootDirectory) { List<ManualResetEvent> handles = new List<ManualResetEvent>(); List<string> filenames = Directo...

0
Q: Passing an error object back to calling code

HarveyFrenchI'm still on a quest to understand error handling more. Here's some code sent to me by fmsinc.com. I like it a lot, so why have I not see this sort of thing before. I'm wondering whether I should like it now. For cases where you’d like to have CodeB defer its errors or status to CodeA, it m...

0
Q: How do I optimize my topological sort to be linear time? (Code is well annotated)

samolQuestion 1: What should the correct running time be for a well implemented topological sort. I am seeing different opinions: Wikipedia says: O(log^2(n)) Geeksforgeeks says: O(V+E) Question 2: My implementation is running at O(V*E). Because at worst, I will need to loop through the graph E ti...

 
sometimes I'm considering changing @Duga from a webapp to a normal console-app or something, but then there's the problem of webhooks...
I'd have to implement my own webserver or something then, which I don't really feel like
 
9:26 PM
june 29th, that is very soon!
 
Yep, less than a week.
 
@Jamal @rolfl Can you pin this?
 
11
Q: Graduation update: it's election season!

PopsI'll start off by addressing the elephant in the room. It's been the better part of a year since the announcement that Code Review was graduating. In all those months, there haven't been any visible indications of change from us on the team. There are a few reasons for that, but they all come dow...

2
 
9:44 PM
Bun fight, bun fight, bun fight, BUN FIGHT!
 
TTGTB
 
I am really, really pleased to see progress on the election front .... (understatement of the year).
@Simon and others - some preliminary answers to expected questions:
 
@SimonAndréForsberg You really had to edit that post before Jamal did, didn't you?
@rolfl Understatement of 1600 days.
 
All I did was add a tag. I don't really expect @Jamal to edit it, actually. But then again, you never know with him...
 
1. as mods we have not heard whether other graduation features will be enabled at the same time..... but more on that in a bit
2. as mods we are not aware how many positions will be available, but we are requesting that the CM's consider 5 but they say apart from christianity, no beta site has gone with more than 3.
 
9:54 PM
I would prefer 4
Considering all your CR facts, there should definitely be at least 4.
 
I would expect there to be 4 to start with, but I personally think 5 would be better.
 
0
Q: ABSTRACT DI CONTAINER SCOPES

AndersI'm in the process of refactoring one of my open source projects, branch here https://github.com/AndersMalmgren/FreePIE/tree/MoveToStructureMap The basic idea of the refactor is to allow for classes and all of its children in the graph to be scoped. I wrote a blog post about it http://andersma...

 
@CaptainObvious LOUD NOISES
 
and about the reputation requirement increase:
I don't have a firm date for that yet, but it is part of the group of things that we're actively working on. There should be a new update on meta in about a month. — Pops ♦ 4 mins ago
 
@rolfl Will all current moderators nominate themselves for elections or is this currently not clear?
 
9:55 PM
I should also announce that I will not run as a moderator in the elections.
 
Allright
On one hand I'm sorry to hear that
 
@rolfl sick of us already?
2
 
On the other hand you've been doing an awesome job so far, so you earned your rest
 
@rolfl Not even if someone else nominates you?
 
9:57 PM
Not even if someone else nominates me .... ;-)
It's cheesy, and all that, but really, "It is with great sadness that .....".
 
@rolfl Standard response: If it causes you sadness, don't do it.
 
I have found that the time commitments in other areas of my "real life" have been mounting, and that in a large part, I have full confidence that me, personally, am not necessary for the more than adequate running of this site.
 
But really, you and all other moderators have been doing a great job.
 

« first day (780 days earlier)      last day (3241 days later) »