Manar Toumi

1

votes
1

answer
54

views

Can python detect whether a shortcut file (.lnk) no longer works?

When you try to open a shortcut file (.lnk) that no longer works, Windows lets you know with a prompt that says: 'This shortcut has been changed or moved, so this shortcut will no longer work properly.' Is there a python code I can use to detect whether such a shortcut no longer works? When I run t...
Manar
1

votes
2

answer
35

views

How do I create a regex that contains a variable and comments?

I'd like to create a regex that contains comments and a variable. I thought I'd split up the string like so, but it doesn't work: import re regex = re.compile(r''' ^(sm\d{5}-[a-z]+-\d{2}) # study number''' + doctype + r'''# document v(\d+)-(\d+) # ve...
Manar
1

votes
1

answer
88

views

How do I display an image on the browser using Java?

I have a web service which returns a BufferedImage value, but I am unable to display the image in my browser, knowing that I have already converted it from byte[] to BufferedImage. I receive a result like following. This is how I convert the byte[] data (I can see the data in byte[]): ResponseEntity...
taha manar
1

votes
2

answer
236

views

How to send data on nextion with python

I would like some help. I'm trying to send a variable to T0. I've tried but I cannot send a variable value. Please help. CODE import serial import time import struct from requests import get ip = get('https://api.ipify.org').text ser = serial.Serial('/dev/ttyAMA0') time.sleep(1) k=struct.pack...
Manar Sakbanie
1

votes
0

answer
888

views

TypeError: Cannot read property 'isSkipSelf' of null Angular 6

I've created a library with Angular 6 and built it succesfully. Once I add a module(AdjudicationHistoriqueModule) to my library module, I get the following error when i build the library: TypeError: Cannot read property 'isSkipSelf' of null at ProviderElementContext._getDependency (C:\Users\taha.man...
taha manar
1

votes
1

answer
2.8k

views

UNIX Shell and History Feature

how to add History Feature in unix shell to allows the user to access the most recently entered command , The user will be able to access up to 10 commands by using the feature. This comment explain the history part from the project: The user will be able to access up to 10 commands by using the fe...
Manar
1

votes
3

answer
597

views

How to store an image in the database using Angular 4 and Spring

I'm using Angular 4 for the Front-end and Spring for the Back-end and I wanna store a user which contains an image in my database. As i know the type Blob exists in Angular 4 but it doesn't in Spring, and the type byte exists in Spring but it doesn't in Angular 4. How can I transfer my image from th...
taha manar
1

votes
1

answer
7.3k

views

Add Custom Tabs to the Magento Customer Admin

I'm working on a new Magneto module. How can I add a new item to my left menu magento admin panel in customer information with a page that shows some data?
Rida MANAR
1

votes
1

answer
1.1k

views

Akka: How to broadcast messages to actors joined in a router using scala

In my application, I'd like to broadcast a time unit every 2 sec to all actors instances of Worker. The time unit is sent by the master to all the workers. I am trying to send a broadcast message to all workers by the master actor, but it doesn't work with me. I attach my test code here. There is a...
Manar
1

votes
1

answer
584

views

Query Expansion lucene

I am new to lucene and I am trying to do query expansion. I have referred to these two posts (first , second) and I've managed to reuse the code in a way that suits version 6.0.0, as the one in the previous is deprecated. The issue is, either I'm not getting a results or I didn't access the results...
Manar
1

votes
2

answer
37

views

How to get the recent record and compare its date with the current date

How to display only one records of customer records who didn't order since last 14 days. I need to sub the last order date from current date and display only who didn't order since 14 days or more. note that date format sorted on database like this: 01-25-2017 and datatype varchr(can't change it)...
Manar Abu Malek
6

votes
2

answer
37

views

os.path.basename() is inconsistent and I'm not sure why

While creating a program that backs up my files, I found that os.path.basename() was not working consistently. For example: import os folder = '\\\\server\\studies\\backup\\backup_files' os.path.basename(folder) returns 'backup_files' folder = '\\\\server\\studies' os.path.basename(folder) returns '...
Manar
11

votes
4

answer
3.2k

views

android : is constraint layout support RTL

what is the best practice to support RTL in constraint layout in android Studio, or should I create A separated layouts one for English and the other for Arabic? English Version The Expected layout with Arabic language The output layout when I change the Device Language from English to Arabic
manar musTapha
11

votes
4

answer
14.6k

views

Why I cannot pass parameters to Android Activity Constructor

I know that I cannot pass parameters to the Activity constructor in android, but I would like to understand why. What I tried to do is: CalorieSelectorActivity csa = new CalorieSelectorActivity(userName); Intent i = new Intent(thisContext, csa.getClass()); startActivity(i); I have defined the class...
Manar Bushnaq
2

votes
2

answer
473

views

How to click a non ID java button in my c# browser?

I have a c# program which has a web browser my program deals with java pages i want it to click a button in a page but the button has no ID or value all i got about it is this code : td class='submit'> please is there any way to click that button and for http://watin.sourceforge.net/ i need a...
Manar Al Saleh
2

votes
1

answer
168

views

Determine Angularjs Controller based on route params

I have the following configuration for my route: $routeProvider.when('/', { controller: 'homeController', templateUrl: 'app/views/main/home.html' }) .when('/:section/:tree', { templateUrl: function($routeParams) { return 'App/Views/'+$routeParams.section+'/'+$routeParams.tree+'.html'; }, controller:...
Manar Husrieh
3

votes
0

answer
446

views

Cannot change cameraFlashMode for UIImagePickerController iphone 4 custom cameraOverlayView

Question: Why imagePickerController.cameraFlashMode always returns 0 on iphone 4 and returns correct values with iphone 5 ? I init my UIImagePickerController and set the cameraFlashMode to UIImagePickerControllerCameraFlashModeOn: imagePickerController = [[UIImagePickerController alloc] init]; image...
manar
4

votes
1

answer
1k

views

GDataXML write file with xmlns namespace

I'm using GDataXML and I encounter some problems to write a XML file. I followed Raywenderlich's tutorial but i have to add some namespaces. for example after this: [FooElement addChild:bar1Element]; [FooElement addChild:bar2Element]; [FooElement addChild:bar3Element]; [FooElement addChild:bar4Eleme...
manar
14

votes
3

answer
62.7k

views

c# How to read and write from multiline textBox line by line?

I have a simple program it has a function to read a line from multiline textBox when i press a button what i made to do that is this code : TextReader read = new System.IO.StringReader(textBox1.Text); int rows = 100; string[] text1 = new string[rows]; for (int r = 1; r < rows; r++) { text1[r] = r...
Manar Al Saleh
2

votes
1

answer
5.2k

views

Custom functions calculated columns mongodb projection

I am trying to use projection to get a column calculated using a custom function on columns in collection but I couldn't't figure a way how to do it. What I could do is this: db.collection.aggregate([$project:{column1:1, calculatedCol: {$literal:[ jaro_Winkler('how to access column name')]}] ) The c...
Manar Husrieh
0

votes
1

answer
1.2k

views

java classloader runtime error in netbeans

When I run my project it shows this error run: `java.lang.SecurityException:` Prohibited package name: java.course at java.lang.ClassLoader.preDefineClass(ClassLoader.java:659) at java.lang.ClassLoader.defineClass(ClassLoader.java:758) at java.security.SecureClassLoader.defineClass(SecureClassLoader...
manar
0

votes
0

answer
352

views

How to install igraph package for python in ubuntu?

I tried to install igraph package for python in ubuntu, and i followed these steps: sudo add-apt-repository ppa:igraph/ppa sudo apt-get update sudo apt-get install python-igraph Then I checked that the igraph module is installed in /usr/lib/python2.7/dist-packages/ but when I import the module in p...
Manar Khaled