Dany

1

votes
1

answer
7

views

Crispy_forms_tags not fill form with instance in my update view

My problem about Update View On my UpdateView when I use {{form.as_p}} , Its work. But when I use {% load crispy_forms_tags %} Form not fill with instance. My View.py; def ayarlar (request): userinstance=get_object_or_404(kullaniciBilgileri,id=1) form = KullaniciForm(request.POST or None, instance...
Dany
1

votes
1

answer
914

views

How to compare the similarity of documents with Simhash algorithm?

I'm currently creating a program that can compute near-dupliate score within a corpus of text documents (+5000 docs). I'm using Simhash to generate a uniq footprint of a document (thanks to this github repo) my datas are : data = { 1: u'Im testing simhash algorithm.', 2: u'test of simhash algorithm'...
Dany M
1

votes
1

answer
36

views

Ploting a sequence into a graphic with maple

i've been asked to find the 10 vectors which is the result of MU, i now have to plot them into a graphic on maple. How am i supposed to do that ? i've tried to plot a sequence without success and i can't seem to find out how ? Thank for your help heres the code. M := Matrix([[.94, 0.9e-1], [0.6e-1,...
Dany Pépin
1

votes
2

answer
6.3k

views

How to enable Developer mode on Samsung SmartTV 2018?

I want to enable the Developer mode on Samsung Smart TV 2018 (Tizen, model code: UE49NU8005). The steps given in Samsung's Developer website is not working. I have the issue at step 1.c, in the 'Apps panel' on pressing 1,2,3,4,5 the developer mode configuration popup does not appear (I am signed in...
dany
1

votes
4

answer
121

views

Google Api, how to passe access_token to API call

I'm trying to use the Google analytics API. I created an account in the developer console, I use the OAuth2 to grant access to users data. So I have my refresh_token. But now, I would like to get all profilesID in GA for the account I have access to. I follow the Google's official tutorial and I get...
Dany M
1

votes
1

answer
245

views

best practice for naming css color variables

It's a basic question but I want to know when defining main colors for an application, should the color classes be named by their color: pumpkin-orange, topaz, sky-blue,gray-color Or by their meaning/function : main-color, main-color-hover,secondary-color,link-color,disabled-color...
Dany Y
1

votes
0

answer
121

views

Windows 8.1 App to support TLS 1.1 and TLS 1.2

We have a windows 8.1 store app. For file upload/download with the server that supports TLS 1.1 & TLS 1.2, its not working. What library we can use to have it work using below or similar code. System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11...
Dany
1

votes
0

answer
138

views

import rrule plugin with fullcalendar v4 in React

I'm having problems with getting fullcalendar version 4 to show recurring events in a React app. I used this tutorial the statement import 'fullcalendar/plugins/rrule'; gives me the error: Module not found: Can't resolve 'fullcalendar/plugins/rrule' So I changed the import statement to 'fullcalendar...
Dany Dhondt
1

votes
1

answer
77

views

Pdftron message header not found when opening a file with extension capitalized(DOCX)

In a windows 8.1 universal app, When opening a file with extension capitalized(eg : DOCX) we get a error 'Pdftron message header not found'. i.e. during initializing PDFDoc class in pdftron.PDF library. But this works fine for pdf extension capitalized(PDF). This issue does not occur in Android lib...
Dany
1

votes
1

answer
17

views

Getting weird results when attaching the same respone to multiple listeners

I'm attaching a single submit() to a button and the enter key. On a fresh page they both attach and respond normally running submit() a single time. The issue arises only after the click event has run, then the keypress event starts running submit() two times thereafter instead of once, while the cl...
dany
1

votes
1

answer
39

views

Facebook InsightsPresets not found

Example from facebook dev site: `use FacebookAds\Object\AdCampaign; use FacebookAds\Object\Values\InsightsPresets;` `$campaign = new AdCampaign(''); $params = array( 'date_preset' => InsightsPresets::LAST_7_DAYS, ); $insights = $campaign->getInsights(null, $params); print_r($insights);` But use...
Dany M
1

votes
0

answer
21

views

ERR_SSL_PROTOCOL_ERROR after http2 enabled

I'm setting HTTP2 for my application and I get randomly ERR_SSL_PROTOCOL_ERROR onm y browser. I was using Let's Encrypth to encrypt with SSL and everything was working well. The problem occurend after I have enabled HTTP2 today. I'm using Apache. I updated it to 2.4.38 to support HTTP2 module I trye...
Dany M
1

votes
1

answer
318

views

Data entry like destination field mail app

I need implement a Data entry like receiver field in mail app (Ex. To: [email protected]). In particular in mail app each receiver is added and circle in blue color. This is my objective. Can you help me?
Dany
1

votes
1

answer
931

views

jQuery chop slider but with HTML

I started using Chop Slider, an amazing slideshow jquery plugin (http://www.idangero.us/cs/) but the problem is, it didn't work for pure HTML. What I am trying to do is make a simple effect for flipping between schedules I generate using php. If you want to see a live demo : 1) Go to http://www.aiso...
Dany Khalife
0

votes
0

answer
12

views

what code do I use to view a list of items from the model when used to view on the details.cshtml page?

I am trying to view a list of products from a salesorder. It would look like this: Name OrderDate OrderTotal ProductsPurchased
Dany
1

votes
1

answer
1.2k

views

Integrating neo4j with jersey and tomcat

I'm using the java embedded version of the neo4j (v. 1.7.02), created a small project using Chypher for quering the db and everythings works ok. Now I'm trying to deploy it on Tomcat to work as web app, hence I created a REST service using Jersey. The REST works fine too, but without neo4j. I'm rea...
Dany
1

votes
2

answer
387

views

How to know if a WCF is compatible with java (without having the code)

I have a WCF webservice that i should use from a java client. I never worked with WCF or webservices, so how do i know first if it is written in a way compatible with java client(if i can know from the wsdl for example). When generating the client from Eclipse. i get MyWcfServiceLocator and MyWcf. M...
Dany Y
1

votes
1

answer
796

views

Compiler error as clang: error: linker command failed with exit code 1 (use -v to see invocation) with completed app

I have created an app and completed successfully i just want to share in Fcebook and i tried by refering some tutorial. here is my code in viewcontroller.m file. // #import 'ViewController.h' @interface ViewController () @end @implementation ViewController @synthesize btnLogin; @synthesize btnPublis...
Dany
1

votes
1

answer
269

views

Creating Coverflow of menus using Tabku library but cant include header file

I have created app for cover flow of menus.i have followed a tutorial including tabku library in my project.I've done all the steps which is in following link http://www.applausible.com/blog/?p=657 But it throws error as ' file not found'.Here is my code below. #import #import @interface ViewCont...
Dany
1

votes
2

answer
4.4k

views

ios store URL images in offline mode(not connected to internet)

I am fetching array of images from different urls..the images are loading perfectly..but if i need to display the images in offline mode..I cant find a right way to get it.Here is my code #import 'ViewController.h' @interface ViewController () @end @implementation ViewController - (void)viewDidLoad...
Dany
1

votes
2

answer
809

views

Conflicting descriptions of __bridge_transfer; does it avoid a double retain?

Mike Ash says: When __bridge_transfer is used in a cast, it tells ARC that this object is already retained, and that ARC doesn't need to retain it again. Since ARC takes ownership, it will still release it when it's done. Clang documentation says: (__bridge_transfer T) op casts the operand, which mu...
Dany Joumaa
1

votes
1

answer
568

views

cannot get full shopping cart detail using GetExpressCheckoutDetails

I am currently testing an online store using a custom cart within paypal sandbox. I am able to go trough all transcation steps properly setExpressCheckout-> pay -> DoExpressCheckout. During the DoExpressCheckout step I think it would be the good time to update my database with the order. For that I...
dany
1

votes
2

answer
866

views

how to schedule a background service between certain hours android

I have a service that tracks the location of the user periodically. I want this service to run only during working hours, so I want it to start at 9h and to stop at 18h. I'm starting the service with an AlarmManager with this code Intent syncIntent = new Intent(AlarmService.this, TrackingService.cla...
Dany Y
1

votes
1

answer
1.6k

views

Status code for “already exist”

Similar to HTTP status code 500-Internal Server Error,200-OK,201 Created etc... Is there any code for 'Already Existing' to be giver as response from server, While trying to create a new object (if the object with same values exists) ??
dany
1

votes
1

answer
1.3k

views

Horizontal scrolling control like the App store has

I need a horizontal scrolling control like the App Store: Should I use UIScrollView combined with UIPageControl?
Dany
1

votes
1

answer
4k

views

How to parse XML using XSLT?

I have an XML with data as follows 111 To get the value 111 in Item3 In XSLT . Now I need to get the following: 333 444 555 I need to take values 333 , 444 , 555 based on ProducType.How to do the same using XSLT
dany
1

votes
2

answer
1.3k

views

meteor collection fetching too slow

I have an app that subscribes to 4 collections (the collections are very small 1 to 20 records each). But the amount of time it takes to load these collections is huge. One of them is just 13 records, and it takes several seconds to load its template. Is it normal? (I'm still testing on meteor serve...
Dany Y
1

votes
1

answer
1.2k

views

Creating new Log file everyday and deleting previous log files

I have one windows service. For Logging purpose in that service I am using Log4Net.dll. Now my requirement is that I want to create a new log file everyday and it should keep the log of only previous 7 days. Means on 8th day, it should delete first day file and use new file. I am using appender as:...
Dany
1

votes
1

answer
594

views

deploying meteor on my own server

I want to deploy my meteor app on my Ubuntu server, I used meteor.sh https://github.com/netmute/meteor.sh and everything went successfully, But i simply can't launch my app from the browser. I'm putting my ip address and getting a 404 The requested URL / was not found on this server. I have apache2...
Dany Y
1

votes
1

answer
566

views

Debugging javascript events

Is there any way to have some kind of a call stack of events that occur on a web page? After i added a select2 widget on a web page, I started experiencing lots of 'too much recursion' errors but from what i can see in the code, there is no obvious event bubble issues (checked jQuery too much recurs...
Dany Khalife
1

votes
1

answer
833

views

Cannot get the text plugin to work with requirejs in IE

I just can't make the text plugin to work with requirejs on Internet Explorer. I get the following error: SCRIPT5: Access is denied. text.js, line 267 character 13 And, after a few seconds, i get the following error: SCRIPT5022: Load timeout for modules: underscore,backbone,text!templates/userListTe...
Dany D
1

votes
1

answer
337

views

Cannot unbind and close events in my Backbone router

I want to clean up my views in Backbone, before loading new views. For that, I have searched and added a prototype property to the Backbone object called close: Backbone.View.prototype.close = function () { this.$el.empty(); //this.$el.unbind(); this.undelegateEvents(); console.log('close'); }; P.S...
Dany D
1

votes
1

answer
110

views

Python script won't start via bash

I have this bash script that start the python script ms.py What is the problem here ? #!/bin/bash if [ $(ps aux | grep -e 'ms.py$' | grep -v grep | wc -l | tr -s '\n') -eq 0 ]; then python /root/folder/ms.py & fi and this in my crontab */1 * * * * /root/folder/script.sh When I start the script manu...
Dany
1

votes
1

answer
266

views

Calling c++ delegate from c# out of memory exception

I have created a c# wrapper for a c++ dll,and I don't have the source code of the c++ dll. Now the c++ has a delegate function,I have created the delegate function in c# wrapper and provide it with the necessary parameters. The issue that am facing is whenever the delegate function is complete I rec...
Dany NA
1

votes
1

answer
631

views

Solr: Set field boost at index-time with DataImportHandler

I need to set a field boost at index-time with DataImportHandler. I tried to do somethings like this: but it doesn't works. That is the error: Caused by: java.lang.NumberFormatException: For input string: '${boost}' An other approch that i did is to try also to use a script (an transformer, but i d...
Dany
1

votes
1

answer
46

views

How to hide all the images on a page are defined through CSS background-image

I need to hide all the images on the page So I wrote this code : var imagesVisibility = document.getElementsByTagName('img'); for (var i = 0; i < imagesVisibility.length; i++) { imagesVisibility[i].style.visibility = 'hidden'; } It works great but I can not hide the images are defined via CSS. How...
Dany Maor
1

votes
1

answer
139

views

Gorm nested query contains Any

I have a domain class Post { hasMany [comments : Comment] } Comment { belongsTo [post: Post] User user } I would like to search all the posts that contain any comment from a specific User. Something like def posts = Post.findAll {( //condition1 || // condition 2 || comments.containsAny(Comment.fin...
Dany Y
1

votes
1

answer
671

views

Efficient algorithm to find kth largest numbers from N lists by picking one number each time from N lists

There are given N lists of numbers. Every time one number will be picked from each list and all the picked numbers will be sorted. The k th largest of sorted numbers will be added to a set. Finally the size of the set will be reported. For Example 3 3 3 2 5 3 3 8 1 6 3 7 4 9 First integer is the no...
Dany
1

votes
2

answer
1.3k

views

Sencha touch 2 error, identifier generation strategy for the model does not ensure unique id's, while working with a store

In Sencha touch, I have defined a store: Ext.define('TestApp.store.TokenStore', { extend: 'Ext.data.Store', config: { model: 'TestApp.model.TokenModel', autoLoad: true, autoSync: true, proxy: { type: 'localstorage', // The store's ID enables us to eference the store by the following ID. // The u...
Dany D
1

votes
1

answer
749

views

Query the number of elements matching a filter using elastic.js?

I'm building a leaderboard with elasticsearch. I'd like to query all documents who have points greater than a given amount using the following query: { 'constant_score' : { 'filter' : { 'range' : { 'totalPoints' : { 'gt': 242 } } } } This works perfectly -- elasticsearch appropriately returns all do...
Dany Joumaa

View additional