Maha

1

votes
1

answer
33

views

I'm having a problem in deleting rows from several tables

I want to delete all the rows which have productid = 'value' from several tables so I tried to join between them but gives me an error sql command not properly ended so I was asking if this could actually work and if not can anyone tell me how should I do such a thing? DELETE FROM products, product...
Maha
1

votes
2

answer
171

views

Can someone help me find the bug in my IBM speech to text code/

I am using websockets to send request to IBM's speech to text api, and I am getting a constant pipe break error. The documentation for IBM speech to text api says it can take up 4mb in frames, but I can only give it seventy kb without it breaking. https://www.ibm.com/watson/developercloud/doc/speech...
maha
1

votes
0

answer
21

views

Hard code the input (value of range of Merged Cells) of an Excel sheet for Unit Test Case

-- Code for getting value from a range of Merged cells -- Microsoft.Office.Interop.Excel.Range range = sheet.get_Range(valueColumnAddress); System.Array rawValues = (System.Array)range.Cells.Value2; -- Format of Values Returned observed while Debugging -- rawValues -> System.Array{object[,]} { [1,1...
Maha
1

votes
1

answer
69

views

Isnumber is giving error as Object defined error in Excel VBA

I have a two different dates format in a column when I try to use that formula in vba it gives Application - defined object error .. Ex : Date Format 9/5/2018 17:51 ==> This May 9th 2018 17/07/2018 15:45:20 ==> This is July 17th 2018 Formula : =IF(ISNUMBER(DAY(N2)),DAY(N2),MID(N2,FIND('/',N...
Maha
1

votes
1

answer
387

views

Internal API Replacement in Java 11

Can someone tell me the replacement of below listed API SunToolkit.getContainingWindow SwingUtilities2.getFontMetrics SwingUtilities2.stringWidth SwingUtilities2.drawString SwingUtilities2.clipStringIfNecessary SwingUtilities2.setLeadAnchorWithoutSelection DefaultLookup.getIcon And below listed clas...
Maha Lax
1

votes
1

answer
27

views

Laravel 4 DB transactions not committing and rollbacking

I am using laravel 4 and trying to use commit and rollback functions. But functions are not working for me. I am following laravel documentations (https://laravel.com/docs/4.2/database#database-transactions) but still its not working. Here is my code : DB::transaction(function() use ($product) { DB...
Maha Dev
1

votes
0

answer
19

views

How to mediaplayer with media session?

HEllo friend i am new in android creating mp3 player my mp3 works fine they have play pause next and pervious control i want to do same thing using service how implement this thing in service for control media player here my services class can you tell me how can play and pause music using service?...
maha songs
1

votes
1

answer
36

views

Android push notification is not working on 5.0 lollipop device?

Hello friends my push notification is not working on android 5.0 lollipop i tested this code on 6.0 work fine but not working on 5.0 huawei device here code what can i do now please help how to fixed this proble, i am stuck at this step i done almost all step i am beginner Bitmap largeImage = Bitma...
maha songs
1

votes
0

answer
49

views

Android Push notification not working huawei 5.0 lollipop devices how to fixed it?

Hello friends my push notification is not working on Huawei P10 Lite - Lollipop device while its work on 6.0 device here is my code please help me to fix it. Here my notification code: public void show(){ Bitmap largeImage = BitmapFactory.decodeResource(getResources(),R.drawable.dog); PendingIntent...
maha songs
1

votes
1

answer
896

views

Preload sounds played via iPhone AudioServices

I built an iPhone app using AudioServices to play short sounds. The first time a sound is played, there's a delay of half a second or so while the sound loads before it plays. This definitely makes for an awkward user experience. Is there a way to preload sounds for AudioServices to play, or do I...
Maha
1

votes
3

answer
1.5k

views

how can I change the header logo to link to an external website in magento?

I'm trying to achieve the following: our client needs the header logo of his magento site to take him to another website (different domain).. I have tried to alter header.phtml but the link is becoming: www.websitedomain.com/index.php/www.otherdomain.com what I want is simply to navigate to www.othe...
maha
1

votes
1

answer
870

views

place order error in magento

After upgrading my magento installation to the latest (1.6.1.0), I noticed a popup error message at the final checkout stage (when pressing the 'Place Order' button). The message says: 'There was an error processing your order. Please contact us or try again later.' Everytime I try to place an order...
maha
1

votes
1

answer
197

views

How to track logged out users in database table in php?

I'm trying to insert logged out users details in a tracking table(username, ipaddress, logout time, etc..). If a user logs out in a correct way by clicking the logout button, then I can write an insert query in a 'logout.php' page. If a user closes the browser then I can call the onunload() function...
Maha
1

votes
2

answer
1.3k

views

Swipe between Activities by touch in android

how can i let user swipe between pages by touch in android i am using android 2.1 i found this Link but i am not sure ViewPager works with 2.1 ViewPager so i found Viewflipper and ViewSwitcher.is it doing the same thing as Viewpager? Thanks in advance
Maha
1

votes
1

answer
1.8k

views

postfix evaluation using stack

i'am trying to read postfix expression from txt file and evaluate it the input is 10 5 * ,the output should be 50, but it reads only 10 and 5, he can't read the operators neither there ascii code , any help? here's my code #include #include #include #include #include #include using namespace std;...
Maha Khaled
1

votes
1

answer
1.5k

views

How to Learn Flow in CATIA CAA V5 R18 c++

I am new to CAA. I have gone through CAA Documentation. I can find the interface I required for my need but I don't know from where should I query them. In CAA Documentation there is no detailed description of what the Interface is related to. How can I learn the flow.
maha
1

votes
2

answer
296

views

XSLT space separated and adding an element

I have a query in the xml and xslt The below is the Input XML van ind 26% van ind The above is my input file the below is my output file van ind 26 van ind 100 How can I apply the below XSLT to the above XML input?
maha
1

votes
3

answer
280

views

condition checking in xml using xslt

Input XML Sam SR Engineer 10% Sam SR 10% Sam SR Below is the Output Input XML < Employeedetails > < Employeedetail1> < Employeedetail > Sam SR Engineer 10 < Employeedetails > < Employeedetail1> < Employeedetail > Sam SR 10 < Employeedetails > < Employeedetail1> < Employeedetail > Sam SR 10 People f...
maha
0

votes
0

answer
6

views

Golang: Segmentation violation while using github.com/mattn/go-sqlite3

My code so far is very simple, I'm just creating a database by using database/sql and github.com/mattn/go-sqlite3. The compilation completes with no errors, but when I try to run the executable, I get this error: panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV...
Maha Alrasheed
1

votes
2

answer
2.5k

views

JomSocial - Registration Redirection

I am working on jomsocial. I have installed the 'Redirect Registration for JomSocial' plugin for redirecting the registration page to jomsocial registration. I am getting the registration page but once the first step in registration in completed the page redirects to login page showing the message a...
maha
1

votes
1

answer
1.7k

views

.docx and xlsx file not viewing in google docs viewer

Am using Google docs viewer to view documents in my websites. ( https://docs.google.com/viewer ) when I try to view a file using Google docs from my dedicated server domain the file is not viewed correctly only for docx & xlsx I have listed the scenarios below https://docs.google.com/viewer?url=http...
Maha.8622
1

votes
1

answer
829

views

how to display the output in the screen?

I coded everything, when I run the project it's not showing the output on the screen. Can anybody tell me, what's the code used to display the output on the screen? It is the code used in my (not console) application. private async void Button_Click_1(object sender, RoutedEventArgs e) { StorageFil...
maha
1

votes
1

answer
133

views

XML parsing in an Android application

I wrote this code to parse an XML string, but it did not work. There are no errors, but it did not give any output. My XML string: String xml = '' + '{' + 'categoryId'+':1,' + 'Title' +':'+'Rock'+',' + 'songs' +':' +' null}' + ''; The code: try { DocumentBuilderFactory dbf = DocumentBuilderFactory.n...
Maha Mahmoud
1

votes
1

answer
161

views

rails how do I convert a variable into a symbol for use in a JSON string?

Trying to build a JSON string for use with a service and want to pass some of the JSON keys as variables. I've tried: def blah( field, value ) ... body = { request: { field.to_sym value } } and body = { request: { field.to_sym: value } } but get errors in the console. What's the proper syntax here...
maha
1

votes
1

answer
681

views

How to clear All the values in a TDBGrid

I'm trying to create an application with VB6 that contains a TDBGrid. My problem is how can i clear All the values in this TDBGrid.
Maha
1

votes
1

answer
250

views

How to make graphics disappear?

I want to create an applet with a face-drawing game with buttons to change the parts of the face, but I don't know how to use the setVisible(false) to make e.g. an Oval to disappear inside the action listener while it is declared inside the paint method block. //import necessary packages public clas...
Maha Al-Zahrani
1

votes
1

answer
71

views

Unable to start activity ComponentInfo{example.}: java.lang.NullPointerException: println needs a message

java.lang.NullPointerException: println needs a message My code: public class ViewMupuh extends Activity implements OnClickListener { private static String position = null; private TextView textJudul, textLirik; private Button bUpdate; @Override protected void onCreate(Bundle savedInstanceState)...
1

votes
1

answer
110

views

Couldn't login after registration in WordPress

I have a case that I am registering a user with wp_insert_user() and logging in with wp_signon(). Registration is successful but when I use wp_signon(), I get error: 'Invalid username or password. Please try again!'. Here are my efforts, I couldn't find the issue. function wp_create_user_my($usernam...
Maha Dev
1

votes
1

answer
380

views

Commit Storyboard to SVN Through Source Control in Xcode

I'm new in using SVN. I committed my files in Xcode to svn successfully from Mac book, then I checked out the project in iMac, all he files are there but storyboard and few other files are empty and written in red. Also, I can't commit the storyboard only (ctrl+click -> source control -> commit sele...
Maha
1

votes
1

answer
45

views

The button remains pressed after clicking on “ok” or “cancel” in tk_messagebox

I am using the tk_messageBox for an ok-cancel pop-up info message. The message appears when pressing on a certain button Run, yet after clicking on ok or cancel in the pop up info message the Run button is kept pressed (as illustrated in the image attached ) though enabled you can click it on it aga...
Maha
1

votes
1

answer
66

views

Rank 2 caused collective abort of all racks

The code below tries to finds the max number of an array using mpi. However I keep getting the following error: Rank 2 in job 47 caused collective abort of all ranks. Exit status of rank 2 : killed by signal 9 Can anyone please tell me what's wrong? #include #include #include 'mpi.h' int main(in...
Maha Mohamed
1

votes
1

answer
352

views

How to set font-size dynamically in JointJs?

I am developing a JointJs Application,I need to set font-size for a text inside a rectangle. $('#FText,#FTextHeight,#FTextWidth,#FTextSize').on('keyup change', function () { var FtHeight = $('#FTextHeight').val(); var FtWidth = $('#FTextWidth').val(); var FtSize = parseInt($('#FTextSize').val()); va...
Gokul Maha
1

votes
1

answer
340

views

How to set background image for a rectangle in JointJs?

How to set background image attribute for a rectangle in my JointJs application ?
Gokul Maha
1

votes
1

answer
1.2k

views

NullPointerException on CrudRepository

I have created a repository but when I call my repository it gives a NullPointerException everytime. Can someone help me figure out why? My repository @Repository public interface WorkflowObjectRepository extends CrudRepository { @Override WorkflowObject findOne(String id); @Override void delete(Wor...
Maha BenJebara
1

votes
1

answer
1.2k

views

More than one scala library found in the build path when fresh creating maven project in eclipse

I am new to scala. And also first time trying to create maven scala project in eclipse (oxygen 3). First of all, I have eclipse scala plugin installed. Then, I followed instructions given in this post. As given in the post, I installed eclipse-maven plugin from this repo. Then created new maven pr...
Maha
1

votes
1

answer
113

views

Find longest substring not working for a particular test case in c++

Q) Longest Substring Without Repeating Characters Given 'abcabcbb', the answer is 'abc', which the length is 3. Given 'bbbbb', the answer is 'b', with the length of 1. Given 'pwwkew', the answer is 'wke', with the length of 3. Note that the answer must be a substring, 'pwke' is a subsequence and not...
Maha
1

votes
1

answer
32

views

DSE CQL Query for Solr Suggestor

I am using DSE 5.0.1 version. Earlier we used facet query to show search suggestions. For performance reasons , looking for other alternatives to get suggestions and found solr search suggester component. But I couldn't find examples where suggester component is used from a CQL query. Its possible r...
maha
1

votes
1

answer
0

views

Using image as a mask to another

I am a beginner with OpenCV and I have some questions: How can I use one image as a mask to another image? For example, I have an image contains empty circle, and another image contains a circle with content (not empty) and background. How can i extract common parts of the two images in a new image...
Maha
1

votes
1

answer
1.6k

views

Receiving MMS in android and show it in my application as ListView

i am developing an application that should receive MMS from Specific Number.and and i found this code but it is give me a nothing,just hello world TextView any Help will appriacte it package com.wzx.andapp.shh; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; i...
Maha
1

votes
1

answer
73

views

Implementing Classes as dictionary in Python

I found below code at http://pydanny.com/python-dictionary-as-a-class.html. The code works fine and I kind of understand why it does but a similar code, below it gives error. def newclass(**kwargs): ''' Use kwargs.update() method to handle inheritance ''' def set(key, value): ''' Sets key/value to t...
Dev Maha

View additional