« first day (1174 days earlier)      last day (3139 days later) » 

00:00
RELOAD! There are 2546 unanswered questions (92.9215% answered)
@Duga heh. employee suggestion
This may be on-topic for Code Review if a) the code works and b) the code isn't hypothetical or incomplete in any way — Quill 42 secs ago
hi duga
00:24
0
Q: React functional components and JS closures

CoharsI'm currently working on a project with React and Redux. I try (successfully so far) to write only stateless functional components. My code now starts having a lot's of closures, especially when rendering lists. Here is an simple example, I tried to limit to 3 files and still fit in all the relev...

Boy, my siblings are getting on my nerves.
I think they are planning on being professional brats when they grow up.
00:46
0
Q: Reproducing the "show password" function for Amazon mobile web

Jason ZI am trying to use jQuery to reproduce the "show password" function that we are currently seeing on amazon.com mobile web (not app). You will see it if you open amazon.com sign-in page using your phone's browser or use developer tools for different type of browsers from desktop. I used Chrome de...

01:12
0
Q: Bit Shifting And Masking

SomeStudentI was wondering if someone could review this simple bit of code that originally was in C++, but now converted to C# for practice purposes. The usage of unsigned integers is intentional as we want only positive values. Code is Below. I hope this is the correct format for asking. Ah, and if you'r...

 
1 hour later…
02:16
Oh hey look Shog referenced Duga: meta.programmers.stackexchange.com/q/8105/169832
02:33
0
Q: Why root (a global variable in recursive call) is never updated after the call finished?

SSunpublic class SummaryRanges { class Node{ Node left; Node right; Interval interval; int start; public Node(int start, Interval interval){ this.start = start; this.interval = interval; } public Node(Interval interval){ this.interval = interval;...

03:06
didn't work is not a problem description. If you have a problem with your code, clearly explain the problem and ask a specific question. If your code works and you just want peer review, post at Code Review instead. — Ken White 26 secs ago
03:19
0
Q: Deque class using typing module

BrosephI wanted to make a class for type hinting that the result of a function is a homogenous deque. from typing import MutableSequence, T, _geqv from collections import deque class Deque(deque, MutableSequence[T], extra=deque): """A typing-like type for use with function signatures using deque's...

03:30
1
Q: Swift Hackerrank 2D Array

ClefairyI solved this question in Swift, but was wondering if there is a better way or if my code can be improved: Given a 6x6 2D Array: 1 1 1 0 0 0 0 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 We define an hourglass in to be a subset of values with indices falling in t...

03:52
0
Q: Knapsack algorithm in JavaScript - Integer weights and values

nicezebraMy version of Knapsack will not work when the weights or values of items are not whole numbers. Restrictions You are given an array of objects each of which contains a weight and value. You are also given a bag which has a maximum capacity. Both the values and weights for every item are intege...

04:33
0
Q: data algorithms,python

dhivagarWhat would happen if we call gcd(m,n) with m positive and n negative in the following definition? def gcd(m,n): if m < n: (m,n) = (n,m) if (m % n) == 0: return(n) else: diff = m-n return (gcd(max(n,diff),min(n,diff)))

0
Q: Website section wrote in HTML and CSS

Luciano InfantiThis is my very first attempt to write HTML and CSS. I designed this website for a friend. I'm not sure if I used the best practices or maybe I did something wrong but I just started my learning process so I would love a review to point bad practices and things I could have done better or I did w...

Ba-dum-tish - JavaScript and promises. Anyone willing to spot my mistake?
@rolfl Monking!
Hey ;-)
function loadSpec(fname) {
	return new Promise(function(resolve, reject){
		try {
			var swaggerObject = JSON.parse(fs.readFileSync(fname, 'utf8'));
			swagger.initializeMiddleware(swaggerObject, function(md){
				if (md instanceof Error) {
					reject(md);
					return;
				}

				resolve(md);

			});
		} catch (err) {
			reject(err);
		}
	});
}
¨What error message are you getting?
04:52
Heh,I am getting PEBKAK.... OK, I found my issue... it was in my testcase....
The test the way it should be:
describe("ManagerFNs", function() {
	const mgr = new Manager();
	it("FailsSpec", function(done){
		let promise = mgr.loadSpec("test/broken.json", router);
		//console.log("Promise created in test");
		promise
			.then(function(mw){done(new Error("Expected to fail but got " + mw))})
			.catch(function(err){done()});
	});
});
The test before .......
@rolfl ^^ Are you back to being a chat monkey now?
describe("ManagerFNs", function() {
	const mgr = new Manager();
	it("FailsSpec", function(done){
		let promise = mgr.loadSpec("test/broken.json", router);
		//console.log("Promise created in test");
		promise
			.then(function(mw){fail(new Error("Expected to fail but got " + mw))})
			.catch(function(err){expect(err).toBeDefined()});
	});
	done();
});
@N3buchadnezzar - I have seldom left chat... I just have not said much ;-)
For the record, async stuff in Node.js is not intuitive.
04:58
I just spent an hour, or so, looking for an issue in the promise, but the async problem was in the test. I have learned a few things, but seriosly.
=============================== Coverage summary ===============================
Statements   : 98.91% ( 272/275 )
Branches     : 98.61% ( 71/72 )
Functions    : 100% ( 47/47 )
Lines        : 98.87% ( 263/266 )
================================================================================
Time to get that last little bit.
If you're writing ES6, you should add the babel plugins for async + await
also you can get mocha or jasmine to give you html results ;-)
Yeah, I have the HTML results from jasmine (istanbul?)
yeah
The babel sounds interesting, but I am sticking to Promises.... native ES6
@rolfl I think it's quite intuitive
Your test is trying to call done outside of the scope of done, though
05:04
Ahh... that was me editing the changed file back to what it was..... incorrectly.
The done was inside the it.
(but should have been inside the then/catch)
describe("ManagerFNs", function() {
  const mgr = new Manager();
  it("FailsSpec", function(){
    let promise = mgr.loadSpec("test/broken.json", router);
    return promise.then(function (mw) {
      assert.fail(`expected to throw, but got ${mw}`)
    })
  });
});
babel looks like a step backwards.
depending on your test runner the above may work
@rolfl why?
The front-page "example" of what it does..... is backwards....
Let me copy/paste:
it is backwards, lol, provides backwards compatibility
yes, it transpiles ES6 down so it works in all environments
OK, so then it does what it is intended to do, but I am intentionally trying to use ES6 as much as possible.
Babel lets you do that
You write it in ES6
(Nodejs 6.x server side onlu).
It's just it is transpiled down to ES5
But if you support Node 6.x, great
The only thing Node 6.x doesn't support is modules
05:08
yeah, you write and maintain it in ES6, compile then execute in ES5
just that Node 6.x isn't LTS so you may want to consider another branch for production use
Hehe, I thought 6.x was LTS..... checking.....
Node v6 is LTS....
Hm
When I last checked, it was 4.X
but 6.X had only just come out since then
Thanks for the info :)
Well, it is not LTS..... yet.
It will be LTS in October, which is a few months before we actually go-live, so I am good.
05:15
That whole class format is nice, @Quill - is that available in Nodejs (ES6?).
yeah, class is available in browsers even
the getters and setters are nice, but I keep abusing the java-like way of having underscore props protected by getters/setters
0
Q: Elasticsearch: Simple name search

alkisI'm trying to implement a simple name search using elasticsearch and a java app as the client. Schema: { "firstname": { "type": "string", "analyzer": "standard" }, "lastname": { "type": "string", "analyzer": "standard" }, "fullname": { ...

So, wuestion, @Quill / @DanPantry / others.... that actual function I was testing loadSpec .... is not supposed to be exported from the module, but I exported it to test it. Is there a better way to test methods inside a module and still keep them "unexported"?
@rolfl all of it is es6 except async/await
@rolfl not particularly
you shouldn't be testing stuff you don't want exported
JavaScript is a promiscuous language
05:20
There IS a way but I can't explain it right now, it's to do with index.js
Expose everything, and hope nobody fubars you.
i cani n a little while tho
No, it's a low-priority for me... so don't bother ;-)
(but thanks for offering).
I'm going to :P just when i get to work
2ality is a good place for ES6 info if you're looking for some. the author is excellent
05:21
-2
Q: ATM machine, done the semi right way

YoYoYo I'm AwesomeI have created a gorgeous ATM machine program. It makes all other ATMs look like crap, if I do say so myself. What I would like is some sort of critique on what I've done: Is there better syntax I could use for the if/else's such as ternarys? Can I improve this in any way? Can I move more of th...

Any premium usrers that can shed some light on the downvotes?
title + first two sentences for one
actually the title is okay, I didnt see the word 'semi'
@N3buchadnezzar it's a bit pretentious, not that it should inspire downvotes, but still
pretentious should not be a reason for downvotes
If a user thinks that he wrote good code, his dreams should be crushed in an answer, rather than through anonymous downvotes.
3
05:35
Omfg
Windows Phone 10 is mostly great
Until it thinks the battery is going to die.
Then it just decides, "f--- it, shutting down."
But it automatically restarts after it gets to a specific percentage level
Then dies again
So it goes into a reboot loop for like 20 minutes.
You actually have one of them?
Microsoft Lumia 950
Yeah.
And I like it most of the time.
But right now it's just being annoying.
def die(why):

    """Kill the program."""

    print "{} Exiting..".format(why)
    quit(1)
This question makes me want to write my own ATM programme.
I just read the code the user posted a bit earlier. That is a snippet. Now I feel like downvoting myself.
@EBrown Or burn the ATM code
05:39
I'm not writing mine in Python.
Or should I?
I have never written anything in Python.
Eff it, Python it is.
@EBrown You will probably write a better code than him. How is monopoly going?
@N3buchadnezzar Let's find out.
Monopoly is going fine.
I need a bit of a break.
So, let's see what damage we can do here.
Also, I'm going to write the entire thing in the terminal.
@EBrown How to write python: Write actuall psudocode. 90% of the time it compiles.
What's a good name for this project?
Opening a second terminal.
Let's do this.
I mean he actually is trying to write good code though. He have some comments, using the string format, and splitting up his logic.
Just that he does all of those things wrong.
"ATM machine, done the semi right way" seems like a good name
05:42
mkdir
Frick
or bobby droptables
=============================== Coverage summary ===============================
Statements   : 100% ( 280/280 )
Branches     : 100% ( 72/72 )
Functions    : 100% ( 47/47 )
Lines        : 100% ( 271/271 )
================================================================================
Bed time.
Good job @rolfl! :)
What's the python entry point?
Oh, it's just the root of the file.
Damn, easy.
Python comment syntax?
#
Or triple parenthesis. ''' some comment ''' or """ some comment """
@rolfl beautiful (:jealous:), I only have like 80% in my repos <_<
05:46
Bam. Let's get started.
Does Python require parameter types?
nope, you can have them (IIRC, but not without a bit of effort)
Or is def format_options(options): good enough?
sure, default params are good too :)
Python: it's like psudocode just easier.
JFC this is easy
Too easy
Damn
How I make list?
Well, dictionary.
Of int : string?
05:51
have you tried list?
I suck at this
list([2,3]) or simply [1, 2]
So, how about a dictionary?
I.e. in C# I'd do: {{1, "Something"}, {2, "Something else"}}
05:53
d = dict()
d = {1: 'something', 2: 'something else'}
However In that case a list might be just as good ['something', 'something else']
NO
DICTIONARY
Hah
I win
How loop over dictionary?
^^
@EBrown Why?
d.keys(), d.item(), d.values()
Just learned I have python 3.
for key in dictionary:
     print key
However often it is just easier to get the keys, values or a tuple straight from the dictionary.
Hi Guys
05:58
I GOT IT
for key, value in options.items():
JFC that was easy
anyone here for es6?
How convert number to string?
@EBrown Python is too easy. 'str(num)'
Alright
Time to get rekt m8
I feel like I am jumping into some serious discussion :)
05:59
I'm learning for the first time ever.
@EBrown You can also do print( ' some long string {} some more text'.format(number) )
@CodeYogi Es6?
@N3buchadnezzar JavaScript
Omg this is awesome
I am fiddling with ES6 and wanted to know how to write clean APIs
finally happy to see that they are bringing in support for private members and iterators
trying to mimic the stack implementation es6fiddle.net/iqvwnkvk
right now I am into a very funny situation learning node and es6 at the same time :D
@EBrown Indeed
06:06
I'm so good
Anyone got some opinions on writing public libraries?
In ES6?
If so, unfortunately, no.
In general? Sure.
yes in general
NO XCODE YOU IDIOT
# ATM Programme
# Created on: 21 July 2016 1:45:15UTC+0000
# Created by: Elliott Brown (EBrown)
# File: main.py

def format_message(pre_msg, opts, post_msg):
	result = ""
	result += "--------------------------------------------------------------------------------\r\n\r\n"
	result += "        " + pre_msg + "\r\n"
	result += "        Please select an option: \r\n"
	for key, value in opts.items():
		result += "        [ {} ] {}\r\n".format(key, value)
	return result

print format_message("Welcome to the Bank!", {1: "View Checking Account", 2: "View Savings Account", 3: "Transver Funds", 4: "Wi
That's what I have so far @N3buchadnezzar.
TEMPLATES!
Use a real template.
06:11
I made one.
Out of stuff.
<3
Don't re-invent the wheel.
8
Q: n number of x on the y

MastEveryone knows "99 bottles of beer on the wall". Mat's Mug made a comment about mugs on the wall in The 2nd Monitor and I realized I never wrote a "beer on the wall" program. But that seemed way too easy, so I made it a "n number of x on the y" instead. It also seemed like a good excuse to use t...

So much work
like in node, they have completely new school of thought, like streams and all and I am from OOP world and hence I see a huge knowledge gap
template = '''\
{idx} {x} on the {y}
{idx} {x}
Take one down, pass it around
{prev} {x} on the {y}
'''

for n in range(n, 0, -1):
    print(template.format(idx=n, prev=n-1, x=x, y=y))
0
Q: Stack implementation in ES6

CodeYogiFinally happy to see that now we can have iterators and generators. I also need to try to have private properties too so that we have well encapsulated data structures and I see that there are Proxies and Symbols which could help me do that. Code: const isDefAndNotNull = object => object !== ...

06:13
That's not much work...
If today I decide to make public libraries then I am not sure how to design APIs for that, expose pipes? class? etc..
Just look how the rest of the world is doing it.
so tomorrow's probably my last day at this job
@Quill why's that?
@rolfl Okay so what I was going to suggest was having a directory structure like this:
/path/to/your/module:
  yourFunction.js
  yourFunction.spec.js
  index.js
I've been doing it part time with university, but I get no days off this semester, so I wouldn't be working for them. I'm gonna apply for some remote / flexible hours jobs on SO jobs later
06:19
export yourFunction as default from yourFunction.js to test it in yourFunction.spec.js
# ATM Programme
# Created on: 21 July 2016 1:45:15UTC+0000
# Created by: Elliott Brown (EBrown)
# File: main.py

def format_message(pre_msg, opts, post_msg):
	template = """--------------------------------------------------------------------------------

        {pre_m}
        Please select an option:
{opt_s}
        {post_m}
"""
        opt_s = ""
        opt_template = "        [ {key} ] {value}\r\n"
        for key, value in opts.items():
            opt_s += opt_template.format(key=key, value=value)
but always refer to this module by doing import whatever from '/path/to/your/module'
@Mast ^^?
and in index.js, do export { default as yourFunction } from './yourFunction'
as long as you don't expose yourFunction from index.js, then it won't be exported to the outside world
you could theoretically of course do import yourFunction from '/path/to/your/module/yourFunction', but you would have to explicitly be opt-ing in to do that
and that can be disallowed via eslint rules
hope that makes sense!
@DanPantry that's not an issue, I am more concerned about the deisgn
like here
2
Q: Input-reading library for Node.JS part 2

CodeYogiNote: This code is a rewrite of the post I mentioned here since according to CR policy I cannot update the same question. This is somewhat didn't went through that much thought process and I wrote it in a flow but it seems more cleaner to me. I have used inheritance here but I would like to hea...

06:22
@CodeYogi I was responding to @rolfl
How convert string to int?
@EBrown Looks like hell, but I guess so.
@Quill I don't know many rest frameworks. I mainly use koa, but that's hardly a rest framework.
@EBrown int(string_here)
06:24
@Mast Yeah, I figured that out.
How tell if list contains element?
I.e. list.contains(s)
s in list
@Quill STAHP. That is too easy.
Yeah.
But I needed s not in list
@EBrown Then you write exactly that.
Did. :)
06:28
@N3buchadnezzar do it javascript style. Array.prototype.find = Array.prototype.find || function find(s) { return this.indexOf(s) === -1 }; list.find(foo);
if you need it to be hard ;-)
Booooo!
Alright
Go away.
So part of the structure of input handling is done.
It's Python, not JS. So don't do it JS-style.
06:31
def prompt_user(pre_msg, opts, post_msg):
	prompt =  format_message(pre_msg, opts, post_msg)
	prompt += "What would you like to do: "
	opts_strings = list()
	for key in opts.keys():
		opts_strings.append(str(key))
	input = raw_input(prompt)
	while input not in opts_strings:
		prompt = "That option is invalid, please enter a valid option: "
		input = raw_input(prompt)
	return input
It verifies that the option you entered is valid before returning.
Pretty simple, too.
Damn.
Apparently I'm not as dumb at as I thought.
It's Python. It's not that hard.
Friendly snek python
Not bad for knowing 0 python so far.
It's surprisingly easy to learn
I went from 0 to 100 in a day
06:38
def format_message(pre_msg, opts, post_msg):
	template = """--------------------------------------------------------------------------------

        {pre_m}
        Please select an option:
{opt_s}
        {post_m}
"""
	opt_s = ""
	opt_template = "        [ {key} ] {value}\r\n"
	prev_val = opts.keys()[0]
	for key, value in opts.items():
		# This will group blocks of contiguous options together. So if option 100 appears after option 5, a blank line is inserted between the two.
		if key - prev_val > 1:
Python is executable psuedo-code
Final message formatting code.
So that there is no trickery to getting option 100 (exit) to appear in a separate block.
If you add option 10 for something else, it's a different line as well.
@Gemtastic It took me longer than I care to admit, but once I got the trick, getting things to work became so much easier.
Splicing and I are good buddies.
How split code between files?
I want these two functions in a utilities.py file.
haha, check out the description for my next semester course on Programming Languages:
> Description
This course introduces students to a range of programming languages and paradigms including object oriented and functional programming and other advanced programming constructs. Two, widely deployed languages (C++ and JAVA) are used to demonstrate practical understanding of the concepts presented.
2
06:41
import * from utilities
As long as utilities is in the same folder as the stuff you want to execute.
options = {1: "View Checking Account",
	2: "View Savings Account",
	3: "Transfer Funds",
	4: "Withdraw Funds",
	5: "Deposit Funds",
	100: "Exit"}
print prompt_user("Welcome to the Bank!", options, "")
Reusable. <3
Otherwise you'll have to put it somewhere in your Python PATH.
@EBrown Hm. Good, but not realistic. There's no waiting line to talk to a smug clerk in a suit. :(
06:42
oh btw, @EBrown, if you want to use braces in Python, you can use the braces module : from __future__ import braces
It's Python 3, he doesn't need futures.
@Quill wait, what? how does that work?
@DanPantry try it out
syntax features in packages?
@DanPantry In Python, there's antigravity in packages.
06:43
@Mast lol
I'm going to go to NASA and tell them I have the solution for bone atrophy. All they need to do is import * from 'artificial_gravity'
@Mast Import no work
@Mast I had the benefit of knowing Ruby beforehand
0
Q: Is my mail utility class optimal?

Tex Andersenfrom application import app, mail from threading import Thread from flask.ext.mail import Message __all__ = ['send_email', 'send_bulk_email', 'create_email'] def send_async_email(app, msg): with app.app_context(): mail.send(msg) def send_bulk_async_email(app, emails): with ap...

> SyntaxError: invalid syntax
Does it have to be the first line(s)?
@Quill You found the course that teaches JAVA
The python path thing is a bit borky though
06:45
Elliotts-iMac:ATM elliottbrown$ python main.py
  File "main.py", line 6
    import * from utilities
           ^
SyntaxError: invalid syntax
@Gemtastic I did it the other way around, much less fun.
from utiliies import *
Oh, right.
facedesk
also that's bad practice
whoa, that's worrying, wtf.
06:46
@Mast Python feels like a lightweight Ruby, it feels familiar, but it might arguably be a better scripting language depending on what you wanna do
Yes, but for messing around with shifting functions into libraries it's the intermediate state you want.
Sort it out later.
i just RDPed onto a citrix server and it detected the iPhone plugged into my host PC.
Why is Windows RDP telling Citrix about what's on my local PC without asking me?
Because that's how RDP works.
Importing all from something is always a bad practice afaik.
@DanPantry there's a bit of pain in migrating Python 2 to 3, so they're still writing versions of 2, and they added some of the 3 features into 2 by using a future package
IIRC they're preprocessed and affects the compilation settings
06:47
Yeeeees, and having it not stored in a class/module/etc. is as well.
They changed how the modules indication works in 3
Holy carp
There's a reason I stick to 2, I don't want my language to change based on a version thing.
Also, it's what I learned at the job where I first needed Python.
@Mast on Python:
user image
2
I only know 2.7 because that's what they had already decided ¯\_(ツ)_/¯
06:50
(I joke)
This is awesome
Python isn't so bad.
4
Welcome to the dark side.
friendly snek
Welcome to the we-all-want-to-work-with-python-but-we're-stuck-with-only-getting-to-use-it-at-h‌​ome club :)
I'm starting to lose count of languages I can code in
I suppose I got a bit loose in the head there
06:53
I'd like to use python if some of it wasn't so damn ugly. __init__ blud.
@DanPantry Not snek.
Definitely not snek.
They "fixed" the init thing in 3
It's still not pretty but it looks a bit better
don't forget to boop the snoot when using Python.
boop
D'aaw
Want to borrow your snek, got mice.
Cat is insufficient.
Cat doesn't like the attic and the cellar.
06:55
Alright, bedtime.
Python tomorrow.
Then CR question to follow.
07:26
Happy Belgian National Day, Belgians of 2nd! @JeroenVannevel @others
> visited 496 days, 304 consecutive
Crap, I'll break my streak this weekend...
oh hey apparently I hit 20000 messages in here
can I have my life back now?
2
No. >:(
08:04
I'm voting to close this question as off-topic because Stack Overflow is not a code review site. — Gothdo 29 secs ago
@Duga Holy carp that's ugly code.
Ugly question as well.
@RoboSanta Napalm'd
08:20
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Changing a user status flag, with validation
Zak
Zak
08:59
Monking @all
Zak
Zak
09:35
@Quill For a second, I thought that was @DanPantry
09:53
0
Q: ResponseEntity<Error> bad design

ManuelarteWe have implemented this pojo to use in the org.springframework.http.ResponseEntity. private static class Error { private final String errorCode; private final List<String> parameters; public Error(final String errorCode, final List<String> parameters) { this.errorCode = err...

Kevin Montrose on July 21, 2016
Today - thanks to our amazing community beta testers - we're shipping our [biggest expansion to Stack Overflow][1] since it first launched: Documentation.
2
10:07
0
Q: Need to Trigger the calculation of work timings by windows lock

mullaI have written a script in HTML using java script to calculate my work time in office. Please find my working code in the below for reference. In this i need to click on the pause button manually when going for a break and resume while coming back. Could anybody help me to do this in automated fa...

10:28
@Mat'sMug how do you version your databases?
@Zak >:
0
Q: Entity Framework query optimization

Nick SpicerA user can track a show, and mark episodes and seasons of that show as watched. To support this I have the models below: Models public class Show { public int ID { get; set; } public string Name { get; set; } ... public ICollection<Season> Seasons { get; set; } public IColl...

colleague raised an interesting point today: he doesn't want to use Redgate for manage the DB because he thinks we are relying too much on tools. not sure how to respond so I want opinions on versioning SQL DBs
Zak
Zak
@DanPantry "Relying too much on tools". Does he write code by flipping bits with a magnetic needle? No? There you go.
ironically this is the same person who won't learn the git cli instead of using the visual studio interface
Zak
Zak
If a tool is useful, (and not bad for other valid reasons: cost, external dependency, too much abstraction), then use it.
10:32
But I still think it's a discussion point worth investigating without resorting to obtuse remarks
Zak
Zak
@DanPantry He needs to clarify what, specifically, he means by "relying too much". Is he worried that people will lose the underlying skills? Is he worried that the Tool costs more than it's worth? Is he worried that the company behind the Tool might retire it someday?
@Zak When I pressed him about this ("Why do we need to worry about not using Redgate for migration scripts?") he said that "I don't want to use Redgate because it will slow down my PC too much" and "the other teams won't use Redgate" (The other teams have not been introduced to Redgate yet)
The scenario is essentially he wants to be able to hand-manage migration scripts. The "solution" for want of better word that we've used so far is having folders that are named after the version of the repo in source control containing migration scripts
However, this has issues - first of all, the version number of the folder is not necessarily tied to the version it is released in, especially if we have to delay the release of that script
plus a problem we had that redgate solves is that it was becoming difficult to tell what scripts had and had not been run on a database
so now some people are using it as a migration tool, and it is extremely helpful there. others are still using the old version folder way
Open to suggestions on either side
Monking
0
Q: Changing visibility of ToolbarItem - Xamarin.Forms

Egor GromadskiyI want to fill collection of ToolbarItems from XAML, but change visibility of some ToolbarItem from view model. I implemented BasePage with some wrapper around ToolbarItems collection: public class BasePage : ContentPage { public IList<CustomToolbarItem> CustomToolbar { get; private set; }...

0
Q: Generic decorator VS generic decorators' decorator

sun qingyaoHere is my little snippet: def genericDecorator(*decoArgs, **decoKwargs): """Accept arbitrary arguments, and use them to decorate functions. """ def decoWrapper(func): def funcWrapper(*funcArgs, **funcKwargs): # You can do anything else you want here ...

10:52
You should post this in code review. — Eran 29 secs ago
Zak
Zak
So I decided to start filing out the documentation page
Imagine all the future rep I'll get by getting in on the ground floor ^^
I totally didn't mention it like a week ago ;-)

« first day (1174 days earlier)      last day (3139 days later) »