instruction stringlengths 71 71.9k |
|---|
I would like you to review my regex. It's suppose to recognize common URLs like:
http://www.google.com
http://www.sub1.sub2.google.com
https://www.google.com
http://www.google.com/path1/path2
http://www.google.com/path1/path2/
http://www.google.com/path1/path2/a=b&c=d
http://www.google.com/path1/path2/a=b&c=d/
var ur... |
We want to check if a URL is down or not. But sometimes, the environment is down for maintenance for 3-4 hours and we don't want to keep sending emails during that time.
I have written a shell script for performing a URL check and running it every 30 mins using a cronjob.
The actual requirements are:
Check if the URL ... |
I want to build a robust and highly scalable client server system. Here what I have so far(an echo server as my base of implementation)
My Server
private void startServer_Click(object sender, RoutedEventArgs e)
{
if (anyIP.IsChecked == true)
{
listener = new TcpListener(IPAddress.Any... |
I'm trying to clean up my JQuery code for my tabs. I have 3 different styles. How do I make the following shorter?
$(document).ready(function () {
$('.tabs-style1 li').click(function () {
var tab_id = $(this).attr('data-tab');
$('.tabs-style1 li').removeClass('current');
$('.tab-content-styl... |
So I ran into an issue where a client sent me a sample file and the line breaks were not preserved when reading the file using PHP from linux. So I wrote up a little function that should hopefully fix the issue for all platforms.
This is from a larger File class. The function names are pretty self explanatory.
public f... |
Please check this program that sorts an integer array. It doesn't look very efficient. Please tell me how to correct this.
int temp;
for(int i=0;i<nums.length-1;i++)
{
if(nums[i]>nums[i+1])// if this is true, swap the value
{
temp=nums[i];
nums[i]=nums[i+1];
nums[i+1]=temp;
i=-... |
I am trying to write something that will copy the current <input>s value and enter it into any <input> that start with the same name.
<input> names will follow this pattern: price-0, price-1, price-2, upc-0, upc-1, upc-2.
So if a user enters a value in <input name="price-0"> and hits copy the value should be transferre... |
In the application I'm building, the user is able to define 'types' where each 'type' has a set of 'attributes'.
The user is able to create instances of products by defining a value for each attribute the product's type has.
A pic of the schema:
I'm creating the query where the user specifies the attributes values and... |
I usually use the static methods from this designed class in order to perform objects serializing of custom classes.
Even though I'm getting good results, I wonder if this is the most appropriate way for it and if there are any improvements for it?
public class InputOuput {
private static FileOutputStream ... |
I am constructing a selector on every radio button click. Since I am using the table repeatedly on every radio click, I cached it like:
var $t1 = $("#tableone");
but inside the radio check event, I need to retrieve the selector to construct a string.
Approach 1:
$radio.click(function () {
var temp = $t1.select... |
I redid a Reversi game state class that is online. It follows the conventional rules of the board game. The game state connects to a command line interface now. I am unfamiliar with Android so comments related to that would be especially appreciated. Java related comments would be useful too.
/**
* Date: 11/3/13
* Ti... |
I'm building an iOS app that uses web services extensively. I've built classes that handle the requests. However since there are a lot of web service request. I need to find out how to detect which web service to run, based on the action - registration, login, image upload, etc.
This is just a small snippet of a very l... |
I have been studying data structures, and I'm new to this. Here is my code for the push and pop operations.
I considered using a node=top, so that I can avoid O(n) operations for the push (i.e. finding the last node every time).
I can't seem to find a better implementation for the pop operation.
Let me know if my c... |
Let a,b,c be a boolean value. I need to print all values of expression a && b && c. I'm writing the class
public class BooleanTriple{
private boolean a,b,c;
public BooleanTriple(boolean a, boolean b, boolean c){ this.a =a; this.b=b; this.c=c;}
/**
*Increments the value of triple with lexicographical or... |
I need to search some data encoded by a Huffman tree, but not by simply walking the tree: I need test combinations of the data for a property and continue searching based on whether the test is positive or not. To this end, I've also returned the intermediate steps of the Huffman algorithm>
Here is the code I use to g... |
Since the original post, I have explored further regarding this pattern. In an effort to fix one self-percieved flaw (the lack of ability of prototype methods to access private object members), I have revised this Class pattern. As no one has responded regarding the pattern, I am offering a bounty.
In general, only pe... |
If I have a Person class that outlines the properties of a person and one of People that just contains a List<Person> like so:
public class Person
{
public Person(){}
public int personID {get;set;}
public string name {get;set;}
public string address {get;set;}
}
public class People
{
public People(... |
I'm a newbie trying to teach myself Python. Could somebody tell me if there is a better way to write this? I am also curious as to whether or not there is anything I should not do. This code does work, but some indentation may have been lost when I pasted it.
import random
def game():
yes = ['y', 'Y', 'Yes', 'ye... |
I've decided a while ago to make my own voxel engine. To start, I coded my own basic 3D engine in Java using minimal OpenGL bindings for things such as SRGB ect. I set up my own VBA and VBOS and had it working with .obj files. I already have transformations and Quaternions set up.
I've recently started to implement my ... |
I wrote a PHP function that generates JSON data to populate a line graph. Through jQuery, my code uses a GET request to the PHP script to fetch the JSON data. An example of the JSON data is as follows:
{"labels":[{"x":"2013-10-30","a":"1","b":"8"},{"x":"2013-10-31","a":"2","b":"14"},{"x":"2013-11-01","a":"5","b":"12"}]... |
If the prefix/suffix does not match the beginning or the end of a string, then, depending on how I call these functions, they should either raise an exception or return the original text unmodified.
I am using these inside of a simple script for now, so there was no need to make these member functions of some class. I ... |
I've just completed the Calculator Kata in the Kata Gem and I was hoping for some feedback. Here's the Kata:
Calculator Kata
Create a calculator that is initialized with a string expression
- detail: The expression is of the form digits separated by commas: "1,2"
- detail: The expression is accessed by a method na... |
I wrote a program for a college assignment, and I'd like to receive some pointers on making my code a little more efficient.
The program should ask the end user to enter an integer. Use the
isPalidrome method to invoke the reverse method, and report whether
the integer is a palindrome. Any one-digit integer or n... |
I'll start by saying I've just started with programming, and Ruby is my first language. I've made a little soccer shoot-out game. I'm having problems with the end of the code looping back to where I want it.
If there's a tie, I want it to keep the same score and players, but add another round of shooting. Should I do t... |
I working with a lot of Strings which I get from a web-form:
final String user = request.getParameter("user");
final String pw = request.getParameter("password");
final String name = request.getParameter("name");
final String shortname = request.getParameter("shortname");
final String appl_name = request.getParameter("... |
I am currently learning JavaScript and wanted to fellow coders to review a function that I had written. I am looking for feedback particularly on:
Whether I have followed best practice and JavaScript conventions
Any suggestion on doing it better.
Things I know I need to implement but don't know how:
Validate if arra... |
The environment I'm working in requires that all allocation is done through a special set of malloc/calloc functions and that a user ID is provided when allocating. The environment has no implementation of exceptions, so errors are signaled by returning NULL.
For this reason, I have tried to write a couple of C++ funct... |
I want to parse some reports from multiple devices, reports looks like this:
VR Destination Mac Age Static VLAN VID Port
VR-Default 192.168.11.13 90:e2:ba:3c:95:c0 2 NO intra1 350 49
VR-Default 192.168.1.1 00:0e:a6:f7:b6:b5 0 NO main ... |
I'm just getting started with Python -- completing a simple exercise from a practice website. My code works -- just looking for feedback on better ways to achieve the goal.
Goal:
Find the original (unscrambled) words, which were randomly taken from
a wordlist. Send a comma separated list of the original words, in t... |
Just thought I'd share this and see what kind of improvements could be made that I'm not aware of and taking advantage of.
The situation is this: I have a list of items on a page that have a button that opens a menu. I need a click away event as well as close others when a new menu is opened. Also some of the menu acti... |
This Codility challenge is to take an array of integers representing lengths of line segments, and determine whether or not it is possible to choose three distinct segments to form a triangle. (The sum of the lengths of any two sides must exceed the length of the remaining side.) Assume that A contains at most one mi... |
I'm making a server in C that needs to parse JSON that follows oBIX protocol and I'm using the Jansson library for this. I've been programming in high level languages such as Java and C# for my entire career and the last time I touched C was way back in 7-8 years ago, so I'm mostly looking for guidance on writing C-sty... |
I'm looking for some feedback on Python best practices, general code quality, and bonus points if you have knowledge of CANOpen that you can leverage to find anything I missed functionality-wise, but isn't necessary! I'm hoping that this isn't too technical.
PDOMapping.py:
import CANOpen
import csv, StringIO, binascii
... |
I'm porting some AVR code from PROGMEM/PGM_P to __flash, and I want to reduce the amount of conditional compilation I need to do in the code.
Here's all the code (but keep in mind that only the parts in the conditionals should need changing):
#define F_CPU 12000000
#include <avr/io.h>
//#undef __FLASH
#ifndef __FLASH
... |
That's an easy one. I just want to calculate the Hamming distance between two strings.
function hamming(str1,str2)
local distance = 0
-- cannot calculate Hamming distance if strings have different sizes
if #str1 ~= #str2 then return false end
for i = 1, #str1 do
if str1:sub(i,i) ~= str2:sub(i,i) then
... |
I am, primarily for learning purposes, working on creating an editor component in C++ with Qt. As a first step, to begin getting familiar with editing a document via QTextCursor, I wrote this function on my subclass of QPlainTextEdit to indent multiple selected lines:
void MyEditor::increaseSelectionIndent()
{
QTex... |
I have the following constructor
/**
* @param codePath path to player's code. If ends in '/' it assumes the code is in .class'es in
* a directory; otherwise assumes a jar
* @throws PlayerException if there is a problem loading the code
*/
public Player(File codePath) throws PlayerException {
if (!codePa... |
I've creating a small library of JavaScript functions that I will be using. Some are for UI functions others are to return something.
I am wondering if this method is ok and not a bad move before going any further with this library. Also, please do not mention jQuery as this is all JavaScript!
HTMLElement.prototype.dra... |
I thought to do away with getters and setters behind the real world objects such as Person, Company or Address, i.e. getName and setName.
Each of these have public enum Attrib of states.
And the state is actually a pure Object mapped to a private HashMap.
package model;
import java.util.HashMap;
import java.util.Map;
... |
I'm creating a Python API client, after thinking and checking some open source Python clients I created this class, and I'm looking for any feedback (design, best practices...), this is an example URL of the API:
https://www.api.com/collection/resource.json?userid=id&key=apikey&command=value
Here's my class using th... |
I have written this Pseudo-Code for the following program, I'm wondering if this might be descriptive enough for anyone to follow up and perform more or less the same program. The program reads and analyzes a set of data in a text file, then displays the information in a filtered way. Any improvements/ revision would b... |
I am fairly new to programming and I am having difficulty modulating the following code.
The program reads a file, selects certain requirements, and displays them. I have tried to use passing arrays as arguments or functions as indicated in my textbook. I have been using examples such as int getAges(int array[], inte... |
Am I making good use of a 2-D array? Is this code inefficient? I am supposed to receive input from 6 departments for 4 quarterly periods in Java.
My assignment asks:
Quarterly Sales Statistics
Write a program that lets the user enter four quarterly sales figures
for six divisions of a company. The figures should be... |
I'm writing a laser connection game. This is my first game on Windows Phone, and I've never used C# and XNA before.
The part of my code that could be improved is Update() (where I make my sprites move).
public void Update(GameTime gameTime)
{
TouchPanelCapabilities touchCap = TouchPanel.GetCapabilities();
if (t... |
I have the following SQL query that computes for every date the week it falls in (a week begins on Sunday and ends on Saturday):
SELECT EntryDate
,CAST(DATEADD(DAY, 1-DATEPART(WEEKDAY, EntryDate), EntryDate) AS DATE) AS 'SundayDate'
,CAST(DATEADD(DAY ,7-DATEPART(WEEKDAY, EntryDate), EntryDate) AS DATE) AS '... |
Can anyone optimize this code? I am new to jQuery.
I want add class on next and previous button click. I wrote this code that works for me, but could anyone optimize it using jQuery predefined methods? That would be helpful.
$(document).ready(function () {
var length = $('#slides li').size() - 1;
var curren... |
I believe this is considered value noise or possibly gradient noise in that I simply interpolate between random values (always returning the same values per coordinate).
I am using this currently to generate a basic heightmap in a 3D game that expands outward as the player moves (being nearly infinite, only restricted ... |
I have a Playlist object which contains many PlaylistItem children. If I have 10,000 children then the UI gets blocked from rendering until all 10,000 children have been processed.
To avoid this, I've created a recursive function wrapped in a setTimeout. This allows a chunk of the playlist to be rendered, allow the UI ... |
I am trying to standardize the way I write code. Which is the best way to place the values into a string, method 1 or 2?
string myCat = "persian";
// Method 1
Console.WriteLine("I have a wild {0} cat that likes to visit", myCat);
// Method 2
Console.WriteLine("I have a wild " + myCat + " cat that likes to visit");
I... |
I'm a beginner at JavaScript and I'm working on building a mini-framework just to become familiar with what good code looks like. In my application I often have the need for the user to enter in a list of things they want to send to the server for querying purposes. So currently I have this fiddle. When I user enter... |
In a complex library I've been working on, I got pretty tired of all of the individual type functions and operators to determine whether I was working with an object or piece of data of a given type. This was especially true when I was checking for inherited prototypes between classes. In an effort to alleviate, I made... |
fadeTo = function(obj, time, to, cChange ){
if ( typeof( time ) == "undefined" )
time = 1000;
if ( typeof( to ) == "undefined" )
to = 1;
if ( time <= 0 )
return true;
objSt = obj.style;
objOpac = parseFloat(objSt.opacity) + 0;
if ( typeof( cChange ) == "undefined" )
... |
I have a file directory which contains folders for every month, and within those folders are several text files. In this context I would like to copy all of the text files from my January folder into a separate target folder. Then copy all of the text files within the February folder to the target folder, and so on for... |
My application's structure looks like this:
Solution: MySolution
Projects in MySolution: Host, Business, Server.
References between the projects looks like this:
Host <-- Business --> Server
(Business references Host and Server but Host does not reference Server and vice versa because this causes a circular-)
So, I ha... |
I am trying to read a large file ~200 MB (~300 million lines of text). I am using a relatively standard way of reading like:
for (int i = 1; i <= numProcs; i++) {
System.out.println("Parsing " + traceFilePrefix + i + ".prg");
System.out.println("##########################");
try {
String line;
... |
I'm working on a simple little one page website for giving a presentation and I have some working code now, but I'm thinking there has to be a more elegant way of doing this. I would describe myself, at best, as a "dabbler" in JavaScript at this point; I'm much more comfortable with statically-typed languages and am do... |
This example is simplified down to the bare minimum. No DatabaseAdapter IdentityMap or anything. No fetch() method. Just what is needed to demonstrate this.
If all your data mappers have a method:
/**
* @return EntityType
*/
public function assign(EntityType $entity, Array $row);
You are basically creating a new bla... |
I'm just wanting feedback on the efficiency, design and layout of this code if possible please. I suspect it's weird having a constructor with nothing in. I'd be grateful if it could be explained how to modify the code to fit in with conventions, especially in this respect, but also in others.
package cubes;
import j... |
I am asking about the right way to make a component that holds some state. This includes a Jbutton that saves a color in it, or a list item that saves a certain object. So when those GUI components fire an event, I can use the saved states to do something with it.
My way is like this:
Make a subclass of the required ... |
The variable result is an integer representing the exit code of a command line process that was run via Groovy code. An exit code of 0 means the process was successful and an exit code from 1-255 means a failure. Then this line is executed:
println result ? "The command failed." : "The command succeeded."
What's happe... |
I created a class a while ago that I named a "Recursion Array". It is a way to create dynamically memoized sequences such as the Fibonacci sequence or the factorial numbers sequences. The concept is to create mathematic sequences defined by recursion by only providing the first values and the recursive formula; all the... |
I have an array of a struct containing 5 byte values.
I need to sort this array by each value in a different order depending on the situation.
These arrays are sometimes quite small (10-30 elements), sometimes quite large (1024-16384).
Below is the code I'm using. The reason this has become a bottleneck for me is due... |
Question: Simple Calculator
Input loaded from file. Instructions can be any binary operators.
Ignore math precedence. Last input is apply and a number e.g. "apply
5". Calc is then initialized with that number and previous
instructions are applied to it.
Also: There is no requirement to cater for invalid input.
... |
I have implemented a very basic sandwich (sub) shop which a user can add extra toppings at an additional cost. The cost is calculated and the contents of the sandwich is outputted.
I am learning design patterns and the book I am learning from (Head First Design Patterns) is in Java, which I am not too familiar with, so... |
I need to check whether a generic type parameter is in a set of valid types and have created extension methods to do a run time check:
public static bool Is(this Type type, params Type[] types) {
return types.Any(t => t == type);
}
public static bool Is<T1>(this Type type) {
return type.Is(typeof (T1));
}
public ... |
I have heard that some patterns in R code are really anti-patterns and thus I am trying to imitate superior examples of R code.
I am confused about control flow.
I have been reviewing some R code from openintro.org;
the original exercise is explained at:
http://www.openintro.org/download.php?file=os2_lab_02A&referrer=/... |
I've just written a palindrome generator and would like to know what you think about it.
Especially:
code style
Is it possible to get the same result without making a special case for 1-digit palindromes?
efficiency
#!/usr/bin/env python
def getPalindrome():
"""
Generator for palindromes.
Gener... |
I'm quite new to C, and I'm looking for feedback on this (doubly) linked list code.
Once I get to the add and remove methods, I feel like the code goes downhill. I'm looking for any potential errors I haven't spotted, and improvements that could be made for efficiency/tidiness.
struct node {
int data;
struct no... |
The program assignment:
A drunkard in a grid of streets randomly picks one of four directions
and stumbles to the next intersection, then again randomly picks one
of four directions, and so on. You might think that on average the
drunkard doesn't move very far because the choices cancel each other
out, but tha... |
I've recently try to brush up my javascript skills, so I have a friend who gives me puzzles from time to time to solve. Yesterday I got this :
function testFun() {
f = {};
for( var i=0 ; i<3 : i++ ) {
f[i] = function() { alert("sum='+i+f.length); }
}
return f;
}
Expected Results:
testFun()[0]() should alert ... |
I'm hoping someone could look through this code for my Chunk, Mesh and ChunkManager classes and tell me what I need to do to improve.
For some reason, when I wrote it in NetBeans and transferred it to Eclipse it deleted all my comments.
I especially don't understand the buffer system. Can I use backbuffers in OpenGL?
C... |
I'm using Q to flatten out some callbacks in my unit tests and return a promise to mocha (which knows to wait until the promise is resolved before running the next test).
Originally I had this code:
it ('resetCount should cause the count to reset as if there were no documents yet.', function () {
// Now save user a... |
I made this nice bit of code that I can insert into any of my projects requiring user input. It seems quite long for what it does and I would love some insight as to how I can do this more efficiently i.e. fewer lines of code.
I love to make my code elegant, but I don't see how to do this any better.
String x = (JOptio... |
I borrowed the code from this question. I'm trying to implement the delegate in that code. Below is my outcome so far.
What else can be done to improve this code? Any suggestions? I would appreciate suggestions regarding delegate, code reuse, etc.
class Program
{
static void Main(string[] args)
{
... |
I have a script that separates the date from a datepicker into day, month, and year. It works fine when there is one form on the page but not when there is a second one (presumably due to the id being the same). How can I add a value to my id and name so that they are unique values if the script runs twice on the same ... |
I have much more experience with PAWN scripting language, but I'm digging into K&R book (I think it is it), and trying some stuff on my own.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ITEMS_COUNT 16
unsigned int randr(unsigned int min, unsigned int max);
inline short randomType();
inline char*... |
It is nice to be able to set your data in a domain object like so:
$order->setId($id);
$order->setCustomer($customer);
$order->setItems($items);
And then be able to do
if( !$order->validate() ) {
// Invalid data
}
Which will validate all the set data and tell you if it was valid or not. I have an implementation o... |
I have a while loop below, but I'm not quite sure if it's the most 'pythonic' thing. I've omitted most of the code, and have the skeletal structure below (but have all the code necessary to understand my game_status() function). And the main thing in question is whether/how to use a function as a condition in a while s... |
I am working on a code where I represent a MonadPlus using a Tree data structure and then explore it, summing over all of the leaves (whose type must be an instance of Monoid); I need to use a Tree representation to do this (rather than using the List representation) because as I explore the tree I want to manually ke... |
Please check my code, did i get some things wrong
I'm a newbie in jquery and ajax, please check and show me how to fix this
In jsp page :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>AJAX calls using Jquery in Servlet</title>
<link rel="stylesheet" href="jquery-ui.css" ... |
Just looking for some feedback on my solution for Tour of Go Exercise 24 - Loops and Functions. Is there anything that looks like a wrong way to do things in go? anything I could have done better?
package main
import (
"fmt"
"math"
)
func Approx(x float64, z float64) float64 {
return z - (((z * z) - x) /... |
Not sure how subjective this question is however I am looking for a peer review and general feedback on the intuitiveness and scaffolding potential of a framework concept. I have a gist on GitHub here: node.js MVVM framework concept
Is this more or less intuitive then using pseudo code and a template engine, such as ha... |
I'm creating a program that reads data from two .dat files: one for food-bank location and the other for residence. Right now, the program can calculate the distance between food-bank and residence and insert it into a distances vector.
My concerns are:
Is my logic right?
Can I determine the distance, in miles, betwe... |
I am using Django multi-table inheritance: Video and Image are models derived from Media. There are two views: video_list and image_list, which are just proxies to media_list. media_list returns images or videos (based on input parameter model) for a certain object, which can be of type Event, Member, or Crag. The view... |
Is this image uploading script safe? I have spent my day researching this and it would be very much appreciated if you could point out any errors or ways to make it safer.
<?php
$max_file_size = 1048576; // expressed in bytes
// 10240 = 10 KB
// 102400 = 100 KB
... |
Just wanted to post my registration controller and see what anybody thought about it.
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Register
*
*/
class Register extends CI_Controller
{
/**
* Register::__construct()
*
* @return
*/
public function __cons... |
def minval(xs):
minum = xs[0]
for i in range(len(xs)):
if xs[i] < minum: #difference in code: xs[i]
minum = xs[i]
return minum
or
def minval(xs):
minum = xs[0]
for i in range(len(xs)):
if i < minum: #difference in code: i
minum = xs[i]
return minum
It gi... |
I am learning Algorithms, Part I on coursera.org. I just watched the first lecture then tried to write some code in C#. The class basically stores list of connected numbers. You can add numbers that connected together by calling Union and check if they are connected by calling AreConnected. Code is as follows:
public c... |
Please review the code.
document.addEventListener("keydown", function(e) { // shortcuts
if (e.ctrlKey) { // Ctrl+
if (/^(82|79|83|66|191)$/.test(e.keyCode)) {
e.preventDefault();
}
switch (e.keyCode) {
case 82: // R
newDoc();
break;
case 79: // O
openDoc();
... |
I am after a peer review of a C# implementation of the Barnes-Hut algorithm which I have translated from F#. The F# version is the base for comparison, therefore the C# version is suppose to reflect the F# in structure and behaviour. I have tried to translate the F# implementation as accurately as possible, however i... |
This script uses robocopy purge with list command to out what would be purged it then parses that log file and checks each file and only deletes files older than 7 days. Is there way it could be simplified to maybe use less log files in the process?
$Log = "D:\IT\Backups\Logs\list.txt"
$extrafile = "D:\IT\Backups\Logs\... |
Need to write a function that takes an open file as the only parameter and returns a dictionary that maps a string to a list of strings and integers.
each line in the text will have a username, first name, last name, age, gender and an e-mail address. The function will insert each person's information into a dictiona... |
I have a single file of a java Bingo program that I want to split into three separate classes (BingoMain, BingoGUI, BingoCard). Extending a program across several files is something I have never really done, so a little help is appreciated. I also want to add the ability to extend the current program to include functio... |
If you write a VS extension, you can get access to VS services with the IServiceProvider interface:
var vsUIShell = (IVsUIShell)serviceProvider.GetService(typeof(SVsVsUIShell));
vsUIShell.SetWaitCursor(); // for example
To reduce duplication every time I need this, I created a class like this:
static class VisualStudi... |
I've made this script the other day, and I need some input from you telling me how could I improve the code / style. There aren't problems with the code (it does the job) but I want it more organized and "simple" so that in 1 week I still remember what the hell was I thinking!
The problem was: I needed a program that m... |
In this function, the copy (Write XML) is inside, but I want it to be separated from the function. How can I improve this function?
Sub ExporttoFolder(ByVal POSPath As String, ByVal dt As DataSet, ByVal FolderCopyto As String,ByVal SelectedItem As DataTable)
If MsgBox("Do you want to Export Invoice to " & _WhouseToCo... |
Is this reliable?
While there are many backup programs out there, it is still hard to find free software that allows unattended differential backup on Windows. Completely rolling something from scratch is usually not the way to go and after some searching I found that 7-Zip can be utilized to achieve full and different... |
I'm trying to build a framework similar to Scrapy ItemPipelines or Pipeless. The motivation is to be able to build generic data pipelines via defining a modular collection of "pipe" classes that handle distinct steps within the pipeline. I've taken some tips from here. I'm looking for general feedback.
interfaces.py... |
Feel free to tell about every possible issue (style, errors, inffective solution etc.) you found. Here is the main part of what I want to be reviewed, through there is some related code on GitHub.
Header
#ifndef PRIM_GRAPH_MST_H
#define PRIM_GRAPH_MST_H
#include <list>
#include "graph.h"
class PrimGraphMstImplementat... |
Two possible solutions but which one? Or is there a Better?
I have a class MP3Track with members: Track number (int), track name (String), artist (String), in faourites (boolean) etc. My catalogue class contains two ArrayLists, one containing all tracks (vectorMain) and the other containing favourites (vectorFav) which... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.