Rekha Pai

Ranch Hand
+ Follow
since Oct 30, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rekha Pai

Hi,

I am creating the Blob in javascript. The problem is not solved. I want to get rid of the message "the file format don't match....".

var exceldata = new Blob([tab_text], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8" });
var link = document.createElement('a'); //create link download file
link.href = window.URL.createObjectURL(exceldata); // set url for link download
link.setAttribute('download', fileName); //set attribute for link created
document.body.appendChild(link);
link.click();
document.body.removeChild(link);

This is downloading the file. But When I open it in excel it shows the error message.

Regards,
Rekha
Hi,

I am creating a Blob and setting the type as ms-excel. This gives the error but if I click yes it neatly opens the table in excel sheet.

Regards,
Rekha
Hi,

While downloading html table as excel sheet I am getting the following error. "The file format and extension "abc.xls" don't match.The file could be corrupted or unsafe.Unless you trust the source don't open it. Do you want to open it anyway?" How to get rid of this message?

Regards,
Rekha
Whenever we change any table, like add a new column or delete existing column, we have to change the version number in database java class. Is there any other way to update it automatically?
6 years ago
here is the gradle file dependency part.

dependencies {
   compile fileTree(include: ['*.jar'], dir: 'libs')
   androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
       exclude group: 'com.android.support', module: 'support-annotations'
   })
   compile 'com.android.support:appcompat-v7:23.1.0'
   testCompile 'junit:junit:4.12'
   compile 'com.android.support:multidex:1.0.1'
   compile project(':app-release')
   compile 'com.android.support:support-v4:23.1.0'
   compile 'com.google.android.gms:play-services:10.0.1'
   compile 'com.google.android.gms:play-services-maps:10.0.1'
}

I am using an aar library which I created from one of my android application.

Regards,
Rekha
7 years ago
Hi Norman,

Could you please tell me what dependency I should include in the gradle.build file, so that the concerned file gets included.

Thanks and Regards,
Rekha
7 years ago
I am applying plugin "io.fabric" in the build.gradle file

using classes,

com.crashlytics.android.Crashlytics;
io.fabric.sdk.android.Fabric;

Regards,
Rekha
7 years ago
No. I am using jdk 1.7. I compiled both the aar library and the application using same version. When I came across this error, I used jdk 1.8 and created the aar library afresh. and also compiled the application using jdk 1.8. In both cases the same error persists.

Regards,
Rekha
7 years ago
Hi,

I am using an aar library in my application and trying to call login page of that library. The code compiles successfully, but at run time the application stops. The android monitor displays the error,
java.lang.NoClassDefFoundError: Failed resolution of: [Lio/fabric/sdk/android/Kit;

When I click the file position in the android monitor where the application came across an exception, It opens a .class file and points at
Fabric.with(this, new Kit[]{new Crashlytics()});

It also says,
Decompiled .class file, bytecode version: 51.0(Java 7)

Please, help me in solving this issue.

Regards,
Rekha
7 years ago

Campbell Ritchie wrote:Are QT and tcl/tk threadsafe?



Qt provides thread support in the form of platform-independent threading classes, a thread-safe way of posting events, and signal-slot connections across threads. This makes it easy to develop portable multithreaded Qt applications and take advantage of multiprocessor machines. Multithreaded programming is also a useful paradigm for performing time-consuming operations without freezing the user interface of an application.

Earlier versions of Qt offered an option to build the library without thread support. Since Qt 4.0, threads are always enabled.

tcl is thread safe but tk is not.

Regards,
Rekha.
12 years ago
Hi,

Very glad to hear about this book.

I used C++ with QT gui and C with tcl/tk gui. At both places I

came across a problem of updating and refreshing the front end

(gui) for some event at the back end. This was because the gui runs

on single thread. Somehow I managed to update by writing into a hidden

widget which automatically calls the paint() method.

My question is can the gui run on multi thread?

Regards,
Rekha.
12 years ago
Hi,

But the two domains belong to our intraweb.
Is there any way for me to pop up some alerts
depending on some data ( say passport expiry
alerts) in cross domain?

Regards,
Rekha.
Hi,

I am creating a jquery popup on an html page in say domain A.
I want to load a jsp page belonging to domain B. How can I do that.

I am giving below sample code I tried, but while running it gives
"xml can not be the whole program"

Can anybody help?

Regards,
Rekha.

Code I used :

<script src="./development-bundle/js/jquery-1.2.6.min.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" media="all" href="./development-bundle/js/jquery.popup.css" />
<script src="./development-bundle/js/jquery.popup.js" type="text/javascript"></script>

$.ajax({
url: "http://A.com/apps/InfoMgmt/secure/index_new.jsp",
dataType: 'jsonp',
// data: 'xml',
success: true
});

$(document).ready(function(){
//define config object
var dialogOpts = {
modal: true,
bgiframe: true,
autoOpen: false,
height: 500,
width: 500,
draggable: true,
resizeable: true,
open: function() {

$.getJSON("http://A.com/apps/InfoMgmt/secure/index_new.jsp",
function(data){
$.each(data.items, function(i,item){
$("").attr("src", item.media.m).appendTo("#images");
if ( i == 3 ) return false;
});
});
$.get(
"http://www.google.com",
"{key:value}",
function(data) { alert(data); },
"html"
);
$.post("message.html", { func: "getNameAndTime" },
function(data){
alert("Hello");
}, "json");
// getUrl();
}
}


$("#example").dialog(dialogOpts); //end dialog
$("#example").dialog("open");

});
</script>
<script>

Thanks a lot.

Regards,
Rekha
13 years ago
JSP