w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Major CSS issue; text should be white, not blue. CSS selector issue, or !important issue?
These two classes have the blue color: .catalyst-widget-area a, .catalyst-widget-area a:visited { color: #3A639A !important; text-decoration: none !important; } This is why your text is blue. So make a new style sheet or change it.

Categories : CSS

bootstrap fluid layout spans, floating issue, white space at top issue
you have padding-top:60px set for body in choose.aspx, and while the navbar has position:fixed it looks ok, but bootstrap's responsive css makes it position:static for screens narrower than 979px, and body's padding makes this effect. You should either set .navbar:fixed to override bootstrap's responsive rule, or add css media query to make padding-top:0px for body when screen is narrower than 979px, at the same place where you make it 60 so in choose.aspx where you set body styles: body { padding-top: 60px; padding-bottom: 40px; } //+ add this @media (max-width: 979px) { body { padding-top: 0px; } }

Categories : CSS

HTML + CSS issue, Chrome/Safari vs Firefox text positioning issue
Add the following CSS to the container div: vertical-align: middle; display: table-cell; Example: <div style="vertical-align: middle; display: table-cell; height: 500px; width: 400px; border: 1px solid black;"> <div id="header-social-icons"><a href="http://test">C</a><a href="http://test">M</a><a href="http://test">F</a></div> <div>

Categories : HTML

Strange Github Issue - Permission Denied (publickey) even bitbucket has same issue
First of all: You don't use your public key to authenticate, but the private key. It looks like either you don't have the private key or you haven't told GitHub what your public key is. cat ~/.ssh/id_rsa.pub and then copy and paste that into the SSH keys in your GitHub account panel. If you're still having trouble, you could also try to contact GitHub Support at support@github.com.

Categories : GIT

Jenkins email-ext, pre-send script: How to replace Jira Issue string directly with a link to the issue?
You don't even need regular expression. See this script example: https://github.com/jenkinsci/email-ext-plugin/blob/master/src/main/resources/hudson/plugins/emailext/templates/groovy-html.template that shows you how to loop over your changeset.

Categories : Jenkins

Jenkins e-mail notification issue / Ubuntu server issue
Please try to check the use SSL. Here is the Email Notification set up that's working in my system. I've also tested it in Windows, mac, and linux machines and this setup works for those systems.

Categories : Jenkins

SQL server 2012 tables issue, sysdate and to_date issue
You have two issues: the function to get the current system date and time is called SYSDATETIME() in T-SQL/SQL Server (not sysdate) the way to convert a string to a date or datetime in T-SQL/SQL Server is using CAST or CONVERT (not TO_DATE - there is no such function in T-SQL) Use something like SELECT CAST('01-JAN-2008' AS DATE) or something like that (it's highly dependent on your language/date format settings in SQL Server whether it'll work or not). If you need to specify a specific format, you can use CONVERT which allows you to use one of the many predefined formats (see relevant details in the MSDN documentation). If that's still not enough - SQL Server 2012 has a new function called PARSE which allows you to specify any arbitrary date format that your string is formatted i

Categories : SQL

Issue with convert NULL to String or to Double Issue
check nullity against rs.getObject("price") if you find it null then don't do above thing instead just leave it to the default value (blank or whatever) you want Also handle NumberFormatException it could raise while converting String to Double if no proper value found

Categories : Java

Bootstrap Carousel slide issue (Issue with Handlebars perhaps?)
I got this error when I forgot to include the jQuery UI library. Add this line after you include jQuery. <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></scrip

Categories : Twitter

jQuery Cycle layout issue - added inline style (position:absolute) causing issue with layout
Hmm..made some changes to your code. See if this is what you needed: http://codepen.io/adityadineshsaxena/pen/hvmro CSS Changes: .left-top{ height: 365px !important; } .carousel-body { color: cyan; p { padding-top: 0; margin-top:5px; margin-bottom:5px; } }

Categories : Jquery

Making JSESSIONID secure creating an issue for login issue from no-secure context
Is there any way to move from secure page(https) to unsecured page(http) or vice versa if JSEESIONID is secure Not with a single cookie. The whole point of secure is to stop the cookie being sent in the clear to an HTTP page, where an eavesdropper can purloin it and use it to access the HTTPS page. To have a system where compromise of an HTTP cookie didn't break the HTTPS cookie too, you'd have to have two separate session cookies with different names and values. eg: an http_session cookie, without secure that only the HTTP version of the site reads, and an https_session cookie, with secure, that only the HTTPS version reads. The login process would have to set both cookies, and the session system would have to be tinkered with to tie both session IDs to the same bag of session stora

Categories : Java

PHP SQL Has an issue
You can create a subquery which basically has all the ID's you need and have a left join against it. SELECT a.status_ID, IFNULL(MAX(b.id), 0) maxVal FROM ( SELECT 1 status_ID UNION ALL SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4 ) a LEFT JOIN `table` b ON a.status_id = b.status_id GROUP BY a.status_id SQLFiddle Demo

Categories : PHP

Not sure what this issue is?
addItemListener expects an ItemListener to be passed as an argument. You are passing a class that extends ActionListener Instead of bronzeG.addItemListener(radioHand); use bronzeG.addActionListener(radioHand); Read How to Write an Action Listener

Categories : Java

A log out issue (PHP)
It may because of session timeout problem.try to increase the session time by referring the following url. How do I expire a PHP session after 30 minutes?

Categories : PHP

Tic Tac Toe AI issue in C
You do not need a loop to set movement on the board. board[randomNum][randomNum1] = 'X'; is enough to set. And you probably call this function twice, because function plays only one move.

Categories : C

CSS issue with UL > LI > LI
try this .menu ul > li + li{ border: 0 solid #333333; border-radius: 0 0 10px 10px; box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.3); } please add + li in this above css .menu ul > li + li + li{ border: 0 solid #333333; border-radius: 0 0 10px 10px; box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.3); } OR http://www.w3schools.com/cssref/tryit.asp?filename=trycss3_nth-last-child .menu ul li:nth-last-child(1) { border: 0 solid #333333; border-radius: 0 0 10px 10px; box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.3);}

Categories : CSS

CXF JAXB XSD issue
(Long form of the answer:) You don't show the relevant code (your question would be better if it did), but at a guess, your Percentage type is referred to in another schema document, for example the one at CBProjectionsWebService/trunk/cb-projections-jetty/schema3.xsd. That schema document includes a namespace declaration binding some prefix (at a guess, ns0) to namespace http://www.xyz.ie/cb/projections/converter/model/common, and refers to the type using a Qname with that prefix (e.g. ns0:Percentage). Declaring the namespace prefix does not suffice, however: XSD requires that if you refer, from a schema document with a given target namespace, to components in a different namespace, then you must import that other namespace. So -- just as the error message says -- you need to incl

Categories : Java

Issue with multiplication in php
Of course you get php_rate = 600. The last iteration in your loop makes $Rate = 600 ;. So you use only the last value of the variable. You must either store your rates in array and the use them, or just do the multiplication inside your while loop. Another option: pass the rate as the function parameter. onClick = 'CalcWage({$i}, {$Rate});' function CalcWage(i, php_rate){ var Days=document.getElementById('Days'+i).value; //var php_rate = "<?php echo $Rate; ?>"; //alert(php_rate); var Wage=parseFloat(Days*php_rate); document.getElementById('Wage'+i).innerHTML= Wage; return Wage; } Also, what is wrong with using try - catch block? What exception are you trying to catch? mysql_fetch_array does not throw any. More suggestions: Access array data using squ

Categories : PHP

GSL histogram issue
GSL alloc sum to be an array of size n+1, where n is the number of bins. However, only n entries are necessary to calculate the pdf. This extra allocation of one element happens because gsl defines sum[0] = 0. in the GSL source coode "pdf.c" you can see that gsl_histogram_pdf *gsl_histogram_pdf_alloc (const size_t n) { (...) p->sum = (double *) malloc ((n + 1) * sizeof (double)); } int gsl_histogram_pdf_init (gsl_histogram_pdf * p, const gsl_histogram * h) { (...) p->sum[0] = 0; for (i = 0; i < n; i++) { sum += (h->bin[i] / mean) / n; p->sum[i + 1] = sum; } }

Categories : C++

Css Height issue
You can use CSS tables, however you'll need to enforce your greatest min-height on the main div. CSS #main { display: table; width: 200px; min-height: 100px; background:#ccc; } .Gray { width:100px; min-height:200px; /* this won't work here */ background:#333; display: table-cell; } .Blue { width:50px; background:#3b3ff5; display: table-cell; } HTML <div id="main"> <div class="Gray"> this is Gray <br/> this is Gray <br/> this is Gray <br/> this is Gray <br/> this is Gray <br/> this is Gray <br/> this is Gray <br/> </div> <div class="Blue"> this is Blue <br/> </div> </div>

Categories : HTML

C# SqlReader issue
Assuming you want to keep the original values as well, you could have a List<decimal> and accumulate the totals. List<decimal> totals = new List<decimal>(); Then in your while loop: totals.Add(Value); You can then return the running total via: var runningTotal = totals.Sum(); If you do not want the original values, you can just use: decimal value; while (reader2.Read()) { value += reader.GetDecimal(0); }

Categories : C#

Issue with POST
Use some developer tools in your browser to verify that the correct POST data is being sent to the PHP script. I REALLY (REALLY, REALLY, REALLY) enjoy Chrome's developer tools. You can watch all network traffic and then get detailed information on it. There are a bunch of developer tool kits that are great though. echo the query you're attempting to run in PHP to check that's it is correct. Just a couple general things to do whenever debugging web applications. Bonus - Always make sure to escape data or cast it as an integer (in the case of IDs) to make sure you can't be attacked by SQL injection. E.g. $querySTR = 'SELECT * FROM sensitive_data WHERE id=' . (integer)$_POST['id'] . " AND username='" . $db->real_escape_string($_POST['username']) . "'"; Note that this is using PHP's

Categories : PHP

How to solve this issue with CTE?
You use the term "leaves", which means jobs that have no destinations (as opposed to intermediate nodes in the tree). Here is one approach. Start with all the leaves, then climb up the tree attaching all the nodes they are under. Then select the ones that belong to the job you are interested in: with cte as ( select DestinationJobId as JobId, DestinationJobId as parent, 1 as level from jobs2jobs jj where DestinationJobId not in (select SourceJobId from jobs2jobs) union all select cte.JobId, jj.SourceJobId, level + 1 from cte jobs2jobs jj on cte.Parent = jj.DestinationJobId ) select * from cte where parent = @YourJobId;

Categories : SQL

NaN issue in fortran 90
NaN signifies not a number, and since there are many, different, reasons a calculation could give that result, they generally do not compare as equal against themselves. If you want to do nan-testing, fortran compilers that support the f2003 standard (which is recent versions of most compilers) have ieee_is_nan in the ieee_arithmetic module: program testnan use ieee_arithmetic real (kind=kind(0.d0)) :: x,y,z x = sqrt(-1.d0) y = sqrt(-1.d0) z = 1.d0 if ( ieee_is_nan(x) ) then write(*,*) 'X is NaN' endif if ( ieee_is_nan(y) ) then write(*,*) 'Y is NaN' endif if ( ieee_is_nan(x) .and. ieee_is_nan(y) ) then write(*,*) 'X and Y are NaN' endif if ( ieee_is_nan(z) ) then write(*,*) 'Z is NaN, too' else w

Categories : Misc

MediaController 3 Second Issue
It's a bug in the MediaController: private View.OnClickListener mPauseListener = new View.OnClickListener() { public void More ...onClick(View v) { doPauseResume(); show(sDefaultTimeout); } }; There are two ways to solve this. A) Override the hide() method: class MyMediaController extends MediaController { @Override public void hide() { // Nope, do not hide. Call hideActually() to actually hide. } public void hideActually() { super.hide(); } } B) Override the show() methods: class MyMediaController extends MediaController { public int mTimeout = 0; @Override public void show() { show(mTimeout); } @Override public void show(int timeout) { super.show(mTimeout); } } Overriding

Categories : Android

Issue with using SUM function in SQL
You need a group by if you want the value for each id/name: select id, name, sum(value1-value2) as Result from tbl group by id, name; Otherwise, you need to put them in aggregate functions: select min(id), min(name), sum(value1-value2) as Result from tbl; Or, if you just want the difference on each row, then omit the sum(): select id, name, (value1-value2) as Result from tbl;

Categories : SQL

Issue with URL slug.
You need QSA (Query String Append) flag to preserve existing queries while redirecting. You don't need 2 rules just for handling a trailing slash. Replace your code with this: Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteRule ^([a-z0-9_-]+)/?$ /index.php?id=$1 [L,QSA,NC]

Categories : PHP

isa is deprecation issue
The isa field on any object is a reference to the class of that object; it's part of the ObjC runtime's internal mechanisms, and dereferencing the object pointer to grab that field is functional but fragile and breaks encapsulation. The compiler is telling you right there in the warning that you can use object_getClass, which is a function in the ObjC runtime to retrieve the same thing. The code snippet you show is avoiding the standard -class method on every NSObject and instead appears to be grabbing the isa with the intention of getting a performance benefit from doing so. This would have to be some incredibly performance sensitive code to warrant that, but if it is, then object_getClass looks to be not much slower.

Categories : Iphone

XNA XML Serialization Issue
The problem is your using File.Open Instead use new FileStream FileStream stream = new FileStream(fullpath, FileMode.Create); The File.Open is canceling out FileMode.Create

Categories : C#

Dictionary issue
Assuming your value is a string: int score = -1; int.TryParse(obj["score"], out score); You must parse the integer from the string.

Categories : C#

Issue with VisualSVN
You've upgraded VisualSVN Server to 2.6 / SVN 1.8, so your command-line svn.exe client expects upgraded SVN 1.8 working copies. Apache Subversion 1.8 requires you to svn upgrade your older working copies to newer format. SVN 1.8 can't work with older WCs and prompts you to upgrade a working copy located at "F:XMSxmsWorkspace1.0.00". See svn upgrade command-line reference. I suggest you to upgrade TortoiseSVN to the latest version as well, and upgrade your working copies. Remember to restart after TortoiseSVN upgrade is successful.

Categories : Svn

CSS float right issue
Move the Add to before the <h4>. When you float right, the target element should be before the other element if you want them to align. Demo HTML <div class="title"> <span class="pull-right">Add</span> <h4>Employee list</h4> </div> CSS .pull-right { float:right; }

Categories : HTML

Issue With Table Col 1
If your output is called Map do the following: Map <- cbind(ContactCode=rownames(Map), Map) As Hong pointed out, if the rownames are not all numeric, you might get unwanted coerced values. You can use data.frame in place of cbind for these situations. ie: Map <- data.frame(ContactCode=rownames(Map), Map) Note, in either case, if you don't like the look of the rownames still present after adding them as a column, you can get rid of them: rownames(Map) <- NULL Map ContactCode Dec Jan 1 101 219 315 2 103 37 47 3 104 69 72 4 110 26 60 5 112 41 24 6 113 18 28

Categories : R

Issue with getting substring in c
First: char * dst = ""; strncpy(dst, src+from, to); You are writing to a string literal but string literals are immutable in C. This invokes undefined behavior. Second: rowReport[bPartyColIndex] has to be a char * but it is of a different type. You didn't specify the type of rowReport in your question, but assuming it is a char array you have to pass &rowReport[bPartyColIndex] instead of rowReport[bPartyColIndex] to substring function.

Categories : C

inline div issue in ie7
In this case JavaScript is the simple hack, because in IE7 :focus doesn't work. Take a look at the ie7-js project. IE7.js is a JavaScript library to make Microsoft Internet Explorer behave like a standards-compliant browser. It fixes many HTML and CSS issues and makes transparent PNG work correctly under IE5 and IE6. Upgrade MSIE5.5-7 to be compatible with MSIE8. <!--[if lt IE 8]> <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script> <![endif]--> You can also refer to this SO question. IE7 doesn't support this pseudo class.

Categories : HTML

Issue with the debugging in php
The error is in this statement mysql_query("INSERT INTO e_x_1 (delta_of_reading) VALUES (b'$dif')"); It should be something like: mysql_query("INSERT INTO e_x_1 (delta_of_reading) VALUES ('b" . $dif . "')"); //i don't know if you want `b` there or it is an error And since the function saveDelta($dif) is called inside while loop it will print the error multiple times. You can return error code and check for the successful execution of the query. function saveDelta($dif) { if( mysql_query("INSERT INTO e_x_1 (delta_of_reading) VALUES ('b" . $dif . "')") ){ return true; //on success } else { return false; //on failure } } And in your while loop check as: if( saveDelta(decbin($diffrence) === false ){ //print error and return or do whatever you like to do }

Categories : PHP

conversion C# to vb.net issue
It's about the same using query syntax really: Dim users = From user In users Where user.Key = Id Select user The Select is degenerate and if you would prefer, you could use method syntax instead: users.Where(Function(user) user.Key = ID)

Categories : Vb.Net

issue with setCapture() in js
Here is changed code that change color every time you click outside the DIV, I moved to onclick to body. <HTML> <HEAD> <TITLE>Mouse Capture</TITLE> <SCRIPT> function action() { if (event.srcElement.id=='DIV1') { DIV1.releaseCapture(); } else { DIV1.style.backgroundColor=Math.floor(Math.random()*16777216); } } </SCRIPT> </HEAD> <BODY onload="DIV1.setCapture();" onclick="action();"> <DIV ID="DIV1" STYLE="position:absolute;top:10;left:10;height:100;width:200;background-color:red" > </DIV> </BODY> </HTML> Here is another alternative, with simpler code and works on Google Chrome too <HTML> <HEAD> <TITLE>Mouse Capture</TITLE> <SCRIPT> function action() {

Categories : Javascript

PHP and SQL syntax issue
$query = mysql_query("SELECT * FROM `table` WHERE `gender`='$gender' AND `hair`='$hair' AND `height`='$height' AND `body`='$body'"); $query_run = mysql_query($query); if ($query_run = mysql_query($query)) { while ($query_row = mysql_fetch_assoc($query_run)) { $pic = $query_row['picture']; }; }; should be $query = "SELECT * FROM `table` WHERE `gender`='$gender' AND `hair`='$hair' AND `height`='$height' AND `body`='$body'"; if ($query_run = mysql_query($query)) { while ($query_row = mysql_fetch_assoc($query_run)) { $pic = $query_row['picture']; }; }; $query = mysql_query("SELECT * FROM `table ......... $query_run = mysql_query($query); extra

Categories : PHP

What could cause this memory issue?
I don't think There is enough information to find the cause to your leak, and without posting your entire solution I am not sure there can be, since the question is about locating the root cause of it... What I Can offer is the approach I have used when I had my own memory leak. The technique was to: Open a memory profiler. From your screenshot I see you are using one. I used perfmon. This article has some material about setting perfmon and @fmunkert also explains it rather well. Locate an area in the code that you suspect that it is likely that the leak is in that area. This part is mostly depending on you having good guesses about the part of the code that is responsible for the issue. Push the Leak to the extreme: Use labels and "goto" for isolating an area / function and repeat th

Categories : C#



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.