Alireza

1

votes
0

answer
6

views

change entity framework core code first migration name format

ef core using system calendar format for generating migration names. example of standard migration name for the Gregorian calendar on windows: 20190206144020_MIGRATION-NAME But if the date format of Windows is something other than the Gregorian, like Persian calendar the ef core migration name gene...
AliReza
1

votes
1

answer
49

views

runtime.getruntime.exec does not recognize executable file

I am using Runtime.getRuntime().exec() method for running 'optimathsat.exe' file. My code is like public boolean runOptimathSat() throws InterruptedException { boolean runSucceed = false; smtInputFileDirectory = getInputDirectory(); txtOutputFileDirectory = getOutputDirectory(); optimathsatDirectory...
1

votes
2

answer
32

views

ggplot does not draw line for all of the levels of categories in the data set

I used this code to draw the percent of people in poverty in state of Maine. This state has 17 counties. ggplot only shows 14 of them: ggplot(data=data_ME, aes(x=Year, y=PersonsinPoverty, group=Countyname, shape=Countyname, colour=URBAN)) + scale_shape_manual(values = c(1:17)) + # Set...
Alireza Ebrahimvandi
1

votes
1

answer
235

views

how to download a file with its cookie and URL?

I have a big problem downloading .xlsx files from a site automatically. I have tried the following code and cookie is ready: Dim request As HttpWebRequest = CType(WebRequest.Create(('http://www.trademap.org/Country_SelProduct_TS.aspx?nvpm=1|||||0101|||4|1|1|1|2|1|2|1|1')), HttpWebRequest) request.Co...
Alireza Allahdadian
1

votes
0

answer
93

views

Form Submit Not Work in MVC 5 Project

My Submit Form Button Not Working .. When I press on Login Button Nothing Happens ... I had set breakpoint in my code and Login Post Action not Called after Submit Button Click . I can fix my problem with JQuery ajax codes but I don't want use JQuery Ajax for submitting Form ..I want to understand...
Alireza Askari
1

votes
0

answer
215

views

How to create an instagram bot for like and comment a list of pages using asp.net mvc basically?

I'd like to create an instagram bot for like and comment posts as posted with asp.net technology. What's the start to end route?
1

votes
0

answer
45

views

Error 29 13 in android studio

This is my error : Error:A problem occurred configuring project ':app'. Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not resolve com.android.support:appcompat-v7:22.2.0. Required by: Firstbook:app:unspecified Could not resolve com.android.support:appcompat-v7:22.2...
Alireza Eftekhari
1

votes
1

answer
825

views

how to get tcp client ip and port in c# and show that?

I want to get tcp client ip address and port but I can't to do that.I want to use socket in my code except tcp listener class and my goal is get client ip and port without this class. below is my code:(I want to get client ip address and port before if(rc){} condition) namespace Example { public pa...
1

votes
1

answer
184

views

Respond to a Packet Received in The NetFilter at Kernel

I'm working on Linux 4.13.x. And I'm considering to send a packet response in the kernel. Consider an echo TCP or UDP server running in the userland and there is also another node running a TCP or UDP client. Clients are sending requests to the server. I want to send the packet response back to the...
Alireza Sanaee
1

votes
2

answer
47

views

Add Shourtcut for a menuItem in vaadin 8

How can I add a shourtkey for a menuItem in vaadin 8 (8.3)?
Alireza
1

votes
0

answer
341

views

python3 win32serviceutil Error 1053: “The service did not respond in a timely fashion”

I use win32serviceutil from pywin32 to create win service using python3.6.4 and i can not run it from services because of this error : PS C:\pytest> net start MyService2 The service is not responding to the control function. More help is available by typing NET HELPMSG 2186. PS C:\pytest> net helpms...
alireza
1

votes
0

answer
51

views

null php string to json

this is my code $token=file_get_contents('http://127.0.0.1/adsl/token.php?username=1350&password=3dddddddd'); $useragent = 'Apache-HttpClient/UNAVAILABLE (java 1.4)'; $url='http://adsl.tci.ir/api/webservice/'; $arrSetHeaders = array( 'User-Agent: $useragent', 'Connection: keep-alive', ); $post='data...
Alireza 271
1

votes
1

answer
257

views

Copy Data from one entity subgrid to another entity subgrid

We have a Dynamics CRM 2011 of Microsoft. In my Opportunity entity, I enter another entity data named special services. Every Opportunity can have multiple special services, so Opportunity has 1:N relation with special services (opportunity as primary entity) We all know that Opportunity has 1:N rel...
Alireza
1

votes
0

answer
44

views

why python string has both index and find

I know the only difference between find and index methods is that, find returns -1 when it does not find the substring while index raises an exception. Why we need both index and find? while find works as well as index.
Alireza Mn
1

votes
0

answer
27

views

updating all element's which have text instantly after localization

I have a problem with localization I want to use be able to change language off app between English and Arabic I know that at the first I must have two localization.strings one for 'en' and one for 'ar' and when user clicked at the button i change path of bundle [https://i.stack.imgur.com/1V0PP.pn...
Alireza aj
1

votes
0

answer
18

views

resolve bigbluebutton repository in ubuntu

i am iranian ubuntu user and Iran is in sanction. i want to add some foreign repositories in my ubuntu server i got many ign in my apt-get update how can i solve this problem??? foreign repository is bigBlueButton if any way is to resolve this problem tell me please!!!
1

votes
2

answer
30

views

which one is more important : optimize database size or make less process

in my laravel project i have many users who have ads and each ad have some keywords : users->ads->keywords (with 3 tables in database) state 1 : make this with just 2 relation between users/ads and ads/keywords in this case when i want to access all keywords of a user i should first get that user ad...
1

votes
4

answer
125

views

laravel where with like operator and percent doesn't work

In laravel 5.6 I have $ads $ads=Ad::whereIn('type',$type)->orderBy('id','desc')->get(); and its value look like this : [ { 'id': 50, 'title': 'sssss', 'description': 'Et enim provident. Eos animi illum ullam eaque aut.', 'created_at': '2018-06-06 18:12:43', 'updated_at': '2018-06-06 18:12:43' },.....
1

votes
0

answer
165

views

Disconnect incoming call programmatically in android Nougat Api 24

I'm going to use endCall method of ITelephony.aidl to disconnect all incoming calls programmatically. This is my BroadcastReceiver: public class CallBlocker extends BroadcastReceiver { String number; @Override public void onReceive(Context context, Intent intent) { if (intent.getAction() != null &&...
Alireza Noorali
1

votes
0

answer
155

views

Invalid command 'PassengerAppRoot', perhaps misspelled or defined by a module not included in the server configuration in cpanel apache host

the server return bellow Error when i run the Django in my cpanel host ? what should i do ,Please? Invalid command 'PassengerAppRoot', perhaps misspelled or defined by a module not included in the server configuration
Alireza
1

votes
1

answer
35

views

Laravel eloquent eager load two pivot tables

I'm trying to eager load one attribute which is spliced through a group and another table with additionally related pivot. Here's are tables: Categories -------------------- id Attributes -------------------- id attribute_set_id Attribute_Groups ---------------------------- id Categories_Attribute_G...
1

votes
1

answer
56

views

search an aar file name in libs with java or kotlin

I try to search my libs content in Android project for a specific AAR file name with java or Kotlin code. I searched a lot but can't find an answer. I appreciate your help.
Alireza
1

votes
1

answer
240

views

Implicit conversion of T to ActionResult<T> does not work for some types

In asp.net core 2.1, AsctionResult is introduced, and an implicit type conversion is defined from T to ActionResult In my code, I get an error for some conversions. For instance: Error CS0029 Cannot implicitly convert type 'System.Collections.IEnumerable' to 'Microsoft.AspNetCore.Mvc.ActionResult...
Alireza
1

votes
1

answer
41

views

CRM 2011 call Ajax gives Bad Request Error

We have CRM on-premise installed on Local Network. I wanna change state and statusreason of salesorder ( Order entity ). I saw this link. And I call the function in this way ( change status to Canceled and statusreason to No Money: var recordGuid = Xrm.Page.data.entity.getId(); setRecordStatus ('sa...
Alireza
1

votes
1

answer
42

views

Cannot change created custom Status Reason via JavaScript

I have changed salesorder entity and create a new status reason in Submitted. I have added a status reason named PreTransport in submitted state, with value 100000004. I can go from Active state(pending status reason) to Submitted state(In-Progress status reason) via this request : var request = ''...
Alireza
1

votes
1

answer
82

views

Typescript indexed access in which index is queried from another property of the same interface

An example demonstrates my question, way more better than words: interface X { a: number, b: string } interface Y { u: keyof T, v: T[this['u']] } const y: Y = { u: 'a', v: 'this should be a number' }; I want the type of v to be based on value of u. I mean if u (which should be a key of X) is a, then...
Alireza Mirian
1

votes
2

answer
117

views

Cannot access statecode or statuscode of related Entity Via JS

Hi All Experts ( I will be someday, soon ! ) Here is a question. I wanna get statecode or statuscode of related Pricelevel ( Price List entity ) within the Quote Entity.( Related one ) I have tried JS this within Quote entity( OnLoad) : var priceLevelStatusCode=Xrm.Page.getAttribute('pricelevelid')...
Alireza
1

votes
1

answer
28

views

Reference the subgrid in quote entity after revised with the same data

I Have a Subgrid in Quote entity, in which there are records of my custom entity, And also the custom entity display in left side of the form,Because the custom entity has N:1 relation with quote. Every Quote can have many of my custom entitiey records. It is ok,But when I revise the Quote, I want...
Alireza
1

votes
2

answer
45

views

Radio Button not working well

I create a radio button with yes/no value. when choose yes then a text field is required and it working good. but when I choose no then text field is hide but the save button not working. script code: $('input[name='master_study']').click(function(e){ if(e.target.value == 1){ $('#university_name').s...
AliReza Eshaqi
1

votes
2

answer
308

views

laravel 5.6 random error “The page has expired due to inactivity”

My Laravel 5.6 project was working well. But suddenly when I try to login sometimes it says The page has expired due to inactivity. and sometimes it login properly with out any error. For example I go to page 127.0.0.1:8000/login...submit login form and get that error. I refresh the 127.0.0.1:8000/l...
1

votes
0

answer
51

views

Getting timedout during smtplib.SMTP(“smtp.gmail.com”, 587) in Python

The following code is working perfectly in another computer: def send_email(user, pwd, recipient, subject, body): #lb.send_email('[email protected]','P&ENLAMS','[email protected]','Test','This is a test') import smtplib FROM = '[email protected]' TO = ['[email protected]'] # recipient if isinstance(reci...
Alireza Asadi
1

votes
1

answer
106

views

Failed to load .so in android studio

I wanted to load a .so file: System.loadLibrary('example'); but i faced with this error!! this is the error: FATAL EXCEPTION: main Process: com.name.ex, PID: 30737 java.lang.UnsatisfiedLinkError: dlopen failed: file offset for the library '/data/app/com.name.ex-1/lib/arm/example.so' >= file size: 0...
Alireza
1

votes
0

answer
110

views

how to generate microsoft visio file with diagram in apache poi?

I want to generate visio diagram in java with apache poi. I have some search and can not find any good example for do this. I want to create uml diagram and export this diagram to a visio file. What is the best solution for this reason ?
Alireza Khajavi
1

votes
1

answer
144

views

How Integrate vpn or proxy to the telegram source code?

i live iran and telegram for iran is blocked.i have a telegram source cod eand i want creat app can connect without other vpn app.how can i add proxy to my unofficial telegram source code? or is a library of vpn to add at the source code? im basically please help me completely. thanks
Alireza Hatami
1

votes
2

answer
24

views

multiply or dividing doesn't works correctly when the second number is negative

im trying to write windows 7s calculator but i have problems just in multiply and divide. here im writing the codes that are connected to multiply so you can get the reason. double input1; double input2; double result; string amalgar; amalgar means + or - or * or / private void button14_Click(object...
Alireza
1

votes
1

answer
20

views

Removing unwanted White Padding at the right side of rows in body on macOS' Safari

if you open https://cut-rate.ir in safari, there will be a white space at the right side of rows in website. with a few zooming in and zooming outs, it will be gone! i couldn't fix it on css. how can i fix this? the website is rtl, and it is tested on safari 11 and 12. no problem on iOS Safari.
Alireza Al
1

votes
0

answer
94

views

Why is the textbox so slow in MATPLOTLIB?

I have prepared a GUI in matplotlib and it has multiple graphs and one textbox The textbox receives a value from the user and the graphs will be updated. The problem is that the textbox is so laggy and takes a lot of time to be updated when the user clicks on it. This is the command I am using te...
Alireza Soroudi
1

votes
2

answer
41

views

Selecting number in column “x” randomly to achieve desired number

I have numbers in a column (i.e., 1 to 10 in column A) and a few numbers in another column (i.e six numbers in column E). I want to place numbers of column E in column B randomly, so that absolute difference between An and Bn is more than my desirable number (D1). I used RandomSelection function: Fu...
alireza taghizadeh
1

votes
1

answer
42

views

The type or namespace name could not be found in Developing Dynamic CRM 2011

I had to do some reveres engineering. Anyways, I developed a plugin for Dynamic CRM 2011 based on the decompiled plugin. Refer to this link. I create a new Class Library, I solved most of error. But some errors exist,One of them is the most repeated ! Everywhere that entity repository has called,for...
alireza azadi
1

votes
2

answer
23

views

How to use specific item's name in JSON to receive other data from that item

for example, I have this JSON file: [{'name':'Name1', 'value':24, 'min':10, 'max':16, 'rate':108}, {'name':'Name2', 'value':69, 'min':0, 'max':6, 'rate':122} ] and i have decoded it into a array using: $json = json_decode($jsondata, true); now I want to get the value of the 2nd item by using its nam...
Alireza Tbp

View additional