Quantcast
Channel: User jonnybot - Stack Overflow
Browsing latest articles
Browse All 40 View Live

Comment by jonnybot on How do I enumerate all the defined variables in a...

So, this doesn't work for me. def foo = "asdgasgf"; this.binding.variables.each { k, v -> println "$k $v"} only prints out args [].

View Article



Comment by jonnybot on Adding Markdown JSX Language Injection to IntelliJ

For context, I know that IntelliJ support is an open issue for both the MDX project and JetBrains. github.com/mdx-js/mdx/issues/119youtrack.jetbrains.com/oauth?state=%2Fissue%2FWEB-32599 This seems...

View Article

Comment by jonnybot on Connecting two gatsby nodes

So, the SitePage nodes don't directly link to their associated Mdx node in graphql queries without some intervention. There's some specific information on the Mdx nodes that I want for the navigation:...

View Article

Comment by jonnybot on Connecting two gatsby nodes

It definitely does! Thanks.

View Article

Comment by jonnybot on java.io.StreamCorruptedException: invalid stream...

"3C787364 in hexadecimal is <xsd ." @Xstian - you have no idea how much time you saved me. I was getting this error through several layers of REST service indirection. Once I saw that I realized,...

View Article


Comment by jonnybot on Gradle --dry-run equivalent in maven

Does this answer your question? How do I run a specific goal with a particular configuration in a Maven plugin when I have several configurations for that goal

View Article

Comment by jonnybot on How can I use an Encrypted Password to a Maven...

Well, full credit to Mark Vieira and Andres Almiray who are the maintainers. I just use their stuff. :)

View Article

Comment by jonnybot on Using jq or alternative command line tools to compare...

I'd like to try this from CLI, but I am a go newbie and can't figure out how to run it. After running go get to install it, jd is still not found. I downloaded the latest release from github, chmod +x...

View Article


Comment by jonnybot on Killing developer's debugging connection with server

Mac Terminal Users may want to see apple.stackexchange.com/questions/134714/…

View Article


Comment by jonnybot on Simulating hdd for docker image

Looks like they were removed to support swarm better. See superuser.com/questions/1306172/…

View Article

Comment by jonnybot on How to use JMH with gradle?

In addition to the configuration options (described above), it's also possible to tweak a lot of these things through JMH's annotations. You can also run ./gradlew jmhJar in your project and then use...

View Article

Comment by jonnybot on Why is @GenerateMicroBenchmark missing in JMH and what...

The tutorials in github.com/openjdk/jmh/tree/master/jmh-samples are always good, since they're maintained alongside the project code.

View Article

Comment by jonnybot on How to mock a single method for a class in Spock?

As a note, you can combine both this approach and the accepted answer. You could provide a new impl of the object, then wrap it in the spy method. This is useful if you need to implement a generic...

View Article


Grails Asset Pipeline, Ajax, and Templating

I have some controllers in a Grails plugin that use the standard _form.gsp that gets referenced by index.gsp and edit.gsp. My form has some input elements that I want to get data via an AJAX call.With...

View Article

Hybrid MVC/WebForms app, Forms authentication

tl;dr: I have an MVC application (using Identity) that we're importing some Web Forms pages (that were written for Forms Authentication) into. I need to know how best to protect those Web Forms pages...

View Article


System.Drawing.BitmapSuffixInSameAssemblyAttribute missing in mono

I have a .NET MVC 5 application that I've been developing in Windows for some time. I'd like my Web Designer, who uses a Mac, to be able to run and edit the app locally on his Mac.Short of building a...

View Article

Answer by jonnybot for Could not find a part of the path ... bin\roslyn\csc.exe

So, Rob Cannon's answer essentially worked for me, but I had to tweak a handful of the options. Specifically, I had to remove the condition on the target, as well as change the Include attribute, as...

View Article


Answer by jonnybot for Add or Append HTML inside of a Polymer Element's...

I had a very similar use case. What I did was create a template for the slide, a template for the slider, and then initialized slick in my base page. In the Slider template's constructor, I use a...

View Article

Answer by jonnybot for Looping background images flash between image on first...

Of course! Because the images were taking a little time to load.I added a hidden div in front of my main one that had each of the images set as a background as well.<div id="dummy"...

View Article

Answer by jonnybot for Speech Recognition Fails Because of Background Noise

I'm exploring a similar problem. You could filter the file in question through another application that had a noise removal feature and a scripting or command line mode (such as Audacity's or Sox)....

View Article

Answer by jonnybot for roslyn compiler not copied to AspnetCompileMerge...

So, the workaround I'm using for now (which I don't entirely like), is just to remove the dependencies on the Compilers and CodeDOM Compilers packages. I also had to clear out the references in the...

View Article


Answer by jonnybot for How can I auto increment the C# assembly version via...

So, we have a project with one solution that contains several projects that have assemblies with different version numbers.After investigating several of the above methods, I just implemented a build...

View Article


Adding attribute route breaks config-based route (.NET MVC5)

So, we're updating a project from web forms to .NET MVC. To support other applications that deep link into our application, I'm trying to add attribute routes to the relevant controller actions that...

View Article

Answer by jonnybot for How do I remap an MVC action parameter to another...

Another option is to use the ActionParameterAlias library. The nice thing about it is that both names for a given parameter will work.e.g.using ActionParameterAlias;//......

View Article

Bitbucket server webhook to jenkins not posting after upgrade from stash

We recently upgraded from Atlassian Stash 2.x to Atlassian Bitbucket Server 4.6.1. A lot of the post-commit hooks simply didn't work anymore because their plugins hadn't been updated, but one, the...

View Article


Answer by jonnybot for Bitbucket server webhook to jenkins not posting after...

I had to do some digging. First, I turned on Bitbucket Server debug loggin via the UI. At that point, I saw some errors in the logs that pointed me to an article about git hooks not firing.From there,...

View Article

Answer by jonnybot for Complex Entity Framework Relationships and sorting issue

Finally realized that I was overthinking it. var joinedProgramOptions = Programs.AsEnumerable().SelectMany(p => { if (p.ProgramOptions.Any()) { return p.ProgramOptions.Select(po => new { Prog =...

View Article

Complex Entity Framework Relationships and sorting issue

So, I'm building a web app to display information about my campus's academic offerings. The site is supposed to lazy-load a list of programs based on some user-selected criteria.The issue I'm running...

View Article

Answer by jonnybot for LINQ to SQL: Invalid column name 'DepartureGate', even...

When I encountered this error, I discovered that I had some spurious [Key] attributes on one of my Model objects that wasn't actually part of the unique key definition for that object's table. They had...

View Article



Answer by jonnybot for MVC 5 on Mono: Could not load file or assembly...

I was able to work around this problem by getting the System.Web.Entity.dll file from my Windows box. I found mine in C:\Program Files (x86)\Reference...

View Article

Answer by jonnybot for Trello.NET objects returning NULL

It looks like there's a color enum that is missing some colors. That causes an exception when you're trying to download board data. There's several pull requests open to rectify the issue, but the...

View Article

Answer by jonnybot for Find dependency chain between two classes on Intellij...

So, I found a way to do this, at least in terms of displaying the connections between the classes in the hierarchy.First, I opened the two classes alongside each other using the "move right" on one of...

View Article

Answer by jonnybot for New Headless Chrome in Geb

Okay, so I managed to get this working in Geb's sample Gradle project with the following GebConfig.groovy, BUT, I had to update the version of ChromeDriver in the build.gradle file from 2.24 to 2.29...

View Article


New Headless Chrome in Geb

I'm trying to get my project that uses Geb to run the beta channel of Chrome in headless mode.I can reproduce the issue using the Geb Gradle example project.In GebConfig.groovy, I've got this block to...

View Article

Get first n entries from rss or atom feed using YQL and feednormalizer

I'm using YQL to retrieve RSS and ATOM feeds as JSON, and normalize them to ATOM style using the feednormalizer table.select * from feednormalizer where output='atom_1.0' AND...

View Article

Looping background images flash between image on first run

I had an animation to loop through several background images...@keyframes loop-background { 0% { background-image: url('1.jpg'); } 17% { background-image: url('2.jpg'); } 34% { background-image:...

View Article


roslyn compiler not copied to AspnetCompileMerge folder using msbuild

I have a .NET MVC project that I'm trying to deploy using Jenkins.I had been letting Jenkins run msbuild, then copying the resulting files out using RoboCopy. I wanted to switch to just use a publish...

View Article


Answer by jonnybot for Arquillian: Deploy jar and run tests against it

It is possible to build a JavaArchive from an extant jar using the org.jboss.shrinkwrap.api.ShrinkWrap#createFromZipFile API. If your ejb.jar file is in the resource root, then it should be resolvable...

View Article

Answer by jonnybot for JDK Flight Recorder on CI/CD Plattform

Bit late as an answer, but JFR can definitely run in CI/CD environments. I have successfully attached JFR to our JMH microbenchmarks and published the results as artifacts in Atlassian Bamboo. Our...

View Article

Answer by jonnybot for How to mock a single method for a class in Spock?

As a note to anyone else who finds their way here, you can combine both the above answers. You could provide a new implementation of an interface, then wrap it in a Spy. This is useful if you need to...

View Article
Browsing latest articles
Browse All 40 View Live




Latest Images