PHP HTTP client not passing AUTH_USER
◷
تاریخ انتشار: 1395/1/21 | ساعت: 7:10
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
◷
تاریخ انتشار: 1395/1/21 | ساعت: 7:10
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...
Count the number of nodes of a doubly linked list using recursion
◷
تاریخ انتشار: 1395/1/21 | ساعت: 6:10
Vote count: 0 Here is what I've done so far: struct rep_list { struct node *head; struct node *tail; } typedef rep_list *list; int length(const list lst) { if (lst->head == NULL) { retu 0; } else { lst->head = lst->head->next; retu 1 + length(lst); } } This works, but the head of the list the functi...
Specify the correct path in assets pipeline Rails 4+
◷
تاریخ انتشار: 1395/1/21 | ساعت: 6:10
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
◷
تاریخ انتشار: 1395/1/21 | ساعت: 6:10
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
◷
تاریخ انتشار: 1395/1/21 | ساعت: 5:00
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
◷
تاریخ انتشار: 1395/1/21 | ساعت: 5:00
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
◷
تاریخ انتشار: 1395/1/21 | ساعت: 5:00
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
◷
تاریخ انتشار: 1395/1/21 | ساعت: 4:00
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 ...
SQLite3 Python: sqlite3.OperationalError: near "WHERE": syntax error
◷
تاریخ انتشار: 1395/1/21 | ساعت: 4:00
Vote count: 0 I'm practicing how to use SQLite3 and I've having trouble with a particular operation. Could someone please point me in the right direction please? I'm also sorry in advance if this is a repeated question. co .execute("INSERT INTO enrolment VALUES" + department_tuple + " WHERE enrolmen...
django - generate a csrf token
◷
تاریخ انتشار: 1395/1/21 | ساعت: 4:00
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
◷
تاریخ انتشار: 1395/1/21 | ساعت: 2:58
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...
Typescript: Require a (new) TYPINGS file the correct way (in node)?
◷
تاریخ انتشار: 1395/1/21 | ساعت: 2:58
Vote count: 0 I am getting very confused with regards to importing a Typings file, there seems to be so many ways to do it. I am writing a nodejs program. I installed momentJS via typings (not an ambient module) and I have manged to import it like so var testOne = require('moment/moment'); import * ...
Multiple transaction scopes in single thread?
◷
تاریخ انتشار: 1395/1/21 | ساعت: 2:58
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
◷
تاریخ انتشار: 1395/1/21 | ساعت: 1:57
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
◷
تاریخ انتشار: 1395/1/21 | ساعت: 1:57
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
◷
تاریخ انتشار: 1395/1/21 | ساعت: 1:57
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)?
◷
تاریخ انتشار: 1395/1/21 | ساعت: 0:44
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...
Python/Tkinter: why does the .get method of IntVar shows same value when clicking different radiobuttons?
◷
تاریخ انتشار: 1395/1/21 | ساعت: 0:44
Vote count: 0 Brief overview of the programme: When launching script, the dialog window is appearing and asking you to select directory path (class MyApp) When selected - one need to push "Start Monitoring" button. This action withdraw main window (root) and initialize container (class FrameContaine...
Angular: Multiple parameters undefined when passed to express
◷
تاریخ انتشار: 1395/1/21 | ساعت: 0:44
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...