on-internet

Conversion between NVARCHAR to VARCHAR

I've got an Oracle DB with ALL the character columns defined as NVARCHAR or NCHAR or NCLOB, using charset UTF-16. Now I want to migrate to a new DB that has charset UTF-8. Since it can store unicode characters, I'm wandering if I will be able to import data converting column types. The reason I'm doubtful is I know that I cannot convert a NVARCHAR2 column in a VARCHAR2 if not empty. What is the best option to perform the import. Will datapump complain if I import the schema, modify the column types and after that I'll import the data? Thank

Join the discussion →

PivotTable duplicates

I have some data that I need to find an average day rate for a certain company. The data consists of 1000's of names, some duplicates with a day rate against them. If I insert a PivotTable and filter on the company, the Average day rate will show, however, I know it is wrong as it is including the duplicate names. I have got round this by double clicking on the average value and bringing up the data for that company in a new tab. Then I can insert another pivot table to remove the duplicates and then from that, find the average day rate. Is there a way to by pass having to insert another pivot

Join the discussion →

What is the difference between ARIA and data-*

To add more meaning to the HTML tag i am using data - *. Actually i have learned this approach from jquery mobile. But recently i came across WAI-ARIA. It seems like it is almost similar to data - *. Can anyone explain me,how these are different and their browser dependency? Useful Links about WAI-ARIA about data-* UPDATE: Finally.. they both are different. They have some how similar syntax. That made me confused. I am accepting @Gajotres answer. And see this you tube video for ARIA live. Match this video with @Gajotres's answer.

Join the discussion →

how to clear all data and layout of a ultragrid without its summerize layout

Is there any way to set the datasource of an UltraGrid without removing its summary row? I have an ultragrid gvResult in my Windows Form application. The user can select the columns and sort them in another form and then apply these changes to gvResult by pressing the "Apply" button. In addition, gvResult must show a row counter summary. I cleared gvResult before applying user's changes to it, otherwise the sorting algorithm does not change to what the user set it to. gvResult.DataSource = new DataTable(); gvResult.DataSource = dataTable_With_New_Set_And_Sort_of_Columns; Therein lies another p

Join the discussion →

Open connection to MySQL from VBA Excel 2007

I got this error when try to connect Excel and MySQL using ODBC DataSource name not found and no default driver specified Here is my VBA code: Sub test123() ' Connection variables Dim conn As New ADODB.Connection Dim server_name As String Dim database_name As String Dim user_id As String Dim password As String ' Table action variables Dim i As Long ' counter Dim sqlstr As String ' SQL to perform various actions Dim table1 As String, table2 As String Dim field1 As String, field2 As String Dim rs As ADODB.Recordset Dim vtype As Variant '-----------------------------------------------------------

Join the discussion →

Facebook login not working with facebook application

I am coding for the Login with the Facebook into my android application.I am following this STEPS. I have problem that The logout button is not showing after login, it still displayed me login button. This problem is occure when I install the facebook app into emulator, but without install facebookapp it's working. After install Facebook Application : Press on the login button(From my application) If not login then redirect to the facebook app After login into facebook app back to my app and don't show me logout button but instead of logout it show me login button Without install Facebook app

Join the discussion →

Installing qt combined with MinGW on Windows

I haven't managed to install qt properly on Windows after 2 hours of effort. I couldn't find the SDK version which is linked in some sites instructing Qt installation. So I tried the other way. You can give me a link to download full sdk if it is still available, since it seems more easy to install with that way. I installed Qt libraries for MinGW and Qt Creator from here Then I added the C:\Qt\4.8.4 to the path variable and ran configure.exe on Qt folder After that I installed the Qt Creator but there was no option to open a Qt Gui Project or quick project. Then from options I created a kit a

Join the discussion →

Image Compression Using wavelet- MATLAB

I am working on image compression based on wavelet in MATLAB... I have constructed the below code. Everything is working fine but the compressed image is displayed as plain black and white image. If I give the decomposition level as 1, it shows compressed image as full black, for the decomposition level: 2, it gives fully white image.. For the decomposition level 3, it gives 3/4 white and 1/4 black color.. Please help. The code I have used is clear all; close all; input_image1=imread('C:\Users\Prem\Documents\MATLAB\mandrill.jpg'); input_image=imnoise(input_image1,'speckle',.01); figure; imshow

Join the discussion →

Leaflet Popup with additional information from GeoJSON

I want to bind the additional information from geojson to a leaflet marker popup. I looked up a few things from the leaflet documentation but it doesn't work. const map = L.map('map').setView([51.9, 7.6], 11); L.tileLayer('http://{s}.tile.cloudmade.com/5e4495ff4b0d454eb0443225198b7e6c/997/256/{z}/{x}/{y}.png', { maxZoom: 16 }).addTo(map); const polygon = { "type": "Feature", "properties": { "name":"City BoundingBox", "style": { "color": "#004070", "weight": 4, "opacity": 1 } }, "geometry": { "type": "Polygon", "coordinates": [[ [7.5,52.05], [7.7,51.92], [7.6,51.84], [7.4,51.94], [7.5,52.05] ]]

Join the discussion →

How do I design a generic Response builder / RESTful Web Service using Spring MVC?

Trying to build a RESTful web service using Spring MVC. The controller should return specific Java types, but the response body must be a generic envelope. How can this be done? The following sections of code are what I have so far: Controller method: @Controller @RequestMapping(value = "/mycontroller") public class MyController { public ServiceDetails getServiceDetails() { return new ServiceDetails("MyService"); } } Response envelope: public class Response<T> { private String message; private T responseBody; } ServiceDetails code: public class ServiceDetails { private String serviceName; publ

Join the discussion →

System.Net.WebException: The request failed with HTTP status 401: Unauthorized

Ok, so I have this .NET 1.1 application (written by someone way back) which is like a document repository and it worked fine in the past. I suddenly get this error when trying to search for items/documents: Page: /CPDEPforIT/SearchResults.aspx Error: System.Net.WebException: The request failed with HTTP status 401: Unauthorized. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at CPD

Join the discussion →

Create a batch file to invoke testng.xml to run selenium scripts

I need help to create a .bat file to invoke testng.xml which has all the tests to run.According to this link, I created the .bat file. Here is what I have written in it: java -cp "C:\Program Files\Selenium Execution Engine\lib\library\testng-5.8-jdk15.jar";"C:\POM_Newdemo\EF_Progression\bin\testscripts" org.testng.TestNG "C:\POM_Newdemo\EF_Progression\testng.xml" where: -cp : is class path C:\Program Files\Selenium Execution Engine\lib\library\testng-5.8-jdk15.jar : is the path of my testng jar file C:\POM_Newdemo\EF_Progression\bin\testscripts : is the path of my .class files of my tests C:\P

Join the discussion →

not found showing twice in 404 page?

in the 404.php page my original message is showing correctly, but i also get a second message in the footer, I checked all files and googled a lot about this issue but got no results. this is the live example: http://www.rapyemen.org/?page_id=181 can anyone help to to solve this issue of getting two 404 messages? this is my 404.php code: <div id="container"> <?php // action hook for placing content above #content nd_abovecontent(); // filter for manipulating the element that wraps the content echo apply_filters( 'nd_open_id_content', '<div id="content">' . "\n\n" ); // action hook for placing

Join the discussion →

How to load a custom CodeIgniter library then access its instantiated object

I have a library file named myMenu.php <?php class myMenu { function show_menu() { $obj = & get_instance(); $obj->load->helper('url'); $menu = "<ul>"; $menu .= "<li>"; $menu .= anchor('books/index','List of books'); $menu .= "</li>"; $menu .= "<li>"; $menu .= anchor('books/input', 'Books entry'); $menu .= "</li>"; $menu .= "</ul>"; return $menu; } } Now I loaded this library in my controller books.php function index() { $this->load->library('myMenu'); $menu = new myMenu; $data['menu'] = $menu->show_menu(); $this->load->view('main_view',$data); } But the page shows error: An error occurred : Un

Join the discussion →

PostgreSQL equivalent of Oracle's PERCENTILE_CONT function

Has anyone found a PostgreSQL equivalent of Oracle's PERCENTILE_CONT function? I searched, and could not find one, so I wrote my own. Here is the solution that I hope helps you out. The company I work for wanted to migrate a Java EE web application from using an Oracle database over to using PostgreSQL. Several stored procedures relied heavily upon using Oracle's unique PERCENTILE_CONT() function. This function does not exist in PostgreSQL. I tried searching to see if anyone had "ported over" that function into PG to no avail.

Join the discussion →

Use case for low-level os.open, os.fdopen, and friends?

In Python 3.2 (and other versions), the documentation for os.open states: This function is intended for low-level I/O. For normal usage, use the built-in function open(), which returns a file object with read() and write() methods (and many more). To wrap a file descriptor in a file object, use fdopen(). And for fdopen(): Return an open file object connected to the file descriptor fd. This is an alias of open() and accepts the same arguments. The only difference is that the first argument of fdopen() must always be an integer. This comment in a question on the difference between io.open and os

Join the discussion →

How can feature selection methods be evaluated? [closed]

Hello, How can I choose the best fit feature selection method for a given dataset (textual data) ? In Weka for example, there are several attribute selection methods (CfsSubsetEval, ChiSquaredAttributeEval, ... etc), and several search methods (bestfirst, greedy, ranker ... etc). My Question: How can I know which attribute selection method and search method is best for a given dataset ?! My Guess: Should I use cross validation to test the dataset after applying the feature selection filter ? so for example, that means if i have 10 attribute selection methods and 10 search methods, I will need

Join the discussion →

How to find a commit by its hash?

I need to find a commit in Git by a given hash, SHA. For example, if I have the "a2c25061" hash, and I need to get the author and the committer of this commit. What is the command to get that?

Join the discussion →

master detail using form and datagridview

I'd like to do a master/detail page where the parent (customer info) is a form on the top half of the window and then a datagridview of orders on the lower half of the screen? I found an article where the example uses 2 datagridviews here and trying to go from there. I'm starting out with single textbox that contains the ParentID (I'm using Northwind Customer/Orders). And this works just fine with existing records. How do I handle wanting to add a new Customer and Orders at the same time? using System; using System.Data; using System.Data.SqlClient; using System.Windows.Forms; namespace Window

Join the discussion →

How do I Configure two https connector port in jboss 7?

I need to configure 2 https ports (5480 and 8443) in jboss 7 ( I did this jboss 5 adding one more connector port). I tried creating two https connector ports in standalone-full.xml but it did not work. Following is my current configuration for 8443 https port and I need another port 5480 as well. <subsystem xmlns="urn:jboss:domain:web:1.2" default-virtual-server="default-host" native="false"> <connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true"> <ssl key-alias="tomcat" password="FOO@Bar-1" certificate-key-file="${jboss.server.config.dir}/keystore" cip

Join the discussion →

How To Automate "Right click" event in Selenium IDE and opening the link in New window/tab

I am using Selenium IDE for a google search scenario. 1 open google 2 then type "india" and click on the search button 3 then go to any link and right clicking on that link and open that link in new tab or window what I have done till now is <tr> <td>open</td> <td>/</td> <td></td> </tr> <tr> <td>type</td> <td>id=gbqfq</td> <td>india</td> </tr> <tr> <td>click</td> <td>id=gbqfb</td> <td></td> </tr> <tr> <td>contextMenu</td> <td>//*[@id='rso']/li[3]/div/h3/a</td> <td> </td> </tr> What I am not able to do is: right click on the link and then open that link in new window. Can anyone please suggest

Join the discussion →

embed a YouTube 'like' button on a website

Is it possible to display YouTube's like/dislike buttons and subscribe channel features with the video on my site even if the user is not logged in? I found that I can use an iframe and css to crop out the like button from the video page on YouTube and display it in a borderless iframe on my webpage, but I don't need to it in this way . Also I've checked this player demo https://developers.google.com/youtube/youtube_player_demo but the controls needs to be loggedin to appear. I'm using this library https://developers.google.com/youtube/articles/codeigniter_library

Join the discussion →

imagecreatefromjpeg not working

Hello i have little problem with image showing after making it object. I'm still learning to use object images. So here is my code: $what = getimagesize($file); switch(strtolower($what['mime'])){ case 'image/png' : $src_id = imagecreatefrompng($file); imagesavealpha($src_id,true) ; break; case 'image/jpeg': $src_id = imagecreatefromjpeg($file); break; case 'image/gif' : $old_id = imagecreatefromgif($file); $src_id = imagecreatetruecolor($what[0],$what[1]); imagecopy($src_id,$old_id,0,0,0,0,$what[0],$what[1]); break; default: die(); } header('Content-Type: image/jpeg'); imagejpeg($scr_id); imag

Join the discussion →

How to remove anchors tags from html using php querypath [duplicate]

I'm working with php Querypath and I'm trying to remove anchor tags with particular href from html. for example <html> <body> <div> <a href="#down"></a> <a href="#top" ><img src="img.png" /> </a> <a href="#top" ><img src="img.png" /> </a> </div> </body> </html> my output should be <html> <body> <div> <a href="#down"></a> </div> </body> </html> Anchors with href top should be removed. I tried with following Code $html = qp($html)->find("a#top")->remove()->writeHTML(); But it didn't remove following anchors. Please let me know how to achieve this in php query path. Thanks a lot for the help.

Join the discussion →

How do I add a box-shadow to an element in QT?

I tried to do: this->setStyleSheet("-webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, 1);") and I get the error: Unknown property -webkit-box-shadow. The same goes for box-shadow and -moz-box-shadow. Box-shadow, however, renders fine in a QWebView. Is there no way to add this effect to normal elements?

Join the discussion →

wget - does -nc option skip downloading existed files?

I'm downloading a website with wget. the command is as below : wget -nc --recursive --page-requisites --html-extension --convert-links --restrict-file-names=windows --domain any-domain.com --no-parent http://any-domain.com/any-page.html does -nc option skip downloading existed files even when we download a website recursively? It seems -nc option not works.

Join the discussion →

Netbeans and glassfish HTTP ERROR 404

I need your help. I had made a source code for a web appl but I have this error when I click on the "add" submit button and I have the same error on the others submit button. My source code is : filoptwxoinfo.jsp : <%-- Document : index Created on : 17 Δεκ 2012, 6:39:05 μμ Author : Editor --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Πληροφορίες Φιλοπτώχου</title> </head> <body> <table border="1"> <td><a href="filoptwxoinfo.jsp">Μέλη Φιλοπτώχου</a></td> <td><a href="./FullFilo

Join the discussion →
Older stories