486 Results
Looks interesting. Whens future releases?
SammySung Addons Reply
[QUOTE=Shadaez;44387776]no, the code depends a lot on how the html is formatted[/QUOTE] Then how do I work out how to write it?
SammySung Programming Reply
[QUOTE=Shadaez;44387666]you can use the :checked selector to grab checked items. if the length is more than 0, then one or more is selected, if all the separate question's have a different class or something you can do $(class/selector of some kind):checked).length >= 1 on a...
SammySung Programming Reply
[QUOTE=Shadaez;44387128][url]http://jsfiddle.net/j6bER/[/url] uses jquery, lmk if that's a problem[/QUOTE] Can you elaborate a little please?
SammySung Programming Reply
I have a bunch of questions on a page generated by PHP and they're all checkboxes, maybe 4 checkboxes/answers to a question. How can I check using javascript that at least 1 checkbox has been ticked for each question? Each question has a unique ID.
SammySung Programming Reply
JS How can I check that at least one checkbox is ticked in each group of checkboxes on a page?
SammySung Programming Reply
[QUOTE=gokiyono;43879990]CONCAT is there [code] INSERT INTO tableName (columnName) VALUES ( CONCAT('This is a string ', HEX(9), -- This is an integer ' And here is another string.' ) ); -- Returns: This is a string...
SammySung Programming Reply
[QUOTE=gokiyono;43874562]I am not sure, but i think it treats UNHEX( as part of the string, and $HexName as not part of the string (am too tired to remember the name)[/QUOTE] Yeah it does, any way around it?
SammySung Programming Reply
How do I use unhex in a mysql string? For example [code] "insert into logevents (logid,event,operatorifapp, logdate) values (DEFAULT, 'New participant registered - UNHEX('$HexName') - ID: UNHEX('$HexOrgNo')', NULL, CURDATE());";[/code] But it doesn't work. [url]http:/...
SammySung Programming Reply
[QUOTE=KmartSqrl;43761816]This is actually a really bad way to make sure that all required fields are present, you should do something like this instead, it's a lot more flexible down the road, easier to update and easier to see what's happening at a glance. [code] <?php ...
SammySung Programming Reply
[QUOTE=Coment;43758878]how is it set? You make a new row each time they answer, you sum all the 2 on the correct field, you only store it once, you store all the times on another column...?[/QUOTE] If incorrect, it get set to 1.
SammySung Programming Reply
[QUOTE=gokiyono;43758441][code] foreach($_POST as $key => $value){ if($key == 'submit'): continue; endif; [/code] You can check weather or not it is the submit button[/QUOTE] I ended up just minusing one from the end value of i. Further question ...
SammySung Programming Reply
[QUOTE=Lizart;43721961][code] $i=0; foreach($_POST as $value){ if(!empty($value)){ $i++; } } if($i===25){ echo "all forms are valid"; } [/code] this should work but i havent tested it.[/QUOTE] It works for the most part but it's including t...
SammySung Programming Reply
[QUOTE=01271;43721473]Pseudo-php: I =0 Foreach post as data If !empty data I++ If I === 25 Everything went well.[/QUOTE] You can write pseudo code, well done.
SammySung Programming Reply
Can you do a loop with isset in php? I want a loop to check all form elements are set, all have numbered ids between 1-25.
SammySung Programming Reply
Would any have any idea how I'd go about creating and then storing forms in a mysql database? Like, you'd have a page where you'd 'generate' a set of questions for a form, then store those in a database, then retrieve those questions and answers to generate the form?
SammySung Programming Reply
After compile completion, getting this: [quote]VRAD: physics [variable] 6359161/4194304 (151.6%) VERY FULL![/quote] What exactly is physics in this context?
SammySung Level Design Reply
How do I go about making something like this? The whole fade in/fadeout and stops the stuff on the other side from rendering? [img]http://puu.sh/5J3Km.gif[/img]
SammySung Level Design Reply
Hey, I need help writing a pattern/expression for javascript validation. I need the input for phone on a form to be in this format: (0X)XXXXXXXX (with the brackets).
SammySung Programming Reply
-snip-
SammySung Programming Reply
[QUOTE=Shadow801;42720870]May I ask why exactly you are using XML to do this[/QUOTE] Uni assignment, wasn't my choice.
SammySung Programming Reply
[QUOTE=Moofy;42720425]Can't you just use CTRL+F in your editor and use the next and prev buttons to check if there is multiple encounters of the specified word/name? - I don't know if that's what you do with XML but seems like a global way of finding stuff[/QUOTE] I mean...
SammySung Programming Reply
Hey how can I search through an XML file for something specific? My XML file has "Customers" which have username and password elements. I need to check if a user exists when registering to ensure there are no duplicates. PHP
SammySung Programming Reply
[QUOTE=SammySung;42709213]Can anyone point me in the right direction? I need to create a user registration/login system using XML to store the data. Single file, not one file per user.[/QUOTE]
SammySung Programming Reply
[QUOTE=CBastard;42709540]If I was forced not to use a database I would use JSON before using XML.[/QUOTE] Well that's not what my uni degree wants me to do.
SammySung Programming Reply
Can anyone point me in the right direction? I need to create a user registration/login system using XML to store the data. Single file, not one file per user.
SammySung Programming Reply
[QUOTE=ZeekyHBomb;42639223][code]Member entry; for(Member member : someStuff) { if(member.someField == value) { entry = member; break; } } if(entry == null) { //not found }[/code] You could also overwrite the equals-method for member, construct a Member ...
SammySung Programming Reply
I've made like a register type thing in java using an Array list [code]ArrayList<Member> someStuff = new ArrayList<Member>();[/code] Member class/object whatever you call it has phone number and password. How can I search through the Array list to create a kind of log...
SammySung Programming Reply
[QUOTE=MasterFen006;42428754]Dropbox, Google Drive.[/QUOTE] I don't want to upload/download it all, just a simple sync with the cable.
SammySung Hardware & Software Reply
Anyone know of any software that will allow me to sync a folder on my computer with my Galaxy S3?
SammySung Hardware & Software Reply
[QUOTE=eternalflamez;42333518]When I copy this code and run it on my local server, and fill in 11 for customernumber, 1234 for password, it does echo the 11 for customernumber on the request.php. On another note, if customernumber is needed for the query, you should add it ...
SammySung Programming Reply
Okay, been stuck on this all day, need some help! I'm trying to pass the customer number "conumber" from one page to another and use it in a sql statement on the 2nd, but I can't get it to work. User inputs their number & password here, then gets forwarded to request.php. The ...
SammySung Programming Reply
[QUOTE=mobrockers;42333373]Not to be rude but I think you might want to look in this thread: [url]http://facepunch.com/showthread.php?t=1250244&page=41[/url][/QUOTE] I didn't make a thread?
SammySung Programming Reply
-snip-
SammySung Programming Reply
[QUOTE=eternalflamez;42323473]It's because the line of [php]$queryResult = @mysqli_query($DBConnect, $IDString);[/php] $queryResult here, is not a string containing the customer number. Instead, it's a mysqli_result object. (Say, an organised array that's similiar to a m...
SammySung Programming Reply
[QUOTE=SammySung;42313942][code] $SQLstring = "insert into users (customernumber,name,phone,email,pw) values (DEFAULT, '".$_GET['name']."','".$_GET['phone']."','".$_GET['email']."','".$_GET['password2']."');"; $queryResult = @mysqli_query($DBConnect, $SQLstring) Or die...
SammySung Programming Reply
[code] $SQLstring = "insert into users (customernumber,name,phone,email,pw) values (DEFAULT, '".$_GET['name']."','".$_GET['phone']."','".$_GET['email']."','".$_GET['password2']."');"; $queryResult = @mysqli_query($DBConnect, $SQLstring) Or die ("<p>Unable to insert dat...
SammySung Programming Reply
[QUOTE=WTF Nuke;42071917]Formatting buddy, that will clear the issue right up. If that doesn't make sense, you don't have a closing paranthese and you don't have an opening paranthese[/QUOTE] Cheers bud! Making more sense now :)
SammySung Programming Reply
Learning Java, can anyone tell me why this won't work? [code]public class ArgsExample3 { public static void main(String[] args) { String from; for (int i = 0; i < args.length; i++) { if (args[i].startsWith("From:")) { from = args[i].substring(5); System.out.println("M...
SammySung Programming Reply
The U.S, putting their dick in crazy for centuries.
SammySung Polidicks Reply
I've set up a VPN with Hamachi between my laptop and PC because I want to be able to connect to my PC at any given time. In turn, I want to set up permissions to only my laptop can see my computer files and not any other computer on my network. When I go into sharing and all t...
SammySung Hardware & Software Reply
Networking, Hamachi & Permissions
SammySung Hardware & Software Thread
Who cares.
SammySung Polidicks Reply
[img]http://www.reactiongifs.com/wp-content/uploads/2011/05/THISGONBGUD.gif[/img] [highlight](User was banned for this post ("Image macro" - Starpluck))[/highlight]
SammySung Polidicks Reply
[i]obtained Wednesday by CNN.[/i] How do CNN always get their hands on this kind of stuff?
SammySung Polidicks Reply
[QUOTE=code_gs;41248639]Yup, new system because of SteamPipe. SourceSDK program is obsolete now.[/QUOTE] Fair enough. Cheers!
SammySung Level Design Reply
Source SDK. Just tried launching with the bat, works fine? It all loads. Should I be using the bat file to launch? I didn't even know they existed.
SammySung Level Design Reply
CSS content not loading into hammer.
SammySung Level Design Thread
Using Source Engine MP as the engine, CSS as the game, yet no CSS content (materials, models etc) are being loaded, therefore when I open my map that uses a lot of CSS content, it's all error and pink and black textures. Seems this happened after it went to steampipe. I've adj...
SammySung Level Design Reply
[QUOTE=SammySung;41092737]I'm using Source Engine MP for CSS but the CSS content is not being loaded?[/QUOTE]
SammySung Level Design Reply
[QUOTE=pac0master;41194974]How?[/QUOTE] Right click the game in Steam, click properties, then press the Betas tab, then steam pipe should be in there. I could be wrong, I don't know if Portal 2 has switched to Steam pipe as I don't own it.
SammySung Level Design Reply
BYYYY NNAAAUUUUGGHHHTYYYY DOOOGGG. (Crash Bandicoot?)
SammySung Polidicks Reply
[QUOTE=pac0master;41192430]hmm did i missed something, I added the .FGD of many games to my portal 2 sdk and I can not see any new textures. or anything...[/QUOTE] You might need to opt into steam pipe for Portal.
SammySung Level Design Reply
[QUOTE=SammySung;41147684]When using scripted sequences, how do I make it one fluid motion? Just want an NPC to walk from point A->B->C etc. It keeps stopping for a split second at each scripted sequence.[/QUOTE]
SammySung Level Design Reply
That's not very good for his cause in my opinion. "I'm leaking government secrets and I'm fleeing to Russia"
SammySung Polidicks Reply
Don't use Garry's Mod as the game, use CSS or Half Life 2 or something.
SammySung Level Design Reply
When using scripted sequences, how do I make it one fluid motion? Just want an NPC to walk from point A->B->C etc. It keeps stopping for a split second at each scripted sequence.
SammySung Level Design Reply
QOTD: 'It is getting to the point where the mark of international distinction and service to humanity is no longer the Nobel Peace Prize, but an espionage indictment from the US Department of Justice'
SammySung Polidicks Reply
I'm using Source Engine MP for CSS but the CSS content is not being loaded?
SammySung Level Design Reply
[QUOTE=Drakehawke;41092567]I'm honestly not sure what you're doing wrong. The most I can tell you is that gmsv_mysqloo_win32.dll is in the wrong place or not named correctly. What OS are you using? Is this a dedicated server, listen server or client?[/QUOTE] Client. I've...
SammySung Addons Reply
[QUOTE=isnipeu;41090846]Are you still getting "Couldn't include file 'includes/modules/mysqloo.lua' (File not found)"?[/QUOTE] Yes.
SammySung Addons Reply
[QUOTE=mumuk;41057855]Well, still doesn't work for me, I am certainly doing something wrong .. -I put the libmysql where is the files srcds_ -I put the file "gmsv_mysqloo_win32.dll" in garrysmod/lua/bin (I had to create the folder bin because it did not exist) - I w...
SammySung Addons Reply
[QUOTE=KorJax;41088911]I was saying this same shit during election times and everyone thought I was stupid Look I'm all for gay rights and stuff but there are much more important things to focus on right now, especially when social change isn't something that happens just b...
SammySung Polidicks Reply
[QUOTE=Deagle195;41077545]Boxes I made aren't textured in 3D textured mode, why?[/QUOTE] Take a screenshot.
SammySung Level Design Reply
[QUOTE=wazanator;41069561]You're going to have to extract the TF2 content from the vpk's and put them into the CSS folder Extract it, decompile it, recompile it under a new name with the new texture.[/QUOTE] I tried with GCFScape but they are all corrupted?
SammySung Level Design Reply
[QUOTE=Sword and Paint;41067187]Thanks but that did not answer my questions. Is there no way of fixing the ep2\ep1 content pathing issues easily?[/QUOTE] That is the way to fix it. You don't have to edit any of your paths, just follow that tutorial and all will be well.
SammySung Level Design Reply
How do I get TF2 models into CSS now that they've changed the folder structure/adding custom content?
SammySung Level Design Reply
[QUOTE=areolop;41003372]Fuck off Ron Paul. The US isnt that extreme to waste a missile on one person[/QUOTE] Oh you're so naive.
SammySung Polidicks Reply
Where abouts in steam.styles allows me to change the text size of the text in the text input area in a Steam chat? Image below. [img]http://puu.sh/3a65R.png[/img]
SammySung Hardware & Software Reply
Steam Text Size
SammySung Hardware & Software Thread
[QUOTE=mr apple;40839498]Oh look! It's the train line I catch every day for work, weird seeing it mention in the news, apart from the random gang member [url=http://au.news.yahoo.com/a/-/business/17144935/gangs-crime-rampage-captured-on-camera/]assaulting some innocent guy at ...
SammySung Polidicks Reply
Plot twist: Developers code in extras to automatically unlock after X time
SammySung Polidicks Reply
Mafia 1 did a good job of telling the story.
SammySung Polidicks Reply
Can anyone tell me why this is crashing my program? C [code]int load_hit_list(dyn_array *hit_list) { int i, result = 0; FILE *input; input = fopen("hits.txt", "r"); if (input == NULL) {printf("Loading Failed\n"); return 0;} printf("test1\n"); fscanf(inpu...
SammySung Programming Reply
You're about 3 years too late. If it's still the same shit going round, download peerblock and wireshark. Capture all IP's during an attack, remove all non offending IP's (not hard to decipher if you know what to look for). Export the list into a .txt file, open it in Note...
SammySung Garry's Mod General Reply
And this is not terrorism....?
SammySung Polidicks Reply
-snip-
SammySung Programming Reply
N. Korea launches three short-range guided missiles: defense ministry
SammySung Polidicks Thread
[quote]SEOUL, May 18 (Yonhap) -- North Korea on Saturday launched three short-range guided missiles into the sea off the Korean Peninsula's east coast, South Korea's Ministry of Defense said. The ministry said it detected two launches fired in the morning, followed by an...
SammySung Polidicks Reply
whyyyyyyyyyyyyyyyy
SammySung Fast Threads Reply
In actual fact, it probably did require a connection to begin with, then they saw the shit storm that EA caused with Sim City and backed out of it quick stat.
SammySung Polidicks Reply
They should just cremate him and put him in their living room.
SammySung Polidicks Reply
Isn't this a game changer? Constitutes foreign intervention?
SammySung Polidicks Reply
Seems like she is just placing the blame of her problems onto something easy.
SammySung Polidicks Reply
[QUOTE=Protocol7;40440576]You have no where clause. You should be able to do something like "SELECT foo FROM bar WHERE foo > 2"[/QUOTE] I needed to use HAVING, not WHERE
SammySung Programming Reply
Mysql! How can I make it only show entries where Total Sales is between 2 and 10? Query: [quote]SELECT P.PRODID, P.PRODNAME, SUM(O.QTYSOLD) AS "TOTAL SALES" FROM PRODUCT P INNER JOIN ORDERLINE O ON P.PRODID = O.PRODID GROUP BY P.PRODID, P.PRODNAME ORDER BY "TOTAL ...
SammySung Programming Reply
Mysql How do I do a CHECK constraint that ensures the value inputed is between 0 and 5000?
SammySung Programming Reply
I wonder how orchestrating an attack on his own country sits with him.
SammySung Polidicks Reply
[QUOTE=RoboChimp;40375996]The Liberal party's Internet plan is just retarded. A node here some copper there, why not just use shortwave radio, semaphore towers and carrier pigeons.[/QUOTE] Because a carrier pigeon would probably at least [i]try[/i] to make an effort to com...
SammySung Polidicks Reply
> four people die > 8 threads > 185 people die not from the U.S > <look at all the fucks we give> [highlight](User was banned for this post ("Greentext meme reply" - Craptasket))[/highlight]
SammySung Polidicks Reply
Nearly 200 killed in Nigeria violence
SammySung Polidicks Thread
[quote]Fighting between Nigeria's military and the armed group Boko Haram has left at least 185 people dead in a fishing community in the nation's far northeast, officials said on Sunday. The fighting in Baga began on Friday and lasted for hours, sending people fleeing into...
SammySung Polidicks Reply
Are we [i]really[/i] going to feel the pinch of a more expensive NBN as regular citizens? I don't think so.
SammySung Polidicks Reply
8 threads? Really? For only 4 deaths? 8 threads?
SammySung Polidicks Reply
[QUOTE=Chrisordie;40340604][url]http://tunein.com/radio/Boston-Police-Fire-and-EMS-Scanner-s146109/[/url] down too[/QUOTE] AlJazeera has a good live feed going.
SammySung Polidicks Reply
[img]http://i.imgur.com/sm0bRaN.jpg[/img] Djohar Tsarnaev - Boston Bombing Suspect
SammySung Polidicks Reply
[QUOTE=Emperor Scorpious II;40321961]Contrary to popular belief, the people we supplied in Afghanistan are not the same group the US went to war with in 2001.[/QUOTE] Same weapons.
SammySung Polidicks Reply
[QUOTE=Delta616;40299859][IMG]http://thechive.files.wordpress.com/2013/04/dma-143.jpg?w=500&h=250[/IMG][/QUOTE] Nothing like a bit of a disaster to get a bit of rep.
SammySung Polidicks Reply