Anyone who knows me will happily inform you that I am, as my username implies, rather tech obsessed. I'm not a happy geek when it comes to smartphone cases though, and it's been a long time since I've been able to say I've got the perfect case for my current device. Way back, when I carried an iPhone 5, I swore by my Otter Box for protection. It was bulky, but you could probably drive a tank over it with confidence. The thing is, the iPhone was tiny by comparison to the Samsung Galaxy S8+ that I am using these …

Member Avatar
+1 forum 0

I got a new case (Thermaltake View 27) and I'm having trouble undoing the screw on the PCI shield thing where the GPU should be. I can undo all the other screws except this one. Can anyone provide tips on how I can go about getting it loose so I can unscrew it?

Member Avatar
Member Avatar
+0 forum 4

Group, I've got a complex If/Then statement that may require the use of "Select Case". However I'm not familiar with how "Select Case" actually works. Needless to say, I'm not sure if you can use it within an "If/Then" statement. Here's what I need to do: If row > 7 And IsNumeric(Microsoft.VisualBasic.Left(txtLine, 2))_ And (Microsoft.VisualBasic.Mid(txtLine, 18, 1)).Contains("G", "T", "C", "W") Then_ Go Do something constructive Else Go do something else End If. To explain, I'm reading some specific characters from a line in a text file. In the second part, I'm reading one (1) character and need to determine if …

Member Avatar
Member Avatar
+0 forum 4

This time just a simple example of grading scores (0 - 100) with letters (A - F). Two approaches are presented, one using switch/case in an "on the fly" function, and the other uses the score as an index to a string of letters F through A.

Member Avatar
Member Avatar
+1 forum 1

angular .module('abc') .factory('dashboard', dashboard); function dashboard($http, notifier) { var service = { getAllMasterJobsNames: getAllMasterJobsNames }; return service; function getAllMasterJobsNames(request) { return $http.post('/JSONServices/JSONCampusManagementService.svc/GetAllMasterJobsNames', request).then( function (response) { if (angular.isUndefined(response.data) || (angular.isDefined(response.data.IsException) && response.data .IsException)) { notifier.error('Error fetching the Active Events : ' + JSON.stringify(response)); } return response; }, function (response) { notifier.error('Error fetching the Active Events : ' + JSON.stringify(response)); return response; }); } } })(); service.js 'use strict'; describe('dashboardService', function () { var dashboardService; beforeEach(module('abc')); beforeEach(inject(function (_dashboard_) { dashboardService = _dashboard_; })); it('getAllMasterJobsNames method should defined and should return promise', function () { expect(dashboard.getAllMasterJobsNames).toBeTruthy(); expect(dashboard.getAllMasterJobsNames.name).toEqual('getAllMasterJobsNames'); expect(dashboard.getAllMasterJobsNames(0)).toEqual({$$state:{status:0}}); }); }); any one …

Member Avatar
+0 forum 0

SQL Gurus, help !! I have a table with 3 fields, ID, Answer_5, Answer_6. Answer_5 & Answer_6 both hold a date value, but the fields are defined as string (for other reasons). In Answer_6 it is possible to have the string of 'Now'. I am trying to do a simple select as follows, changing fields on the fly to make 'Now' equal today's date: select id, answer_5, CASE when answer_6 = 'Now' THEN cast(GETDATE() as date) when answer_6 is NULL then cast('01/1990' as date) ELSE cast(answer_6 as date) END AS new_answer_6 from tDataMult I get "Conversion failed when converting date …

Member Avatar
Member Avatar
+0 forum 3

I have to create a program that asks a person to enter a 2 digit number (10-99) and convert it into words. I've been working on this for days and I still don't see what I'm doing wrong! PLEASE HELP ME!!! EXAMPLE: 27 twenty-seven [CODE]#include <iostream> using namespace std; int main() { int num; int ones_digit = num%10; int tens_digit = num/10; cout << "Enter a two-digit number:\n"; cin >> num; if (num>=20) && (num<100) { switch (tens_digit) { case 2: cout << " twenty- "; break; case 3: cout << " thirty- "; break; case 4: cout << " …

Member Avatar
Member Avatar
+0 forum 8

I have a table that logs customer data but i want to search for the customer, upon finding that customer i want to click on the name and find it in another table that store other data. But here is where i am stuck i want to check which table the record is in and then display it. Is there anyway to do that. like using an IF statement or case. The criteria would be based on equipment type as the two other table stores data based on the type of equipment. Any help or reference would be good

Member Avatar
Member Avatar
+0 forum 2

Hello everybody! I'm trying to count the number of occurrences of each word in a text file. Problem situation requires to realize menu using "switch" statement (If file exist or not). There are following errors in my program ("case b" and "default" is not working): **[C++ Error] 03_int.cpp(61): E2126 Case bypasses initialization of a local variable [C++ Error] 03_int.cpp(72): E2238 Multiple declaration for 'w' [C++ Error] 03_int.cpp(50): E2344 Earlier declaration of 'w' [C++ Error] 03_int.cpp(83): E2126 Case bypasses initialization of a local variable** #include <fstream.h> #include <iostream.h> #include <map.h> #include <string> #include <cstdlib> #include <iomanip> #include <conio.h> typedef std::map<std::string, int> …

Member Avatar
Member Avatar
+0 forum 8

As I stated when [reviewing the Minisuit 3-in-1 Folio Case](http://www.daniweb.com/hardware-and-software/tablets-and-mobile-devices/reviews/477039/review-minisuit-3-in-1-keyboard-folio-case-nexus-7-2013#) for the Nexus 7 2013, the most important things a writer looks for in any keyboard are key travel, spacing and feedback. Obviously a travel keyboard throws some additional requirements into the mix such as weight, size and battery life. However, when it comes to the single most important factor for me personally, and that's key spacing, the Minisuit Ultra-Thin Aluminium Bluetooth Keyboard Cover falls flat. There is simply no spacing at all, the keys just seem to merge together and it is very hard indeed not to hit the …

Member Avatar
+1 forum 0

For a professional writer of any description, there are three things that matter when it comes to the keyboard that they are using: key spacing, key travel and key feedback. The Minisuit 3-in-1 Folio manages, as far as any such small keyboard is ever going to achieve, to get the key spacing and feedback right. The scrabble tile keys are far enough part, in that there is sufficient gap between them and above/below them to prevent too much mis-keying. This is the bane of most travel keyboards, the keys are badly spaced and you end up making so many typos …

Member Avatar
+1 forum 0

I saw lots of old threads on this problem but could not find a solution so I thought I would share my experience and solution. Hi, I just had a problem that my cpu and case fans would not switch off after shutdown. It turned out to be a dvi-d connector for my graphics card from a vga monitor. It had an option for a usb power boost I.e I could plug the micro usb end into the adaptor and the other into a normal usb to provide power to initiate the diplay. It seems I did not need to …

Member Avatar
+3 forum 0

So we were asked to reproduce the function generator and oscilloscope as a virtual instrument for our final exam. But I'd like to focus on the function generator. The audio generator GW Instek GAG-809/810 has only a single button for the waveform wherein the user would just press it repeatedly to show the desired waveform (i.e., sine wave, square wave). Yeap, the audio generator only have the two waveform but our professor wanted us to add the generator's feature, that is, for the users to be able to display the wave into sawtooth and triangle wave. So how do we …

Member Avatar
Member Avatar
+0 forum 1

I only have experience using pretty basic Oracle. However, I'm now in need of a better understanding of SQL. I'm trying to write a query using CASE statements (as this seems to be the best approach), but am admittedly lost at the moment. Here is what I have as a basis: SELECT LEFT(ITEM_A, 4) AS "PREFIX", SUBSTRING(RIGHT(ITEM_A, 12), 5, 2) AS "SUFFIX", RIGHT(ITEM_A, 16) AS "INGREDIENT" FROM THE_TABLE WHERE ITEM_B = 'VAL1' AND ITEM_C = 'VAL2' GROUP BY ITEM_A ORDER BY PREFIX ASC, SUFFIX ASC This is yielding a good result set for evaluation. Now, I need to determine which …

Member Avatar
Member Avatar
+0 forum 4

Nice to meet you, i am a newbie i would like to ask a question that bothers me out : 1).How to add the decimal representation of N! (5 <= N <= 1,000,000) is simply the multiplicity of the prime factor 5 in N! to my script? 2). I wanted to ask how the output of case#3:118 became case#3:27,whether the problem is string or an Integer? and how to solve it? Could you help me out. thanks here's my code code: Package test; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class test { String trailing; String y; /** * @param …

Member Avatar
Member Avatar
+0 forum 3

Diggit, is funded by the local authority in the Greenwich area. The project is to take young people who are seen at risk of offending and involve them in helping to look after the gardens of the elderly. A young person can be referred to the project from a number of different sources. Typically these would be by a school, the youth offending service, the police, or youth clubs. Elderly people with a need for help with their gardens are referred to Diggit also from a number of different sources, e.g. the local authority or a charities working with the …

Member Avatar
Member Avatar
+0 forum 1

Hi, I'm sorry if I had post duplicate post. I had join this 2 table (dt_dict_tbl - store dictionary, sdn5_5 - store accumulate value for reporting). Here the table structure **dt_dict_tbl** CREATE TABLE `dt_dict_tbl` ( `dtDictCode` VARCHAR (30), `dtDictDesc` VARCHAR (600), `rptCode` VARCHAR (30), `rptSubCode` VARCHAR (30), `dtCreatedDate` TIMESTAMP , `dtColumnName` VARCHAR (150), `sort` DOUBLE ); **sdn5_5** CREATE TABLE `sdn5_5` ( `idTbl` DOUBLE , `year` DOUBLE , `program` VARCHAR (30), `typeQuantity` VARCHAR (30), `Quantity` VARCHAR (300), `updateDate` TIMESTAMP ); For column program and typeQuantity, it will read info from dt_dict_tbl; So for reporting i had try below query (i just …

Member Avatar
Member Avatar
+0 forum 2

Hi All, I am pulling out info from my db and need to tjeck if a column is 0, if it is then i need to SUM 3 other columns and pull out that total. I want to use the CASE keyword and tjeck for this, but am doing something wrong, as I keep getting an error. This is my code: $sql = SELECT pris, skin_year, ialt, CASE ialt WHEN 0 THEN ialt = SUM('ær,vedrur,lamp') END FROM skind_statistik WHERE kunde_id = x Gives my a syntax error.. Ialt default value is set to zero, and the datatype is an integer. …

Member Avatar
Member Avatar
+0 forum 2

**Bold Text Here**a program hat can convert uppercase characters to lower characters

Member Avatar
Member Avatar
-2 forum 5

I am looking at http://www.w3schools.com/jsref/jsref_replace.asp and the specific example at: http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_replace3 var str="Mr Blue has a blue house and a blue car"; var n=str.replace(/blue/gi, "red"); And the result of N would be: Mr red has a red house and a red car I want the result to be: Mr Red has a red house and a red car With the first-replaced occurance to be capitalized like the original text to be replaced. Is there a way to do this?

Member Avatar
Member Avatar
+0 forum 1

I have no problem of putting a break statement in the default option of a **switch case** statement, just wondering why it is needed. Anyone any ideas? int a = 42; switch (a) { case 1 : case 2 : //statements for case 1 and 2 break; // probably more case here default: Console.WriteLine("We are here"); break; } If I leave the break out on line 10, I get the error **Control cannot fall through from one case label ('default:') to another** but as it is the last statement in this situation, I'm a bit puzzled.

Member Avatar
Member Avatar
+1 forum 6

import java.io.*; import java.util.*; import java.util.Scanner; public class cooperativeCanteen60 { static Scanner console = new Scanner(System.in); static Scanner sc = new Scanner(System.in); public static void main(String[]args) { //throws java.io.IOException { Scanner in = new Scanner (System.in); int type; int discountRange; int discount; int customerType; int number; int rtotal; int vtotal; int ftotal; int mtotal; int tcost = 0; int tcost2 = 0; int order; int change; int moneyReceived; int price; int rprice; int fprice; int vprice; int mprice; int quantity; int rquantity; int vquantity; int fquantity; int mquantity; System.out.println("******COOPERATIVE CANTEEN******"); System.out.println("1]BudgetMeal"); System.out.println("2]RegularMeal"); System.out.println("Type of Order: [1 or 2]?"); type=console.nextInt(); System.out.println("1]Rice,Vegetable,Softdrink …

Member Avatar
Member Avatar
+0 forum 18

Hello everyone, i am fairly new to shell scripting so please bear with me. The following script is supposed to read words from a file and depending on the word print different things. However it always prints the default value. It also refuses to work completely if the first line in 'numbers.txt' is not a blank line. I would be grateful for any hints whatsoever. script #!/bin/bash file="numbers.txt" while read line do operator=`awk '{print $1}' $line` case $operator in "divide") echo "/";; "multiply") echo "x";; "add") echo "+";; "subtract") echo "-";; *) echo "default";; esac done < "$file" numbers.txt (the …

Member Avatar
Member Avatar
+0 forum 5

There is a small problem i have there is a small error that i didnt use to have with the boorland compiler I'm using xcode these days and in my switch case im trying to execute a function (as you can see, the "main" function) however it says that it is an implicit declaration of function "main" and that it is invalid in C99 i cant begin to understand this error:( in boorland i had a few problems but it still ran but i dont understand this error by the way although the function "main" is the last function it …

Member Avatar
Member Avatar
+0 forum 3

Hi, Please, this **isn't** about opinions on uml, it's usefulness (or lack thereof), it's standing, etc - please (I'm so tired)! I have a text usage case which main success scenario is thus: A) Two Players. B) Each player is prompted to enter their name C) Program randomly selects which is to be player 1 and the other is player 2 D) Player 1 selects a coin option (either "heads" or "tails") E) Player 2 gets the other option F) Program randomly produces a coin toss result ("heads" or "tails") G) Result of toss is compared with each player's coin …

Member Avatar
Member Avatar
+0 forum 2

So in my classes I've taken I was told by the teacher "case statements and if-else statements are the same things essentionally" so why learn both? and so I was not taught about cases. Besides the fact I should learn it anyway incase I need it for someone elses code, should I learn these for an actual purpose? Are they good for something that if-else isnt as good for?

Member Avatar
Member Avatar
+0 forum 3

import java.util.Scanner; public class array_Project { int index; Scanner scan=new Scanner(System.in); System.out.println("Enter index number"); int[]Project={10,15,20,25,30,35,40,45,50,55}; } public class array2 { switch (int index) { case 1: if(index=0) { System.out.print(Project[0]); } break; case 2: if(index=1) { System.out.print(Project[1]); } break; case 3: if(index=2) { System.out.print(Project[2]); } break; case 4: if(index=3) { System.out.print(Project[3]); } break; case 5: if(index=4) { System.out.print(Project[4]); } break; case 6: if(index=5) { System.out.print(Project[5]); } break; case 7: if(index=6) { System.out.print(Project[6]); } break; case 8: if(index=7) { System.out.print(Project[7]); } break; case 9: if(index=8) { System.out.print(Project[8]); } break; case 10: if(index=9) { System.out.print(Project[9]); } break; case 11: if(index=10) { System.out.print(Project[10]); } …

Member Avatar
Member Avatar
+0 forum 7

Greetings, I have two tables named 'copyright' and 'logs'. Table : copyright Field : Copyr_md5 Table : logs Field : md5checksum Problem 1 Say i have a value stored in `$md5check` in php , now i want to check if the value stored in `$md5check` is found in field `Copyr_md5`.If found , then display a message Problem 2 I want to check if `$md5check` is found in the field `md5checksum`.If yes then i want to retrieve the data of 3 fields(say field1,field2,field3) in the row where value in `$md5check` has been found. I am a beginner in mysql and i …

Member Avatar
Member Avatar
+0 forum 5

I would like to know the best way to manage the two drop down menu on the PHP page. 1st menu : Select Type of House (House1, House2, ) 2nd menu : Select Number of Rooms (1,2 .. 12) The system should be displayed price based on selected items. Need your suggestion for manage this system in order to make it easier for future use.

Member Avatar
Member Avatar
+0 forum 4

#include <iostream> #include <cmath> #include <string> #include <fstream> #include <windows.h> using namespace std; struct Grade{ int getA; int getB; int getC; int getD; int getF; float marks[100]; }; void init( Grade* student ){ student->getA=0; student->getB=0; student->getC=0; student->getD=0; student->getF=0; for( int i=0; i < 100 ; i++) student->marks[i]=NULL; } int readFile( float* sumOfData, Grade* student){ float marks=0.00; int n=0; string getName; ifstream inFile; cout << "Input file name(include file type): "; cin >> getName; inFile.open(getName); if( !inFile ) cout << "File not exists!!" << endl; else{ while( inFile >> marks ){ if( marks >=0.00 && marks <= 39.99 ){ ++student->getF; student->marks[n]=marks; …

Member Avatar
Member Avatar
+0 forum 9

The End.