The quality of the properties you can rent as a group compared to a single room is.. astonishing.
If I find other people I can get really, really awesome houses with luxurious bedrooms for less money than a crappy single bedroom and a small living room
I would like feedback on my first attempt to understand how hash tables work. I've read some on how hash tables use modulo operations to find the location of a key.
Can you help me understand, compare the modulo approach with my attempt to use a trie?
import random
import hashlib
from collect...
okay so i just fixed a bug that was annoying me where vendor styles would load at the same time as own styles which would prevent our styles from overriding the vendor styles.. i'm hoping i don't get a lot of weird style bugs in the UAT environment
though we're using css modules so in some cases that is necessary to override specificity rules from bootstrap
I could install bootstrap-sass but I don't think it would play very well and honestly there wouldn't be much benefit over than being able to get rid of the handful of !important
Hey @DanPantry @Quill can you guys help me look for a Date Validation without the year? should actually be a string validation for a mm/dd format. some has to have done this before. but I can't seem to find it, my google-fu is lacking today
I want the user to specify their birthday or anniversary date (without year) in a form. For this, I want to use jquery datepicker but it should not show any year option at all. How to do it?
I tried modifying the code in this so question by making changeDay: true and changeYear: false but could ...
rules say we can't store the DOB, but some of the users want to send our clients Birthday offers, so if we don't store the year, we aren't storing the DOB but the Birthday
Here is the old room which was frozen due to inactivity. Here is the new room which noone is ever in?
Why is that?
This has been sort of asked before, but it was not completely fleshed out?
I believe that the chat system on this site could and will be very useful for people who want to review ...
Meme: Jamalized
Originator: Jamal ♦ (actually, apparently me)
Cultural Height: All over CR (see this chat transcript search)
Background: Jamal being a frantic editor. And he's fast. So fast, we're all waiting for the day he will edit a bad question title before it's even posted. You never know...
I wrote a simple perl scanner in perl. Code can be seen here:
#!/usr/bin/perl
# prtscn.pl - scan server for open
# TODO
# Make async
# if any ports are sequential, form a range (ie if 22, 4200, 4201, and 4202 are open, print 22, 4200-4202)
use strict;
use warnings;
use IO::Socket;
use Getopt...
My goal for this script was to:
Create new folder
Create AD group FS-TESTSHARE-R
Create AD group FS-TESTSHARE-RW
Apply both groups to the new share folder
Set full read permissions to FS-TESTSHARE-R
Set full read/Rights permissions to FS-TESTSHARE-RW
Set full access permissions for local machine...
I am working on Project Euler's problem #8 in which I am asked to "Find the thirteen adjacent digits in this 1000-digit number that have the greatest product. What is the value of this product?"
Here is my code. For some reason, it keeps giving me the wrong answer and I strongly suspect that it ...
After reading a decent amount in this area, I've come up with the following for myself.
__init__.py has imports of all submodules which are intended for outside use; an __all__ variable which contains a list of all.
Classes are typically one to a module, though if it makes sense to bundle a few...
One of the most annoying things about the VBE (VBA's IDE), is that it doesn't have a status bar.
Rubberduck 2.0 works around this by introducing the RubberduckCommandBar, which [ab]uses msoControlButton controls as though they were labels - the command bar constantly resizes as the text changes,...
they put extra emphasis on how impressed they were with me during the interviews and how easy it is to get out of that graduate salary and also receive equity within a year
The specific thing that got me riled up is when I took 2 worksheets, made their columns all the same width, then copied the contents of one cell into another, and one took up 6 rows but the other took up 7
same font same size same formatting same everything
just infuriating
anyway, I think I've fixed it and I'm not going to touch it ever again if I can possibly avoid it.
The following code is for my Object Oriented Programming class. My program simulate the cashier's machine to order food. The code uses Model View Presenter. This class is the model.
I have an ArrayList to hold the possible order possible. The View uses it to create JButtons.
I have an ArrayL...
This method finds the common ancestor of two nodes in a binary tree.
Any style suggestions or ways to make it more idiomatic? Is the algorithm correct? Rubocop says the cyclomatic complexity is too high, how would you break this up?
class Node
def initialize(value = nil, left = nil, right = n...
Below is the code for, Singly linked list implementation,
function List(){
this.start=null;
this.end=null;
}
List.makeNode=function(){
return {data:null,next:null};
};
List.prototype.add=function (data){
if(this.start===null){
this.start=List.makeNode();
thi...
I have a notebook here which details my code and may be more legible.
I worked on a project that flattens a table that initially looked like this (this is table1):
18+fem 18+male date station
17118 15925 12/1/2014 ADSM
16006 11379 12/2/2014 ADSM
19259 18846 12/3/2014 A...
I am suppose was to incorporate arrays in my NIM game java code, so that we can allow the user to decide on how many heaps are in play. I am stuck and have no clue how to do so.
Heap Class
public class Heap {
private int heapSize;
public Heap(int size)
{
heapSize=size;
}
public boolean re...
Suppose if select any cell from column A that to bellow “Header Flag” then it will only insert ‘Y’ in column A (other cells will not except flag ‘Y’), if the user has entered the Headers exactly below the Header Row.
If ‘Y’ is there below the headers then that related row would not be considered ...
Link to sanitized xls on dropbox if test data is needed
Essentially the reports I work with aren't bad -
The issue is the way it exports to excel -
With the problem being that these cells are filled with LF characters breaking apart the data entries in the cells (usually a listing of emplo...
Basically, I need to take a string, and parse out anything that is surrounded in braces and gather the data value for the property with that name from an object.
So Write out SomeProperty: {SomeProperty} will print the value of SomeProperty.ToString() from the object in that position.
So I'm going to parse through the string char-by-char, pull out my property and format specifier (anything after the first colon is the format specifier, including subsequent colons) and then split them on the first colon, and pass them.
I'm trying to help the NIM game guy with Heaps. I thought an Array of Heaps would solve his issue, however, I believe Array size must be defined at compile time. Sooo... I thought of ArrayLists
If he does ArrayList<Heap> heapList = new ArrayList<Heap>(); then to add an object to the list, would heapList.add(new Heap(10)); be correct?
You should try debug-stepping through your code (or using tracing) to find out what's the last line of code hit before the access violation occurs. Note: this looks incorrect: for (first2; first2->id <= last->id; first2 = first2->next) reading first2->id if first2 is NULL is bad. Also, codereview.stackexchange.com would be more on-topic for this question. — ebyrob46 secs ago
For Code Review the code has to work. This doesn't. It's marginally on topic here. Be better of OP spent a bit of time learning how to use their debugger though. They have one. It told them everything. — user458130113 secs ago
@Vogel612 Nope, I just removed the call to chat-login entirely. But for some reason it didn't quite work on my Linux laptop, but when I switched to Windows it worked.
I wrote a small header that is supposed to take care of calling the right strtoX or or stoX function for me and doing so at compile time. The code contains two functions: num_cast and string_cast. Each returns a number or string from the argument specified. See main for an example on how to use t...
Watching the CRS-8 Berthing live broadcast on NASA TV I noticed a baseball bat resting on top of a console in the front left part of the room, so I took some screenshots.
Looking closer, it seems to be about a meter or two away from a large, delicate-looking model of the International Space Stat...
@janos You told me to ping you when I started the Machine Learning. I haven't started that Machine Learning yet, but starting about 40 minutes ago, @Duga is logging information about all "programmers"-comments with Machine Learning. If the experiment goes well, I will switch from the old-style to the new style.
Recent efforts in SO close vote queue make me think that quite a lot of users started hitting the question ban there.
Given long known "tradition" of attempts to circumvent such bans by posting at inappropriate sites I wonder how much impact could this have on Programmers.
To understand this, I...
Im using the following code which is working and I wonder if there is a way to write it better?
filterNullUndefinedOrRejected: function(oData) {
if (oData && oData.length > 0) {
var aNewExtendedObjects = [];
for (var i = 0; i < oData.length; i++) {
if (oData[i].va...
@SimonForsberg I teach high school. 6th hour, I am a facilitator rather than a teacher. They work on computers on a variety of subjects, so I have more free time.
I'm creating Pong clone for use in teaching Javascript to beginners. Unfortunately, I am largely a JS beginner myself, so I probably missed something in the below code; however, I do not want to shortchange my students.
Also, the code does work as intended (with the exception of the sound-playi...
I have never used or even learned about using compression before. In my program I have a custom object and I am serializing that object to a file using binaryformatter. I'd like to compress the file when writing it, and then decompress when deserializing the object. I gave it a shot with Deflate...
my boss is looking for a good issue tracker. I jokingly said "let's just use GitHub" he said "use what?" I said "Git-Hub" he said "send me a link, I'll check it out" there-is-hope