PHP HTTP client not passing AUTH_USER
Vote count: 0 I'm trying to fetch an image file from an IIS 7 server ru ing some ASP code. The goal is to bypass authentication by including the use ame and password in the URL. Without authentication, a user is redirected to a login page. This URL-based authentication method (which was provided by ...
Copy-assignment in a custom vector
Vote count: 0 I am working on a custom vector (String_vector) based off of a custom string class (String). I am having trouble with my copy assignment, and I think I am in some sort of loop that doesn't terminate. In my implementation I retu *this as shown here, where I implement the copy-and-swap m...
Specify the correct path in assets pipeline Rails 4+
Vote count: 0 I compiled my assets without errors they work in development environment without problems but they all broke in production. I checked my log file it seems that it's not referencing the correct location. This is one of the errors. INFO -- : Started GET "/homeFoods/fonts/glyphicons-halfl...
Can't view thumbnail created in django admin
Vote count: 0 I am trying to create my own thumbnails within the Django admin and I believe they are being properly pointed to. However I ca ot view the thumbnail. This is what I see: When I click on the thumbnail, I get redirected to this URL and all I see is an empty white page. http://localhost:8...
Using Javascript in Underscore template
Vote count: 0 I need to display formatted date using my underscore.js template. I am using moment.js. My template is as follows: // date, homeTeamName, homeTeamName values come from JSON object <script type="text/template" id="fixtureTemplate"> <% var matchDay = moment( %> + <%= date %> + <%); %> <h...
Decode a H.264 frame from a buffer android NDK
Vote count: 0 I am sending h264 encoded frames from PC and receiving them inside android NDK. The android client receives the frame and stores it into a buffer. Buffer keeps updating as it receives the frame. (The code is not written by me) My question is that how can I decode(I mainly need help wit...
Disable button in cocoa application OS X
Vote count: 0 I would like to have the submit button enabled once some fields on a form have been validated. Currently the preview function works great, preview button provides the validation I need. Working on Xcode 7 and swift 2. I would really appreciated if someone can point me in the right dire...
RichEditBox loses formatting for empty text
Vote count: 0 I have something like a diagramming UWP application where each shape has an RichEditBox. The problem is, that I loose the formatting when the text is empty. For Example: Change the text to bold: EditBox.Document.Selection.CharacterFormat.Bold = FormatEffect.On. Delete all text Get the ...
django - generate a csrf token
Vote count: 0 I'm writing some end to end tests for a DJANGO rest backend using dredd. I'm creating a user and I need to authenticate him in a way that I can retrieve the csrf token. I need to retrive it to append it the the request header in my test. Any suggestion? asked 3 mins agoteone Let's bloc...
Jquery remove class and replace by a new one
Vote count: 0 When i click on a button, i want to remove a class and replace with by other one. I have the following html content : <div class="mainDiv-34"> <div class="row one red"></div> <div class="row two red"></div> <div class="row three red"></div> </div> What i want to do is to replace the cl...
Multiple transaction scopes in single thread?
Vote count: 0 Is there a way to open multiple TransactionScopes concurrently in a single .NET thread and switch between them? Something along the lines of: var tx1 = new TransactionScope(...); var tx2 = new TransactionScope(...); tx1.Use(); // do some database operations on tx1 tx2.Use(); // do some...
c++ using template and virtual method in one class
Vote count: 0 I have a little inheritance/template problem. I'm trying to create an interface IBinding which is implemented by a TcpClient and a TcpServer (there will be 2-3 different TcpServers which differ only in the type of Stream(Socket abstraction) they generate after accepting a co ection req...
Is there any way to return the current filename in FORTRAN 77
Vote count: 0 I'm working on several versions of the same code in FORTRAN 77 and in every code I print the file name and version number, but after so many versions it has become tedious to have to change that line. I was wondering if there is a way for the code to retu its own file name since the fi...
How to associate list of Keys to an Entity
Vote count: 0 Basically I have a User entity and that user will have followers. One possible way I could think of on how to model this is to have a multi-valued property of type Key, which will store Keys of the followers in a list. Like this.. DatastoreService datastore = DatastoreServiceFactory.ge...
How to fix error on enabled probe: invalid address (0x0)?
Vote count: 0 I've the following error: dtrace: error on enabled probe ID 3 (ID 7343: php15810:php:dtrace_execute_ex:function-retu ): invalid address (0x0) in action #2 at DIF offset 24 when I'm trying to trace my PHP script (sudo ./trace-php.d). Basically what I wanted to achieve is to display dist...
Angular: Multiple parameters undefined when passed to express
Vote count: 0 I'm trying to send multiple parameters to the backend in an http.get call. Issue is I don't see them in express: Angular: $http.get("/getImage/", {params: {"filename" : $scope.recipe.image.filename, "mimetype" : $scope.recipe.image.mimetype}}) .then(function(retu Data){ console.log(ret...