Home » Web Development » Page 4
JavaFX layout equivalents to Android ones?
24/4/2016 9:44 am by manivel in Web Development

In Android there are (magic) constants FILL_PARENT and WRAP_CONTENT (see ViewGroup.LayoutParams), that work pretty well to specify the size of stuff within a Layout.

(What) are the equivalents for JavaFX (especially in FXML speak)? I am mostly looking fo


Live ios(swift) chat, with existing rails web application
24/4/2016 9:44 am by overst33r in Web Development

I have an existing rails web application with a postgres DB running on the production server and I recently created an ios counter part. I am trying to implement a live chat message within the ios application (the web counter part does not have live chatting).

I have done some research and found that I need to create something called a TCPServer to have a constant communication between


stream sound comparasion in android
24/4/2016 9:44 am by Gogonez in Web Development

Im trying to create an App and I need stream sound comparison. something like these new camera apps that detects cheese and takes the picture. what am I trying to do , is that user records an audio (its ok) and runs the service, then whenever phone heard sound like that,It would do something.

I have already see stream sound comparasion android


Ajax call leads to page reload
24/4/2016 9:44 am by Oli in Web Development

I have the following AJAX call in a React method:

  handleActivitySubmit: function handleActivitySubmit(activity,
urlActivity, callbackMy) {
    console.log("making query with activity: " + JSON.stringify(activity));
    $.ajax({
      url: urlActivity,
      dataType: 'json',
      type: 'GET',
      data: activity,
      success: function (data) {
        callbackMy(Object.key

How to highlight menu button on scroll - AngularJs
24/4/2016 9:44 am by demetris in Web Development

this is a very common problem but I can't figure it out. I have a web site in which all sections are all on the same page and you may view them by scrolling. I would like that when I'm in the section "About", the About-button on the menu be highlighted. I know how to do it onclick but not on scrolling.

This is my code:

index.html:

<nav id="na

MacOS 10.11 - Getting python-dev error when trying to install CMU PocketSphinx
24/4/2016 9:44 am by Leo in Web Development

Whenever I try to install CMU PocketSphinx I get the error :

checking for Python include path...
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
checking for Python library path...
-L/Library/Frameworks/Python.framework/Versions/2.7/lib -lpython2.7
checking for Python site-packages path...
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site

$(document).ready equivalent without jQuery
24/4/2016 7:43 am by n3. in Web Development

I have a script that uses $(document).ready, but it doesn't use anything else from jQuery. I'd like to lighten it up by removing the jQuery dependency.

How can I implement my own $(document).ready functionality without using jQuery? I know that using window.onload will not be the same, as window.onload fires after all images, frames,


Visual Studio Designer shows empty Window when using custom ContentPropertyAttribute
24/4/2016 7:43 am by Matias in Web Development

My application has a lot of windows and most of them share some basic features. Because of that I extended the Window class to create a base for all my windows.

Everything compiles and displays fine but the designer just shows an empty window when I use my window class.

I made a basic example that can be easily used, my real window is much more complex but this show


How can I check given date is between two dates in mongodb?
24/4/2016 7:43 am by andystacy in Web Development
{
  "_id": {
    "$oid": "asdf976"
  },
  "Categories": [{
    "mainmodels": [{
      "submodels": [{
          "price": "2000",
          "submodelname": "lumia021",

        }, {
          "price": "2000",
          "submodelname": "lumia341",

        }

      ],
      "Status": "Active",
      "modelname": "lumia",
      "fromdate": "15/04/2016",
      "todate": "29/04/2016"
    }],

unable to return variable in node.js
24/4/2016 7:43 am by Josh Freed in Web Development

i'm returning the variable uploadFile from my function and when I'm trying to access it in another variable it gives me undefined

function upload(req, res, callback) {
    var dir = 'uploads/';

    if (!fs.existsSync(dir)) {
        fs.mkdirSync(dir);
    }

    console.log(req.files.file1);
    console.log(req.files.file2);

    var uploadFiles = {
        ext1: path.extname(r

how to access a zipEntry from a streamed zipfile
24/4/2016 7:43 am by robvp in Web Development

I'm currently implementing an Ereader library (skyepub) that requires that I implement a method that checks if a zipEntry exists or not. In their demo version, the solution is simple:

public boolean isExists(String baseDirectory,String contentPath)
{
    setupZipFile(baseDirectory,contentPath);
    if (this.isCustomFont(contentPa

R Markovchain package - fitting the markov chain based on the states sequence matrix
24/4/2016 7:43 am by Venezuela in Web Development

I was trying to use the R markovchain package.

I have a question regarding the markovchainFit function and the sequence matrix.

By default the markovchainFit function is run with the sequence of states as the parameter. Then it is said in the documentation that this function changes that sequence into the sequence matrix, which can be retrieved using the createSequenceMatrix fun


Parallels Plesk 12 on CentOS 6 not sending mail
24/4/2016 7:43 am by Hai Nguyen in Web Development

I have installed Plesk 12 on CentOS 6. The server is on Google Cloud Compute Engine. All ports from 1 to 65000 are open in the firewall.

Whenever a PHP script on the site tries to send an e-mail, it doesn't arrive. In Plesk Mail Queue the message is marked as deferred. When I check the queue in terminal, the error is the connection to the mail server of the recipient has timed out.


OrientDb - Get node and all of its relations
24/4/2016 7:43 am by Spasas in Web Development

Can I do one query to achieve vertex and all of his edges (including the other vertexes)?

now I'm doing multiple queries to achieve it:

For getting the vertex:

select from V where entity_name = 'SomeEntity'

Then going over each edge and select it:

select from #EDGE@rid // Multiple in the number of edges for
this node


Multi screen for mobiles in Android
24/4/2016 7:43 am by swilli89 in Web Development

How to handle design in multi screen for mobiles in Android without using dimention in values folder.

My application it's support all android mobiles, and I had a problem with the design, because I'm using dimen in values folder to handle it.

So please anyone can help me to handle this problem without using the dimention.


Something was wrong,who can help me ? the error is "'fout' was not declared in this scope"
24/4/2016 7:43 am by Bin in Web Development

Someone can help me please ? i need to make" is considered a chessboard of size nxn they are willing obstacles. Required to print the minimum number of moves required to move a madman, respecting the rules of chess and avoiding obstacles, from an initial position to a final position on time. It is believed that the initial and final position of the fool there are no obstacles."



replace elements of one vector by elements of another on particular positions
24/4/2016 7:43 am by Roman in Web Development

I have following data:

orig.vec <- c(1:10)
idx      <- c(3,5,6)
rep.vec  <- list(c(7,7,7), c(8,8,8), c(9,9,9))

1st. How can I insert elements of rep.vec into orig.vec at positions contained in idx and shift orig.vec values to left/right?

Desired result:

  1. orig.vec shif

How to combine 2 methods from 2 classes derived from 1 base?
24/4/2016 7:43 am by Netopia in Web Development

I'm creating a chess game, I already created the rook's and the bishop's and I'm about to start creating the queen piece. The problem is that the queen combines the moves of the rook's and the bishop's, so I don't want to write repetitive code and instead just use the 2 classes for the rook's and the bishop's and they're methods into the queen one.

Here's the bishop class



Deploy apps from release server
24/4/2016 7:43 am by Jpark in Web Development

I don't like when it comes to release my projects on production server.. May be i just don't have enough experience, nobody taught me how to do this in a right way.

For now i have several repos with scala (on top of spray). I have everything to build and run this projects on my local machine (of course, i develop them). So installed jenkins on my production server in order to sync from



Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .