Java Null Exception (Inputted Text)
Vote count: 211 What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely? edited May 26 at 16:15TheLostMind♦ asked Oct 20 '08 at 13:18...
Aligning content with background-image
Vote count: 1 I have this picture I want to make a webpage with: the included html and css have it so that the page looks like this when I view it on firefox full screen: Which is just what I want - but I can't figure out a combination of button position and background-image-size that make it so whe...
vagrant ssh executable not found
Vote count: 0 I'm following Laravel Homestead tutorial and When trying to vagrant ssh I get the following output: `ssh` executable not found in any directories in the %PATH% variable. Is an SSH client installed? Try installing Cygwin, MinGW or Git, all of which contain an SSH client. Or use your fav...
Getting GBs of PHP warnings on my error_log
Vote count: 0 The lines of code that gives me errors are: while (!feof($handle)) { $conteudo .= fread($handle, 1024); } The error is: [14-Jul-2016 16:39:42 UTC] PHP Wa ing: feof() expects parameter 1 to be resource, boolean given in /home/brazpayc/public_html/wp-content/themes/brazpay/page-42.php on...
jQuery only selects the first group of select elements
Vote count: 0 I basically have 2 drop down boxes setup via html5 select element. Selection on the first one determines what is displayed in the 2nd one. However, the issue is that they both have the same id and jquery only works with the first group of the select elements and not the second. <div cl...
How to get domain name in REST API
Vote count: 0 We have create one rest api. And also how to get user domain name from user request process. Example: user using my rest api through curl method. Then how to get user domain name / ipaddress in my side. asked 1 min agoBala Kumaran This entry passed through the Full-Text RSS service - i...
Migration not found error
Vote count: 0 I have imported some SimaPro datasets from csv: In [1] sp = SimaProCSVImporter('VOI_export.CSV',"VOI_from_SP") Extracted 24 unallocated datasets in 0.31 seconds However, migration fails because the migration is not found: In [2] sp.migrate("simapro-ecoinvent-3") AssertionError: Can't f...
Mask containing pattern not working in SVG
Vote count: 0 Based on this example: https://bl.ocks.org/jfsiii/7772281 I am trying to fill an SVG shape with a masked patte . I have two boxes. The first takes just the dot patte . This works, but the color of the dots ca ot be changed in css. I have a second box, which has a fill and is then maske...
How to get a numeric signature of a CHAR column in MySql
Vote count: 0 Given a CHAR or VARCHAR column in MySql, what I need is to convert it to a number so it can be summed up. For example, if the column name is CHAR1, the SELECT would be: SELECT SUM(ConvertToNumber(CHAR1)) from TABLE1 The function ConvertToNumber just needs to convert to a number, it doe...
Rails SCSS Background Image Not Rendering
Vote count: 0 I have a background image I'm putting on a div that is not loading to the page even though the path checks out. Here is what the inspector looks like: when I move my mouse over the path to see the image, on hover instead of seeing the image like normal the browser shows the path: local...
Unit testing JSON Swift
Vote count: 0 I am working on an iOS application written in Swift which parse a lot of JSON files. The JSON structures are sophisticated and I would to test them before to map JSON to object. For example test if the key 'users' exists and for each user the structure('name', 'first', 'last'). { "user...
tabs missing when copy excelsheet to a textbox vba
Vote count: 0 When a copy some cells in an excel sheet to a form some tabs will disappear when the text is to short, can someone help me? or how can I fix this in vba? the excel file the form asked 41 secs agoteyon47 This entry passed through the Full-Text RSS service - if this is your content and y...
Saving custom objet in NSUserDefaults returning null
Vote count: 0 I am trying to save a custom object in the NSUserDefaults but it is retu ing nill. I made sure that the object had values before it saves. func syncObjects(){ let userDefaults = NSUserDefaults.standardUserDefaults() userDefaults.setValue(NSKeyedArchiver.archivedDataWithRootObject(profi...
How to use regex for a single character in a String?
Vote count: 0 Hello i have the following String : LoopStep(i,0,m-1,1) and i want to use regex so that i will find just the first "(" ,for example my regex code is : ([^)]*). I want to check for the 1st open paranthesis only so i don't have a problem if my code will be LoopStep ((i,0,m-1,1)). asked 3...
How does a server become part of a distributed system?
Vote count: 0 The GemFire tutorial shows that a locator is started withgfsh>start locator --name=locator1 --port=55221 In some parts of the tutorial the command to start a server is shown asgfsh>start server --name=server1 --J=-Dgemfire.jmx-manager=true --J=-Dgemfire.jmx-manager-start=true --J=-Dgem...