m_b

1

votes
1

answer
75

views

comment django errno 22

Hi i try add comment to my django blog procject and i get OSError: [Errno 22] Invalid argument: 'C:\Users\marci\PycharmProjects\08.04\blog\templates\' so my urls path('/addcomment', views.addcomment, name='addcomment'), views.py def addcomment(request, a_id): article = get_object_or_404(Articles,id...
M.B
1

votes
1

answer
54

views

How can we create extension methods for non-global interfaces in TypeScript?

I'm currently learning TypeScript but am thoroughly stumped at how to implement extension methods for non-global interfaces. Consider the following example: say I have an interface defining a Cart like so: interface Cart { id(): string, name(): string, quantity(): number /* Other methods */ } Then,...
M B
1

votes
1

answer
93

views

Openshift 3.11 logging to external ElasticSearch instance

I have an external ElasticSearch instance that I'd like Fluentd and Kibana to leverage accordingly in OSE 3.11. The ES instance is insecure at the moment, as this is simply a internal pilot. Based on the OSE docs here (https://docs.openshift.com/container-platform/3.11/install_config/aggregate_log...
M B
1

votes
1

answer
4.2k

views

Substitute command for OVER in SSRS

How can I implement the OVER() command in SSRS 2008? Is there a trick to it, or am I stuck? And if I am indeed not able to use OVER(), then how can I use PARTITION in a SSRS report? OVER() satisfies my requirements, and Telerian (another member) was very helpful by pointing it out - but SSRS doesn'...
William M-B
1

votes
2

answer
57

views

iAd issue in iphone

I just finished my App with iAds, and For removing ads I implement an In-App purchase in my application. I want to know it is right that to remove the ads the user pays, but when the user deletes the app and reinstalls it again, iAds show again (because I am not using web services). The alternate w...
M.B
1

votes
1

answer
521

views

Is it possible to increase audio volume on system sound?

I am making piano application for iPad. I am using AudioServicesPlaySystemSound (toneSSID) for play sound of keys. But there also functionality to increase volume. But I not find how to increase sound. Can anybody help me? Thanks.
M.B
1

votes
1

answer
331

views

Aviary SDK issue

I am using Aviary sdk in ios project. I added all frameworks and header files which is mentioned in documentation. Now i call below method in viewdidload. - (void)displayEditorForImage:(UIImage *)imageToEdit { AFPhotoEditorController *editorController = [[AFPhotoEditorController alloc] initWithImage...
M.B
1

votes
1

answer
717

views

Add text layer to PDF of scanned handwritten notes in OSX

While in class I like to take handwritten notes, afterwards I scan them and then type them up (helps me remember them and also makes them easily searchable). The main issue is I have is I use A LOT of drawings and complex math and converting the math formulas into latex (or word) is very time consum...
M B
1

votes
1

answer
39

views

How to fix “instance variable while 'self'”

How to fix this analysis issue: CODE if(![super initWithFrame:CGRectZero]){ return nil; } firstOfPrev = -1; marks = markArray; monthDate = date; startOnSunday = sunday;
M.B Kakadiya
1

votes
1

answer
74

views

How to fix Xcode analyze issue

How to fixed iOS analyze issues like 'Potential leak of an object stored into' CODE ABMultiValueRef email = ABRecordCopyValue(person, kABPersonEmailProperty); txtEmail.text = ( NSString*)CFBridgingRelease(ABMultiValueCopyValueAtIndex(email, 0)); ABMultiValueRef multi = ABRecordCopyValue(person, kABP...
M.B Kakadiya
1

votes
2

answer
216

views

Form CollectionType with radio buttons fails after Symfony 2.7 upgrade

Getting below error.. An exception has been thrown during the rendering of a template ('The form's view data is expected to be of type scalar, array or an instance of \ArrayAccess, but is an instance of class Proxies__CG__\BLA\MyBundle\Entity\TransportType. You can avoid this error by setting the 'd...
M.B Kakadiya
1

votes
2

answer
765

views

Detect Browser on Ipad - Chrome or Safari

I need to find out which browser ipads are using to set the proper css files. I am checking if its an ipad using the Request.Headers['User-Agent'] containing the word ipad or iphone. Now I need to know which browser is being used. Chrome or Safari. How can I do this?
M B
1

votes
1

answer
46

views

Javascript file in Angular App

I have a custom validation file using jQuery that I wrote myself. It is being used in a few pages on my site. Now I need it on a part of my site that is an Angular app. I would like to include this file and it should work the same way. I cannot change the file to be a directive or other angular file...
M B
1

votes
1

answer
356

views

Running a program in linux (debian) on startup

I would like to point out that I tried A LOT of different tutorials from the internet but they don't seem to work... Adding stuff to init.d, rc.local etc. for some reason it doesn't work. I'm really desperate to get this done, but I'm a total noob when it comes to linux. when I type in 'matchbox-key...
M B
1

votes
1

answer
103

views

GNU MathProg: symbolic set vs. integer set

My simplified data set in GNU MathProg is as follows, with Verts being a set of indices for vertices and coords being a table of coordinates of these vertices: data; set Indices := X Y; set Verts := 1 2 3 4; param Coords : X Y := 1 1.2 0.3 2 4.2 13.0 3 1.5 1.0 4 0.5 0.8; end; This works, but i...
M. B.
1

votes
1

answer
40

views

Logically associate a coordinate frame to an image in matlab

how to logically associate a coordinate frame to an image such that origin lies in the center of the image in MATLAB? A = phantom(128); imshow(A); How to generate the axes for image A and how to put an image with respect to the new coordinate system, with the center of the image at (0,0).
M.B.
1

votes
1

answer
69

views

Indices from Meshgrid matlab

I am stuck here since so long. Please help me. For the following code: Original 'I' dimensions are 217x181x181 [nX,nY,nZ] = size(I); [X,Y,Z] = meshgrid(1:nX,1:nY,1:nZ); after Meshgrid X, Y, Z are of dimensions 181x217x181 Now from 'I' how to find values in C matrix such that the dimensions of X,...
M.B.
1

votes
1

answer
301

views

Entity Framework just stopping with timeout during INSERT

I have a small c# application which using Entitiy Framework 6 to parse text files into some database structure. In general file content is parsed into 3 tables: Table1 --(1-n)-- Table2 --(1-n)-- Table3 the application worked for months without any issues on Dev, Stage and Production environmen...
M.B.
1

votes
3

answer
0

views

Total number of subview in a view in iphone

I want to count total no of subview in a view and also release that subviews in my iphone application how i can do it? provide me suggestion.Thanks.
M.B
1

votes
1

answer
799

views

How to use SVN in ios 6? [closed]

I am new to use SVN in iOS 6.Can anybody give me the steps which i follow it.Simply my quiz is How to use SVN in IOS6 ? Thanks.
M.B
1

votes
1

answer
182

views

Generating tuples of primes with a list comprehension, each tuple having higher sum

I searched, but I didn't find something that helped, so I post a new question. I am learning Haskell, and this is an exercise I don't understand. I want to create an infinite list of tuples of prime numbers, each tuple's sum being a higher even number, beginning with 2. So the output should be e.g....
m b
1

votes
1

answer
680

views

Can't call iterator() method of my object [closed]

I am learning to use the Iterator Interface, but I'm stuck because Eclipse shows 'Cannot resolve to a type' when I call the iterator() method of my LinkedList A with A.iterator() in the code block just below. I searched, but I don't find why this happens, and how I can call A.iterator(). This is the...
m b
2

votes
1

answer
12

views

Training and evaluating accuracies different in keras LSTM model: why does evaluation not produce same results as during training?

We are building an LSTM for modeling a physical optical procees. So far, I have produced the following code in python using Keras with Tensorflow backend. #Define model model = Sequential() model.add(LSTM(128, batch_size=BATCH_SIZE, input_shape=(train_x.shape[1],train_x.shape[2]), return_sequences=...
M B
1

votes
1

answer
178

views

Function array_rand() doesn't work [PHP] [closed]

I have array: Array ( [0] => 1 [2] => 3 [3] => 4 [5] => 6 [6] => 7 [7] => 8 [8] => 9 [9] => 10 [10] => 11 [11] => 12 [12] => 13 [13] => 14 [14] => 15 [15] => 16 [16] => 17 [17] => 18 [18] => 19 [20] => 21 [21] => 22 [22] => 23 ) I want to draw a number array_rand() $rand_array = array_rand($new_arr...
M. B.
1

votes
1

answer
454

views

Divide a graph into same size disjoint sets with minimum cut

Is there any algorithm or code that divide graph nodes into two or more disjoint sets that satisfy following conditions: first, only edges allowed to remove. second, edges are weighted and those that would be removed must has minimum weight(minimum cut algorithm). third,desired disjoint sets have sa...
m b
1

votes
1

answer
640

views

AutoMapper: passing 2 elements to the resolution context

I am using AutoMapper to retreive an Order object. For the price, I resolve using an extension method of the object and I need to pass in a PriceType and a Markup for the calculation. Currently, I have it working for just PriceType //in the mapping .ForMember(d => d.TotalPrice, opt => opt.ResolveUsi...
M B
1

votes
4

answer
786

views

change backlight brightness in linux with python

I'm working on a python project which should be able to control my backlight brightness. I working with Ubuntu 17.04 and I already locate where the file is that show my backlight brightness /sys/class/backlight/acpi_video0/brightness the command that I can use in the bash terminal to change the valu...
Harm M-B
0

votes
0

answer
6

views

Unable to set private key

I have a certificate in .pem and .cer format. It has only certificate but not RSA private key within it. something like shown below ------BEGIN CERTIFICATE---------------------- gvhfgvdshjgchjbdhbcdcd --------END CERTIFICATE---------------------- when i execute this command in curl , it fails with t...
Aiyappa M B
0

votes
0

answer
8

views

Elastic Search start after run my other services

Guys i got a little trouble with the docker-compose when I started the Elastic Search service. I need to wait the elastic search start and be able to receive the request, but it take a long time to do it. So here is my docker-compose file. I wanna start the other services when the ES start. version:...
1

votes
1

answer
3k

views

How to generate code coverage reports for Android unit tests

I'd like to start generating unit test code coverage reports for my Android application, where the unit tests are not in the androidTest folder, but in a test folder that I've created. To start, I've added the following to my build.gradle file: buildTypes { ... debug { debuggable true testCoverageEn...
M B
1

votes
1

answer
336

views

Backbone PUT request to cross domain is not appending id to URL

I have the following backbone model. var aModel = Backbone.Model.extend({ url: 'http://api.site1.com/list }); modelObj = new aModel(); Domain of my application is product.site1.com, so all the request made to server by my application are cross domain requests. All my backbone requests to the API nee...
Sreedhar M B
4

votes
1

answer
56

views

How do I create 5 JQuery AJAX calls using eventhandlers?

I am developing a registry system for my school/workplace, and the instructors need a thorough list of the students who fall into 5 seperate categories: Have not met and have not registered abscence Have not met but registered abscence after 8 am Have not met but registered abscence before 8 am Hav...
1

votes
3

answer
2.5k

views

How to implement map function of Mongodb cursor in node.js (node-mondodb-native)

I am trying to implement following MongoDB query in NodeJS db.tvseries.find({}).map(function(doc){ var userHasSubscribed = false; doc.followers && doc.followers.forEach(function(follower) { if(follower.$id == 'abc') { userHasSubscribed = true; } }); var followers = doc.followers && doc.followers.map...
Sreedhar M B
5

votes
5

answer
8.6k

views

Zoom Camera2 Preview using TextureView

i have a Problem with my Preview Zoom for the Camera2 API. I am using a TextureView. I want to zoom only the preview Stream that was showed in the TextureView. I want to zoom the Area where i use the Zoom Gesture. I use the SimpleOnScaleGestureListener! I added following Code. The zoomingFactor and...
m.b.
2

votes
1

answer
360

views

managing two libraries with cabal that depend on each other

I've got the following question: I've got two Haskell libraries that depend on each other, and both libraries are managed by cabal. The corresponding cabal files look like this: Library 1: name: Lib1 version: 0.1 cabal-version: >=1.2 build-type: Simple author: Matthias...
M.B.
3

votes
1

answer
817

views

Mysql, Check field value change?

Mysql, Check field value change? if change the value then show different value table: a id size name -------------- 1 500 abc 2 200 bcd 3 400 xyz 4 500 bbb 5 200 aaa select @s:[email protected]+1 as index, id, size, name from a,(SELECT @s:= 0) AS s order by size; In this query data like. ind...
M.B Kakadiya
3

votes
1

answer
192

views

what does (filter (\y -> not(x == y)) xs) mean?

I'm trying to work out how to remove duplicates from a list in haskell. I found the answer below to my problem... type Regist = [String] type ListRe = [Regist] rmDup :: ListRe -> ListRe rmDup [] = [] rmDup (x:xs) = x : rmDup (filter (\y -> not(x == y)) xs) on stackoverflow but I don't understand wha...
Jake M-B
2

votes
1

answer
1.5k

views

c# tools for named entities recognizer

I am looking for a simple but 'good enough' Named Entity Recognition tool (nlp tool) or library for C#, I am looking to process name entities in medical domains. Any recommendations? Thanks.
M.B
2

votes
2

answer
5.7k

views

How to solve “undeclared selector 'forwardGeocoderDidFail:withErrorMessage” warning?

How do I solve this warning? The warning is 'undeclared selector 'forwardGeocoderDidFail:withErrorMessage:''. Why am I getting this warning, and how can I solve it? This is my code: if (!handeledByBlocks && self.delegate) { if (!parseError && parser.statusCode == G_GEO_SUCCESS) { [self.delegate forw...
M.B Kakadiya
2

votes
2

answer
1.4k

views

JSON parse in iphone Application [duplicate]

This question already has an answer here: iPhone/iOS JSON parsing tutorial [closed] 6 answers I am new in iphone development. I want to use parse with Json framework in my iphone application. Can anybody provide me guideline or a good tutorial link .Thanks
M.B

View additional