on 10 sites


1 answer

How to display specific set of fields

Select tblActivity.RoomID, tblRoomEquipment.EquipmentType, COUNT(tblActivity.Name) AS NumberOfActivities from tblActivity inner join tblRoomEquipment on tblRoomEquipment.RoomID= ...

1 answers | 9 secs ago by el mashrafi on Stack Overflow
0 answers

Powershell OU-validation

function NyChildOU{ $overOU = Read-Host "Type in the name of the parrent OU" $oucheck = [adsi]::Exists("LDAP://OU=$overOU,OU=PS,DC=PS,DC=local") if ($oucheck -eq "true"){ ...

1 answer

Can GPU be used for a general programming?

It seems like for special tasks GPU can be 10x or more powerful than the CPU. Can we make this power more accessible and utilise it for common programming? Like having cheap server easily handling ...

1 answers | 31 secs ago by Alexey Petrushin on Stack Overflow
1 answer

How can I handle errors in functions

I'm programming a web app using Perl and Dancer. The logic is not trivial and I want to separate the web page logic (inside Dancer routes) from the business logic that reads and writes from the ...

1 answers | 51 secs ago by celticman on Programmers
2 answers

Difficulty parsing string to DateTime

The following piece of code gives me the following error: "Unhandled Exception: string was not recognized as a valid DateTime. There is an unknown word starting at index 0." How can I convert ...

1 answer

Java files became encoded

So I'm not sure what the reason is/was, but now (only)two out of my five .java source file are loading in Eclipse as a single row of squares. I opened it in notepad and it showed the encoding (a lot ...

1 answers | 58 secs ago by Phil C. on Stack Overflow
2 answers

Energy curve plotter

I am not much experienced in Python, just write some small script. All my codes are procedural. They work fine, and I always check them with pep8. One of them is: #!/usr/bin/python3 import os import ...

1 answer

Scala: Partition range into subranges

I have a Scala Range and want to partition it into sub-ranges of type Seq[Range] equally (as far as possible). The partition / split factory may not necessarily allow to split the original range ...

1 answer

Magento 2 - how to add action logging?

does anybody know how I can add an action to the Action Log - Report in the enterprise edition? My assumption is to using plugins but I don't figure out how.

1 answers | 1 min ago by mc388 on Stack Overflow
1 answer

Error PRVG-11322 while atempting to install ODAC 12c release 3

I've been trying to install the oracle developper tools with ODAC update 3 (because I need it to work with Entity framwork 6) but the Unified installer bring me a PRVG-11322 Error. It seem to be ...

1 answers | 1 min ago by Remy Grandin on Database Administrators
1 answer

i can't free binary tree correctly, how could i debug it?

I got a binary tree playing the game to guess the user's guess. All worked fine until I tried to free the binary tree. I used the valgrind to check, they give me these: ==8205== Invalid read of size ...

1 answers | 1 min ago by NUO on Stack Overflow
1 answer

displaying loading spinner while jquery calls Controller in ASP.NET MVC

I have a jquery function in my View(Index.cshtml)... <script type="text/javascript"> // call ASP.NET MVC Controller and return value of Checkboxes as string array function ...

1 answers | 1 min ago by H. Senkaya on Stack Overflow
1 answer

cmp - What's the content of FLAGS register after do this compare

if the cpu do: cmp 0x80000000, 0x80000001 What's the content of the FLAGS register? I have thought the process should be like below: do: tmp = -0x80000000 = 0x80000000 (Overflow) result = ...

1 answers | 1 min ago by ATlaS on Stack Overflow
1 answer

How to add prefix and suffix to a string in python

#!/usr/bin/python import sys,re import subprocess def funa(): a = str(raw_input('Enter your choice [PRIMARY|SECONDARY]: ')).upper().strip() p = re.compile(r'.*'+a+'.*') result ...

1 answers | 1 min ago by Rishab on Stack Overflow
2 answers

How to use margins and gravity at the same time for TextView

I'm generating TextViews like this : for(String substring : list) { TextView myTv = new TextView(this); myTv.setTextSize(20); myTv.setGravity(Gravity.CENTER); myTv.setText(substring); } ...

2 answers | 2 mins ago by jason on Stack Overflow
2 answers

Restore shopt -s nocaseglob setting to default in OS X

In trying to make Bash for OSX TAB-Auto-Completion to be Case-insensitive, I followed a suggestion to run these commands: shopt -s nocaseglob bind 'set completion-ignore-case on' How do I restore ...

2 answers | 2 mins ago by Winterflags on Super User
1 answer

Passing numerous variables with .load(). Inconsistent results

I am trying to pass two variables, x and y, to script.php. My alert is working which suggests no issues with the below syntax: $("#element").load("script.php",{dataOne:x,dataTwo:y},function() ...

1 answers | 2 mins ago by Pete on Stack Overflow
2 answers

Objective C: Begin date and end date UIDatePicker

I have two UIDatePickers and two UITextField. One UIDatePicker and textField show the begin date + time. The second UIDatePicker and textField shows the end date +time. The problem i'm facing is ...

1 answer

Change CSS when grid API boolean is === 'true'

I'm using ag-grid which has the ability to add a groupedHeader, so a header which can expand and collapse a selection of sub-headers. On the grid's API is a boolean gridAPI.expanded which returns ...

0 answers

What does try_files do in this nginx configuration?

I copied this config when setting up a basic Nginx / PHP-FPM webserver server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /usr/share/nginx/html; ...

2 answers

Extra white space in the webpage on the mobile devices

There is a weird gap on the right when the website is viewed on mobile devices, How to get rid of it? I want the webpage to fill the entire width of the screen. I know, There are a dozen of question ...

2 answers | 2 mins ago by Lavios on Stack Overflow
2 answers

How to break an array after certain limit in Javascript

Following is my array that I need to break in parts, i.e to break into parts of 2 as shown below - Array to iterate - [ {elem: 1}, {elem: 2}, {elem: 3}, {elem: 4}, {elem: 5}, ...

3 answers

on hovers with parents and child in css

I have a situation in which i want to change the color of my box with the on hover from the container i which this box is found. I found out how to do this through a different question here on ...

3 answers | 2 mins ago by tjapko on Stack Overflow
1 answer

Contained DB Collation error

When changing a database to partially contained I am getting the following error: Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "Latin1_General_100_CI_AS_KS_WS_SC" in ...

1 answer

Reporting Services. Different cell width and height

When I use my report on a server, I get normal width and height (CanGrow is True) of the cell. When I try to save as Excel, I have width of the cell less then I expected. When I try to save as ...

1 answers | 3 mins ago by mihalis on Stack Overflow
5 answers

JavaScript average while loop

The question - Develop a class averaging script that will process an arbitrary number of results each time it is run. Prompt the user for each of the results until he/she types in -1. (A sentinel) ...

5 answers | 3 mins ago by ilumo on Stack Overflow
1 answer

.htaccess mod_rewrite changes page rendering

adding at my .htaccess this rule: RewriteEngine On RewriteRule ^([^/]*)/([^/]*)$ /collection.php?c=$1&p=$2 [L] (for changing: mydomain/collection.php?c=7&p=25 to mydomain/7/25) all my ...

1 answers | 3 mins ago by Ale on Stack Overflow
5 answers

Which way should arrows point for a dropdown button?

In the following images I've animated a button dropdown where the arrow animates to the downward position when displaying the dropdown menu. Wondering if there is any usability studies on this or if ...

1 answer

How to plot 1d C array as surface in python

Say I have a one-dimensional array of size NxN in C which I think of as a two-dimensional array, i.e. every N entries, a new row begins. I would like to visualise this array by laying it onto a plane ...

1 answers | 3 mins ago by Casimir on Stack Overflow
2 answers

How to join tables with SQL query and take number of tied columns?

I'am having BookTable in database (with foregin hey LibID): | BookID | BookName | BookPrice | LibID | ------------------------------------------- | 1 | Book_1 | 200 | 1 | | 2 ...

15 30 50 per page
1 2 3