Quantcast
Channel: User Chris Krycho - Stack Overflow
Browsing all 39 articles
Browse latest View live

Comment by Chris Krycho on Angular: How to handle two-part directive

@Cerbrus, that was my thought as well, I'm just still thinking through the best way to do that—and, perhaps unhelpfully, the <p> elements in the notes are pre-rendered (though I could change...

View Article



Comment by Chris Krycho on Angular: How to handle two-part directive

It's a step in the right direction, and it may well work for the notes themselves. However, I need to insert links into the rendered content in the first body/content div. (I'll update the question to...

View Article

Comment by Chris Krycho on C/C++ Determine Drive a program is running on

Note that this is not guaranteed to work properly. GetModuleFileName may return a short or long file name, and therefore may start with `\\?` preceding the volume letter (or UNC reference). In that...

View Article

Comment by Chris Krycho on Mercurial: roll back an "hg commit --amend".

Generally speaking, you'll either just amend the newly unbundled tip commit itself, so that you can give it a meaningful error message, or you'll do as @oblalex suggested and merge. In many cases,...

View Article

Comment by Chris Krycho on Sublime Text no longer launches from terminal

If you get this far, see this other answer, which resolves the issue with tmux (though the tmux issue itself remains unresolved).

View Article


Comment by Chris Krycho on Ember ember-views.render-double-modify deprecation

Did you ever get this sorted? I'm seeing it in exactly the same kind of circumstance.

View Article

Comment by Chris Krycho on ember-cli is hanging on ember server command

Note: per the other answer, you do not need to uninstall and reinstall watchman. That will work, but it's a lot of unnecessary time. :)

View Article

Comment by Chris Krycho on What is the proper way to write a computed...

I have not confirmed on 2.16, but would expect it to work correctly there. I have confirmed on 2.17.2 as well as the 3.1 beta series. Also, confirm that you have a get function, as the error seems to...

View Article


Comment by Chris Krycho on Emberjs and Typescript SetUp

Note that I've added an up-to-date answer below, including a bunch of work we've done over the last year to make for much more complete type definitions and good support within Ember's build tooling.

View Article


Comment by Chris Krycho on Intellisense for Ember injected services

That is indeed the case – though those posts are also in need of another round of updates!

View Article

Comment by Chris Krycho on emberjs glimmer object set() with variable...

A few notes: 1. You shouldn’t use either setorsetPropertyChanged for these. Instead, you should restructure how you model your data. If you need those properties to be updated when changed, either...

View Article

Comment by Chris Krycho on Disable macOS Sonoma Text Insertion Point (Cursor)...

Along the same lines, Ulysses does not display a cursor at all in this mode. Apparently the custom shenanigans they had to do to make their text editor play nicely with the new cursor… don't play...

View Article

Cast from float to double produces different results—same code, same...

Edit: See the end of the question for an update on the answer.I have spent several weeks tracking down a very odd bug in a piece of software Imaintain. Long story short, there is an old piece of...

View Article


Answer by Chris Krycho for Is there any way to fix fonts.com @font-face...

Update 2014/01/16:Fonts.com now supports standard font face embeds. The following still works as it should, but is largely obviated by first-party support.First, note that Fonts.com now asserts that...

View Article

Answer by Chris Krycho for SQLAlchemy: successful insertion but then raises...

As I might have expected, especially once I discovered that the issue was that the row was being inserted as expected but then called with an UPDATE function shortly after, the problem was some related...

View Article


SQLAlchemy: successful insertion but then raises an exception

I am running SQLAlchemy against FirebirdSQL, and when I execute an insert command in my project, SQLAlchemy is raising an exception on returning from executing against the connection. However, the...

View Article

Answer by Chris Krycho for pydoc supported python metadata such as...

Any top-level private globals following a particular naming convention will be included under the Data section generated by Pydoc:All normal global variables are displayed there – you can see this...

View Article


Answer by Chris Krycho for Python - How to find an EXACT extension?

(Edited. See below for original answer.)The real problem here appears to be something to do with the algorithm and/or something else on the system (per comments about restarting changing things), since...

View Article

Mocking Python iterables for use with Sphinx

I'm using Sphinx to document a project that depends on wxPython, using the autodocs extension so that it will automatically generate pages from our docstrings. The autodocs extension automatically...

View Article

Answer by Chris Krycho for Python OrderedDict iteration

From the docs:The OrderedDict constructor and update() method both accept keyword arguments, but their order is lost because Python’s function call semantics pass-in keyword arguments using a regular...

View Article
Browsing all 39 articles
Browse latest View live




Latest Images