Lemon

1

votes
0

answer
36

views

html input capture and upload failed iphone

I'm developing a webapp where the user able to upload some pictures from the device storage (mostly iphone). The upload is made using the html5 input file with capture attribute. but problem when try to capture from camera its not uploading. My problem is that if the upload will not have success the...
Lemon Kazi
1

votes
1

answer
28

views

getJSON replace object with variable [duplicate]

This question already has an answer here: JavaScript property access: dot notation vs. brackets? 11 answers I have json file called list.json: { 'nvg':{ 'Title':'title', 'Description':'description', 'Image':'', 'URL':{ 'DEV':'https://dev.com', 'TEST':'https://test.com', 'PROD':'https://prod...
Steven Lemon
1

votes
0

answer
111

views

jemalloc env setup on Windows VS2017

I'm following the instructions given here (this page indicates VS2015, but the folder obtained from released jemalloc contains sln for both 2015 and 2017), and it fails running: bash -c 'CC=cl.exe ./autogen.sh' from 'VS x86 Native Tools Command Prompt' (VS2017 here) with the following log: > checkin...
lemon
1

votes
0

answer
563

views

Failed to launch JVM

I have searched for similar problems on SO but did not find any clues how to resolve this error. Have developed a small console application (running on windows 10). Have packaged it into a jar and then deployed it with javapackager. 'C:\...\javapackager.exe' -deploy -Bruntime= -native image -Bicon=M...
1

votes
1

answer
152

views

Azure Maps and IoT Hub

So I have settled up a RPI 3B with Windows IOT Core, a GPS module, wrote a C# program where I can get GNGGA data: packet those in json format and sent it to IOT Hub (stored in blob storage). Now I want to visualize those data in a map, pointing the position of the device. I have studied for days abo...
Lemon Pies
1

votes
0

answer
156

views

scroll text over fixed image

Hi I am trying to implement caption scroll like this site link Here when image will get it will set on that position and caption will scroll. when caption scroll will complete. it again scroll body to next div. I tried with below code but here it's not getting same as I want. function isScrolledInt...
Lemon Kazi
1

votes
2

answer
34

views

read each line of a txt file and section parts out into a csv file using python

I have a txt file that is formatted to have each line have a maximum of 784 characters. Each line will be a row in the csv and certain lengths of characters are the columns. I have it working to run perfectly on the first line but I cannot figure out how to get it to run on every line in the file. I...
Nick Lemon
1

votes
2

answer
72

views

How to find all node's ancestors in NetworkX?

I have a large DiGraph that consists of dependent jobs. For example, for the graph a>b>c, job c can run only once job b is completed. I tried to find a function that gets all c's upstream jobs (that is (a, b)). I used DiGraph.predecessors, but it only returns job b. Is there a function that will lis...
lemon
1

votes
1

answer
129

views

skype cdn error caused during implementation

Hi I am trying to integrate skype chat action in my application. Click on CUSTOMER support Few days ago I used below url. as cdn https://swc.cdn.skype.com/sdk/v1/sdk.min.js old fiddle But now that cdn not working. 'Uncaught TypeError: Cannot read property 'MS_APP_CLIENT_ID' of undefined So I used...
Lemon Kazi
1

votes
2

answer
3.6k

views

socket timeout and remove O_NONBLOCK option

I implemented a socket timeout and retry but in order to do it I had to set the socket as a non-blocking socket. However, I need the socket to block. This was my attempt at a solution to these two problems. This is not working. Subsequent send calls block but never send any data. When I connect...
eat_a_lemon
1

votes
1

answer
302

views

Twitter Search Trouble

Hi guys I'm trying to use http://search.twitter.com/search.json to pull feeds of certain users. It seems to work with most but I can't seem to pull justinbieber's twitter feed I keep getting empty results I can pull wilw no prob http://twitter.com/#!/wilw http://search.twitter.com/search.json?q=from...
lemon
0

votes
2

answer
17

views

Python 3.7 - When one counter reaches certain value 2nd counter adds one (two counters running same time)

I have this code here working for me: import urllib3 http = urllib3.PoolManager() location = 'Drive\\where-images-go\\' N = 0 for x in range(0, 5000): urls = ('http://00000.IMAGE_1_'+str(x)+'.jpg') r = http.request('GET', urls) Name = str(N+1) N += 1 with open(location + 'image'+Name+'_image.jpg', '...
Nick Lemon
1

votes
1

answer
654

views

Save list data during a sharepoint deployment

I have a sharepoint 2010 solution that is deploying a few lists that will be filled by the user. Each time I redeploy the solution, all the lists are cleared. What is the best way to keep the data in the list ? Export them, deploy the solution, import them ? thank you !
TD Lemon
1

votes
1

answer
1.6k

views

How to retrieve TextBox value in ViewState from its ID

I am building many textboxes programmatically in my ASP.NET page, after I've clicked a button, I would like to process those values, is there any possibility to retrieve them from their ID in ViewState ? Here is my code : Reference of the table in the aspx : Then in code behind after creating all th...
TD Lemon
1

votes
1

answer
63

views

Bash script call a function in a different file

I am using bash script to call a function in a different file. But, the function didn't seem to run. I couldn't figure out what's the issue here. The following is part of the script: #!/bin/bash source utility res=$(InterCombinations) File: utility InterCombinations() { ... echo 'InterCombinations...
Lemon
1

votes
1

answer
72

views

.htaccess Internal Redirect issue

Something with my .htaccess file is creating a rule loop of some sort when a certain condition exists. Here is the code in question: RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME...
Lemon Drop
1

votes
1

answer
78

views

jquery css doesn't work well in my case [duplicate]

This question already has an answer here: css width: calc(100% -100px); alternative using jquery 6 answers I want to do fallback for calc() in my css with jquery CSS: width: calc(100% - 90px); so I wrote below code but seem the 2nd css() doesn't run. I think something is wrong but I've no clue. jQ...
James Lemon
1

votes
1

answer
136

views

How to create directories according to filename and copy that file to the end of the directory using bash scripting?

Say I have a video file downloaded from YouTube called some-user-uploader-how-to-do-something-playlist-video-1.mp4, where some-user is the uploader's name, how-to-do-something is the playlist's name, and video-1 is the video's name. Now, I want to write a bash script that copies the file from its pr...
Undercover Lemon
1

votes
3

answer
889

views

How do I delete words containing a certain charater in java?

Is there a way to delete a whole word that contains the '@' character using regular expressions? For example, the following words should be removed: kʌ[email protected]ənɪu and [email protected] I have tried: line = br.readLine(); line = line.replaceAll('\\b[@]+\\b',''); System.out.println(line); ... which only deletes t...
Lemon
1

votes
1

answer
34

views

How to delete a string only containing a word using regex?

1 line: '*hello: ' 2 line: '*hello: ' 3 line: '*hello: person answered' Would like to delete line 1 and 2 entirely, but want to keep line 3, without it becoming: '*hello:person answered' tried: line = line.replaceAll('*hello:(\\s*)','');
Lemon
1

votes
1

answer
47

views

Reformat php array posted from a form with ajax

I have a form on my website that sends the captured values of the form to an email address with php. On the form there is an checkbox input where users can select multiple checkboxes and the selected values are pushed into an array. When I submit the form the checkbox input returns an entire array i...
j_lemon
1

votes
1

answer
573

views

WooCommerce: Display ONLY discounted product in list

From this question WooCommerce: Display ONLY on-sale products in Shop I tried to display product those are discounted. But every time it's displaying all products those are on_sale . I also tried _sale_price meta key. But can't understand how can I solve my problem. My project output from my code M...
Lemon Kazi
1

votes
1

answer
896

views

Connect Mongodb to Sails JS

ive read various tutorials and instructions how to connect sails to js. Every tutorial is telling me to do this. I am new to mongodb btw. I followed the instructions install sails-mongo (npm install) Edit the config/connection mongo: { adapter: 'sails-mongo', host: 'localhost', port: 54321, databa...
Lemon
1

votes
2

answer
507

views

Android - how to use google forms in android application?

I am new in Android. I want to implement Google forms in My application. I have to make simple survey type forms as like google forms, I searching it from two days but i didn't get any specific document for Google Forms implementing in Android Application. So please help me, if you have any suggesti...
Lemon Android
1

votes
3

answer
977

views

HTML audio player timeline functionality add

I am trying to add HTML audio player. I applied a code there play pause working. I need to add timeline functionality here. But don't know how to do that. Here another problem also I don't know how can I apply play pause in same button. Please help me. Below is my code. sample #audioplayer{ width:...
Lemon Kazi
1

votes
1

answer
218

views

HTML5 Audio player stops after playing one minute

Hi I used HTML5 audio player and linked a mp3 file and autoplay functionality did . But it's time duration 37 minutes but it stop after 1 minute. Here is my code jsfiddle var audio1 = document.getElementById('player1'); var btn1 = document.getElementById('pButton1'); var pause_hover1 = document.ge...
Lemon Kazi
1

votes
1

answer
17

views

targeting right html selector angular js

I am working on an angular directive and i am trying to prepend an element. .directive('someDirective', function($compile){ restrict: 'E', scope:{ items='@' } link: function(scope,elem,attrs){ // selector angular.element(div > ul).prepend($compile(' Hello World ') (scope)) }, template:` {{ item }}...
Lemon
1

votes
1

answer
5.9k

views

Parsing JSON in Java Using org.json

I have a large file with many JSON objects similiar to the following. I need to parse everything to get the 'bought_together' items as an array using the org.json library. I'm having trouble accessing anything nested in 'related'. What is the required code to retrieve 'bought_together' as a list? {...
lemon master
1

votes
1

answer
1.3k

views

how do I read a large csv(20G) [duplicate]

This question already has an answer here: Reading a huge .csv file 5 answers I am a new user of python.my problem is this: I have three csv files (each is about 15G, and has three columns), and I want to read them into python and get rid of rows which dur=0 my csv is like this. sn_fx sn_tx dur...
lemon
1

votes
1

answer
570

views

C# process hanging due to StandardOutput.ReadToEnd() and StandardError.ReadToEnd() [duplicate]

This question already has an answer here: ProcessStartInfo hanging on “WaitForExit”? Why? 19 answers Hanging process when run with .NET Process.Start — what's wrong? 5 answers For processes with a lot of output or error, trying to redirect standard output and error with a simple string outpu...
The Lemon
1

votes
1

answer
37

views

Highlight span between footer background and content

How can I get this JavaScript highlight span to appear between the footer background and the elements that are in the footer? Increasing the z-index of the elements does not seem to accomplish this. Example one - the highlight appears behind the footer with a partially transparent background. https:...
Kyle Lemon
1

votes
1

answer
56

views

Convert a folder of PDFs into a csv of CMYK values

tldr: How can I convert a folder of pdfs into a list of CMYK values (or RGB or any kind of colour scale values), preferably in python. I have a folder with around ~100,000 documents in it. To make sampling these documents easier I want to run data analysis on the documents (clustering and anomaly d...
The Lemon
1

votes
3

answer
473

views

is too long. Maximum length is 128. while using double quotes

I have a SP in MSSQL that will insert and error log to the SQL ALTER PROCEDURE [dbo].[TestLog] @PrimaryName nvarchar(255), @ERROR nvarchar(4000) AS BEGIN insert into Process_Log ( PrimaryName , ERROR ) VALUES ( @PrimaryName , @ERROR ) END My sample error message is this: Violation of PRIMARY KEY co...
Lemon
1

votes
1

answer
30

views

How to get dummy with condition

I have the next table: | Name | TagID | Key | |------|-------|-------| | a | 285 | 1 | | a | 101 | 0 | | a | 200 | 1 | | a | 1601 | 0 | | a | 1991 | 0 | | a | 7075 | 0 | | b | 285 | 1 | | b | 132 | 0 | | b | 101 | 0 | |...
lemon
1

votes
2

answer
0

views

Remove punctuation in the beginning of the word except special symbols

Question: How use regex for removing punctuation from the beginning of words but to keep word .NET? I've used the next regex: text = 'Must-have skills: -.Net programming experience; -2 years experience in C++.' newtext = re.sub(r'| ', ' ', text) re.sub(r'[!,.:;—](?= |$)', ' ', newtext) And I've h...
lemon
1

votes
1

answer
0

views

Checksum between 2 files

i have 2 files, let's call them 'a.exe' and 'b.exe' what i want is to have 'a.exe' to contain 'b.exe''s checksum and compare it so it knows if 'b.exe' was edited, and vice versa. What i already tried: My problem is that when i include the checksum on 'a.exe' it's checksum changes, same if i include...
Lemon
1

votes
1

answer
0

views

chrome adEventListner not wotking on notification sound

I am trying to add audio on load notification on chrome. My Js code below. it's working fine on firefox but sometimes on chrome it's not running m error Uncaught (in promise) DOMException audio_notice = new Audio('http://www.sousound.com/music/healing/healing_01.mp3'); audio_notice.autoplay = true;...
Lemon Kazi
1

votes
1

answer
0

views

Itertools for * arguments

I want to have a function to generate cross product of arbitrary number of arrays. # Code to generate cross product of 3 arrays M = [1, 1] N = [2, 3] K = [4, 5] for M, N, K in itertools.product(M, N, K) If I want to introduce a function using *, what is a good way to achieve that? I tried the follo...
Lemon
1

votes
3

answer
0

views

Avoid passing too many arguments

I have the following code where I need to pass all the arguments from one function to another. I want to know a way avoid the long list of arguments. I only 'know' there is '*' and '**' in python, but I have never used them before. # definition def TestCase(test_name, op_type, input_shapes, op_args...
Lemon
1

votes
2

answer
0

views

XML Parser

I'm trying to extract n0Y7ezLlIYA8R0K54rEmHaTOraBQVSPDjQaGlQxlGso4jdVN1kRxtcfskEs= using w3c dom n0Y7ezLlIYA8R0K54rEmHaTOraBQVSPDjQaGlQxlGso4jdVN1kRxtcfskEs= but I seem to be stuck DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = builder.parse(con.g...
lemon

View additional