I want to get a cursor which shows me the 3 employees who earn more. Here is the table, SOU means salary. Nombre ┐Nulo? Tipo ----------------------------------------- -------- ---------------------------- CODI_EMPL NOT NULL NUMBER(3) NOM_EMPL NOT NULL VARCHAR2(20) COGNOM_EMPL NOT NULL VARCHAR2(50) SOU NOT NULL NUMBER(8,2) NOM_DPT VARCHAR2(20) CIUTAT_DPT VARCHAR2(20) CODI_PROJ NUMBER(3) So I want to create a procedure which stores the three employees who earn more, obviously with CURSOR. I do not know here to start, i do not know who the query should be... Thanks in advance!
I have CMake working perfectly fine with Visual Studio 2015. I wanted to try VS Code with C++ and CMake extensions, but when I try to call the build command (configured to F7 by default with the CMake extension for VSCode), I only get the message: command 'cmake.build' not found Is it trying to tell me it can't find CMake ? Because Cmake is installed and working so... I also tried changing in the settings to the full path to cmake with no success. I installed both CMake and CMake Tools from Extensions. Also the toolbar for CMake doesn't appear on the blue VSCode toolbar as shown in CMake Tools
I am using Plyr (https://github.com/sampotts/plyr) to play Youtube videos inline. But i now want to add a poster to the player, so i can use a thumbnail for the video, before it plays. Plyr supports this, but i can not get it to work. I am currently using Plyr in its most simple form: Youtube video: <div data-type="youtube" data-video-id="bTqVqk7FSmY"></div> Initialize Plyr: <script>plyr.setup();</script> Thats it. How can i get the above snippet to show a poster for "/myposter.png"?
Let me start of by saying i just started learning linux. I have a command that keeps processing/loading until i press CTRL+C to cancel/stop the command and remain in session. What i want is to send that command, wait x amount of seconds and then close it programmatically in a single command (cause i can't enter new commands when its loading). Sorry if it sounds stupid, but that would solve my problem. Would really appreciate if someone could've helped me out here, couldn't find anything on google that was working (mostly exiting the session while the command remains loading).
I'm creating a client to server based chat client and every time I setup a server and a client, the server keeps listening for a connection and when the client attempts to connect this error appears [WinError 10054] An existing connection was forcibly closed by the remote host, however the server still listens for a connection. I'm using python version 3.6.1 Script import socket import threading clients = [] s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) mode = input("Enter 1 for server mode and enter 2 for client mode") if mode == "1": def get_ip(): try: stest = socket.socket(socket.AF_
I was surprised this question has not been asked yet. Given an array of integers x = np.random.randint(1,4,10) > array([3, 2, 1, 2, 1, 1, 3, 3, 2, 1]) How can I (easily) change all values according to some systematic rule, such as x[x==1] = 5 x[x==2] = 6 x[x==3] = 7 > array([6, 5, 6, 7, 5, 5, 6, 5, 7, 6]) The rule may be more complex than this, e.g. recode 1=2 and 2=1 so that the order plays a role.
I execute the following in the anonymous execution: Database.executeBatch(new TransferACDCAccountOppOwnerBatch(), 200); The class is below. It uses Batchable interface. I put in a bunch of debug statements but don't see anything in the logs in the console. I also create debug logs at Debug level for Apex, etc. and also don't see any of the system.debug output. The SOQL itself I know works and should only return one row in the developer sandbox test data I setup. Is there something about the batchable interface that doesn't allow system.debug output? I know it's asynchronous, but the job comple
I have tu calculate the sum of first n fibonacci numbers. fib function returns the nth fibonnaci number. But i dont know how to sum only the first n numbers ( n given number ) fib :: Int -> Int fib 0 = 0 fib 1 = 1 fib x = fib (x-1) + fib (x-2) sumFib :: Int -> Int sumFib x = if x == fib x then x+fib x else fib x
I need to develop an app for a client that streams audio files from the network (both Android and iOS). I plan to use react-native-audio-streaming component. Clients biggest concern is that streamed files are not stored locally. Does anyone know is that the case with react-native-audio-streaming?
I have a search box input that opens when an icon is clicked on. I would like to give the input focus when the icon is clicked and call the function addLabel() that adds a label as placeholder text until a “onkeydown” event is fired, at which time it should call the function removeLabel(). Currently, my script adds focus(), but doesn’t acknowledge the other event listeners. Any help would be appreciated! window.onload = function() { <!--create absolutly positioned label as placeholder text for search--> var el = document.getElementById('gsc-i-id1'); var label = document.createElement('label');
I have Integrated PJSIP with android. While making call in my application, the Speaker is working perfectly but Recording microphone volume is too low. My voice is not hearable by other side. Note: But in some mobiles it's working properly. Even i tried with adjustStreamVolume(), setStreamVolume(), setMode(),adjustVolume() methods to increase my volume level, it doesn't increase in anyway. Please give me a suggestion to solve this problem to increasing microphone Volume level in Android or from PJSIP.
I have a model like this one below: @Entity(name = "request") public class VisitRequest { @Id @GeneratedValue private Long id; @OneToMany(mappedBy = "visitRequest", cascade = CascadeType.ALL, orphanRemoval = true) @JsonManagedReference private List<Visitor> visitors; //default constructor, getters and setters } @Entity @Inheritance(strategy = InheritanceType.JOINED) @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "class") public class Visitor { @Id @GeneratedValue private Long id; @ManyToOne @JsonBackReference private VisitRequest visitRequest; //defau
I'm vague on the details of JSONP, which doesn't appear to be a proper specification at all. I am writing a Perl client to communicate with a server that has a WebSocket JSONP API. Do I need to use JavaScript to specify the JSONP callback, or can it be done in another way?
I am using the following code to get a result but for some reason I am getting this error: Error on line 1: Content is not allowed in prolog. (line 134, file "Code") which in this case is var xmlResult = XmlService.parse(result).getRootElement(); var xml = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:v1=\"http://openclinica.org/ws/studySubject/v1\" xmlns:bean=\"http://openclinica.org/ws/beans\">" +"<soapenv:Header>" +"<wsse:Security soapenv:mustUnderstand=\"1\" xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
I am trying to set up an Azure webjob which unzips files passed to it. I am using an npm package node-7z to achieve this but I am having trouble getting it to work on windows machine. Apparently, adding a 7z.exe file on the same level as the package.json should work but it doesn't seem to do the trick. If anybody has managed to configure node-7z for windows setup, could you please advise on how to resolve this matter.
I am writing a PowerShell script in version 5.1 on Windows 10 that gets certain pieces of information about a local system ( and eventually its subnets ) and outputs them into a text file. At first, I had all of the aspects in a single function. I ran into output issues when outputting getUsersAndGroups and getRunningProcesses functions, where output from getUsersAndGroups would be injected into the output of getRunningProcesses. The two functions are: # Powershell script to get various properties and output to a text file Function getRunningProcesses() { # Running processes Write-Host "Runnin
I have two lists stored in variables: $list1 and $list2, for example: $list1: a b c d $list2: 1 2 3 4 How do I merge them together line by line so that I end up with: a1 b2 c3 d4 I have tried using array (@) but it just combines them one after the other, not line by line, example: $list1 = @(command) $list1 += @($list2)
I use an extension on VS Code Market, but I think that it does not meet my needs. I want to customize it. But I have been confused for publishing npm package to VS Code market. Who can tell me more details?
I have generated a csv file using the below query, but all column data are coming in one column in the csv file. Please help me to separate these column data. create or replace procedure csv_generate as CURSOR c1 is SELECT * FROM emp; v1 c1%rowtype; z1 VARCHAR2(2000); z2 VARCHAR2(2000); f1 utl_file.file_type; BEGIN FOR i IN c1 loop --play(i.ename); f1:=utl_file.fopen('TEST_DIR1','out.dbf','W'); z1:=i.empno||' '||i.ename||' '||i.JOB||' '||i.sal||' '||i.deptno; z2:=z2||chr(10)||z1; utl_file.put_line(f1,z2); utl_file.fclose(f1); END loop; --utl_file.put_line(f1,z2); END;
I'm trying to figure out how to drop jcmd.exe on a windows server installed at a client site so that we can troubleshoot heap and thread issues. Don't really want to install the full JDK since it complicates the environment. jcmd.exe definitely wants some components from the JDK to run, but I'm unable to determine which ones. If I can get it down to a small set that we unzip into a folder, use it to capture data, and then destroy, that would be perfect. Anybody know what JDK components jcmd needs to run?
One of the most famous features of IDEs is as you know finding references (or usages) of variables, functions or classes in a project. I have been trying Atom Atom) for a while. I like it so far. But, I could not find a way to access to references (or usages) of var/function or a class in JavaScript code. Isn't this feature available in Atom editor? I give two examples below. a) In the following simple code, Atom does not take me the declaration of "title". I am making "Go to Declaration" by right clicking on the word "title" Template.docAddForm.events({ 'submit .js-add-doc':function(event){ c
Does any one know how to install asterisk on mac? I am new to voip so please guide me from basics like what software/ command line tools would be needed. I do tried to search it on google but couldn't found any doc with the proper steps. You can also provide link of tutorial. Thanks in advance.
Building a web app using angular 2, (or 4). Want to send a message through Whatsapp. This works fine whatsapp://send?text=hi! to open Whatsapp from the browser. I want to send the URL of the current page. I can use {{url}} to print the URL on the web page but I don't know how to set text={{url}} if you know what I mean. relevant part of the component export class ActivityDetailsComponent implements OnInit { @Input() activity: any; @Output() close = new EventEmitter(); error:any; navigated = false; sub: any; imageURL: string; location:Location; url: any; constructor(private activitiesService:Ac
I am new to regex and I am trying to substitute some characters for asterisk in php like below: email: [email protected] -> v****r@g***l.com I have done this: $email = preg_replace('/(?:^|@).\K|\.[^@]*$(*SKIP)(*F)|.(?=.*?\.)/', '*', $linha['cli_email']); The problem is that the output is v*****@g****.com instead of v****r@g***l.com and I don't know how to show the last for the username and last for the email provider.
I recently got to know about ES6 proxies but I don't see a good reason to use it. I mean, everything that one could do with Proxy can be done without it, except if I'm missing something. For example, most folks talk about validation when it comes to proxy but one could apply some JS goodness to validate and everyone is fine. I would appreciate if someone could open my eyes to some major use cases of Proxies. Thanks!
I'm new to using ORM in dealing with database, Currently I'm making a new project and I have to decide if i'll use Entity Framework or Dapper. I read many articles which says that Dapper is faster than Entity Framework. So I made 2 simple prototype projects one using Dapper and the other uses Entity Framework with one function to get all the rows from one table. The table schema as the following picture and the code for both projects as the following for Dapper project System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); sw.Start(); IEnumerable<Emp> emplist = cn.Query<Emp>(@"S
Inside org.springframework.data.jpa.repository.@Query annotation I check if field in a collection and possibly ignore collection if it is empty: @Query(""select e from #{#entityName} where e.type in :lst or 0 = :lstSize") List<Entity> findByLst(@Param("lst") List<XEnum> lst, @Param("lstSize") int lstSize); I call code as: List<XEnum> lst = ...; int lstSize = (lst == null) ? 0 : lst.size(); findByLst(lst, lstSize); For Oracle DB in case of lst = null Hibernate logged: DEBUG [nio-8443-exec-4] org.hibernate.SQL entity0_.type in (?) or 0=? TRACE [nio-8443-exec-4] org.hibernate.type.EnumType Bindin
I have my table that gets generated based on what's in the database and would like to add the ability to sort the table based on particular columns. I tried looking online but since the table isn't static, I'm not sure how to properly add in the ability to sort. <table class="table" style="border: 3px solid black;"> <thead> <tr> <th style="border-left: 1px solid #eee;" class="align-middle">Select</th> <th class="align-middle">Col1</th> <th class="align-middle">Col2</th> <th class="align-middle">Col3</th> <th class="align-middle">Col4</th> </tr> </thead> <tbody> {% for row in data %} <tr> <td><
I am writing microservices with Java. At the end, I run maven build to generate a Docker image based on a Dockerfile in directory [project-root]/docker. Some files need to be copied into the Docker image. Therefore I have the following lines in my Dockerfile: # HDFS base image FROM mdouchement/hdfs COPY ${workdir.name} /${workdir.name} COPY ${resource.dir} /etc/hadoop Variables workdir.name and resource.dir are defined in pom.xml <properties> <workdir.name>javarun</workdir.name> <resource.dir>${project.baseUri}/src/main/resources</resource.dir> </properties> While first copy command uses relat