• Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

What is everyone working on?

Krygore

Coder
I just started learning how to code with HTML and CSS, sooooo....
Playing with a personal blog for my chainsaw carving page and a Skyrim "gamer's manual" that will have useful information like a regular fan site, but from more of a personal perspective and personal gameplay.
The Carving page at this point is, for lack of better words, bland. I haven't done much with it since I started.... maybe I'll get back into it tonight and use what I've learned recently...
The Skyrim Gamer's Manual is something that I started to do because my wife and I are hugely into Skyrim. She has multiple (as in 10-15) notebooks with handwritten notes from her own gameplay and research into the game. I figured it would be a fun project where I could bounce ideas off of her and actually have her be interested in what I was doing (she's not huge into computers). Fingers crossed though, one day I'll convert her to a code monkey!!
On a side note; I doubt either will ever hit the web, but it's fun to learn right now :)
 

simong1993

Active Coder
Staff Team
Guardian
Currently im working on a full automated online shop :D 2 months in and finnaly getting somewhere and on the side im also building a automated 3d printing buisness :D its going to be a blast :D
 

bumbazo1

New Coder
I am curious about what you all are currently working on, I am currently working on a new multi-purpose discord bot with some useful systems that i will use in most of my other bots (database handlers and some other stuff)
i am working on stamp catalog
 

Ash

Active Coder
I had a very fun (not really) task of creating a TCP client using Java as a piece of university coursework. Got the basics done so far including a GUI which was extremely fun to create (again, not really). Can't wait to be done with it and submit it
 

HadASpook

Coder
I'm not working on anything at the moment as I'm mostly just trying to get back into programming after a long time away from it.

I did stumble upon xv6 earlier, which has definitely peaked my interest. I like operating systems - especially old ones - so this might be the closest I'll get to an old UNIX(pure UNIX, not UNIX-like). What I'll be able to takeaway from it after inspecting its code, I don't know. But, I'm hoping to at least learn a thing or two anyway.
 

HadASpook

Coder
I miss seeing what kinds of projects others have been working on, so, I'll share mine.

I've been getting back into programming recently with a small project: a (slightly goofy) text-adventure, Earth simulation, written purely in C(without any external libraries either).

Just the other day, I've managed to get a rudimentary input system working, however, there's a slight problem with trying to get the simulation statistics to show up properly - I ended up creating a function that would copy the real data structure to another structure, call the function used to display the statistics, and would then pass the real data structure as an argument to this new function. So far, the statistics display, but the values that I want to be displayed do not(I'm given garbage values instead). Now, I'm simply tinkering about until I can get this to work.

I am considering making this open-source or will possibly give it away if I lose interest in it. Of course, it's just a fun little project I'm doing to get back into programming and sharpen my skills and I don't have any intention of it becoming serious - it won't stop me giving it away anyway, however, the code really is terrible so make sure to clean your eyes if you do catch sight of the source-code for it one day. :p
 

simong1993

Active Coder
Staff Team
Guardian
i think we all just get so carried away we forget to call home sometimes lol, i keep forgetting to say hi, i will admit if yours goes open source i would love to take a look :D at the moment i have 3 projects on the go.

1st one is Personal but work related - I am building a fully automated shop, month 14 now but so so close and i am no in the faze of making it so others can use it. So my system uploads stock, fulfills items, finds stock to sell and everything in between :D

2nd Is what i class as Personal and just for fun, I am building kinda of like a database. So its a spider, scrapes URLs and then spiders out to the ones it finds, When it finds a email it then attempts to link the email to a URL, it then finds the phone number, address, checks for domain names basically any public information and builds a virtual imprint of the company

3rd is contracted work, i have been contracted to build a system that scrapes specific data from contracts, this is proving to be fun lol
 

HadASpook

Coder
simong1993 said:
i think we all just get so carried away we forget to call home sometimes lol, i keep forgetting to say hi, i will admit if yours goes open source i would love to take a look
I wouldn't worry about it.

I don't think you really would want to look and if you did...I suggest a good brand of bleach to cleanse your eyes after reading through it. As I said, it's written in C and as I understand, you aren't a C programmer, correct? Doesn't mean you can't read it though, but it will be different from what you're used to.


I like the sound of some of the stuff you're working on too, @simong1993 - the automated shop one in particular.
 

simong1993

Active Coder
Staff Team
Guardian
When you know one code you can pretty much read the rest lol, its always nice though to look over someone elses code to see how this does that etc :)

Everyone is always interested in that system, i got to admit it kinda cool and its been running for my self for the last 4 months and turning a profit. Its just getting it ready now so i can have multiple shops and more the just me using it :)
 

HadASpook

Coder
simong1993 said:
When you know one code you can pretty much read the rest lol, its always nice though to look over someone elses code to see how this does that etc
Your reply could not have came sooner - maybe I will share the code after all.

As stated, I was having problems getting the statistics to show up and so I was trying every possible solution and scouring books and the web for solutions. In the end, like every programmer, I came full circle back to StackOverflow, just to let me know that I was using external variables wrong on a basic error that should not have taken me about two days to fix - I feel like an absolute idiot now. Thankfully, the statistics now show so now I'm trying to create an "end simulation" command that will print these statistics to a text file.

simong1993 said:
Everyone is always interested in that system, i got to admit it kinda cool and its been running for my self for the last 4 months and turning a profit. Its just getting it ready now so i can have multiple shops and more the just me using it
Yeah, it's funny that, but I suppose it's a fun thing to challenge yourself on if you dedicate the effort.

I never actually thought you were running it, I thought instead that you were still developing it. Good for you anyway on managing to turn a profit. Must've taken a good bit of effort to have that happen. Best of luck!
 

HadASpook

Coder
In the end, I decided to release the source-code of my simulation project here on CF. As I said, you're free to analyse and mess about with it. I'm not bothered, as long as you have fun with it, even if the code itself is a living nightmare.

My other project now is a static - written purely in HTML and CSS - wiki that I intend to run on GitHub pages(if it grows big enough, I may move it to a proper host). It's pretty much finished and it only needs a couple of cherries on top and it will be good to go, provided I don't dump it in the trash like I do with pretty much all projects.
 

Johna

New Coder
Well so I made this extension last week.
https://microsoftedge.microsoft.com/addons/detail/quora-unlimited/bibodjphdfgcpdnlfhnbdodohhggcgga
It removes that sign up popup when you view a Quora page.

I can't upload is on the chrome web store, cause you need to pay 5 euros/dollars, whatever it was, so I uploaded it to Microsoft edge add-ons.

It was a very easy project to make.

Here's the code if anyone is interested:

manifest.json
JSON:
{
  "manifest_version": 2,
  "name": "Quora Unlimited",
  "version": "1.0",
  "description": "This extension allows you to view unlimited number of Quora pages a day without needing an account.",
  "icons": {
    "16": "Icons/quoraLogo16.png",
    "32": "Icons/quoraLogo32.png",
    "48": "Icons/quoraLogo48.png",
    "128": "Icons/quoraLogo128.png"
  },
  "content_scripts": [
    {
      "matches": ["https://www.quora.com/*"],
      "css": ["CSS/removeOverlayPopup.css"],
      "run_at": "document_end"
    }
  ]
}

removeOverlayPopup.css
CSS:
.q-box.qu-overflow--hidden {
  box-sizing: border-box !important;
  inset: 0px !important;
  filter: blur(0px) !important;
  position: relative !important;
}

.q-flex.qu-alignItems--center.qu-justifyContent--center.qu-overflow--hidden.qu-zIndex--blocking_wall {
  display: none !important;
}



I'm currently working on a calculator extension, It's almost done, I just need to do a few changes for dark mode.

Here's the code:

manifest.json
JSON:
{
  "manifest_version": 2,
  "name": "Calculator in a Box",
  "version": "1.0",
  "description": "Use this calculator without having to switch tabs or windows",
  "icons": {
    "128": "Icons/128.png",
    "48": "Icons/48.png",
    "32": "Icons/32.png",
    "16": "Icons/16.png"
  },
  "browser_action": {
    "default_popup": "Html/calculator.html"
  },
  "content_security_policy":"script-src 'self' 'unsafe-eval'; object-src 'self'"
}

calculator.html
HTML:
<html>

<head>
  <title>Calculator in a Box</title>
</head>

<!--Design-->
<link rel="stylesheet" href="/CSS/calcstyle.css">

<body>

  <div class="menu">
    <img class="menuButton" id="buttonMenu" src="/Icons/menuIcon.png" width="40px" height="15px"/>
    <div class="puB">
    <div id="popup" class="pu">
    Darkmode
    <button class="change">OFF</button>
    </div>
    </div>
  </div>

  <!--Calculator buttons and textbox-->
  <form name="calculator">
    <br><input type="text" class="result" id="textbox"/></br><br/>
    <input class="top" id="openB" type="button" value="("/>
    <input class="top" id="closeB" type="button" value=")"/>
    <input class="top" id="x10p" type="button" value="EXP"/>
    <input class="top" id="clear" type="button" value="reset"/><br/>
    <input class="main" id="seven" type="button" value="7"/>
    <input class="main" id="eight" type="button" value="8"/>
    <input class="main" id="nine" type="button" value="9"/>
    <input class="main" id="plus" type="button" value="+"/><br/>
    <input class="main" id="four" type="button" value="4"/>
    <input class="main" id="five" type="button" value="5"/>
    <input class="main" id="six" type="button" value="6"/>
    <input class="main" id="minus" type="button" value="-"/><br/>
    <input class="main" id="one" type="button" value="1"/>
    <input class="main" id="two" type="button" value="2"/>
    <input class="main" id="three" type="button" value="3"/>
    <input class="main" id="times" type="button" value="*"/><br/>
    <input class="main" id="point" type="button" style="font-weight: bold" value="."/>
    <input class="main" id="zero" type="button" value="0"/>
    <input class="main" id="equals" type="button" value="="/>
    <input class="main" id="divBy" type="button" value="/"/>
  </form>
</body>

<!--Scripts-->
<script src="/JavaScript/jquery-2.2.0.min.js"></script>
<script src="/JavaScript/calcscript.js"></script>

</html>

calcstyle.css
CSS:
body {
    background-color: #FFFFFF;
    width: 282px;
    height: 420px;
}

.menuButton {
    align-content: center;
    position: relative;
    right: -242px;
}

.result {
    height:45px;
    width:282px;
    padding: 0;
    padding-right: 5px;
    border: none;
    background: none;
    background-color: #DDDDDD;
    border-radius: 5px;
    text-align: right;
    font-size: 20px;
}

.top {
    height:34px;
    width:68px;
    padding: 0;
    border: none;
    border-top: solid white;
    border-bottom: solid white;
    border-width: 2px;
    background: none;
    background-color: #DDDDDD;
    border-radius: 5px;
    font-size: 15px;
}

.main {
    height: 72px;
    width: 68px;
    padding: 0;
    border-top: solid white;
    border-bottom: solid white;
    border-left: none;
    border-right: none;
    border-width: 2px;
    background: none;
    background-color: #DDDDDD;
    border-radius: 5px;
    font-size: 18px;
}

.darkbody {
    background-color: #454545;
    width: 282px;
    height: 420px;
}

.darkresult {
    height:45px;
    width:284px;
    padding: 0;
    padding-right: 5px;
    border: none;
    background: none;
    background-color: #707070;
    border-radius: 5px;
}

.darktop {
    height:34px;
    width:68px;
    padding: 0;
    border: none;
    border-top: solid #454545;
    border-bottom: solid #454545;
    border-width: 2px;
    background: none;
    background-color: #707070;
    border-radius: 5px;
    font-size: 15px;
}

.darkmain {
    height: 72px;
    width: 68px;
    padding: 0;
    border-top: solid #454545;
    border-bottom: solid #454545;
    border-left: none;
    border-right: none;
    border-width: 2px;
    background: none;
    background-color: #707070;
    border-radius: 5px;
    font-size: 18px;
}

#popup {
  background-color: #999999;
  width: 150px;
  height: 50px;
  position: absolute;
  visibility: hidden;
  font-family: Roboto;
  font-size: 18px;
  border-radius: 5px;
  right: 0px;
  padding-left: 5px;
  padding-top: 8px;
}

.change {
  background-color: #707070;
  width: 40px;
  height: 20px;
  border: none;
  border-radius: 5px;
  position: absolute;
  right: 10px;
}

.popupBG {
  background-color: #999999 !important;
  width: 150px !important;
  height: 30px !important;
  position: absolute !important;
  visibility: visible !important;
  font-family: Roboto !important;
  font-size: 18px !important;
  border-radius: 5px !important;
  right: 0px !important;
  padding-left: 5px !important;
  padding-top: 10px !important;
}

.puBV {
  background: none;
  width: 282px;
  height: 420px;
  position: absolute;
}

calcscript.js
JavaScript:
//Dark mode toggle
$( ".change" ).on("click", function() {
    if( $( "body" ).hasClass( "darkbody" )) {
        $( "body" ).removeClass( "darkbody" );
        $( ".top" ).removeClass( "darktop" );
        $( ".main" ).removeClass( "darkmain" );
        $( ".result" ).removeClass( "darkresult" );
        $( ".change" ).text( "OFF" );
    }
    else {
        $( "body" ).addClass( "darkbody" );
        $( ".top" ).addClass( "darktop" );
        $( ".main" ).addClass( "darkmain" );
        $( ".result" ).addClass( "darkresult" );
        $( ".change" ).text( "ON" );
    }
 });


//Dark mode popup button
 $( ".menuButton" ).on("click", function() {
     if( $( ".pu" ).hasClass( "popupBG" )) {
         $( ".pu" ).removeClass( "popupBG" );
     }
     else {
         $( ".pu" ).addClass( "popupBG" );
         $( ".puB" ).addClass( "puBV" )
     }
  });

   $( ".puB" ).on("click", function() {
       if( $( ".pu" ).hasClass( "popupBG" )) {
           $( ".pu" ).removeClass( "popupBG" );
           $( ".puB" ).removeClass( "puBV" )
       }
       else {
           $( ".pu" ).addClass( "popupBG" );
           $( ".puB" ).addClass( "puBV" )
       }
    });


//Open bracket
document.getElementById("openB").onclick = function() {funOB()};

function funOB(){
    document.getElementById("textbox").value+= "("
};


//Close bracket
document.getElementById("closeB").onclick = function() {funCB()};

function funCB(){
    document.getElementById("textbox").value+= ")"
};


//Exponential
document.getElementById("x10p").onclick = function() {funE()};

function funE(){
    document.getElementById("textbox").value+= "e"
};


//Clear
document.getElementById("clear").onclick = function() {clr()};

function clr() {
    document.getElementById("textbox").value = ""
}


//Seven
document.getElementById("seven").onclick = function() {funSeven()};

function funSeven(){
    document.getElementById("textbox").value+= "7"
};


//Eight
document.getElementById("eight").onclick = function() {funEight()};

function funEight(){
    document.getElementById("textbox").value+= "8"
};


//Nine
document.getElementById("nine").onclick = function() {funNine()};

function funNine(){
    document.getElementById("textbox").value+= "9"
};


//Addition
document.getElementById("plus").onclick = function() {funPlus()};

function funPlus(){
    document.getElementById("textbox").value+= "+"
};


//Four
document.getElementById("four").onclick = function() {funFour()};

function funFour(){
    document.getElementById("textbox").value+= "4"
};


//Five
document.getElementById("five").onclick = function() {funFive()};

function funFive(){
    document.getElementById("textbox").value+= "5"
};


//Six
document.getElementById("six").onclick = function() {funSix()};

function funSix(){
    document.getElementById("textbox").value+= "6"
};


//Subtraction
document.getElementById("minus").onclick = function() {funMin()};

function funMin(){
    document.getElementById("textbox").value+= "-"
};


//One
document.getElementById("one").onclick = function() {funOne()};

function funOne(){
    document.getElementById("textbox").value+= "1"
};


//Two
document.getElementById("two").onclick = function() {funTwo()};

function funTwo(){
    document.getElementById("textbox").value+= "2"
};


//Three
document.getElementById("three").onclick = function() {funThree()};

function funThree(){
    document.getElementById("textbox").value+= "3"
};


//Multiplication
document.getElementById("times").onclick = function() {funTim()};

function funTim(){
    document.getElementById("textbox").value+= "*"
};


//Point
document.getElementById("point").onclick = function() {funDot()};

function funDot(){
    document.getElementById("textbox").value+= "."
};


//Zero
document.getElementById("zero").onclick = function() {funZero()};

function funZero(){
    document.getElementById("textbox").value+= "0"
};


//Answer
document.getElementById("equals").onclick = function() {solve()};

function solve() {
    let x = document.getElementById("textbox").value
    let y = eval(x)
    document.getElementById("textbox").value = y
}


//Division
document.getElementById("divBy").onclick = function() {funDiv()};

function funDiv(){
    document.getElementById("textbox").value+= "/"
};

And well I don't think I need to add the jquery-2.2.0.min.js

I should finish it soon I hope.

So yeah, that's what I'm working on right now.
 

Top