instruction stringlengths 71 71.9k |
|---|
My script looks for handshake files in an input folder to determine whether certain processes have completed. If it finds them, it will update the database with the current time stamp.
Things I am wondering:
My update_db function takes 5 parameters. I have heard that in that case there is probably a better way to do... |
I am relativly new to Python and I decided to try to write code that would factor any polynomial using the Rational Root Theorem and synthetic division. I have two questions.
Is there any way I can clean up my code or any common practices that I should know about?
How could I allow my function to factor polynomials wi... |
I am in the process of writing a Cloud application (mostly hobby, learning) that required a very quick cache, queue, and messaging system. I have looked at a few different options from Microsoft (hosting is on Azure) and all seem to be slow (for my relative needs). Then I hit Redis, and the speed was right where I need... |
This is an exercise in implementing the maximum sub-array sum problem.
It asks for several solutions of complexity:
\$O(n)\$
\$O(n \log n)\$
\$O(n^2)\$
\$O(n^3)\$
For an additional challenge I completed it using Python.
import random
import timeit
#random array generator
def generate_array(item_count, lower_bound, u... |
I'm a little rusty in Java, but I'm using it to get ready for interviews. Here's the problem description from HackerRank:
Problem Statement
Suppose you have a string \$S\$ which has length \$N\$ and is indexed from \$0\$
to \$N−1\$. String \$R\$ is the reverse of the string \$S\$. The string \$S\$ is funny
if the... |
I'm using bluebird for promises in my Node/Express application and wrote an API call in which the user passes in a JSON Web Token that contains their user information, and then I decode the token, and pull up the events that user should see based off their userId.
If anyone could give me advice on how I can clean this ... |
I am executing a shell script from my Java program using Process and I want to kill/destroy that process if my script takes long time.
I came up with this code and wanted to see if there is any better way or anything I can improve on.
public class Test {
public static void main(String[] args) throws IOException, I... |
I've decided to make a wrapper class for the java.util.Properties class since, in its current state, it only allows for storing and reading String values.
Is there any way I can improve the following code?
public final class Prefs {
private static final Properties properties = new Properties();
private static ... |
Problem Statement
There are N integers in an array A. All but one integer occur in pairs. Your task is to find the number that occurs only once.
Input Format
The first line of the input contains an integer N, indicating the number of integers. The next line contains N space-separated integers that form the array A.
... |
I inherited a project that has many imports. Is there any way to refactor it so that we don't have this many imports?
from logging import getLogger
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.core.exceptions import O... |
Problem Statement
You will be given a list of 32 bits unsigned integers. You are required to output the list of the unsigned integers you get by flipping bits in its binary representation (i.e. unset bits must be set, and set bits must be unset).
Input Format
The first line of the input contains the list size T, whi... |
I have this class with two public async methods, which also calls some private methods that are async.
Here's the class:
public class AggregatedDataService
{
public IPrincipal User
{
get { return HttpContext.Current.User; }
}
public object SessionToken { get { return HttpContext.Current.Session... |
I want to apply three levels of filtering on record.
rec in cname. rec is string of >2 words, so I want to consider all ngram of rec to be checked in record
i. if gram matches into record increment filter_company_level and write it to file
2nd Filter on record is for each value value in self.keyword_material_info list... |
I am a newb, and whilst I'm sure my formatting can be improved, I really want to know, how I can re-use my code for this simple program. The objective is simple, football game with a menu, that allows game status to be loaded and saved.
MainmenuTest.java
package mainmenutest;
/**
*
* @author Darren Estcourt
*/
imp... |
I have a C# application and a CakePHP website. These communicate between them using GET and (WebRequest) POST method.
My problem is that it's happening too fast. I have made a diagram that shows some statistics. I retrieve the data from the website using GET method (XML file), such as:
https://www.my-website-link.com... |
As a beginner to Python with some rookie experience in building software, I decided writing an API wrapper for Strawpoll would be a good exercise in learning the language and design patterns.
The intent was to finish writing the entire wrapper but I feel something is amiss, but am unable to identify why the code I've w... |
I have developed a tiny bit of JavaScript to quickly output a Froogaloop Vimeo video and some basic controls attached with almost no effort. You don't have to include the script from Vimeo (the script will add it for you) and it will create only the very basics of controls for now - although they can be amended. I also... |
I have written an ASCII art generator library. I was practicing data abstraction and code abstraction and I wanted to know if there is something that can be improved.
File tree:
| |--Makefile
|--fonts--|--StarStrips.c
| |--whimsy.c
|
| |--core.h
---|--include--|--StarStrips.h
... |
I'm writing a tool, to manage our application, specifically to store passwords in encrypted view. I made a class which is based on two posts:
https://stackoverflow.com/questions/20852664/python-pycrypto-encrypt-decrypt-text-files-with-aes
and:
https://stackoverflow.com/questions/4102761/python-config-parser-cache-to-re... |
A while ago I took one of @Simon's scripts and updated it to make it more geared towards normal users (no offense mods) and this Question was created. But the link to the Github is no longer correct and the code has changed quite a bit to get it to work on Firefox and Chrome (and Opera and IceDragon and Safari).
I woul... |
I am writing a regular expression for parsing PHP annotations in a flexible way.
I'd like to accomplish all the goals listed above with one single expression. So I would appreciate any suggestions about the quality of it (in terms of corner cases, performance, best practices and correctness).
PCRE expression:
/[\*\s]*@... |
I have a correlation matrix containing 4 time points, each with multiple samples. Each sample is identified with a time point with its name. What I am trying to accomplish here is to create a directed graph using Python's (2.7) Networkx with edges connecting nodes from the last time point to the first time point (6h --... |
I have this code and this works fine but I think it's too lengthy. I want to know if there can be a less lengthy code. I've heard from people that lengthy code is often not considered good.
<html>
<head><title>Table</title></head>
<body>
<form method = "Post" action = "Table.php" >
Enter a number between 2 and 20 to ... |
Yesterday I have found that I can't use the wireless network at some spots in my house. I used another modem as a WiFi booster and I managed to cover these spots.
The problem is that when I go to these dead spots I need to use static IP and change my primary DNS servers, or I get limited connection. Also, I still want ... |
This based on this question in StackOverflow. The accepted answer uses Convert.ToString(int, base) to get the binary string, reverses it and converts it back to int. Nice trick!
I have very little experience with bit twidling (using Flags is about it :p ) so I decided to try and code the solution to this problema witho... |
I worked on my code a bit from the earlier post and was able to make it work. I am new to C++ so please be kind.
I basically have two questions apart from the peer review.
When I use templates definitions in a header and just call it from source, it doesn't work. Why?
To make it work using strings I want to use a type... |
I posted a custom byte cipher on this site a few months back, and after spending three days recoding it from scratch, wanted to post it again to see if you can offer any improvements. (I am not looking for: "You should use var instead of explicit declaration". I'm looking for significant code improvements, not coding s... |
This question now has a follow-up:
Implementation of a lock-free fixed-sized allocator - follow-up - with commented code
I've tried implementing a lock-free fixed-size allocator while trying to learn synchronization through atomic variables.
Here are the related classes:
template_utility.h
#ifndef OAG_TEMPLATE_UTLITY_... |
I had to ask myself a couple years ago: before Edsger Dijkstra invented his famous shortest path algorithm, how brute force approach would seem.
Below is my version. It's super slow, but I find it funny.
BruteForceShortestPath.java:
package net.coderodde.graph.experimental;
import java.util.ArrayList;
import java.uti... |
Given these classes:
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
//...
}
}
public partial class LoginForm : StackPanel
{
private LoginRegistrationWindow parentWindow;
private LoginInfo loginInfo = new LoginInfo();
public LoginForm()
{
... |
I am writing a small utility that reads a number of print files to extract out financial data, and then build a spreadsheet populating the data in specific cells.
I have it working, but it's not elegant and certainly not what you would call Pythonic, so I am rewriting to make it more efficient and improve my Python ski... |
I've made a pretty standard console in which you type a command and it does something. However, the issue that comes to my mind is scaling: if I want to add hundreds of commands, I have to manually add a new Command instance for each one individually, which is... less than ideal.
The full code is stored in this GitHub ... |
The scenario is as follows: We have a streamed enumeration that we have to check if it's ordered or not before processing it (about 75-80% of the time it is ordered). We are talking about pretty big enumerations, in the range of 10-100 million elements.
Because the first step processing the data is ordering it and we n... |
I've been researching about JavaScript and jQuery function chaining and different callback techniques. I am trying to create a very generic code that allows chaining, and in a way that I may create several parallel chains without them interfering in one another.
Expected Usage
Setting up
/*---Usage---*/
var chain = ne... |
I'm a newbie and I'm new to C# (thus statics and copy-paste) and I'm painfully aware that this code smells. I'm trying to implement a web service that handles a similar pass-through logic with three different data structures that are processed by three corresponding different methods of an external service.
How can I a... |
I have the following code which I implemented to delete all the nodes for the matching value. My code handles all the 63 varieties of test case scenarios including scenarios like deleting 1 from linked list 1->1, leaving the linked list empty.
public ListNode RemoveElements(ListNode head, int val) {
if(head != ... |
I'm trying to extract specific files and visualise them in a list/grid. For that purpose I'm starting a Service to do the background job, and when it finishes it fires an Intent which will be captured by a Fragment/Activity. The files are extracted in an singletone container which feeds the adapter when the broadcast i... |
Here's the JSFiddle, the GitHub repo, and here it is out in the wild.
Note: the application uses Chrome's Speech Synthesis API and only works on Chrome or Safari for iOS7 (oddly enough).
It was my first voyage into jQuery-UI. I'd love some feedback on structure, coding style, and things that could break.
JS
var json... |
Given two arrays (for instance a list of people and a list of subjects), I need to initialise a Hash with all zeros for all possible combinations of these two arrays. I can manage to do that with the code on the bottom, but it seems like there should be a less convoluted, more elegant way to do this.
people = %w(tom ma... |
I implemented the inversion count algorithm using the merge sort approach for this question.
The question begins with a number t = number of test cases and then for each test case you input size of array and then the array entries.
For each test case we have to find the number of inversions = number of shifts made by i... |
If there are two or more words that are the same length, return the first word from the string with that length. I am a beginner. Could anyone highlight good and bad parts of the following program.Also, had it been last word from the string with that length, would it give different result in Chrome and Firefox because ... |
I'm now posting the second semi-complete part of my operating system makefile. The kernel itself is currently incomplete, so don't be surprised by the small size of the makefile. When the kernel expands, it will follow suit.
OFLAGS = -Ofast
DEBUGFLAGS = -g -g3 -ggdb3
TARGET = i686-elf
CC = gcc
INCDIR = -I kernel/includ... |
I have grid N × M in which each cell is coloured with one colour.
When the player clicks on any cell of the grid of colour α, the cell in the top-leftmost corner of the grid, of colour β, receives the colour α, but not only it: all those cells which are connected to the source by paths which use only the colours α or ... |
I've recently been writing an application which does a lot of work with the output of commands. To call the commands I've been using the subprocess module, and originally, was using subprocess.PIPEs for the stdout and stderr, and then using the communicate method once the process was complete to retrieve the output to... |
I have written the below class which encrypts and decrypts a PHP array. The encrypted data and the hash are sent over an insecure connection and I would appreciate if you could check the code for any vulnerabilities I may have overlooked.
class ArrayEncryption
{
const encryptionAlgorithm = 'aes-256-cbc';
const ... |
I've run into a problem twice just recently. Though I'm getting around it I can't help but feel that it's a rather unconventional method and that there's a better one.
This app is an exercise in using different types of persistent storage. I have 1 table to store short notes. In a ListView those notes are displayed alo... |
I tried to create a class for porting Java's synchronized keyword to C++ using below code using *nix pthread's library.
In general my test cases seem to work, but since this is a very critical topic I would like to have someone else have a look on it in case I missed something which might invalidate my test cases.
The ... |
I have implemented a thread safe holder to safely pass data between threads.
User can set value many times, but only the first SetIfEmpty call stores the value, then user may read the value many times.
template <typename T>
class ThreadSafeHolder {
public:
ThreadSafeHolder() : is_value_set_(false) {
}
void... |
I have a string which I want to check for characters other than those in this list {"1", "2", "3", "4", "5", "6", "7", "8", "9", "0", ".", "i"} however this check gets run several thousand times a second.
I am therefore looking for the most efficient way of performing this check, what I have tried so far:
If Not System... |
I would use the same RecyclerView.Adapter with two or more different fragments. Every fragment uses a different view items layout so I must use a different RecyclerView.ViewHolder for binding the data.
For the implementation I have created one RecycleView.ViewHolder that binds the two different view layout with a switc... |
I've written a basic dice program in Java which takes a number of faces then randomly selects a number within that boundary. Here is the code:
package com.georgegibson.diceroller;
import java.util.Random;
import java.util.Scanner;
public class DiceRoller
{
public static void main(String []args)
{
Rand... |
I am trying to learn Java by doing some (easy) ACM ICPC problems. The problem consist to check if the knight in a chess game can move from a point A(r1, c1) to B(r2, c2) with one move only.
package dalia;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
public... |
I have an object that needs to have a single point of initialization, and other callers need to wait until the initialization is complete before continuing.
I have done this with jQuery, and it feels like I'm working with the design, but the same approach with a native JavaScript Promise seems like it is going against ... |
I've been designing and coding my Laravel API boilerplate for couple days now, and I'd like to hear some advice/improvement hints!
I'm pretty satisfied with the result, but I'm also aware, there might be (and surely are) some things that can be improved.
Basic concept:
Every controller should extend my App\Http\Control... |
I wrote a decorator which makes Python 3.5 raise exceptions if the arguments that are passed to a type-hinted function are of the wrong type.
from typing import get_type_hints
def strict_types(f):
def type_checker(*args, **kwargs):
hints = get_type_hints(f)
all_args = kwargs.copy()
all_arg... |
I'm working on an RPG so of course I have to have some dungeons. I've got the dungeon generation working, with the output being a DungeonTileType[][].
Now I wanted to create the code for the player to be able to enter the dungeon. To do so, I created a Dungeon class that will hold all of the information necessary for... |
I needed something that would get the URL of a chosen video from YouTube and store it in a file.
Since I didn't find a way to write/edit an existing file with the URL alone, I had to use a patchwork of JavaScript and bash to stitch together the complete URL.
I'm asking if there were things I could have done better or w... |
The first line will contain numbers m (number of rows), n (number of columns), and b (number of rotations to be performed).
Suppose I have following 4X4 matrix:
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
and b = 1,the output must be:
2 3 4 8
1 7 11 12
5 6 10 16
9 13 14 15
The problem I am facing is 3 test case are ti... |
As my first (keep that in mind!) Haskall program (full code at end) I've written a simple Enigma machine and would like feedback on the core code related to its stepping and encoding — stripped of comments to see how it fares without them. (I expect to post a follow on where a more complete package is reviewed; but thi... |
I have a simple if statement which, based on user input, determines which expression is going to be utilized. It looks like it can be done better.
Func<Unit, bool> exp;
if (onlyChildren)
exp = u => u.PhaseId == id;
else
exp = u => u.PhaseId != id;
var unitGroups = _db.Units.Where(exp).GroupBy(m => m.UnitTempla... |
I have found two ways in which I can generate the Collatz sequence given a start number. I have looked briefly into their performance, but I'd like a more in depth/solid review into the difference in the two methods.
The main difference really is, one of them doesn't have if statements. But the down side to this method... |
I'm working on an exercise that counts the number of even digits, odd digits, or zeros in a user-input integer (I made it a long so the user could put in more numbers). However I have a bunch of repetitive code when I'm building my output, especially about the pluralization of "[s]". Really, the entire thing feels redu... |
I'm a beginner in programming and made a pretty simple heads or tails type game. I would like to know if I have done this efficiently. If not, please let me know what you would have done differently.
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
void headsOrTails();
int randomNumber();
... |
I have program that uses a Money class which has several constructors for different methods of input and overloaded operators to add, subtract, and compare values.
I am having difficulty defining my int asCents(const Money& amount) const; method so that it can be used in other functions. Used correctly, is it best pra... |
This code that I wrote for a lab works perfectly and gives the desired output. That said, it's over 200 lines of code to reach the result. This seems ridiculous, even when you consider that there is a restriction to only using the for loop to do it.
What are some ways I could have written this program better? Have I do... |
I've written this a few days back, which is not too big. Do you see anywhere I can improve my logic?
<?php
class Upload
{
/*
TODO: Allow multiple mime groups
Usage:
Simplest:
----------------------------------------------------------------
$upload = new Upload();
... |
Does this script look well-written and formulated?
'''
This is for a practice
Get the last letter from first_name, 2nd and 3rd letters from last name
First 5 numbers from index number.
And generate a a unique code.
'''
import sys
first_name = 'first_name'
last_name = 'last_name'
index_number = str('02001201525') # Co... |
I have a class:
public class ProductInvoice {
//Some other properties.
private List<ProductEntry> productEntries = newArrayList();
//otherMethods
}
And:
public class ProductEntry {
//other properties
private Long quantity;
private Long productId;
}
Now I need to prepare a map of productId vs quantit... |
I have these classes for my Tic-Tac-Toe game project. I am very new to object oriented analysis and design. Can anyone help determine if SOLID principles are preserved in this code or if it is violating some of them?
public class InputReader {
private BufferedReader inputReader;
public InputReader() {
... |
Ask user to input 10 integers and then print the largest odd number that was entered. If no odd number was entered, print a message to that effect.
I've written this code as my solution to the above exercise from chapter 2 of Computation and Programming Using Python by John Guttag. The book is meant to be used with Pyt... |
I have written some code to encrypt XML and then store it on the disk. I want to be sure that the encryption code is secure, so here is the code:
package com.application;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Field;
import java.security.Key;
import java.security.MessageDigest;
import ja... |
I am trying to learn Java by doing some (easy) ACM TCPC problems. The problem is finding number of overlapping times intervals. If there a one, a fight will happen between the two games connected to those intervals.
Example
Input
1 // this is the number of cases.
3 // the number of time intervals
1 5 // The fir... |
I'm learning Python and Gtk so I decided to write a simple application that will take some image let user annotate with a pen and send results through email or save to a file.
So far I have the skeleton of the interface:
from gi.repository import Gtk
import os, sys
class GUI:
image = 0;
def __init__(self):
se... |
This project is my learning place for a few things:
MVP (model view presenter)
XML (parsing, editing and leveraging)
deeper swing functionality
Concerning the XML part I have already recieved a very nice review by rolfl on my previous question. Since then quite a lot of things have changed and the current state of t... |
Edit for posterity: The library you're looking for is Hspec.
I recently started writing Haskell tests with HUnit.
My general setup looks something like this:
import Test.HUnit
import Widget (foo, bar)
tests = TestList [ "foo" ~: testFoo
, "bar" ~: testBar
]
testFoo :: Test
testFoo... |
In light of our current community-challenge I decided to build an Elevator Management System.
Initially I intended to program the EMS like a real-time operating system and the elevators as finite-state machine threads with each their own handler. It didn't go according to plan, but it works. For some values of works, s... |
I'm a beginner programmer and decided to try some coding challenges. I found CodeEval and attempted the first challenge, FizzBuzz. However upon submitting my code I found that my submission only partially solved the problem.
Link to the challenge
Challenge Description:
Players generally sit in a circle. The first play... |
Is there a better way to create Form Controls for properties of a class? Right now, I iterate through all properties of a class and have a method to create the Form Control for that property based on the type of the property.
private void AddControl(PropertyInfo p, string name = null, Color? c = null, int count = 0)
{
... |
Ask user to input 10 integers and then print the largest odd number that was entered. If no odd number was entered, print a message to that effect.
The above exercise is from chapter 2 of Computation and Programming Using Python by John Guttag. So far, the book has covered variable assignment, print function, condition... |
I'm often applying to jobs just to test out my skills. I have recently applied to one, had to submit a Java problem, but got rejected. Could someone please review my application briefly and tell me what was the worst mistake in my code? I am interested in improving myself but it's hard for me to figure out what I need ... |
I am working through UPenn CIS 194: Introduction to Haskell (Spring 2013). Since I am not able to take the course for real I am asking for CR (feedback) as it could be from teacher in that course.
HW4 - Higher-order programming - Full description
import Data.List
-- Exercise 1
-- Reimplement each of the following func... |
I'm attempting this question on HackerRank, which states the follows:
You are given a list of \$N\$ people who are attending ACM-ICPC World
Finals. Each of them are either well versed in a topic or they are
not. Find out the maximum number of topics a 2-person team can know.
And also find out how many teams can ... |
I stumbled on this SO question which was asking about a way to convert larger hex values to a positive numeric value:
?Val("&H8000")
-32768
Val("&HFFFF")
-1
My answer involved iterating the string digits one by one, and computing their respective value into the result:
Function ConvertHex(ByVal value As String) A... |
Inspired by my merge sort in Scheme, I thought I'd try my hand at implementing other sorting algorithms, starting with simple ones (like insertion sort) and working my way up. So, here we go:
(define (insertion-sort lst (lt? <))
(fold-right (lambda (item sorted)
(let-values (((lhs rhs) (span! (cut lt?... |
I've been doing a lot of programs for classes that require a prompt from the program. I thought it would be much faster for me to rapidly test inputs if I didn't have to execute the program and then type the input once inside the program (as opposed to just hitting ↑ and adjusting the input that way).
My concern is thi... |
I wrote the following to generate short database identifier names (e.g. parameters). This isn't a terribly practical requirement and could be fulfilled nearly as well by using base-26, but what seemed like a simple problem became an interesting challenge.
My result doesn't feel very clean, and it has some collisions. I... |
I've heard about the binary search in an intro class I took a couple months ago, remembered how it worked and read this article, so I attempted to write my first binary search in Python. It works, but when I look at other people's attempts in the article, their code looks cleaner and a bit different.
My two main questi... |
I just started with Elixir and this is what I have now. Is there an easier or better way to write this?
defmodule GroupBySum do
def sum(col), do: sum(%{}, col)
defp sum(r, [h|t]) do
{k, v} = h
r = r |> Dict.update(k, v, fn(val) -> val + v end)
sum(r, t)
end
defp sum(r, []), do: r
end
list = [a: 1, ... |
I suspect there might be a much more efficient way to accomplish this task. I would appreciate a more clever hint for performance increase. I am also looking for feedback on style and simplification where appropriate.
I assume that the set of what counts as English words is a given and that I don't need to do somet... |
Ask user to input 10 integers and then print the largest odd number that was entered. If no odd number was entered, print a message to that effect.
This is a follow-up code on feedback from Find the largest odd number
This time I've taken care of a bug related to the number of integers entered and tried to handle inval... |
Given
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.
Find the largest palindrome made from the product of two 3-digit numbers.
Solution
import time
def reverse(num):
dreverse = 0
while (num > 0):
dreverse = drevers... |
Wrote this an hour or so after learning some basics.
Took me a while because I had to write it in a way to fit the previous structure of my page. Basically, there are three rows of data. There has to be three row classes in bootstrap because otherwise the columns would basically stack on top of each other and I did not... |
Ask user to input 10 integers and then print the largest odd number that was entered. If no odd number was entered, print a message to that effect.
This is my follow-up code on feedback from Find the largest odd number (follow-up code)
This time I'm trying to achieve the same result with nested functions. I need your c... |
I would like to improve my functions and work properly on enums without all of those IFs as well as make it more consistent (for example Backgrounds::displayQualifingBackgroundNames()). How should I go around it properly?
The file I'm reading from looks like this: http://ideone.com/cQ4M3g
I know I'm missing few things... |
Create hash generator with configurable hash algorithm. Also need method to create salt. Implemented in visual studio 2015. Must work in DNX Core 5.0.
public class HashGenerator : IHashGenerator
{
// Algorithm has to inherit from HashAlgorithm base class.
// For example, another algorithm that can ... |
def floor_log(num, base):
if num < 0:
raise ValueError("Non-negative number only.")
exponent = 0
while num > 1:
num >>= 1
exponent += 1
return base << (exponent - 1)
print floor_log(3, 2) #2
print floor_log(4, 2) #4
print floor_log(5, 2) #4
print floor_log(6, 2) #4
I frequently... |
This is an automation code written in Python, code is initiated with robotscript. This function validates that my input list matches the list that the program provides me with. I need to do typecasting because robotframework only allows my to insert parameters as unicode strings, typecast is also needed so I can check ... |
This is the third iteration of my reCAPTCHA validator. Iteration II can be found at: Google reCAPTCHA Validator: Iteration II
It does almost everything required to do reCAPTCHA validation on anything .NET.
I removed all the XML docs to shorten it up a bit.
GitHub commit of the version in this thread (with all the docs ... |
I have a CSV file which looks like this:
ID | Name | Date
"1","Foo1","2013-08-03 21:00:08"
"1","Foo2","2013-08-03 21:00:08"
"2","Foo3","2013-08-03 21:00:08"
...
I need to write a method which returns a list of the lines with same ID and date, for reading the CSV file I am using OpenCSV. My question is whether or not... |
I am learning D. I'm trying to implement Haskell's intersperse in D. I want to use ranges. I feel that the intermediate "interspersed" value is wrong. Additionally, I suspect the concatenation character by character is inefficient. What is a more idiomatic way to implement this function, please?
string translateToSwed... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.