Majid

0

votes
0

answer
3

views

Range value of raster data varies before and after mosaic implementation

I am trying to raster::mosaic bunch of .tif files extracted from hdf4 MODIS files. My script is working fine but I am puzzled by the range of raster values (min, max) before and after data processing. The original hdf4 rasters are 8 bits integer raster ranged between 0-255 for every individual raste...
Majid
1

votes
1

answer
39

views

Read Values from a file and store it in 2D matrix

I am trying to read values from a file and after some operation write to another file. Here facing a slight issue as I am also trying to save values in a 2D Array and displaying it. My file read and file write are showing correct results but my program throws an exception when it comes to display ma...
Arslan Majid
1

votes
1

answer
35

views

Why matrix to raster shows up rotated?

I am trying to convert a matrix (myMat) to raster data (myRas); however, I am not sure why this rotates all of a sudden. This can be easily fixed by 90-degree rotation using t() but, I will be grateful if someone explains why this unwanted rotation happens all the time?! and if there is a way to pre...
Majid
1

votes
1

answer
6.6k

views

Using Apache common-cli to parse arguments

Apache common-cli has a example on its web site for ls command: options.addOption( 'a', 'all', false, 'do not hide entries starting with .' ); options.addOption( 'A', 'almost-all', false, 'do not list implied . and ..' ); options.addOption( 'b', 'escape', false, 'print octal escapes for nongraphic '...
Majid Azimi
1

votes
0

answer
359

views

How can I use ORM database “Active Android” by Kotlin on Android Studio?

I try to use Active Android (ORM DataBase) in My Kotlin Project But when I save the EditText input , my program always crashes! All program codes are available in Gitlab.com Where is the problem with my codes? and if you know the sources of education in this regard, tell me to come MainActivity.kt ....
Majid ahmadi
1

votes
0

answer
153

views

how to send form data with submit to bootstrap modal

i have a form and I need to send value to bootstrap modal in this page. now i don't know how to type action='' or modal or submit. thanks. First name: Last name: × Modal Header write some code html and php and use form post firstname and lastname in this area Close
majid Peidaei
1

votes
1

answer
552

views

Why the Active Android Library reports this error = Before Android 4.1, … would have incorrectly overridden the package-private method in Drawable

I use the Active Android Library, and every time I launch it, it will be displayed to me in the Logcat (Android Studio) , Error Type = Warning Picture of the complete program error I also want to know if this problem does not cause me a problem like Force Stop The first two lines of program error (W...
Majid ahmadi
1

votes
1

answer
488

views

Remove HTTP header IN PHP [duplicate]

This question already has an answer here: Removing X-Powered-By 8 answers i want to remove Server http header in my php project so that The programming language of my project is not recognizable.(i use apache server) i am try to do this with this topic php.net/manual/en/function.header-remove.php...
majid ghafoorzade
1

votes
0

answer
23

views

How to create api to check application on real android device

Could anyone help me I am storing data in my local server and using API like http://10.0.2.2/file.php its working fine when I run the application on emulator but when I run the same application on the real android device its give error Failed to connect to /10.0.2.2 in the android studio? I tried wi...
Majid Ali
1

votes
0

answer
185

views

How to embed fonts to fast report in MVC

I'm using Fast Report in my Asp.net MVC Project. I used some fonts in my report designer that end user may doesn't have these font in his system. so I have to embed these fonts to report. But I don't know how can I do this. Unfortunately I couldn't find anything to do it. Edit At local all of...
Majid Basirati
1

votes
0

answer
118

views

wifi p2p file transfer android connected device but not transfering

Hello iam stuck in problem since yesterday searched everything anywhere i create application which show device which arre connected to same router wifi , then iam able to connect both device using this exmple https://developer.android.com/guide/topics/connectivity/wifip2p.html#creating-app everythin...
Majid Lakho
1

votes
0

answer
63

views

Cannot get Vipps in payment window

Using the code sample from here, I wish to add payment with Vipps to the payment options, so I added the following key-values as per the documentation to the request: $request['paymentwindow'] = [ 'paymentmethods' => [ [ 'id' => 'paymentcard', 'action' => 'include' ], [ 'id' => 'vipps', 'action' =>...
Majid Fouladpour
1

votes
0

answer
22

views

How can I make a function for SearchCategories In android Fragment?

I have SearchSubCategories function in my android fragment and I am calling this function from MainActivity when SubCategories like food check box click .I wanna search food SubCategories data from my database and wanna set data on RecyclerView.My RecyclerView already showing me data randomly but n...
Majid Ali
1

votes
1

answer
21

views

Get Post id Based on Post Link

I want to convert Wordpress post link to post id. For example I have a post with permalink site.com/the-first-post Now I want to have this post id. Is there such a function : Sample_function('site.com/the-first-post') that output the post id?
Majid
1

votes
4

answer
73

views

How to execute JavaScript in PHP and vice versa? [duplicate]

This question already has an answer here: How to pass variables and data from PHP to JavaScript? 18 answers I have a PHP code and I use some JavaScript code inside just for alerting some text and a variable that I defined inside my PHP code. How can I use my PHP variable in my JavaScript code to d...
Majid
1

votes
1

answer
31

views

How to set a special class or id for a li that contain php code in laravel?

According to this code : @foreach($apps as $app) {{$app->name}} @endforeach I have an app table in my database and Im fetching data from db to here .I want to show the above links details in a modal box so I need to have a specific id or class for each link generated by foreach loop above to open th...
Majid
1

votes
0

answer
65

views

SharePoint calendar CSS is not showing properly

I'm working on SharePoint calendar it is working fine on another site but its not loading CSS in my project showing the below error in chrome console. Do you guys have any idea how to fix this. Refused to apply style from '/sites/new/_layouts/15/defaultcss.ashx?ctag=5' because its MIME type ('text/...
Hira Majid
1

votes
1

answer
46

views

get phone number from contactlist

i need get contact number from contacts i use below code for get contact number in onCreate: buttonSelectContact.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); startActi...
Majid Rostamian
1

votes
1

answer
89

views

how can i change the froala editor default width?

according to this page i should replacing 300px with 0 to disable adding inline style width to the uploaded image in my froala editor. i should adding this code to the some place but , i dont know what should i do ? $('.selector').froalaEditor({ imageDefaultWidth: 200 }); i try ../flora/plugins/ima...
majid
1

votes
0

answer
58

views

Finding the index place of substring in source string of replaced string

In Python, I have a first sting A, I do some replace command for A which changes the length of the string. After all replaces I search for a special pattern in the string I find the place of it. I want to have the index of this substring in my first string A. It is the first index of characters tha...
majid lesani
1

votes
0

answer
25

views

Catch NETCONF Notification on ONOS

I'm working on SDNs and trying so send data from SB to ONOS and I've used NETCONF as its protocol. is ONOS able to get the message when my NETCONF agent sends notofication? if yes, where does it save the messages and how can I access them?
Majid Roustaei
1

votes
0

answer
120

views

IsUserInRole doesn't execute in my CustomRoleProvider

I'm using Form authentication in my mvc project. I've created a CustomRoleProvider and implement two method: IsUserInRole and GetRolesForUser Web.config FilterConfig public static void RegisterGlobalFilters(GlobalFilterCollection filters) { ... filters.Add(new AuthorizeAttribute()); } CustomRoleP...
Majid Basirati
1

votes
1

answer
28

views

CipherInputStream .available() returns ZERO in decryption phase

I'm trying to use encryption tools flexiprovider in my android app by using the example provided for ECIES. When I run the code in my local machine Enc/Dec work without any problem. But when I'm trying to run it as an android app using the android studio, the decryption doesn't work. The Main Activ...
Majid
1

votes
1

answer
68

views

How to compile and run JCUDA in netbeans?

I want to compile and run my jcuda codes in an IDE (Netbeans) on ubuntu 16.04. I've already installed Netbeans, Maven, java and cuda 8.0. For example, I want to run sample of vector add that the java file is JCudaVectorAdd.java and the cuda kernel is JCudaVectorAddKernel.cu. How can I compile and ru...
Majid Salimi
1

votes
1

answer
46

views

React context does not update

I'm using React 16.6 and my goal is to save user information in context. This is my code: import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router, Route } from 'react-router-dom'; import Axios from 'axios'; import './assets/css/bootstrap.min.css'...
Majid Sajadi
1

votes
0

answer
22

views

Calling wizard window from existing opened window in odoo 10?

I am setting up multiple wizards inside main form view. When i click on action type button(Open Wizard), this will open 1st wizard window. This wizard opened wizard also have a button to open 2nd new wizard (Open New Wizard). After performing action on this 2nd wizard. The current Opened wizard(New...
majid
1

votes
0

answer
57

views

Access with intercept-url pattern

I'm trying to implement Spring Security with XML and I used intercept-url tag for access. This is my code: But the second tag doesn't work. User with role GUEST has access to these URLs: /frmWaterFilterReport/secure/api**
majid_shoorabi
1

votes
1

answer
34

views

Cant generate signed apk,kotlin

After upgrading my Android Studio to 3.2.1, I encountered the following problem when creating Generate signed APK: Could not find lint-kotlin.jar (com.android.tools.lint:lint-kotlin:26.2.1). Searched in the following locations: https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-kotl...
Majid Hosseini
1

votes
1

answer
66

views

How to remove data from Many2many field via custom method in wizard in odoo 10?

I have two views : 1. Registration form view 2 Update Registration Wizard view. Models : 1 Registration 2 Members I am setting up a registration process with Many2many fields ('members'). After registration process, a Button (Update Members) showing on Form view. When clicking this button appears...
majid
1

votes
1

answer
31

views

How to save an object of model that have one to one field?

I want to save a comment to any posts by click on button but i receive an error: ValueError at /user_add_comment save() prohibited to prevent data loss due to unsaved related object 'profile_user'. model: class UserProfileInfo(models.Model): user = models.OneToOneField(User, on_delete=models.CASCAD...
Majid A
1

votes
2

answer
25

views

fill some Textbox with user name

I have a problem with chrome, when I login in to my app and move between pages chrome fill some input type='text' with usernames saved in chrome automatically. I think it's for new version of chrome, How to prevent of it? Is there a html attribute that prevent of it?
majid_shoorabi
1

votes
0

answer
25

views

Offending class: javax/servlet/Servlet.class

I am building simple spring application in which I want to call controller from AJAX. But face some issues while using servlet-api. I have added dependency in POM file as I am using HttpServletRequest and HttpServletResponse. javax.servlet servlet-api 2.5 provided If I am not including this jar dep...
Abdul Majid Bajwa
1

votes
0

answer
35

views

ASP.Net Core 2 Ignore JWT authorization for localhost requests

I have ASP.Net core 2 WebApi hosted on IIS which protected by JWT Authorization. Is there any way to allow localhost requests access to API without authorization? i.e requests from nodejs app on same server.
Majid Shamkhani
1

votes
0

answer
17

views

I am not sure which one is correct way to plot graph for T_n=cos⁡(2nπ/1000)

I have typed the coding for the function T_n=cos⁡(2nπ/1000) in r. But not sure which one is correct. The question requires to plot 3 graph which are: (1) Plot T_n for n=1,2,…,1000. (2) Plot 1000(T_n-T_(n-1)) for n=2,3,…,1000. (3) Plot 1000^3(T_n-3T_(n-1)+3T_(n-2)-T_(n-3)) for n=4,5,…,1000....
Fahmida Majid
1

votes
2

answer
673

views

Is it possible to use a pear package without pear itself?

Honestly, I know nothing about pear (... installation and all). But I know that there are MANY useful functions available through pear. I wonder if it is possible to use a source file out of the repository and use it with complete disregard for the rest of pear? What I mean is 'is it technically pos...
Majid Fouladpour
1

votes
1

answer
1.4k

views

Local file access and compiling a greasemonkey script to xpi

I want to provide some functionality through an extension. This requires (read and execute) access to some resource files (an mp3 file, a swf file and two js). I know user scripts cannot access local files and I need an extension (add-on) to do that. But can I start by writing a greasemonkey script...
Majid Fouladpour
1

votes
1

answer
1.5k

views

Play Sound Channels

hi i am creating an audio editor. i want to play audio(wave) channels(R or L) separate. how i can do this.
Majid Hazari
1

votes
1

answer
1.3k

views

Javascript - Set timezone for script instance

In a flot graph depending on the viewers timezone setting the points may or may not fall on vertical grid bars. Actually, only when the local timezone is set to utc the points are on the date bars. This does make sense as the time the sample refers to is not the same clock-time in all timezones. How...
Majid Fouladpour
1

votes
2

answer
1.1k

views

Algorithm to find resource-free slot

I am designing a project management app for a factory. The app is expected to produce draft project plans. To schedule a task, the app should check three conditions: task dependency - do not start before, machine availability, and shift work hours I keep track of machine engagement in machine_alloca...
Majid Fouladpour
1

votes
2

answer
811

views

defer parsing javascript files

i read that defering the javascript files leads to smooth opening of the page and less load time.....using the alert(document.getElementById('p1').firstChild.nodeValue); alert(document.getElementById('p1').firstChild.nodeValue); alert(document.getElementById('p1').firstChild.nodeValue); i am referri...
Abdul Majid

View additional