Generate code snippets not work for some languages - postman

Postman can generate code for some languages, such as go/curl/HTTP - This seems to not work for python/java, If I click Python, nothing happens!
I checked the dev tools and no errors were seen in the console.

I was thinking in the same way, how Postman can be released their product with such an issue! I then searched a bit more, and found the secret :)
Hint: right side arrows indicates something!

Related

Authenticating to SOAP webservice with XML response works on ACF; fails on Lucee

I apologize in advance for asking a vague question, but I do hope somebody can point me in the right direction...
In production we use ACF 2016, and the code we use to authenticate members against our member database API works fine. It's a SOAP-based service that returns XML. The authentication code uses the Java security methods so helpfully explained by Leigh. We were on CF 9 at the time we set this system up and it's worked fine since then.
But this same code fails on Lucee 4.5.5.006, which is what I use for dev (also using ColdBox). Lucee uses Java 1.8.0_25 and says it is compatible with CF 10, so I'd think that my code would work. But it errors with:
Type: org.xml.sax.SAXException <br>
Messages: White spaces are required between publicId and systemId.
Researching that error message leads to all sorts of interesting reading, but I am not sure where to get started, since the same code does work with ACF.
I am using Lucee since that is what installed with ColdBox, but it is not a requirement. I have not tried updating either Lucee or Java, nor have I tried using the encrypt functionality added in more recent version of CF. I was hoping it would be something straightforward in Lucee settings or something, so that I would not have to completely rework the entire thing, just to get it to work on my dev box. :-(
But at any rate, if anybody has any tips, I would really appreciate being pointed in the right direction! Many thanks in advance!

Can I get the source of a hacked Coldfusion template?

We recently had a hacker gain access to our system. They dumped some Coldfusion templates and included them in random pages on our sites.
The files they dump start with Allaire Cold Fusion Template and then contain what appears to be "garbage", but I believe that this is some kind of pre-compiled Coldfusion code.
We've cleared out the hacks, but I saved off the files because I was hoping that there would be some way to de-compile them and maybe make some sense of them. Although I think the hack is dealt with, I am a little worried about what this code was doing. (When I looked at the source of a page that included this code, it created no output, so something had to be going on in the background.)
If there isn't a way, that's cool, I just thought I would at least investigate the possibility of seeing what these files were doing. Thanks in advance for any help.
Wow, you have awakened some of my "old" brain cells... Way back when you could encrypt your ColdFusion templates and they could still be run on a ColdFusion server. This encryption was not very secure as the decrypting algorithm was readily available. It was/is an easy way to "hide" your code from the unknowing (I guess).
I did a quick Google search and found an old reference to a decrypt function on Adobe's site that may help "crack" that code. AB Positive Encrypt and Decrypt I believe their code would have to be encrypted this way otherwise the ColdFusion server would not be able to read the files either. This download includes the cfdecrypt.exe and cfencode.exe programs.
If that tool does not work and if I remember correctly, the ColdFusion encryption before CFMX was done using something called CFCrypt.exe. That was an older versions of ColdFusion I think but you can try using that too. I couldn't find it but I'm sure if you Google for it can be found.
Please post back with your results. I'm interested to see what they were doing.
There is a program out there cfdecrypt that will help you decompile them. I haven't used it in years, but here is a link I found to a github project:
https://github.com/disccomp/cfdecrypt

Django app or middleware for modern brower detection

I've created a Django site that uses Bootstrap from Twitter. I've tested the site on the latest versions of Chrome, FireFox and Safari. It looks really nice. And then we have Internet Explorer (play failure music... wonk, wonk, woooonk). It seems to work ok, but it doesn't look near as nice (e.g. no rounded corners, etc). What I would like is to detect IE and then redirect them to a page that tells them that IE users may experience issues and that it is strongly recommended to use a more-compliant browser. But, unfortunately, I can't force them to not use IE. So, I need to add a flag saying that they've been show the page. Does anyone know of an app/middleware for doing something like this? I've done some googling, but really haven't found anything.
I don't think it would be terribly hard to write, but I would rather not re-invent the wheel.
Version information: Django 1.3.1; Bootstrap 2.0.2 and jQuery 1.7.2
If there's nothing at http://djangosnippets.org that does this (and I doubt there is, TBH), write it - because like you say, it's not hard - and contribute it

Plugin Development for Kdevelop

I really love programming in kdevelop4, however it`s quite lacking in language support and other issues, so i would like to developing extension for it.
however .... i thought i would start with an easy plugin but it seems there is no actual documentation about it(not even a good in code comment)
just an example that i can seem to get working....( it compiles fine it just does appear where it should in kdevelop4)
does anyone know about good documentation on this subject?
or if you made a plugin for kdevelop can you tell me what in short need to be done ?
Check that the plugin has been installed to a path in your KDEDIRS env variable, and run kbuildsyscocoa4.

How do I programmatically (C++) check the code signing date of an EXE in Windows?

Is this possible? How do I go about doing it? Does it require admin rights? (I would not think so)
A pointer to a help page or link is fine - no need to provide code. Given my difficulty with he code signing cert and setting it up in our build environment I am not sure I am googling with the right terms.
EDIT
After some searching I did find some possible sample code
http://support.microsoft.com/kb/323809/en-us
I will try it out.
Use either WinVerifyTrust or SetupScanFileQueue(SPQ_SCAN_USE_CALLBACK_SIGNERINFO)
Have you looked at MSFT's authenticode?