Home » Web Development » Page 1
Trying to convert string looking like "ÐавлÑк ÐÑкÑоÑ" to correctly looking string
7/5/2016 5:43 am by Chaos in Web Development

I've got a problem converting string looking like "ÐавлÑк ÐÑкÑоÑ" to correctly looking string.

I'm trying to use such way:

func stringToUTF16String (stringaDaConvertire stringa: String)
-> String {

        let encodedData = stringa.dataUsingEncoding(NSUTF16StringEncoding)!
        let attributedOptions = [NSDocumentTypeDocumentAttribute: NSHTM

jLabel MouseEvent, Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
7/5/2016 5:43 am by Baskaran in Web Development

I want to make button with hover using jLabel. When I come over button errors appears. I'm using netbeans. Most of the codes generated automatically.

public class anaEkrn extends javax.swing.JFrame {

public anaEkrn() {
    initComponents();
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">      
                   
private vo

Android Studio Start Failed
26/4/2016 6:52 am by ferpaz in Web Development

I've just installed android studio. For the first time when I run that after a short while (after showing a loading bar), It shows me this error. So I searched in Internet and I did Everything I could,(downloading the last version on Java, re-installing the Program and run it for the first time as administrator, Adding the system variable JAVA_HOME and etc.)but still it shows me a


Positioning in css and html with bootstrap
26/4/2016 6:52 am by Germany in Web Development

I would like to create a block of 5 blocks of the same width with margins of 10px whose first div is in a fixed position or does not scroll, All responsible or aligns verticalment mobile. https://fonts.googleapis.com/css?family=Belleza' rel='stylesheet' type='text/css'> Positioning html with bootstrap


how to align a glyphicon to a form?
26/4/2016 6:52 am by Henrique in Web Development

I'm very sorry if this is just a simple question but I'm really bad when it comes to alignment/positioning of elements and stuff like that so here it goes.

My problem is shown here: http://imgur.com/a/xscLJ

picture </div>
<div  align=left>
<font size=2><b>TAGS : </b>
 <a class=align glyphicon form


How to call a function from a DLL file from [ MQL5 ] code?
26/4/2016 6:52 am by jbcrail in Web Development

Why the first MessageBox() works and the second doesn't?

I don't know where the problem is.

Does the MQL5 can access the dll file?

I need to to call C# functions that read JSON.

No errors appear in MetaEditor.


Displaying data in Blade template
26/4/2016 6:52 am by Edwin Goei in Web Development

in my controller, I pass my template a list of projects

$projects = Project::all();
return view('projects.index', compact('projects'));

Now a Project has one client, and a client belongs to a project. If I loop my Projects within my view, I get the following data

#attributes: array:11 [▼
    "id" => "25"
    "jobNumber" => "J0001"
    "

Checking whether a JSON dictionary is empty or not and storing in a list
26/4/2016 6:52 am by jwyse in Web Development

I have an Instagram API which I load into a JSON. The response is coming properly and I am even able to fetch the id from the data received. Then I save it in a python list and put it in an Excel sheet using openpyxl.

Here is the catch. While loading the values, If there is no response from API in case of a deleted instagram account,where the JSON will be empty, I want to store "ACC del


How to make a list from DataFrame?
26/4/2016 6:52 am by Dandor in Web Development

I have a DataFrame (coordinates):

    X   Y   Z
0  11  44  77
1  22  55  88
2  33  66  99

I need to get Y and Z columns values to a list. If I do something like:

centers = [df['Y'], df['Z']]

or

Y = [df['Y']]

I got a list with index columns like:

print Y

    0  44
    1  55
    

How do I use set_associated_object when the property I want to add is an unsigned int (enum)?
26/4/2016 6:52 am by hovergirl in Web Development

Now I'm doing it like this, is it correct? Any risks? Thanks in advance.

-(void)setNetworkStatus:(unsigned int)object{
    objc_setAssociatedObject(self, @selector(networkStatus), @(object),
OBJC_ASSOCIATION_ASSIGN);
}

-(unsigned int)networkStatus{
    return (unsigned int)[objc_getAssociatedObject(self,
@selector(networkStatus)) integerValue];
}

I have change


How to validate all rows in a table using PHP
26/4/2016 6:52 am by adapar in Web Development

below is the script where i am trying to validate if the same name, id and email exists in a table, the problem is that even if i add a new input for each field i still get a "data already exist", how do i fix this issue, also how to validate using regular expression for each fields..for id i need three letters and 3 numbers using regular expression

if(isset($_POST['register']))

how to convert date column of a file into user input format
26/4/2016 6:52 am by Belgium in Web Development

I have a file it has 7 columns and lacks of raws its date column format and number of date columns are dynamic, maybe one or two or three columns, date formats are DD-MON-YYYY HH24:MI or DD-MM-YYYY HH:MI or DD/MON/YYYY HH:MI etc..

file.txt

OIEX19|BANG37748|DEL37728|WUBXDE|200010291010|201209111625|195210290000
SEETA7|CHA38228|DEL377

how to show variable's value in pop up dialog with java swing
26/4/2016 6:52 am by MikeT in Web Development

I am a beginner in programming. I was messing around with java swing and tried to make a silly app. This is my code. It's not showing any errors, but it's not working. When the dialog pops up, the variable's value doesn't show on the dialog. The logic i used is right, because when i run it in the compiler without the GUI stuff, it works perfectly. If anyone could tell what am i doing wrong in h


Print pdf file displayed inside iframe to printer
26/4/2016 6:52 am by Dan Lowe in Web Development

How can I print a pdf file displayed inside iframe directly to printer from Firefox/IE?

The following code works in chrome/opera well,but not in IE and Firefox.

function
printIframe(objFrame) {
    objFrame.focus();
    objFrame.print(

'for' loop explanation request
26/4/2016 6:52 am by Mark in Web Development

I recently started learning python. So I wrote some small code, this code asks for 2 sizes of lists, creates 2 lists with random integers from 0-9 and then spits out the intersection between two lists.

The last "for" loop - I had trouble with it because at first my "intersection" list had repetitions, then I looked up for an answer and got what I have now, it works, however I don't know


String.contains function not working
26/4/2016 6:52 am by ElFenix in Web Development

I have to check whether the words from File1 exist in File2 or not and then count. Data in both files is shown below.

The words in File1 are like shown below:

  1. 发表
  2. 发愁
  3. 发达
  4. 发抖
  5. 发挥

The data in File2 is like shown below:

  1. 这篇论文是什么时候发表的?
  2. 91 .数据 删掉 被马

spring-mvc + java +concurrency
26/4/2016 6:52 am by Virginia in Web Development

I have a problem that i make a spring mvc based web application in which multiple user wants to access my application simultaneously to perform operation. I used some global constant in which i assign ip,port and other information for a particular user like CAConstant.IP, CAConstant.PORT etc.I use these constant in different class to perform operation based on particular user.The problem is tha


Codeigniter: Store value of a dropdown into session variable
26/4/2016 6:52 am by Excessi0n in Web Development

I have a dropdown in the login page which fetches company codes and it's respective ID as value. I need to store this particular value (ID) in a session variable so I may use it throughout site. So that when that particular company is selected I may be able to view the details of that particular company. If there is an alternate method for this, kindly let me know.

MODEL:


"Can't set headers after they are sent" and empty post request body
26/4/2016 6:52 am by Jarques in Web Development

I've been following a tutorial for a login/register authentication application. I keep getting the error "Can't set headers after they are sent" whenever I send POST requests. I tried to console.log the request body and it were empty. I don't know where I did wrong. Please help.

users.js

var express = require('express');
var router = express.Router();
va


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