Newest Questions

Q&A for professional and enthusiast programmers

Part of my code won't be in my div for some reason

For some reason I have a part of my code in part two that won't work. It's the third job description that is not align. It's like it's not part of part 2 but don't understand why. Here is the link ...

I need a script to change a link when clicked on it to another content

i am working on student supervision project. i wanted to create a page that contain the available project topics, when clicked on a topic of interest, to assigns the topic to the user with that 'id' ...

How do you embed and call an external javascript function in a react component?

I'm trying to incorporate this map into an existing grails/react project. So far I have: index.gsp <html> <head> <title>Food App</title> <link rel="...

R: extracting numbers from levels in a factor (where the levels contain characters and numbers)

I have a dataset with ppts' ages in one column (options: 17-22). If a ppt was older than 22, they have a value of 8, and in the next column they will have entered a comment with their age. For ...

Using IEnumerable to sort a list - XAML

I have a list of vehicles and an empty IEnumerable. When the user changes the combobox value from one of the options I have sorted the list from Least to most, I can see this has been done by stepping ...

jenkins List of flow heads unset for CpsFlowExecution perhaps due to broken storage warning

I'm getting this warning in Jenkins logs on start. Feb 25, 2017 9:32:40 PM hudson.WebAppMain$3 run INFO: Jenkins is fully up and running --> setting agent port for jnlp --> setting agent port ...

Frequency of each tone from microphone (Android, Java, FFT)

First of all, I want to say that I am normally a frontend developer and don't know anything about audio encodings etc, so bare with me. What I want is: Get the frequency of a tone (music or human ...

Convert AngularFire firebaseListObservable Object to plain object

I am using datatables (datatables.net) and am wanting to pull the data for a datable from Firebase using an AngularFire2 to get the object. However, this gets a FirebaseListObservable Object and I am ...

Linq Include Extra Column in GroupBy Selection

I have a "ReactionSimple" column that I'd like to include in the GroupBy selection but when I include it in the Group By it throws off the returned row count in a big way. Is there a way to include ...

Symfony CLI commands and Compiler pass

I just want to know how to get all my commands Symfony services into my compiler pass ? Is there a mean to find services by implemented interfaces ? Or perhaps i have to tag them all ? Thanks, KL.

How to pass request to django form?

How to pass request to django form? I am creating a django update profile form where user could change profile email. I want to check if email in form belongs to logged user if not then I want to ...

Lost data in ArrayList

I am trying to fill an ArrayList with some data. After the for loop ends, the system.out.println prints the following: Memory Elements: [] Memory Elements: [] Memory Elements: [] It is like the ...

How to link OpenMesh in Visual Studio?

I'm trying to link OpenMesh to a visual studio project; I was able to use CMake to build the static library (.lib) files. Once I did that, I went into the properties for my project and then added the ...

How to display EmailMessage in c#?

How can I view the message on the panel? To maintain order in the mail, including images ... PropertySet psPropset = new PropertySet(); psPropset.RequestedBodyType = BodyType....

How to make login page in android using mysql and php

i want to make android login page and i face problem that prevent me to make it i don't get any error but nothing changes public class WelcomeActivity extends Activity implements View....

Why my shinyApp doesn't plot anything?

I made almost everything the same what's in the course and it doesn't work. Do I need special settings ## # Shiny nr 1 # library(shiny) ui <- fluidPage("Hello World!" ,...

I am trying to make a spreadsheet on Excel that will work out the average of an input in the same cell

Hi i have a spreadsheet to calculate the averages of my players in Fifa game to game. I need a to be able to input a number to a cell and it will calculate the average of that input and the past ...

Why is -(-2147483648) = - 2147483648 in a 32-bit machine?

I think the question is self explanatory, I guess it probably has something to do with overflow but still I do not quite get it. What is happening, bitwise, under the hood? Why does -(-2147483648) = -...

Android studio adding custom adapter to AsyncTask

So i have a AsyncTask that pulls data from a Mysql database and displays it, currently this works fine but i need to change the simple adapter to a custom adapter so i can do more with what is ...

Remove empty spaces in delimited text (using StringSplitOptions.RemoveEmptyEntries)

I try to remove empty spaces using with StringSplitOptions.RemoveEmptyEntries before print the text but when I run the codes "The index was outside the bounds of the array" appears on the screen as an ...

Python - print items with empty space separator

given this html: <div id="catwrap" class="categories"> <a href="http://blahblahblahscience.com/category/electronic/" style="background-color:#006666">Electronic</a> <a ...

Bootstrap 3 remove middle two breakpoints

Is it possible to remove the middle two breakpoints in Bootstrap 3 and have the browser visually "scale/shrink" the page, so in those breakpoints you don't have to scroll left or right to see the page?...

Intel FORTRAN - Program access error - Subroutine

I am having a Severe 157 Program access error when calling an array from a subroutine. Like program start implicit none integer,pointer,dimension(:) ::AB integer :: AA call testt(AB) print *,AA ...

AJAX - Complex user activation for login

Now this may sound complicated but I have a page called activation.php where after the user has registered using my reg.php page, they get sent an email with their activation link - activation.php ...

Automatically go to next compile error in vim

Using vim, is there a way to automatically go the next line you had a compile error? Is there a way to bind that to a key? I believe this feature exists in emacs. Let's say you compiled on the ...

Precision discrepancy between Fortran and Python (sin function)

I see a discrepancy between python and Fortran when using the sinus function. Could anyone shed light on this, please? in python: import math print(math.sin(6.28318530717959)) >&...

JS Regex for Multiple DNS servers

I'm trying to validate a form field where a user can input multiple DNS entries. I currently have the regex for validation of a IP address for a single entry but not if a user can add in multiple DNS ...

RecyclerView is not inflated properly in android xml

RecyclerView is moving with the ImageView's(@+id/mode) layout margin. If I set the layout margin left value to 10dp, recycler view is also moving to 10dp left margin.I am not sure why layout margin of ...

How to transform a column of a dataframe into poisson distribution in Python

I have been trying to find a way to convert some of my columns (that contains click data) into poisson distribution in python. I found some methods in scipy and numpy, but these methods seem to ...

Disable automatic deployment to NuGet in AppVeyor

I want to accomplish following flow: All commits are built by AppVeyor and .nupkg is created with version for example 1.2.3-{build}. When I decide code is stable enough, I want to manually deploy it ...

SQL getting first matched row

I have two huge database tables names "AR" and "All", and I am trying to match records in "AR" to "All", note here we don't have a unique identifier, so I am doing a kind of fuzzy matching using First ...

Having an image fill a container after transform(90deg)

I would like to have an image rotate and fill the container after it's been loaded. The issue I'm having is the height is automatically set when loaded and then not resetting after rotation. Here is a ...

Php dynamic subpage and nginx address rewriting

I created a website based on ajax tech. and now I want to achieve similar effects using php (nginx). The problem is I don't want to create (even dynamically) .php documents for every user or offer or ...

malicious code in all my php files

I found today this code in all my php files. Can someone understand what it does ? thanks $ztmlied = 'fujsxX6<#o]o]Y%7;utpI#7>/7rfs%6<#o]1/20QUUI7jsv%7UFH# x2)7fmjix6<C x27&6<*...

Neon 64bit aarch64: confusion about ld4r

I'm confused by the new ld4r instruction in aarch64. The following code (loading SAME 4 32-bit values into v[20-23]): ld1 { v20.4s }, [out1] ld1 { v21.4s }, [out1] ld1 { v22.4s }, [out1] ld1 { v23....

UnboundLocalError and i don't know why

Hello i'm a beginner in python and when i launch this code i have UnboundLocalError: local variable 'selected' referenced before assignment so i search and i found some info about global variable so ...

How to save high scores and time in my game SQLite

I have a game in which I want to make a top 10 results and the results are going to be made of 2 things - difficulty (easy, medium, hard) and score(integer). So far I am trying for sometime now to ...

How to extend Bootstrap-wysihtml5 editor with image upload from URL?

I'm currently using Bootstrap-wysihtml5 text editor on my editable areas. Now I want to add image upload feature to my editor. But image's source should be URL only. Someone here did it: https://...

How to enable the “has no exported member” tslint rule?

I am setting a gulp task to watch my ionic2 typescript files and run tslint on them. It works but I can not catch errors of "no exported member". The only way of realize that I have an error of ...

How to allow sinatra poll for data smartly

I am wanting to design an application where the back end is constantly polling different sensors while the front end (sinatra) allows for this data to be viewed either via json api, or by simply ...

Android Toolbar Height Expands to the Entire Screen

I'm trying to add a CardView to a Toolbar but when added, instead of maintain a normal height, the Toolbar expands and fills up the whole screen. Here's an image of what is happening vs what should ...

ClassCastException: cannot assign instance - I don't see where this is happening

I am using an ObjectOutputStream to transfer messages and data in a multi-tier application. I am getting an error that I cannot seem to resolve. It is telling me that it cannot cast. Below is the ...

TrackBar1 as array

I have six trackbar in program. (tb1,tb2,tb3,..) I read value from trackbar. hodnota1 = trackbar1.value; hodnota2 = trackbar2.value; .... I have this code on more places in my program. My ...

MS Excel VBA - Filtering by dates (excluding an entire year)

I am looking for code that will be able to include all dates within a column except for an enire year (2016) GRBReportSheet.Range("A" & IHRISFILTERFR & ":L" & IHRISFILTERLR).AutoFilter ...

Error: fs.readFileSync is not a function

I am trying to flash a hex file to an Arduino through a Chrome app I am making. I used basic NodeJS code, which is below, and converted it using browserify so that it would work in the browser. It ...

Swift 3 IOS 9 And IOS 10 Core Data

Hi, I use core data in my application. I would like the app to open the iOS 9 user, but it does. How can I fix it? image1 image2 @UIApplicationMain class AppDelegate: UIResponder, ...

UIPickerView different Background/title Colours of different sets of pickerLabel (Swift 3)

I am trying to set specific background and title colouring to different parts of the same UIPickerView according to the actual row. That is, having 150 elements in the same UIPickerView I need to have ...

The “last” parameter of switch_to macro

I am reading "Understanding the linux kernel" and I just can't understand what the "last" parameter of "switch_to(prev,next,last)" does. I think that it is used to get the process descriptor of the ...

Using the MVVM pattern with Unity Engine as front end

I plan to make some applications whom will help me organizing tasks from home or from somewhere else. For this I need a database server (a virtual one running at home), a backend part (the business ...

Animate div size transition with unknown sizes

I would like to animate the transition of a div's size (signupForm) whose content changes dynamically. Specifically, a multi-step form. The size of the container div in each step is unknown. I ...
15 30 50 per page
Translating... 0%